{"openapi":"3.0.0","components":{"examples":{},"headers":{},"parameters":{},"requestBodies":{},"responses":{},"schemas":{"GCSEventAttributes":{"properties":{"bucketId":{"type":"string"},"eventTime":{"type":"string"},"eventType":{"type":"string"},"notificationConfig":{"type":"string"},"objectGeneration":{"type":"string"},"objectId":{"type":"string"},"payloadFormat":{"type":"string"},"overwroteGeneration":{"type":"string"},"overwrittenByGeneration":{"type":"string"}},"required":["bucketId","eventTime","eventType","notificationConfig","objectGeneration","objectId","payloadFormat"],"type":"object","additionalProperties":false},"GCSEventMessage":{"properties":{"messageId":{"type":"string"},"message_id":{"type":"string"},"publishTime":{"type":"string"},"publish_time":{"type":"string"},"attributes":{"$ref":"#/components/schemas/GCSEventAttributes"},"data":{"type":"string"}},"required":["messageId","message_id","publishTime","publish_time","attributes","data"],"type":"object","additionalProperties":false},"PubSubEvent_GCSEventMessage_":{"properties":{"message":{"$ref":"#/components/schemas/GCSEventMessage"},"subscription":{"type":"string"}},"required":["message","subscription"],"type":"object","additionalProperties":false},"WebhookGCSEventRequest":{"$ref":"#/components/schemas/PubSubEvent_GCSEventMessage_"},"WebhookCloudSchedulerJob":{"enum":["DELETE_EXPIRED_CAMERAS","DELETE_EXPIRED_BATCH_DOWNLOADS","UPDATE_VIEW_STATS","MONITOR","CREATE_AUTOMATED_SEQUENCES","CREATE_SCHEDULED_SEQUENCES","NOTIFY_DELETING_AT_VIEWS","DELETE_DELETING_AT_VIEWS","DETECT_ORPHANED_BUCKET_FOLDERS"],"type":"string"},"WebhookCloudSchedulerRequest":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/WebhookCloudSchedulerJob"},"type":"array"}},"required":["jobs"],"type":"object","additionalProperties":false},"Environment":{"type":"string","enum":["test","local","uat","production"]},"WebhookCloudflareStreamEventRequest":{"properties":{"allowedOrigins":{"items":{"type":"string"},"type":"array"},"clippedFrom":{"type":"string","nullable":true},"created":{"type":"string"},"creator":{"type":"string","nullable":true},"duration":{"type":"number","format":"double"},"input":{"properties":{"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"}},"additionalProperties":{},"required":["width","height"],"type":"object"},"liveInput":{"type":"string"},"maxDurationSeconds":{"type":"number","format":"double","nullable":true},"maxSizeBytes":{"type":"number","format":"double","nullable":true},"meta":{"properties":{"notificationUrl":{"type":"string"},"environment":{"$ref":"#/components/schemas/Environment"},"sequenceId":{"type":"string"},"name":{"type":"string"}},"additionalProperties":{},"required":["notificationUrl","environment","sequenceId","name"],"type":"object"},"modified":{"type":"string"},"playback":{"properties":{"hls":{"type":"string"},"dash":{"type":"string"}},"additionalProperties":{},"required":["hls","dash"],"type":"object"},"preview":{"type":"string"},"publicDetails":{},"readyToStream":{"type":"boolean"},"readyToStreamAt":{"type":"string"},"requireSignedURLs":{"type":"boolean"},"scheduledDeletion":{"type":"string","nullable":true},"size":{"type":"number","format":"double"},"status":{"properties":{"step":{"type":"string"},"state":{"type":"string","enum":["ready","error"]},"pctComplete":{"type":"string"},"errorReasonText":{"type":"string"},"errorReasonCode":{"type":"string"}},"additionalProperties":{},"required":["state"],"type":"object"},"thumbnail":{"type":"string"},"thumbnailTimestampPct":{"type":"number","format":"double"},"uid":{"type":"string"},"uploadExpiry":{"type":"string","nullable":true},"uploaded":{"type":"string"},"watermark":{"properties":{"width":{"type":"number","format":"double"},"uid":{"type":"string"},"size":{"type":"number","format":"double"},"scale":{"type":"number","format":"double"},"position":{"type":"string"},"padding":{"type":"number","format":"double"},"opacity":{"type":"number","format":"double"},"name":{"type":"string"},"height":{"type":"number","format":"double"},"downloadedFrom":{"type":"string"},"created":{"type":"string"}},"additionalProperties":{},"type":"object","nullable":true}},"required":["created","creator","duration","input","maxDurationSeconds","maxSizeBytes","meta","modified","playback","preview","readyToStream","readyToStreamAt","requireSignedURLs","scheduledDeletion","size","thumbnail","thumbnailTimestampPct","uid","uploadExpiry","uploaded"],"type":"object","additionalProperties":{}},"Resources":{"enum":["user","organisation","brand","client","project","notification","view","subscription","view_stat","camera","image","image_annotation","image_analysis","system","operation","camera_stat","role","invitation","sequence","sequence_automation","sequence_schedule","clip","batch_download","batch_zip","batch_image_analysis","shadow","log","transfer_settings","system_type"],"type":"string"},"OrganisationExpand":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","name","object"],"type":"object","additionalProperties":false},"ClientExpand":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","name","object"],"type":"object","additionalProperties":false},"ProjectExpand":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","name","object"],"type":"object","additionalProperties":false},"SupportedSystems":{"enum":["GABRIELCAMV1","GABRIELCAMV2","INSITEV1","SOLOV1","AXISV1"],"type":"string"},"CameraExpand":{"properties":{"id":{"type":"string"},"serialNumber":{"type":"string"},"systemType":{"$ref":"#/components/schemas/SupportedSystems"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","serialNumber","systemType","name","object"],"type":"object","additionalProperties":false},"SubscriptionCode":{"enum":["STANDARD_MONTHLY","STANDARD_ANNUAL","PREMIUM_MONTHLY","PREMIUM_ANNUAL","PREMIUM_MONTHLY_AI","PREMIUM_ANNUAL_AI","ARCHIVE_MONTHLY","ARCHIVE_ANNUAL"],"type":"string"},"SubscriptionStatus":{"enum":["live","trial","dunning","unpaid","non_renewing","cancelled","creation_failed","cancelled_from_dunning","expired","trial_expired","future","deleted"],"type":"string"},"Features":{"enum":["FTP_TRANSFER","CREATE_IMAGES","CREATE_IMAGES_FTP","CREATE_IMAGES_PUBLIC_API","CREATE_VIDEOS","CREATE_VIDEOS_ADVANCED","CREATE_VIDEOS_AUTOMATED","CREATE_VIDEOS_SCHEDULED","CREATE_IMAGE_ANNOTATIONS","IMAGE_ML_ANALYSIS","LIVE_STREAM"],"type":"string"},"ViewSubscription":{"properties":{"id":{"type":"string"},"externalReference":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"code":{"$ref":"#/components/schemas/SubscriptionCode"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"features":{"items":{"$ref":"#/components/schemas/Features"},"type":"array"}},"required":["id","externalReference","externalId","name","code","status"],"type":"object","additionalProperties":false},"OriginProviders":{"type":"string","enum":["AWS","GCP","BACKBLAZE","WASABI"]},"ViewSourceS3":{"properties":{"provider":{"$ref":"#/components/schemas/OriginProviders"},"region":{"type":"string"},"bucket":{"type":"string"},"prefix":{"type":"string"},"credentialId":{"type":"string"}},"required":["provider","region","bucket","prefix","credentialId"],"type":"object","additionalProperties":false},"ViewOriginS3":{"properties":{"provider":{"$ref":"#/components/schemas/OriginProviders"},"region":{"type":"string"},"bucket":{"type":"string"},"prefix":{"type":"string"},"credentialId":{"type":"string"},"primary":{"type":"boolean"}},"required":["provider","region","bucket","prefix","credentialId","primary"],"type":"object","additionalProperties":false},"ViewTransferSetting":{"properties":{"transferSetting":{"type":"string"},"path":{"type":"string"},"name":{"type":"string"}},"required":["transferSetting","path"],"type":"object","additionalProperties":false},"ViewStatus":{"enum":["INACTIVE","ACTIVE","ARCHIVE"],"type":"string"},"ViewAnalysisMeta":{"properties":{"luminanceComplete":{"type":"boolean"},"visibilityComplete":{"type":"boolean"}},"type":"object","additionalProperties":false},"ViewMeta":{"properties":{"analysis":{"$ref":"#/components/schemas/ViewAnalysisMeta"}},"type":"object","additionalProperties":{}},"FTPTypes":{"enum":["ftps"],"type":"string"},"FTPTransferOptions":{"properties":{"server":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"type":{"$ref":"#/components/schemas/FTPTypes"},"port":{"type":"number","format":"double"}},"required":["server","username","password","type","port"],"type":"object","additionalProperties":false},"TransferSetting":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"organisation":{"type":"string"},"options":{"$ref":"#/components/schemas/FTPTransferOptions"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","name","organisation","options","object"],"type":"object","additionalProperties":false},"View":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"client":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ClientExpand"}]},"project":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ProjectExpand"}]},"camera":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/CameraExpand"}]},"subscription":{"$ref":"#/components/schemas/ViewSubscription"},"cameraOffsetHours":{"type":"number","format":"double"},"lastSeenUtc":{"type":"string","format":"date-time"},"lastCapturedUtc":{"type":"string","format":"date-time"},"latestImageFileName":{"type":"string"},"latestImageURL":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deleteAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time"},"deleteAtNotifiedAt":{"type":"string","format":"date-time"},"latitude":{"type":"number","format":"double"},"longitude":{"type":"number","format":"double"},"imageCount":{"type":"number","format":"double"},"isPublic":{"type":"boolean"},"publicImageOffsetHours":{"type":"number","format":"double"},"source":{"$ref":"#/components/schemas/ViewSourceS3"},"origins":{"items":{"$ref":"#/components/schemas/ViewOriginS3"},"type":"array"},"transfers":{"items":{"$ref":"#/components/schemas/ViewTransferSetting"},"type":"array"},"status":{"$ref":"#/components/schemas/ViewStatus"},"timezone":{"type":"string"},"meta":{"$ref":"#/components/schemas/ViewMeta"},"includes":{"properties":{"transferSettings":{"items":{"$ref":"#/components/schemas/TransferSetting"},"type":"array"}},"type":"object"},"ftp":{"properties":{"server":{"type":"string"},"password":{"type":"string"},"username":{"type":"string"},"mask":{"type":"string"},"enabled":{"type":"boolean"}},"required":["mask","enabled"],"type":"object"}},"required":["id","name","object","organisation","cameraOffsetHours","createdAt","updatedAt","imageCount","isPublic","publicImageOffsetHours","status"],"type":"object","additionalProperties":false},"ResourceList_View_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/View"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"TokenDetails":{"description":"Contains an Ably Token and its associated metadata.","properties":{"capability":{"type":"string","description":"The capabilities associated with this Ably Token. The capabilities value is a JSON-encoded representation of the resource paths and associated operations. Read more about capabilities in the [capabilities docs](https://ably.com/docs/core-features/authentication/#capabilities-explained)."},"clientId":{"type":"string","description":"The client ID, if any, bound to this Ably Token. If a client ID is included, then the Ably Token authenticates its bearer as that client ID, and the Ably Token may only be used to perform operations on behalf of that client ID. The client is then considered to be an [identified client](https://ably.com/docs/core-features/authentication#identified-clients)."},"expires":{"type":"number","format":"double","description":"The timestamp at which this token expires as milliseconds since the Unix epoch."},"issued":{"type":"number","format":"double","description":"The timestamp at which this token was issued as milliseconds since the Unix epoch."},"token":{"type":"string","description":"The [Ably Token](https://ably.com/docs/core-features/authentication#ably-tokens) itself. A typical Ably Token string appears with the form `xVLyHw.A-pwh7wicf3afTfgiw4k2Ku33kcnSA7z6y8FjuYpe3QaNRTEo4`."}},"required":["capability","expires","issued","token"],"type":"object","additionalProperties":false},"Partial_EventSubscription_":{"properties":{"subscription":{"$ref":"#/components/schemas/TokenDetails"}},"type":"object","description":"Make all properties in T optional"},"BadRequest":{"properties":{"code":{"type":"string","enum":["bad_request"],"nullable":false},"resource_path":{"type":"string"},"message":{"type":"string"}},"required":["code","resource_path","message"],"type":"object","additionalProperties":false},"ErrorResponse_BadRequest_":{"properties":{"error":{"$ref":"#/components/schemas/BadRequest"}},"required":["error"],"type":"object","additionalProperties":false},"ViewsOrderBy":{"enum":["lastCapturedUtc","createdAt","updatedAt","name"],"type":"string"},"MongoId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"ViewVisibility":{"enum":["public","private"],"type":"string"},"ListViewsQueryExpandable":{"enum":["camera","organisation","client","project"],"type":"string"},"SortOrder":{"enum":["ASC","DESC"],"type":"string"},"GetViewsRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/ViewsOrderBy","description":"Field to order the results by (defaults to lastCapturedUtc)"},"camera":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"client":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"project":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"subscription":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"subscriptionCode":{"items":{"$ref":"#/components/schemas/SubscriptionCode"},"type":"array","description":"Subscription Code of the views to return"},"search":{"type":"string","description":"Search term for View Name"},"startsWith":{"items":{"type":"string"},"type":"array","description":"Special search for the start character of a View name, this is uses to allow grouping of views in the UI"},"visibility":{"$ref":"#/components/schemas/ViewVisibility","description":"Is the View Public or private, defaults to all"},"status":{"$ref":"#/components/schemas/ViewStatus","description":"Status of the view"},"subscribe":{"type":"boolean","description":"If to attach a channel to the View","default":false},"expand":{"items":{"$ref":"#/components/schemas/ListViewsQueryExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"GetViewQueryExpandable":{"enum":["camera","organisation","client","project","transfer_settings"],"type":"string"},"GetViewQueryParams":{"properties":{"expand":{"items":{"$ref":"#/components/schemas/GetViewQueryExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"CreateViewRequest":{"properties":{"name":{"type":"string","description":"The name of the view","minLength":3},"organisation":{"$ref":"#/components/schemas/MongoId","description":"The organisation to assign to the view"},"subscription":{"$ref":"#/components/schemas/MongoId","description":"The subscription to assign to the view"},"client":{"$ref":"#/components/schemas/MongoId","description":"The client to assign to the view"},"project":{"$ref":"#/components/schemas/MongoId","description":"The project to assign to the view"},"camera":{"$ref":"#/components/schemas/MongoId","description":"The camera to assign to the view"},"cameraOffsetHours":{"type":"number","format":"double","description":"The offset in hours to apply to the camera time","minimum":-23,"maximum":23},"timezone":{"type":"string","description":"The timezone of the view"},"isPublic":{"type":"boolean","description":"Whether the view is public"},"publicImageOffsetHours":{"type":"number","format":"double","description":"The offset in hours to apply to the public image time","minimum":0,"maximum":23}},"required":["name","organisation","subscription","isPublic"],"type":"object","additionalProperties":false},"UpdateViewRequest":{"properties":{"name":{"type":"string","description":"The name of the view","minLength":3},"subscription":{"$ref":"#/components/schemas/MongoId","description":"The subscription to assign to the view"},"client":{"$ref":"#/components/schemas/MongoId","description":"The client to assign to the view"},"project":{"$ref":"#/components/schemas/MongoId","description":"The project to assign to the view"},"camera":{"$ref":"#/components/schemas/MongoId","description":"The camera to assign to the view"},"cameraOffsetHours":{"type":"number","format":"double","description":"The offset in hours to apply to the camera time","minimum":-23,"maximum":23},"timezone":{"type":"string","description":"The timezone of the view"},"latitude":{"type":"number","format":"double","description":"The latitude of the view"},"longitude":{"type":"number","format":"double","description":"The longitude of the view"},"isPublic":{"type":"boolean","description":"Whether the view is public"},"publicImageOffsetHours":{"type":"number","format":"double","description":"The offset in hours to apply to the public image time","minimum":0,"maximum":23}},"required":["name","subscription"],"type":"object","additionalProperties":false},"SetViewSourceRequest":{"$ref":"#/components/schemas/ViewSourceS3"},"SetViewOriginRequest":{"$ref":"#/components/schemas/ViewOriginS3"},"SetViewTransferRequest":{"$ref":"#/components/schemas/ViewTransferSetting"},"LuminanceResult":{"properties":{"meanLuminance":{"type":"number","format":"double"},"medianLuminance":{"type":"number","format":"double"},"darkPixelRatio":{"type":"number","format":"double"}},"required":["meanLuminance","medianLuminance","darkPixelRatio"],"type":"object","additionalProperties":false},"VisibilityResult":{"properties":{"darkChannelMean":{"type":"number","format":"double"},"sharpness":{"type":"number","format":"double"},"meanSaturation":{"type":"number","format":"double"}},"required":["darkChannelMean","sharpness","meanSaturation"],"type":"object","additionalProperties":false},"RainResult":{"properties":{"rainDetected":{"type":"boolean"},"confidence":{"type":"number","format":"double"},"stub":{"type":"boolean"}},"required":["rainDetected","confidence"],"type":"object","additionalProperties":false},"ModelPrediction":{"properties":{"class":{"type":"string"},"confidence":{"type":"number","format":"double"},"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"},"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"}},"required":["class","confidence","x","y","width","height"],"type":"object","additionalProperties":false},"RoboflowResult":{"properties":{"predictions":{"items":{"$ref":"#/components/schemas/ModelPrediction"},"type":"array"},"inferenceId":{"type":"string"},"creditsUsed":{"type":"number","format":"double"},"costUsd":{"type":"number","format":"double"}},"required":["predictions","creditsUsed","costUsd"],"type":"object","additionalProperties":false},"RoboflowCombinedResult":{"properties":{"vehicle":{"$ref":"#/components/schemas/RoboflowResult"},"ppe":{"$ref":"#/components/schemas/RoboflowResult"},"face":{"$ref":"#/components/schemas/RoboflowResult"}},"type":"object","additionalProperties":false},"ImageAnalysisMeta":{"properties":{"luminance":{"$ref":"#/components/schemas/LuminanceResult"},"visibility":{"$ref":"#/components/schemas/VisibilityResult"},"rain":{"$ref":"#/components/schemas/RainResult"},"rf":{"$ref":"#/components/schemas/RoboflowCombinedResult"}},"type":"object","additionalProperties":false},"Image":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"originalFileName":{"type":"string"},"view":{"type":"string"},"capturedAt":{"type":"string","format":"date-time"},"uploadedAt":{"type":"string","format":"date-time"},"uploadURL":{"type":"string"},"sourceURL":{"type":"string"},"meta":{"properties":{"analysis":{"$ref":"#/components/schemas/ImageAnalysisMeta"},"annotations":{"properties":{"count":{"type":"number","format":"double"}},"required":["count"],"type":"object"}},"additionalProperties":{},"type":"object"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","object","createdAt","updatedAt"],"type":"object","additionalProperties":false},"ResourceList_Image_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Image"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"ImageStatus":{"enum":["SCAN_FAILED","SCHEDULED","UPLOADING","UPLOADED","PROCESSING","COMPLETE"],"type":"string"},"Pick_ViewSourceS3.Exclude_keyofViewSourceS3.credentialId__":{"properties":{"provider":{"$ref":"#/components/schemas/OriginProviders"},"region":{"type":"string"},"bucket":{"type":"string"},"prefix":{"type":"string"}},"required":["provider","region","bucket","prefix"],"type":"object","description":"From T, pick a set of properties whose keys are in the union K"},"Omit_ViewSourceS3.credentialId_":{"$ref":"#/components/schemas/Pick_ViewSourceS3.Exclude_keyofViewSourceS3.credentialId__","description":"Construct a type with the properties of T except for those in type K."},"Record_string.string-or-number_":{"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number","format":"double"}]},"type":"object","description":"Construct a type with a set of properties K of type T"},"CreateImageRequest":{"properties":{"originalFileName":{"type":"string"},"status":{"$ref":"#/components/schemas/ImageStatus"},"findBySource":{"$ref":"#/components/schemas/Omit_ViewSourceS3.credentialId_"},"capturedAt":{"type":"string"},"uploadedAt":{"type":"string"},"meta":{"$ref":"#/components/schemas/Record_string.string-or-number_"}},"required":["originalFileName","capturedAt"],"type":"object","additionalProperties":false},"ResourceList_string_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"type":"string"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"ViewStat":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"view":{"type":"string"},"storageImageCount":{"type":"number","format":"double"},"storageImageSizeBytes":{"type":"number","format":"double"},"storageSequenceCount":{"type":"number","format":"double"},"storageSequenceSizeBytes":{"type":"number","format":"double"},"storageTotalSizeBytes":{"type":"number","format":"double"},"timestamp":{"type":"string","format":"date-time"}},"required":["id","object","view","storageImageCount","storageImageSizeBytes","storageSequenceCount","storageSequenceSizeBytes","storageTotalSizeBytes","timestamp"],"type":"object","additionalProperties":false},"ResourceList_ViewStat_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/ViewStat"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"Pick_User.apiKey_":{"properties":{"apiKey":{"type":"string"}},"type":"object","description":"From T, pick a set of properties whose keys are in the union K"},"EnableFtpRequest":{"properties":{"mask":{"type":"string","description":"The filename mask for FTP uploads. Must contain the following day.js customParseFormat tokens\n(https://day.js.org/docs/en/parse/string-format) in any order:\nYYYY (year), MM (month), DD (day), HH (hours 24h), mm (minutes) — all required.\nss (seconds) — optional. Must end with a JPEG file extension.\nOnly day.js token characters and the separators -_:.,()/ are permitted.","pattern":"^(?=.*(?<!Y)YYYY(?!Y))(?!.*(?<!Y)YYYY(?!Y).*(?<!Y)YYYY(?!Y))(?=.*(?<!M)MM(?!M))(?!.*(?<!M)MM(?!M).*(?<!M)MM(?!M))(?=.*(?<!D)DD(?!D))(?!.*(?<!D)DD(?!D).*(?<!D)DD(?!D))(?=.*(?<!H)HH(?!H))(?!.*(?<!H)HH(?!H).*(?<!H)HH(?!H))(?=.*(?<!m)mm(?!m))(?!.*(?<!m)mm(?!m).*(?<!m)mm(?!m))(?!.*(?<!s)ss(?!s).*(?<!s)ss(?!s))(?!.*\\.(jpg|jpeg|JPG|JPEG|Jpg|Jpeg).*\\.(jpg|jpeg|JPG|JPEG|Jpg|Jpeg))[YMDHms\\-_:.,()\\/]*\\.(jpg|jpeg|JPG|JPEG|Jpg|Jpeg)$"}},"required":["mask"],"type":"object","additionalProperties":false},"ViewLiveStreamSession":{"properties":{"cameraId":{"type":"string"},"systemType":{"$ref":"#/components/schemas/SupportedSystems"},"wpImei":{"type":"string"},"subscription":{"$ref":"#/components/schemas/TokenDetails"}},"required":["cameraId","systemType","wpImei","subscription"],"type":"object","additionalProperties":false},"LiveStreamCommandKey":{"type":"string","enum":["WAKEUP","STREAM_START","STREAM_STOP"]},"SendViewLiveStreamCommandRequest":{"properties":{"command":{"$ref":"#/components/schemas/LiveStreamCommandKey","description":"The live-stream command to dispatch to the camera assigned to the view."}},"required":["command"],"type":"object","additionalProperties":false},"UserTypes":{"enum":["PERSON","SYSTEM"],"type":"string"},"UserStatus":{"enum":["INVITED","ACTIVE"],"type":"string"},"Entitlements":{"enum":["runSystem","updateSystem","createOrganisation","readOrganisation","updateOrganisation","updateOrganisationMfa","deleteOrganisation","updateOrganisationFlags","joinOrganisation","leaveOrganisation","createClient","readClient","updateClient","deleteClient","createProject","readProject","updateProject","deleteProject","createView","readView","updateView","updateViewOrigins","deleteView","registerCamera","createCamera","readCamera","updateCamera","deleteCamera","readCameraStatus","streamCamera","createLog","createUser","readUser","updateUser","deleteUser","grantRole","revokeRole","createSequence","readSequence","updateSequence","deleteSequence","uploadSequence","deleteUploadSequence","createBatchDownload","readBatchDownload","updateBatchDownload","deleteBatchDownload","createBatchImageAnalysis","readBatchImageAnalysis","updateBatchImageAnalysis","cancelBatchImageAnalysis","deleteBatchImageAnalysis","deleteImage","createTransferSetting","readTransferSetting","updateTransferSetting","deleteTransferSetting","createSubscription","readSubscription","createPublicApiViewImage","CreateBrand","ReadBrand","UpdateBrand","DeleteBrand"],"type":"string"},"AssignedRole":{"properties":{"id":{"type":"string"},"relId":{"type":"string"},"relType":{"type":"string"},"organisation":{"type":"string"},"label":{"type":"string"},"shortName":{"type":"string"},"description":{"type":"string"},"entitlements":{"items":{"$ref":"#/components/schemas/Entitlements"},"type":"array"}},"required":["id","relId","relType","organisation","label","shortName","description","entitlements"],"type":"object","additionalProperties":false},"AssignedEntitlements":{"properties":{"type":{"$ref":"#/components/schemas/Resources"},"id":{"type":"string"},"entitlements":{"items":{"$ref":"#/components/schemas/Entitlements"},"type":"array"}},"required":["type","id","entitlements"],"type":"object","additionalProperties":false},"OrganisationSettings":{"properties":{"logoBase64":{"type":"string"},"primaryColour":{"type":"string"},"secondaryColour":{"type":"string"},"mfaRequired":{"type":"boolean"}},"type":"object","additionalProperties":false},"OrganisationStatus":{"enum":["REGISTERING","ACTIVE"],"type":"string"},"OrganisationFlags":{"properties":{"HARDWARE_API":{"type":"boolean"},"IMAGE_SERVICE":{"type":"boolean"},"AWS_LAMBDA_SERVICE":{"type":"boolean"},"IMAGE_ANALYSIS_API":{"type":"boolean"},"BATCH_IMAGE_ANALYSIS_SERVICE":{"type":"boolean"}},"required":["HARDWARE_API","IMAGE_SERVICE","AWS_LAMBDA_SERVICE","IMAGE_ANALYSIS_API"],"type":"object","additionalProperties":false},"BrandExpand":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","name","domain","object"],"type":"object","additionalProperties":false},"Organisation":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/OrganisationSettings"},"ownerEmail":{"type":"string"},"status":{"$ref":"#/components/schemas/OrganisationStatus"},"flags":{"$ref":"#/components/schemas/OrganisationFlags"},"meta":{"properties":{"zoho":{"properties":{"crm":{"properties":{"account_id":{"type":"string"}},"type":"object"},"desk":{"properties":{"account_id":{"type":"string"}},"required":["account_id"],"type":"object"},"customer_id":{"type":"string"}},"required":["desk","customer_id"],"type":"object"}},"additionalProperties":{},"required":["zoho"],"type":"object"},"brand":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/BrandExpand"}]},"object":{"$ref":"#/components/schemas/Resources"},"deletedAt":{"type":"string","format":"date-time"}},"required":["id","name","settings","ownerEmail","status","flags","brand","object"],"type":"object","additionalProperties":false},"UserMarketingPreferences":{"properties":{"enabled":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["enabled","updatedAt"],"type":"object","additionalProperties":false},"User":{"properties":{"id":{"type":"string"},"type":{"$ref":"#/components/schemas/UserTypes"},"object":{"$ref":"#/components/schemas/Resources"},"displayName":{"type":"string"},"forename":{"type":"string"},"surname":{"type":"string"},"status":{"$ref":"#/components/schemas/UserStatus"},"email":{"type":"string"},"firebaseUid":{"type":"string"},"cloudflareUid":{"type":"string"},"roles":{"items":{"$ref":"#/components/schemas/AssignedRole"},"type":"array"},"entitlements":{"items":{"$ref":"#/components/schemas/AssignedEntitlements"},"type":"array"},"apiKey":{"type":"string"},"camera":{"type":"string"},"organisations":{"items":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/Organisation"}]},"type":"array"},"timezone":{"type":"string"},"marketingPreferences":{"$ref":"#/components/schemas/UserMarketingPreferences"},"label":{"type":"string"},"meta":{"properties":{"zoho":{"properties":{"crm":{"properties":{"contact_id":{"type":"string"}},"type":"object"},"desk":{"properties":{"contact_id":{"type":"string"}},"required":["contact_id"],"type":"object"}},"type":"object"},"firebase":{"properties":{"lastLoginAt":{"type":"string"},"mfaEnabled":{"type":"boolean"}},"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"number","format":"double"}]},"required":["lastLoginAt","mfaEnabled"],"type":"object"}},"additionalProperties":{},"type":"object"}},"required":["id","type","object","status","roles"],"type":"object","additionalProperties":false},"ResourceList_User_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/User"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"UsersOrderBy":{"enum":["createdAt","updatedAt","name","forename","surname","email"],"type":"string"},"RolesFilter":{"enum":["user_manager","system_administrator","organisation_administrator","organisation_owner","video_editor","view_viewer"],"type":"string"},"GetUsersRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/UsersOrderBy","description":"Field to order the results by (defaults to displayName)"},"search":{"type":"string","description":"Search term for forename, surname, displayName, email"},"status":{"$ref":"#/components/schemas/UserStatus","description":"User status"},"role":{"items":{"$ref":"#/components/schemas/RolesFilter"},"type":"array","description":"Role the User might have"}},"type":"object","additionalProperties":false},"Resources.Organisation":{"enum":["organisation"],"type":"string"},"Email":{"type":"string","pattern":"^[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}$"},"RoleRef":{"properties":{"id":{"$ref":"#/components/schemas/MongoId"},"relId":{"$ref":"#/components/schemas/MongoId"},"organisation":{"$ref":"#/components/schemas/MongoId"}},"required":["id","relId"],"type":"object","additionalProperties":false},"InviteUserRequest":{"properties":{"email":{"$ref":"#/components/schemas/Email"},"displayName":{"type":"string"},"roles":{"items":{"$ref":"#/components/schemas/RoleRef"},"type":"array"}},"required":["email","displayName","roles"],"type":"object","additionalProperties":false},"UserMarketingPreferencesRequest":{"properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"type":"object","additionalProperties":false},"UpdateUserRequest":{"properties":{"forename":{"type":"string"},"surname":{"type":"string"},"displayName":{"type":"string"},"status":{"$ref":"#/components/schemas/UserStatus","description":"User status"},"timezone":{"type":"string","description":"User timezone"},"marketingPreferences":{"$ref":"#/components/schemas/UserMarketingPreferencesRequest","description":"User marketing communication preference"}},"type":"object","additionalProperties":false},"AssignUserRolesRequest":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/RoleRef"},"type":"array"}},"required":["roles"],"type":"object","additionalProperties":false},"RevokeUserRoleRequest":{"properties":{"role":{"$ref":"#/components/schemas/RoleRef"}},"required":["role"],"type":"object","additionalProperties":false},"PromoteAdministratorRequest":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object","additionalProperties":false},"ResourceList_TransferSetting_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/TransferSetting"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"CreateTransferSettingsRequest":{"properties":{"organisation":{"$ref":"#/components/schemas/MongoId"},"name":{"type":"string"},"options":{"properties":{"port":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FTPTypes"},"password":{"type":"string"},"username":{"type":"string"},"server":{"type":"string"}},"required":["port","type","password","username","server"],"type":"object"}},"required":["organisation","name","options"],"type":"object","additionalProperties":false},"UpdateTransferSettingsRequest":{"properties":{"name":{"type":"string"},"options":{"properties":{"port":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FTPTypes"},"password":{"type":"string"},"username":{"type":"string"},"server":{"type":"string"}},"required":["port","type","password","username","server"],"type":"object"}},"required":["name","options"],"type":"object","additionalProperties":false},"TaskType":{"enum":["TRANSFER_IMAGE","CREATE_AUTOMATED_SEQUENCE","CREATE_SCHEDULED_SEQUENCE","HANDLE_ORGANISATION_CREATED","HANDLE_ORGANISATION_REGISTERED","HANDLE_ORGANISATION_UPDATED","HANDLE_ORGANISATION_DELETED","HANDLE_USER_UPDATED","HANDLE_USER_CREATED","HANDLE_CAMERA_DELETED","HANDLE_CAMERA_UNREGISTERED","HANDLE_VIEW_DELETED","HANDLE_SEQUENCE_DELETED","HANDLE_CLIP_DELETED","HANDLE_IMAGE_COMPLETED","ANALYSE_IMAGE_BATCH_ITEM"],"type":"string"},"TaskPayload":{"properties":{"id":{"$ref":"#/components/schemas/MongoId"},"batchId":{"$ref":"#/components/schemas/MongoId"},"imageId":{"$ref":"#/components/schemas/MongoId"}},"type":"object","additionalProperties":false},"TaskRequest":{"properties":{"payload":{"$ref":"#/components/schemas/TaskPayload"},"taskType":{"$ref":"#/components/schemas/TaskType"}},"required":["payload","taskType"],"type":"object"},"System":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"version":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","object","version","createdAt","updatedAt"],"type":"object","additionalProperties":false},"CustomField":{"properties":{"index":{"type":"number","format":"double"},"label":{"type":"string"},"value":{"type":"string"},"data_type":{"type":"string"}},"required":["label","value"],"type":"object","additionalProperties":false},"Tag":{"properties":{"tag_id":{"type":"number","format":"double"},"tag_option_id":{"type":"number","format":"double"}},"required":["tag_id","tag_option_id"],"type":"object","additionalProperties":false},"SubscriptionPlan":{"properties":{"plan_code":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"number","format":"double"},"item_custom_fields":{"items":{"$ref":"#/components/schemas/CustomField"},"type":"array"},"price":{"type":"number","format":"double"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},"discount":{"type":"number","format":"double"},"total":{"type":"number","format":"double"},"setup_fee":{"type":"number","format":"double"},"plan_description":{"type":"string"},"tax_id":{"type":"string"},"trial_days":{"type":"number","format":"double"}},"required":["plan_code","name","quantity"],"type":"object","additionalProperties":{}},"SubscriptionAddon":{"properties":{"addon_code":{"type":"string"},"name":{"type":"string"},"addon_description":{"type":"string"},"quantity":{"type":"number","format":"double"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},"item_custom_fields":{"items":{"$ref":"#/components/schemas/CustomField"},"type":"array"},"price":{"type":"number","format":"double"},"discount":{"type":"number","format":"double","nullable":true},"total":{"type":"number","format":"double","nullable":true},"tax_id":{"type":"string","nullable":true}},"type":"object","additionalProperties":false},"Coupon":{"properties":{"coupon_code":{"type":"string"},"discount_amount":{"type":"number","format":"double"}},"type":"object","additionalProperties":false},"Card":{"properties":{"card_id":{"type":"string"},"last_four_digits":{"type":"number","format":"double"},"payment_gateway":{"type":"string"},"expiry_month":{"type":"number","format":"double"},"expiry_year":{"type":"number","format":"double"},"is_primary":{"type":"boolean"},"is_backup":{"type":"string"}},"type":"object","additionalProperties":false},"Address":{"properties":{"attention":{"type":"string"},"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"zip":{"type":"number","format":"double"},"fax":{"type":"number","format":"double"}},"required":["attention","street","city","state","country","zip","fax"],"type":"object","additionalProperties":false},"ZohoCustomer":{"properties":{"customer_id":{"type":"string"},"display_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"company_name":{"type":"string"},"billing_address":{"$ref":"#/components/schemas/Address"},"shipping_address":{"$ref":"#/components/schemas/Address"},"payment_terms":{"type":"number","format":"double"},"payment_terms_label":{"type":"string"},"is_portal_enabled":{"type":"boolean"}},"type":"object","additionalProperties":false},"Tax":{"properties":{"tax_id":{"type":"string"},"tax_name":{"type":"string"},"tax_amount":{"type":"string"}},"required":["tax_id","tax_name","tax_amount"],"type":"object","additionalProperties":false},"ContactPerson":{"properties":{"contactperson_id":{"type":"string"}},"required":["contactperson_id"],"type":"object","additionalProperties":false},"Note":{"properties":{"note_id":{"type":"string"},"description":{"type":"string"},"commented_by":{"type":"string"},"commented_time":{"type":"string"}},"required":["note_id","description","commented_by","commented_time"],"type":"object","additionalProperties":false},"PaymentGateway":{"properties":{"payment_gateway":{"type":"string","nullable":true}},"required":["payment_gateway"],"type":"object","additionalProperties":false},"ZohoSubscription":{"properties":{"subscription_id":{"type":"string"},"subscription_number":{"type":"string"},"unbilled_charge_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"amount":{"type":"number","format":"double"},"created_at":{"type":"string"},"activated_at":{"type":"string"},"current_term_starts_at":{"type":"string"},"current_term_ends_at":{"type":"string"},"last_billing_at":{"type":"string"},"next_billing_at":{"type":"string"},"expires_at":{"type":"string"},"interval":{"type":"number","format":"double"},"interval_unit":{"type":"string"},"auto_collect":{"type":"boolean"},"created_time":{"type":"string"},"updated_time":{"type":"string"},"reference_id":{"type":"string"},"salesperson_id":{"type":"string"},"salesperson_name":{"type":"string"},"child_invoice_id":{"type":"string"},"currency_code":{"type":"string"},"currency_symbol":{"type":"string"},"end_of_term":{"type":"boolean"},"product_id":{"type":"string"},"product_name":{"type":"string"},"plan":{"$ref":"#/components/schemas/SubscriptionPlan"},"addons":{"items":{"$ref":"#/components/schemas/SubscriptionAddon"},"type":"array"},"coupon":{"$ref":"#/components/schemas/Coupon"},"card":{"$ref":"#/components/schemas/Card"},"payment_terms":{"type":"number","format":"double"},"payment_terms_label":{"type":"string"},"can_add_bank_account":{"type":"boolean"},"customer":{"$ref":"#/components/schemas/ZohoCustomer"},"custom_fields":{"items":{"$ref":"#/components/schemas/CustomField"},"type":"array"},"taxes":{"items":{"$ref":"#/components/schemas/Tax"},"type":"array"},"contactpersons":{"items":{"$ref":"#/components/schemas/ContactPerson"},"type":"array"},"notes":{"items":{"$ref":"#/components/schemas/Note"},"type":"array"},"payment_gateways":{"items":{"$ref":"#/components/schemas/PaymentGateway"},"type":"array"}},"required":["subscription_id","subscription_number","status","amount","current_term_ends_at","interval","interval_unit","plan","customer"],"type":"object","additionalProperties":false},"Subscription":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"type":"string"},"externalReference":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"code":{"$ref":"#/components/schemas/SubscriptionCode"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"interval":{"type":"number","format":"double"},"intervalUnits":{"type":"string"},"amount":{"type":"number","format":"double"},"quantity":{"type":"number","format":"double"},"allocatedQuantity":{"type":"number","format":"double"},"endsAt":{"type":"string","format":"date-time"},"nextBillingAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"features":{"items":{"$ref":"#/components/schemas/Features"},"type":"array"},"meta":{"properties":{"zoho":{"$ref":"#/components/schemas/ZohoSubscription"}},"additionalProperties":{},"type":"object"}},"required":["id","object","organisation","externalReference","externalId","name","code","status","interval","intervalUnits","amount","quantity","allocatedQuantity","endsAt","nextBillingAt","createdAt","updatedAt","features"],"type":"object","additionalProperties":false},"ResourceList_Subscription_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Subscription"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"SubscriptionsOrderBy":{"enum":["name","externalReference","createdAt","updatedAt","endsAt","nextBillingAt"],"type":"string"},"GetSubscriptionsRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/SubscriptionsOrderBy","description":"Field to order the results by (defaults to createdAt)"},"code":{"$ref":"#/components/schemas/SubscriptionCode","description":"Code"},"search":{"type":"string","description":"Search term for External Reference"},"status":{"$ref":"#/components/schemas/SubscriptionStatus","description":"Status of the Sequence"}},"type":"object","additionalProperties":false},"Pick_Subscription.Exclude_keyofSubscription.meta__":{"properties":{"object":{"$ref":"#/components/schemas/Resources"},"id":{"type":"string"},"organisation":{"type":"string"},"externalReference":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"code":{"$ref":"#/components/schemas/SubscriptionCode"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"interval":{"type":"number","format":"double"},"intervalUnits":{"type":"string"},"amount":{"type":"number","format":"double"},"quantity":{"type":"number","format":"double"},"allocatedQuantity":{"type":"number","format":"double"},"endsAt":{"type":"string","format":"date-time"},"nextBillingAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"features":{"items":{"$ref":"#/components/schemas/Features"},"type":"array"}},"required":["object","id","organisation","externalReference","externalId","name","code","status","interval","intervalUnits","amount","quantity","allocatedQuantity","endsAt","nextBillingAt","createdAt","updatedAt","features"],"type":"object","description":"From T, pick a set of properties whose keys are in the union K"},"Omit_Subscription.meta_":{"$ref":"#/components/schemas/Pick_Subscription.Exclude_keyofSubscription.meta__","description":"Construct a type with the properties of T except for those in type K."},"CameraStatBattery":{"properties":{"batteryCurrent":{"type":"number","format":"double"},"batteryVolts":{"type":"number","format":"double"},"chargePercent":{"type":"number","format":"double"},"chargerSourcePower":{"type":"string"},"chargerVolts":{"type":"number","format":"double"},"isCharging":{"type":"boolean"}},"type":"object","additionalProperties":false},"CameraStatStorageVolume":{"properties":{"description":{"type":"string"},"freeGb":{"type":"number","format":"double"},"freePercent":{"type":"number","format":"double"},"label":{"type":"string"},"totalGb":{"type":"number","format":"double"},"usedGb":{"type":"number","format":"double"}},"type":"object","additionalProperties":false},"CameraStatStorageGroup":{"properties":{"ext":{"items":{"type":"string"},"type":"array"},"totalFiles":{"type":"number","format":"double"},"volumes":{"items":{"$ref":"#/components/schemas/CameraStatStorageVolume"},"type":"array"}},"type":"object","additionalProperties":false},"CameraStatStorage":{"properties":{"ext":{"items":{"type":"string"},"type":"array"},"totalFiles":{"type":"number","format":"double"},"camera":{"$ref":"#/components/schemas/CameraStatStorageGroup"},"local":{"$ref":"#/components/schemas/CameraStatStorageGroup"},"usb":{"$ref":"#/components/schemas/CameraStatStorageGroup"}},"type":"object","additionalProperties":false},"CreateCameraStatRequest":{"properties":{"stats":{"properties":{"version":{"type":"string"},"storage":{"$ref":"#/components/schemas/CameraStatStorage"},"isUsbStoreAvailable":{"type":"boolean"},"isLocalStoreAvailable":{"type":"boolean"},"isCameraStorageAvailable":{"type":"boolean"},"canCaptureWhileStreaming":{"type":"boolean"},"buildNumber":{"type":"string"},"buildDate":{"type":"string"},"battery":{"$ref":"#/components/schemas/CameraStatBattery"},"imagesOnLocal":{"type":"number","format":"double"},"imagesOnCamera":{"type":"number","format":"double"},"imagesTaken":{"type":"number","format":"double"},"upTime":{"type":"string"},"powerAmpTemp":{"type":"number","format":"double"},"cameraOn":{"type":"boolean"},"heaterOn":{"type":"boolean"},"piOn":{"type":"boolean"},"lt4015ChargerStatus":{"type":"number","format":"double"},"lt4015ChargerState":{"type":"number","format":"double"},"lt4015BatteryCoulomb":{"type":"number","format":"double"},"lt4015BatteryVoltage":{"type":"number","format":"double"},"lt4015BatteryCurrent":{"type":"number","format":"double"},"lt4015InputVoltage":{"type":"number","format":"double"},"lt4015InputCurrent":{"type":"number","format":"double"},"ina219ShuntVoltage":{"type":"number","format":"double"},"ina219BusVoltage":{"type":"number","format":"double"},"gnssLatitude":{"type":"number","format":"double"},"gnssLongitude":{"type":"number","format":"double"}},"type":"object"},"timestamp":{"type":"string","format":"date-time"}},"required":["stats"],"type":"object","additionalProperties":false},"SequenceStatus":{"enum":["INITIATED","PROCESSING","PROCESSED","UPLOADING","COMPLETE","FAILED"],"type":"string"},"ViewExpand":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"client":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ClientExpand"}]},"project":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ProjectExpand"}]},"camera":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/CameraExpand"}]},"timezone":{"type":"string"},"meta":{"$ref":"#/components/schemas/ViewMeta"}},"required":["id","name","object"],"type":"object","additionalProperties":false},"FfmpegBlendFilter":{"enum":["normal","average"],"type":"string"},"FfmpegVidStabDetectOptions":{"properties":{"shakiness":{"type":"number","format":"double"},"accuracy":{"type":"number","format":"double"}},"required":["shakiness","accuracy"],"type":"object","additionalProperties":false},"FfmpegVidStabTransformOptions":{"properties":{"smoothing":{"type":"number","format":"double"},"zoom":{"type":"number","format":"double"},"optzoom":{"type":"boolean"},"interpol":{"type":"string","enum":["bicubic","linear","bilinear"]}},"required":["smoothing","zoom","optzoom","interpol"],"type":"object","additionalProperties":false},"SequenceCropOptions":{"properties":{"y":{"type":"number","format":"double"},"x":{"type":"number","format":"double"},"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"}},"required":["y","x","width","height"],"type":"object"},"FfmpegVidStabilisationOptions":{"properties":{"version":{"type":"string","enum":["v1","v2"]},"detect":{"$ref":"#/components/schemas/FfmpegVidStabDetectOptions"},"transform":{"$ref":"#/components/schemas/FfmpegVidStabTransformOptions"},"anchors":{"items":{"$ref":"#/components/schemas/SequenceCropOptions"},"type":"array"}},"type":"object","additionalProperties":false},"FfmpegFilters":{"properties":{"bitrate":{"type":"number","format":"double"},"sharpen":{"type":"boolean"},"deflicker":{"type":"boolean"},"stabilise":{"type":"boolean"},"blend":{"anyOf":[{"$ref":"#/components/schemas/FfmpegBlendFilter"},{"type":"string"}]},"height":{"type":"number","format":"double"},"width":{"type":"number","format":"double"},"overlayText":{"type":"string"},"stabilisation":{"$ref":"#/components/schemas/FfmpegVidStabilisationOptions"},"crop":{"$ref":"#/components/schemas/SequenceCropOptions"}},"required":["bitrate","sharpen","deflicker","stabilise","blend","height","width"],"type":"object","additionalProperties":false},"FfmpegOutputOptions":{"properties":{"framerate":{"type":"number","format":"double"}},"required":["framerate"],"type":"object","additionalProperties":false},"SequenceDateOptions":{"properties":{"endDate":{"type":"string"},"startDate":{"type":"string"}},"type":"object"},"SequenceTimeOptions":{"properties":{"endTime":{"type":"string"},"startTime":{"type":"string"}},"type":"object"},"SequenceDateTimeOptions":{"allOf":[{"$ref":"#/components/schemas/SequenceDateOptions"},{"$ref":"#/components/schemas/SequenceTimeOptions"}]},"SequenceOptions":{"allOf":[{"$ref":"#/components/schemas/FfmpegFilters"},{"$ref":"#/components/schemas/FfmpegOutputOptions"},{"$ref":"#/components/schemas/SequenceDateTimeOptions"}]},"ImageFilterOptions":{"properties":{"luminanceMin":{"type":"number","format":"double"},"luminanceMax":{"type":"number","format":"double"},"sharpnessMin":{"type":"number","format":"double"},"sharpnessMax":{"type":"number","format":"double"},"startDate":{"anyOf":[{"type":"string"},{"type":"string","format":"date-time"}]},"endDate":{"anyOf":[{"type":"string"},{"type":"string","format":"date-time"}]},"startTime":{"type":"string"},"endTime":{"type":"string"},"status":{"$ref":"#/components/schemas/ImageStatus"}},"type":"object","additionalProperties":false},"UserExpand":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","name","object"],"type":"object","additionalProperties":false},"Resources.SequenceAutomation":{"enum":["sequence_automation"],"type":"string"},"Resources.SequenceSchedule":{"enum":["sequence_schedule"],"type":"string"},"Resources.User":{"enum":["user"],"type":"string"},"SequenceOrigin":{"properties":{"resource":{"anyOf":[{"$ref":"#/components/schemas/Resources.SequenceAutomation"},{"$ref":"#/components/schemas/Resources.SequenceSchedule"},{"$ref":"#/components/schemas/Resources.User"}]},"id":{"type":"string"}},"required":["resource","id"],"type":"object","additionalProperties":false},"Pick_Sequence.Exclude_keyofSequence.imageUrls-or-uploadURL-or-clipUrls-or-clips__":{"properties":{"object":{"$ref":"#/components/schemas/Resources"},"id":{"type":"string"},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"name":{"type":"string"},"status":{"$ref":"#/components/schemas/SequenceStatus"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"downloadURL":{"type":"string"},"view":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ViewExpand"}]},"fileName":{"type":"string"},"options":{"$ref":"#/components/schemas/SequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageFilterOptions"},"streamUid":{"type":"string","description":"A Cloudflare-generated unique identifier for a media item."},"iframeUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"duration":{"type":"number","format":"double","description":"The duration of the video in seconds. A value of -1 means the duration is unknown. The duration becomes available after the upload and before the video is ready."},"createdBy":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/UserExpand"}]},"deletedAt":{"type":"string","format":"date-time"},"origin":{"$ref":"#/components/schemas/SequenceOrigin"}},"required":["object","id","organisation","name","status","createdAt","updatedAt","view","fileName"],"type":"object","description":"From T, pick a set of properties whose keys are in the union K"},"Omit_Sequence.imageUrls-or-uploadURL-or-clipUrls-or-clips_":{"$ref":"#/components/schemas/Pick_Sequence.Exclude_keyofSequence.imageUrls-or-uploadURL-or-clipUrls-or-clips__","description":"Construct a type with the properties of T except for those in type K."},"ResourceList_Omit_Sequence.imageUrls-or-uploadURL-or-clipUrls-or-clips__":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Omit_Sequence.imageUrls-or-uploadURL-or-clipUrls-or-clips_"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"SequencesOrderBy":{"enum":["createdAt","name"],"type":"string"},"SequencesQueryExpandable":{"enum":["organisation","view","view.client","view.project","view.camera"],"type":"string"},"GetSequencesRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/SequencesOrderBy","description":"Field to order the results by (defaults to createdAt)"},"view":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"search":{"type":"string","description":"Search term for Sequence Name"},"status":{"$ref":"#/components/schemas/SequenceStatus","description":"Status of the Sequence"},"expand":{"items":{"$ref":"#/components/schemas/SequencesQueryExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"PreviewSequenceRequest":{"properties":{"view":{"$ref":"#/components/schemas/MongoId"},"duration":{"type":"number","format":"double"},"filters":{"$ref":"#/components/schemas/ImageFilterOptions"}},"required":["view"],"type":"object","additionalProperties":false},"Sequence":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"status":{"$ref":"#/components/schemas/SequenceStatus"},"uploadURL":{"type":"string"},"downloadURL":{"type":"string"},"view":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ViewExpand"}]},"imageUrls":{"items":{"type":"string"},"type":"array"},"clips":{"items":{"type":"string"},"type":"array"},"clipUrls":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"fileName":{"type":"string"},"options":{"$ref":"#/components/schemas/SequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageFilterOptions"},"streamUid":{"type":"string","description":"A Cloudflare-generated unique identifier for a media item."},"iframeUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"duration":{"type":"number","format":"double","description":"The duration of the video in seconds. A value of -1 means the duration is unknown. The duration becomes available after the upload and before the video is ready."},"createdBy":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/UserExpand"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"type":"string","format":"date-time"},"origin":{"$ref":"#/components/schemas/SequenceOrigin"}},"required":["id","object","organisation","status","uploadURL","view","name","fileName","createdAt","updatedAt"],"type":"object","additionalProperties":false},"CreateSequenceRequest":{"properties":{"view":{"$ref":"#/components/schemas/MongoId"},"name":{"type":"string"},"duration":{"type":"number","format":"double"},"options":{"$ref":"#/components/schemas/SequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageFilterOptions"}},"required":["view","name","duration","options","filters"],"type":"object","additionalProperties":false},"LogLevel":{"enum":["INFO","WARN","ERROR","DEBUG"],"type":"string"},"LogChange":{"properties":{"field":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"}},"required":["field","before","after"],"type":"object","additionalProperties":false},"LogJsonPayload":{"anyOf":[{"properties":{},"additionalProperties":{},"type":"object"},{"properties":{"changeSet":{"items":{"$ref":"#/components/schemas/LogChange"},"type":"array"}},"required":["changeSet"],"type":"object"}]},"Log":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"ref":{"properties":{"id":{"type":"string"},"type":{"$ref":"#/components/schemas/Resources"}},"required":["id","type"],"type":"object"},"level":{"$ref":"#/components/schemas/LogLevel"},"label":{"type":"string"},"message":{"type":"string"},"json":{"$ref":"#/components/schemas/LogJsonPayload"},"user":{"$ref":"#/components/schemas/User"},"timestamp":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","object","ref","level","label","message","json","user","timestamp","createdAt"],"type":"object","additionalProperties":false},"CreateLogRequest":{"properties":{"level":{"$ref":"#/components/schemas/LogLevel"},"label":{"type":"string"},"message":{"type":"string"},"json":{"$ref":"#/components/schemas/LogJsonPayload"},"timestamp":{"type":"string","format":"date-time"}},"required":["level","label","timestamp"],"type":"object","additionalProperties":false},"UploadSequenceRequest":{"properties":{"organisation":{"$ref":"#/components/schemas/MongoId"},"view":{"$ref":"#/components/schemas/MongoId"},"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"}},"required":["organisation","view","name","filename","contentType"],"type":"object","additionalProperties":false},"GetSequenceQueryParams":{"properties":{"expand":{"items":{"$ref":"#/components/schemas/SequencesQueryExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"SequenceDownload":{"properties":{"url":{"type":"string"}},"required":["url"],"type":"object","additionalProperties":false},"UpdateSequenceRequest":{"properties":{"status":{"$ref":"#/components/schemas/SequenceStatus"},"sequenceUrl":{"type":"string"},"streamUid":{"type":"string"},"duration":{"type":"number","format":"double"}},"type":"object","additionalProperties":false},"ClipStatus":{"enum":["INITIATED","PROCESSING","COMPLETE","FAILED"],"type":"string"},"Clip":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"type":"string"},"sequence":{"type":"string"},"index":{"type":"number","format":"double"},"status":{"$ref":"#/components/schemas/ClipStatus"},"uploadURL":{"type":"string"},"clipUrl":{"type":"string"},"imageUrls":{"items":{"type":"string"},"type":"array"},"options":{"$ref":"#/components/schemas/SequenceOptions"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"type":"string","format":"date-time"}},"required":["id","object","organisation","sequence","index","status","uploadURL","imageUrls","options","createdAt","updatedAt"],"type":"object","additionalProperties":false},"ResourceMissing":{"properties":{"code":{"type":"string","enum":["resource_missing"],"nullable":false},"resource_path":{"type":"string"},"message":{"type":"string"}},"required":["code","resource_path","message"],"type":"object","additionalProperties":false},"ErrorResponse_ResourceMissing_":{"properties":{"error":{"$ref":"#/components/schemas/ResourceMissing"}},"required":["error"],"type":"object","additionalProperties":false},"UpdateClipRequest":{"properties":{"status":{"$ref":"#/components/schemas/ClipStatus"},"clipUrl":{"type":"string"}},"type":"object","additionalProperties":false},"ScheduledSequenceOptions":{"allOf":[{"$ref":"#/components/schemas/FfmpegFilters"},{"$ref":"#/components/schemas/SequenceTimeOptions"}]},"ImageQualityFilters":{"properties":{"luminanceMin":{"type":"number","format":"double"},"luminanceMax":{"type":"number","format":"double"},"sharpnessMin":{"type":"number","format":"double"},"sharpnessMax":{"type":"number","format":"double"}},"type":"object","additionalProperties":false},"SequenceSchedule":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"type":"string"},"view":{"type":"string"},"interval":{"type":"number","format":"double"},"period":{"type":"string"},"periodOption":{"type":"string"},"maxDuration":{"type":"number","format":"double"},"emailNotificationList":{"items":{"type":"string"},"type":"array"},"options":{"$ref":"#/components/schemas/ScheduledSequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageQualityFilters"},"lastRunAt":{"type":"string","format":"date-time"}},"required":["id","name","object","organisation","view","interval","period","periodOption","maxDuration","options"],"type":"object","additionalProperties":false},"ResourceList_SequenceSchedule_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/SequenceSchedule"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"GetSequenceSchedulesRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"view":{"$ref":"#/components/schemas/MongoId"}},"type":"object","additionalProperties":false},"BaseCreateScheduleRequest":{"properties":{"view":{"$ref":"#/components/schemas/MongoId"},"organisation":{"$ref":"#/components/schemas/MongoId"},"name":{"type":"string"},"interval":{"type":"number","format":"double"},"maxDuration":{"type":"number","format":"double"},"emailNotificationList":{"items":{"type":"string"},"type":"array"},"options":{"$ref":"#/components/schemas/ScheduledSequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageQualityFilters"}},"required":["view","organisation","name","interval","maxDuration","options"],"type":"object","additionalProperties":false},"DayOfWeekNumber":{"enum":[0,1,2,3,4,5,6],"type":"number"},"DayOfMonth":{"type":"number","enum":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},"CreateSequenceScheduleRequest":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/BaseCreateScheduleRequest"},{"properties":{"periodOption":{},"period":{"type":"string","enum":["day"],"nullable":false}},"required":["period"],"type":"object"}]},{"allOf":[{"$ref":"#/components/schemas/BaseCreateScheduleRequest"},{"properties":{"periodOption":{"$ref":"#/components/schemas/DayOfWeekNumber"},"period":{"type":"string","enum":["week"],"nullable":false}},"required":["periodOption","period"],"type":"object"}]},{"allOf":[{"$ref":"#/components/schemas/BaseCreateScheduleRequest"},{"properties":{"periodOption":{"$ref":"#/components/schemas/DayOfMonth"},"period":{"type":"string","enum":["month"],"nullable":false}},"required":["periodOption","period"],"type":"object"}]}]},"BaseUpdateScheduleRequest":{"properties":{"view":{"$ref":"#/components/schemas/MongoId"},"organisation":{"$ref":"#/components/schemas/MongoId"},"name":{"type":"string"},"interval":{"type":"number","format":"double"},"maxDuration":{"type":"number","format":"double"},"emailNotificationList":{"items":{"type":"string"},"type":"array"},"options":{"$ref":"#/components/schemas/ScheduledSequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageQualityFilters"}},"type":"object","additionalProperties":false},"UpdateSequenceScheduleRequest":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/BaseUpdateScheduleRequest"},{"properties":{"periodOption":{},"period":{"type":"string","enum":["day"],"nullable":false}},"type":"object"}]},{"allOf":[{"$ref":"#/components/schemas/BaseUpdateScheduleRequest"},{"properties":{"periodOption":{"$ref":"#/components/schemas/DayOfWeekNumber"},"period":{"type":"string","enum":["week"],"nullable":false}},"type":"object"}]},{"allOf":[{"$ref":"#/components/schemas/BaseUpdateScheduleRequest"},{"properties":{"periodOption":{"$ref":"#/components/schemas/DayOfMonth"},"period":{"type":"string","enum":["month"],"nullable":false}},"type":"object"}]}]},"SequenceAutomationFrequency":{"enum":["DAILY","WEEKLY","MONTHLY"],"type":"string"},"AutomationSequenceOptions":{"allOf":[{"$ref":"#/components/schemas/FfmpegFilters"},{"$ref":"#/components/schemas/SequenceTimeOptions"}]},"SequenceAutomation":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"type":"string"},"view":{"type":"string"},"type":{"$ref":"#/components/schemas/SequenceAutomationFrequency"},"emailNotificationList":{"items":{"type":"string"},"type":"array"},"options":{"$ref":"#/components/schemas/AutomationSequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageQualityFilters"}},"required":["id","object","organisation","view","type","options"],"type":"object","additionalProperties":false},"ResourceList_SequenceAutomation_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/SequenceAutomation"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"GetSequenceAutomationsRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"view":{"$ref":"#/components/schemas/MongoId"},"type":{"$ref":"#/components/schemas/SequenceAutomationFrequency"}},"type":"object","additionalProperties":false},"UpsertSequenceAutomationRequest":{"properties":{"view":{"$ref":"#/components/schemas/MongoId"},"organisation":{"$ref":"#/components/schemas/MongoId"},"type":{"$ref":"#/components/schemas/SequenceAutomationFrequency"},"emailNotificationList":{"items":{"type":"string"},"type":"array"},"options":{"$ref":"#/components/schemas/AutomationSequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageQualityFilters"}},"required":["view","organisation","type","options"],"type":"object","additionalProperties":false},"UpdateSequenceAutomationRequest":{"properties":{"view":{"$ref":"#/components/schemas/MongoId"},"organisation":{"$ref":"#/components/schemas/MongoId"},"type":{"$ref":"#/components/schemas/SequenceAutomationFrequency"},"emailNotificationList":{"items":{"type":"string"},"type":"array"},"options":{"$ref":"#/components/schemas/AutomationSequenceOptions"},"filters":{"$ref":"#/components/schemas/ImageQualityFilters"}},"type":"object","additionalProperties":false},"Role":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"label":{"type":"string"},"shortName":{"type":"string"},"description":{"type":"string"},"relType":{"$ref":"#/components/schemas/Resources"},"entitlements":{"items":{"$ref":"#/components/schemas/Entitlements"},"type":"array"},"userAssignable":{"type":"boolean"},"userAssignableByRoles":{"items":{"type":"string"},"type":"array"}},"required":["id","object","label","shortName","description","relType","entitlements","userAssignable"],"type":"object","additionalProperties":false},"ResourceList_Role_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Role"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"PublicCreateImageRequest":{"properties":{"originalFileName":{"type":"string"},"capturedAt":{"type":"string"}},"required":["originalFileName","capturedAt"],"type":"object","additionalProperties":false},"Project":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"type":"string"},"client":{"type":"string"}},"required":["id","name","object"],"type":"object","additionalProperties":false},"ResourceList_Project_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"ProjectsOrderBy":{"enum":["createdAt","name"],"type":"string"},"ProjectExpandable":{"enum":["organisation","client"],"type":"string"},"GetProjectsRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/ProjectsOrderBy","description":"Field to order the results by (defaults to createdAt)"},"client":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"search":{"type":"string","description":"Search term for Sequence Name"},"expand":{"items":{"$ref":"#/components/schemas/ProjectExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"GetProjectRequest":{"properties":{"expand":{"items":{"$ref":"#/components/schemas/ProjectExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"CreateProjectRequest":{"properties":{"name":{"type":"string"},"organisation":{"$ref":"#/components/schemas/MongoId"},"client":{"$ref":"#/components/schemas/MongoId"}},"required":["name","organisation","client"],"type":"object","additionalProperties":false},"UpdateProjectRequest":{"properties":{"name":{"type":"string"}},"required":["name"],"type":"object","additionalProperties":false},"Plan":{"properties":{"plan_id":{"type":"string"},"plan_code":{"$ref":"#/components/schemas/SubscriptionCode"},"name":{"type":"string"},"description":{"type":"string"},"store_description":{"type":"string"},"store_markup_description":{"type":"string"},"interval":{"type":"number","format":"double"},"interval_unit":{"type":"string","enum":["months","years"]},"recurring_price":{"type":"number","format":"double"},"trial_days":{"type":"number","format":"double"}},"required":["plan_id","plan_code","name","description","store_description","store_markup_description","interval","interval_unit","recurring_price","trial_days"],"type":"object","additionalProperties":false},"ServiceUnavailable":{"properties":{"code":{"type":"string","enum":["service_unavailable"],"nullable":false},"resource_path":{"type":"string"},"message":{"type":"string"}},"required":["code","resource_path","message"],"type":"object","additionalProperties":false},"ErrorResponse_ServiceUnavailable_":{"properties":{"error":{"$ref":"#/components/schemas/ServiceUnavailable"}},"required":["error"],"type":"object","additionalProperties":false},"Url":{"type":"string","pattern":"^(https?:\\/\\/)?(localhost|(([a-z0-9]([a-z0-9-]*[a-z0-9])?\\.)+[a-z]{2,})|(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}))(:\\d+)?(\\/[-a-z0-9%_.~+]*)*(\\?[;&a-z0-9%_.~+=-]*)?(\\#[-a-z0-9_]*)?$"},"CreatePurchaseUrlRequest":{"properties":{"organisation":{"$ref":"#/components/schemas/MongoId"},"planCode":{"$ref":"#/components/schemas/SubscriptionCode"},"quantity":{"type":"integer","format":"int32","minimum":1},"redirectUrl":{"$ref":"#/components/schemas/Url"},"excludeTrial":{"type":"boolean"}},"required":["organisation","planCode","quantity","redirectUrl","excludeTrial"],"type":"object","additionalProperties":false},"ResourceList_Organisation_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Organisation"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"OrganisationsOrderBy":{"enum":["createdAt","updatedAt","name"],"type":"string"},"ListOrganisationsQueryExpandable":{"enum":["brand"],"type":"string"},"GetOrganisationsRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"brand":{"$ref":"#/components/schemas/MongoId","description":"Filter by brand"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/OrganisationsOrderBy","description":"Field to order the results by (defaults to name)"},"search":{"type":"string","description":"Search term for Organisation Name"},"expand":{"items":{"$ref":"#/components/schemas/ListOrganisationsQueryExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"CreateOrganisationRequest":{"properties":{"name":{"type":"string"},"brand":{"$ref":"#/components/schemas/MongoId","description":"Brand ID"}},"required":["name","brand"],"type":"object","additionalProperties":false},"UpdateOrganisationRequest":{"properties":{"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/OrganisationSettings"}},"type":"object","additionalProperties":false},"UpdateOrganisationMfaRequest":{"properties":{"mfaRequired":{"type":"boolean"}},"required":["mfaRequired"],"type":"object","additionalProperties":false},"RegisterOrganisationRequest":{"properties":{"name":{"type":"string"},"forename":{"type":"string"},"surname":{"type":"string"},"email":{"$ref":"#/components/schemas/Email"},"password":{"type":"string"},"timezone":{"type":"string"},"marketingPreferences":{"$ref":"#/components/schemas/UserMarketingPreferencesRequest"}},"required":["name","forename","surname","email","password"],"type":"object","additionalProperties":false},"UpdateOrganisationBrandRequest":{"properties":{"brand":{"$ref":"#/components/schemas/MongoId"}},"required":["brand"],"type":"object","additionalProperties":false},"NotificationType":{"enum":["CAMERA_BATTERY_CHARGE_PERCENT_LESS_THAN","CAMERA_USB_UNPLUGGED","FTP_TRANSFER_FAILURE","VIEW_NO_IMAGE_BY_TIME"],"type":"string"},"NotificationChannelType":{"enum":["EMAIL","WEBHOOK"],"type":"string"},"NotificationFrequency":{"enum":["ALL","ONCE_PER_DAY"],"type":"string"},"Resources.Notification":{"enum":["notification"],"type":"string"},"Notification":{"properties":{"active":{"type":"boolean"},"type":{"$ref":"#/components/schemas/NotificationType"},"resource":{"$ref":"#/components/schemas/Resources"},"resourceId":{"type":"string"},"channel":{"properties":{"value":{"type":"string"},"type":{"$ref":"#/components/schemas/NotificationChannelType"}},"required":["value","type"],"type":"object"},"criteria":{"properties":{},"additionalProperties":{},"type":"object"},"frequency":{"$ref":"#/components/schemas/NotificationFrequency"},"object":{"$ref":"#/components/schemas/Resources.Notification"},"lastTriggeredAt":{"type":"string","format":"date-time"}},"required":["active","type","resource","resourceId","channel","frequency","object","lastTriggeredAt"],"type":"object","additionalProperties":false},"ResourceList_Notification_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Notification"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"Resources.View":{"enum":["view"],"type":"string"},"Resources.TransferSettings":{"enum":["transfer_settings"],"type":"string"},"Resources.Camera":{"enum":["camera"],"type":"string"},"NotifiableResources":{"anyOf":[{"$ref":"#/components/schemas/Resources.View"},{"$ref":"#/components/schemas/Resources.TransferSettings"},{"$ref":"#/components/schemas/Resources.Camera"}]},"NotificationType.VIEW_NO_IMAGE_BY_TIME":{"enum":["VIEW_NO_IMAGE_BY_TIME"],"type":"string"},"NotificationChannel":{"properties":{"value":{"type":"string"},"type":{"$ref":"#/components/schemas/NotificationChannelType"}},"required":["value","type"],"type":"object"},"ViewCriteria":{"properties":{"days":{"properties":{"sun":{"type":"boolean"},"sat":{"type":"boolean"},"fri":{"type":"boolean"},"thu":{"type":"boolean"},"wed":{"type":"boolean"},"tue":{"type":"boolean"},"mon":{"type":"boolean"}},"required":["sun","sat","fri","thu","wed","tue","mon"],"type":"object"},"hour":{"type":"number","format":"double"}},"required":["days","hour"],"type":"object"},"ViewNotificationRequest":{"properties":{"type":{"$ref":"#/components/schemas/NotificationType.VIEW_NO_IMAGE_BY_TIME"},"resourceId":{"$ref":"#/components/schemas/MongoId"},"channel":{"$ref":"#/components/schemas/NotificationChannel"},"frequency":{"$ref":"#/components/schemas/NotificationFrequency"},"active":{"type":"boolean"},"criteria":{"$ref":"#/components/schemas/ViewCriteria"},"resource":{"$ref":"#/components/schemas/Resources.View"}},"required":["type","resourceId","channel","frequency","active","resource"],"type":"object","additionalProperties":false},"NotificationType.CAMERA_BATTERY_CHARGE_PERCENT_LESS_THAN":{"enum":["CAMERA_BATTERY_CHARGE_PERCENT_LESS_THAN"],"type":"string"},"NotificationType.CAMERA_USB_UNPLUGGED":{"enum":["CAMERA_USB_UNPLUGGED"],"type":"string"},"CameraCriteria":{"properties":{"batteryPercentageLessThanEqualTo":{"type":"number","format":"double"}},"type":"object"},"CameraNotificationRequest":{"properties":{"type":{"anyOf":[{"$ref":"#/components/schemas/NotificationType.CAMERA_BATTERY_CHARGE_PERCENT_LESS_THAN"},{"$ref":"#/components/schemas/NotificationType.CAMERA_USB_UNPLUGGED"}]},"resourceId":{"$ref":"#/components/schemas/MongoId"},"channel":{"$ref":"#/components/schemas/NotificationChannel"},"frequency":{"$ref":"#/components/schemas/NotificationFrequency"},"active":{"type":"boolean"},"criteria":{"$ref":"#/components/schemas/CameraCriteria"},"resource":{"$ref":"#/components/schemas/Resources.Camera"}},"required":["type","resourceId","channel","frequency","active","resource"],"type":"object","additionalProperties":false},"NotificationType.FTP_TRANSFER_FAILURE":{"enum":["FTP_TRANSFER_FAILURE"],"type":"string"},"TransferSettingNotificationRequest":{"properties":{"type":{"$ref":"#/components/schemas/NotificationType.FTP_TRANSFER_FAILURE"},"resourceId":{"$ref":"#/components/schemas/MongoId"},"channel":{"$ref":"#/components/schemas/NotificationChannel"},"frequency":{"$ref":"#/components/schemas/NotificationFrequency"},"active":{"type":"boolean"},"criteria":{},"resource":{"$ref":"#/components/schemas/Resources.TransferSettings"}},"required":["type","resourceId","channel","frequency","active","resource"],"type":"object","additionalProperties":false},"NotificationRequest":{"anyOf":[{"$ref":"#/components/schemas/ViewNotificationRequest"},{"$ref":"#/components/schemas/CameraNotificationRequest"},{"$ref":"#/components/schemas/TransferSettingNotificationRequest"}]},"Unauthorised":{"properties":{"code":{"type":"string","enum":["unauthorised_request"],"nullable":false},"resource_path":{"type":"string"},"message":{"type":"string"}},"required":["code","resource_path","message"],"type":"object","additionalProperties":false},"ErrorResponse_Unauthorised_":{"properties":{"error":{"$ref":"#/components/schemas/Unauthorised"}},"required":["error"],"type":"object","additionalProperties":false},"ResourceList_Log_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Log"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"LogsOrderBy":{"enum":["_id","timestamp","createdAt","level"],"type":"string"},"GetLogsRequest":{"properties":{"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/LogsOrderBy","description":"Field to order the results by (defaults to createdAt)"},"resource":{"$ref":"#/components/schemas/Resources","description":"The related resource"},"resourceId":{"$ref":"#/components/schemas/MongoId","description":"The related resources Id, Must be a valid Mongo ObjectId"},"level":{"items":{"$ref":"#/components/schemas/LogLevel"},"type":"array","description":"The Log Level","default":["INFO","ERROR","WARN"]},"startDate":{"type":"string","format":"date-time","description":"The Start date (createdAt)"},"endDate":{"type":"string","format":"date-time","description":"The End date (createdAt)"}},"required":["resource","resourceId"],"type":"object","additionalProperties":false},"ImagesOrderBy":{"enum":["createdAt","capturedAt"],"type":"string"},"GetImagesRequest":{"properties":{"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/ImagesOrderBy","description":"Field to order the results by (defaults to CAPTURED_AT)"},"view":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"startDate":{"type":"string","format":"date-time","description":"Start Date Range (capturedAt)"},"endDate":{"type":"string","format":"date-time","description":"End Date Range (capturedAt)"},"startTime":{"type":"string","description":"Filter by captured time of day in UTC (HH:MM, 24-hour format).\nImages captured before this time of day will be excluded.","example":"08:00"},"endTime":{"type":"string","description":"Filter by captured time of day in UTC (HH:MM, 24-hour format).\nImages captured after this time of day will be excluded.\nSupports overnight ranges where endTime < startTime (e.g., 22:00 to 04:00).","example":"18:00"},"status":{"$ref":"#/components/schemas/ImageStatus","description":"Image status"},"luminanceMin":{"type":"number","format":"double","description":"Filter by minimum median luminance (0–255). Images with a medianLuminance below this\nvalue will be excluded. Uses the value stored under meta.analysis.luminance.medianLuminance.","minimum":0,"maximum":255},"luminanceMax":{"type":"number","format":"double","description":"Filter by maximum median luminance (0–255). Images with a medianLuminance above this\nvalue will be excluded. Uses the value stored under meta.analysis.luminance.medianLuminance.","minimum":0,"maximum":255},"sharpnessMin":{"type":"number","format":"double","description":"Filter by sharpness (0–2000). Images with a sharpness below this value\nwill be excluded. Uses the value stored under meta.visibility.sharpness.","minimum":0,"maximum":2000},"sharpnessMax":{"type":"number","format":"double","description":"Filter by sharpness (0–2000). Images with a sharpness above this value\nwill be excluded. Uses the value stored under meta.visibility.sharpness.","minimum":0,"maximum":2000}},"required":["view"],"type":"object","additionalProperties":false},"BatchImageAnalysisStatus":{"enum":["INITIATED","IN_PROGRESS","COMPLETE","COMPLETE_WITH_ERRORS","CANCELLED","FAILED"],"type":"string"},"AnalysisType":{"description":"The set of analysis steps the pipeline can run.\nConsumers must specify at least one in their request.","enum":["luminance","visibility","rain","vehicle","ppe","face"],"type":"string"},"BatchImageAnalysis":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"view":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ViewExpand"}]},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"createdBy":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/UserExpand"}]},"status":{"$ref":"#/components/schemas/BatchImageAnalysisStatus"},"totalImages":{"type":"number","format":"double"},"processedImages":{"type":"number","format":"double"},"failedImages":{"type":"number","format":"double"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"analyses":{"items":{"$ref":"#/components/schemas/AnalysisType"},"type":"array"},"startedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","object","view","organisation","createdBy","status","totalImages","processedImages","failedImages","analyses","createdAt","updatedAt"],"type":"object","additionalProperties":false},"ResourceConflict":{"properties":{"code":{"type":"string","enum":["resource_conflict"],"nullable":false},"resource_path":{"type":"string"},"message":{"type":"string"}},"required":["code","resource_path","message"],"type":"object","additionalProperties":false},"ErrorResponse_ResourceConflict_":{"properties":{"error":{"$ref":"#/components/schemas/ResourceConflict"}},"required":["error"],"type":"object","additionalProperties":false},"CreateBatchImageAnalysisRequest":{"properties":{"view":{"$ref":"#/components/schemas/MongoId","description":"View ID to run batch image analysis against (must be a valid Mongo ObjectId)"},"startDate":{"type":"string","format":"date-time","description":"Optional start date for historical image range"},"endDate":{"type":"string","format":"date-time","description":"Optional end date for historical image range"},"analyses":{"items":{"$ref":"#/components/schemas/AnalysisType"},"type":"array","description":"Analysis types to execute across images in the batch"}},"required":["view","analyses"],"type":"object","additionalProperties":false},"ResourceList_BatchImageAnalysis_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/BatchImageAnalysis"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"BatchImageAnalysesOrderBy":{"enum":["createdAt","startedAt","status"],"type":"string"},"BatchImageAnalysesQueryExpandable":{"enum":["organisation","view","createdBy"],"type":"string"},"GetBatchImageAnalysesRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/BatchImageAnalysesOrderBy","description":"Field to order the results by (defaults to createdAt)"},"view":{"$ref":"#/components/schemas/MongoId","description":"Filter by View ID (must be a valid Mongo ObjectId)"},"status":{"$ref":"#/components/schemas/BatchImageAnalysisStatus","description":"Filter by batch analysis status"},"expand":{"items":{"$ref":"#/components/schemas/BatchImageAnalysesQueryExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"GetBatchImageAnalysisQueryParams":{"properties":{"expand":{"items":{"$ref":"#/components/schemas/BatchImageAnalysesQueryExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"MarkerJsAnnotation":{"properties":{"version":{"type":"number","format":"double"},"width":{"type":"number","format":"double"},"height":{"type":"number","format":"double"},"markers":{}},"required":["version","width","height","markers"],"type":"object","additionalProperties":false},"ImageAnnotation":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"annotationMarkerJs":{"$ref":"#/components/schemas/MarkerJsAnnotation"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","object","annotationMarkerJs","createdAt","updatedAt"],"type":"object","additionalProperties":false},"UpsertAnnotationRequest":{"properties":{"annotationMarkerJs":{"$ref":"#/components/schemas/MarkerJsAnnotation"}},"required":["annotationMarkerJs"],"type":"object","additionalProperties":false},"SaveImageAnalysisCallbackRequest":{"$ref":"#/components/schemas/ImageAnalysisMeta"},"WorkflowAnalysisCreditBreakdown":{"properties":{"creditsUsed":{"type":"number","format":"double"}},"required":["creditsUsed"],"type":"object","additionalProperties":false},"Record_string.WorkflowAnalysisCreditBreakdown_":{"properties":{},"additionalProperties":{"$ref":"#/components/schemas/WorkflowAnalysisCreditBreakdown"},"type":"object","description":"Construct a type with a set of properties K of type T"},"ImageAnalysisCreditSummary":{"properties":{"id":{"type":"string"},"image":{"type":"string"},"view":{"type":"string"},"totalCreditsUsed":{"type":"number","format":"double"},"breakdown":{"$ref":"#/components/schemas/Record_string.WorkflowAnalysisCreditBreakdown_"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","image","view","totalCreditsUsed","createdAt"],"type":"object","additionalProperties":false},"ImageAnalysisCostSummary":{"$ref":"#/components/schemas/ImageAnalysisCreditSummary"},"ResourceList_ImageAnalysisCostSummary_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/ImageAnalysisCostSummary"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"ImageAnalysisTimeframe":{"type":"string","enum":["daily","weekly","monthly"]},"ImageAnalysisAggregatePoint":{"properties":{"period":{"type":"string"},"totalCreditsUsed":{"type":"number","format":"double"},"count":{"type":"number","format":"double"}},"required":["period","totalCreditsUsed","count"],"type":"object","additionalProperties":false},"ImageAnalysisStatsResponse":{"properties":{"viewId":{"type":"string"},"timeframe":{"$ref":"#/components/schemas/ImageAnalysisTimeframe"},"totalCreditsUsed":{"type":"number","format":"double"},"totalCount":{"type":"number","format":"double"},"points":{"items":{"$ref":"#/components/schemas/ImageAnalysisAggregatePoint"},"type":"array"}},"required":["viewId","timeframe","totalCreditsUsed","totalCount","points"],"type":"object","additionalProperties":false},"Health":{"properties":{"success":{"type":"boolean"},"environment":{"$ref":"#/components/schemas/Environment"},"database":{"type":"string"}},"required":["success","environment","database"],"type":"object","additionalProperties":false},"ClientSettings":{"properties":{"logoBase64":{"type":"string"},"primaryColour":{"type":"string"},"secondaryColour":{"type":"string"}},"type":"object","additionalProperties":false},"Client":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/ClientSettings"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"type":"string"},"views":{"items":{"$ref":"#/components/schemas/View"},"type":"array"}},"required":["id","name","settings","object"],"type":"object","additionalProperties":false},"ResourceList_Client_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Client"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"ClientsOrderBy":{"enum":["name"],"type":"string"},"GetClientsRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/ClientsOrderBy","description":"Field to order the results by (defaults to name)"},"search":{"type":"string","description":"Search term for name"}},"type":"object","additionalProperties":false},"CreateClientRequest":{"properties":{"name":{"type":"string"},"organisation":{"$ref":"#/components/schemas/MongoId"}},"required":["name","organisation"],"type":"object","additionalProperties":false},"UpdateClientRequest":{"properties":{"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/ClientSettings"}},"type":"object","additionalProperties":false},"CameraStatus":{"enum":["UNREGISTERED","REGISTERED"],"type":"string"},"Location":{"properties":{"coordinates":{"items":{"type":"number","format":"double"},"type":"array"}},"required":["coordinates"],"type":"object","additionalProperties":false},"Camera":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"name":{"type":"string"},"serialNumber":{"type":"string"},"deviceCode":{"type":"string"},"provisioningCode":{"type":"string"},"verificationUrl":{"type":"string"},"systemType":{"$ref":"#/components/schemas/SupportedSystems"},"deviceId":{"type":"string"},"status":{"$ref":"#/components/schemas/CameraStatus"},"location":{"$ref":"#/components/schemas/Location"},"timezone":{"type":"string"},"view":{"$ref":"#/components/schemas/ViewExpand"},"meta":{"properties":{},"additionalProperties":{},"type":"object"},"expireAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time"}},"required":["id","object","systemType","status","timezone","createdAt","updatedAt"],"type":"object","additionalProperties":false},"ResourceList_Camera_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Camera"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"CamerasOrderBy":{"enum":["createdAt","serialNumber","name"],"type":"string"},"ListCamerasQueryExpandable":{"enum":["organisation","view"],"type":"string"},"GetCamerasRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/CamerasOrderBy","description":"Field to order the results by (defaults to serialNumber)"},"systemType":{"$ref":"#/components/schemas/SupportedSystems","description":"The type of Camera"},"status":{"$ref":"#/components/schemas/CameraStatus","description":"The status of the Camera"},"search":{"type":"string","description":"Search term for Serial Number"},"expand":{"items":{"$ref":"#/components/schemas/ListCamerasQueryExpandable"},"type":"array"}},"type":"object","additionalProperties":false},"GcSerialNumberType":{"type":"string","pattern":"^(GC[0-9]{12,14}|[a-zA-Z0-9-]{10})$"},"CameraMetaType":{"properties":{"wapPkey":{"type":"string","pattern":"^[a-zA-Z0-9]{10}$"},"balenaUuid":{"type":"string","pattern":"^[a-zA-Z0-9]{32}$"},"wpImei":{"type":"string","pattern":"^[a-zA-Z0-9-]{15}$"},"wpSerialNumber":{"type":"string","pattern":"^[a-zA-Z0-9-]{14}$"}},"additionalProperties":{},"type":"object"},"CreateCameraRequest":{"properties":{"serialNumber":{"$ref":"#/components/schemas/GcSerialNumberType","description":"The serial number of the camera"},"systemType":{"$ref":"#/components/schemas/SupportedSystems","description":"The type of Cameras that can be created by an admin"},"meta":{"$ref":"#/components/schemas/CameraMetaType","description":"Metadata about the camera"}},"required":["serialNumber","systemType","meta"],"type":"object","additionalProperties":false},"UpdateCameraRequest":{"properties":{"name":{"type":"string","description":"The name of the camera","minLength":3,"maxLength":50},"serialNumber":{"$ref":"#/components/schemas/GcSerialNumberType","description":"The serial number of the camera"},"systemType":{"$ref":"#/components/schemas/SupportedSystems","description":"The type of camera"},"timezone":{"type":"string","description":"The timezone for the camera"},"meta":{"$ref":"#/components/schemas/CameraMetaType","description":"Metadata about the camera"}},"type":"object","additionalProperties":false},"RegisterCameraRequest":{"properties":{"name":{"type":"string","description":"The name of the camera","minLength":3,"maxLength":50},"serialNumber":{"$ref":"#/components/schemas/GcSerialNumberType"},"organisation":{"$ref":"#/components/schemas/MongoId","description":"The Organisation the camera belongs to"},"timezone":{"type":"string","description":"The timezone for the camera"}},"required":["name","serialNumber","organisation","timezone"],"type":"object","additionalProperties":false},"RegisterProvisioningCameraRequest":{"properties":{"name":{"type":"string","description":"The name of the camera","minLength":3,"maxLength":50},"organisation":{"$ref":"#/components/schemas/MongoId","description":"The Organisation the camera belongs to"},"provisioningCode":{"type":"string","description":"The provisioning code for the camera","pattern":"^[0-9]{6}$"},"timezone":{"type":"string","description":"The timezone for the camera"}},"required":["name","organisation","provisioningCode","timezone"],"type":"object","additionalProperties":false},"ProvisionCameraResponse":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"name":{"type":"string"},"serialNumber":{"type":"string"},"deviceCode":{"type":"string"},"provisioningCode":{"type":"string"},"verificationUrl":{"type":"string"},"systemType":{"$ref":"#/components/schemas/SupportedSystems"},"deviceId":{"type":"string"},"status":{"$ref":"#/components/schemas/CameraStatus"},"location":{"$ref":"#/components/schemas/Location"},"timezone":{"type":"string"},"view":{"$ref":"#/components/schemas/ViewExpand"},"meta":{"properties":{},"additionalProperties":{},"type":"object"},"expireAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time"},"apiKey":{"type":"string"}},"required":["id","object","systemType","status","timezone","createdAt","updatedAt"],"type":"object","additionalProperties":false},"SupportedSystems.INSITE_V1":{"enum":["INSITEV1"],"type":"string"},"SupportedSystems.SOLO_V1":{"enum":["SOLOV1"],"type":"string"},"SupportedSystems.AXIS_V1":{"enum":["AXISV1"],"type":"string"},"ProvisioningSystemType":{"anyOf":[{"$ref":"#/components/schemas/SupportedSystems.INSITE_V1"},{"$ref":"#/components/schemas/SupportedSystems.SOLO_V1"},{"$ref":"#/components/schemas/SupportedSystems.AXIS_V1"}],"description":"****************************************\nProviosning\n****************************************"},"ProvisionCameraRequest":{"properties":{"systemType":{"$ref":"#/components/schemas/ProvisioningSystemType","description":"The type of camera to provision"},"deviceCode":{"type":"string","description":"The device code of the camera"}},"required":["systemType","deviceCode"],"type":"object","additionalProperties":false},"Metadata":{"properties":{"reported":{"properties":{},"additionalProperties":{},"type":"object"},"desired":{"properties":{},"additionalProperties":{},"type":"object"}},"type":"object"},"Shadow":{"properties":{"clientToken":{"type":"string"},"version":{"type":"number","format":"double"},"metadata":{"$ref":"#/components/schemas/Metadata"},"state":{"properties":{"desired":{"properties":{},"additionalProperties":{},"type":"object"},"reported":{"properties":{},"additionalProperties":{},"type":"object"}},"type":"object"}},"required":["state"],"type":"object"},"UpdateDeviceShadowRequest":{"$ref":"#/components/schemas/Shadow"},"CameraStat":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"labels":{"properties":{},"additionalProperties":{},"type":"object"},"timestamp":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"cameraOn":{"type":"boolean"},"piOn":{"type":"boolean"},"heaterOn":{"type":"boolean"},"gnssLongitude":{"type":"number","format":"double"},"lt4015BatteryCoulomb":{"type":"number","format":"double"},"lt4015InputCurrent":{"type":"number","format":"double"},"lt4015InputVoltage":{"type":"number","format":"double"},"lt4015BatteryCurrent":{"type":"number","format":"double"},"lt4015ChargerStatus":{"type":"number","format":"double"},"gnssLatitude":{"type":"number","format":"double"},"ina219ShuntVoltage":{"type":"number","format":"double"},"lt4015BatteryVoltage":{"type":"number","format":"double"},"ina219BusVoltage":{"type":"number","format":"double"},"lt4015ChargerState":{"type":"number","format":"double"},"powerAmpTemp":{"type":"number","format":"double"},"upTime":{"type":"string"},"imagesTaken":{"type":"number","format":"double"},"imagesOnCamera":{"type":"number","format":"double"},"imagesOnLocal":{"type":"number","format":"double"},"battery":{"$ref":"#/components/schemas/CameraStatBattery"},"buildDate":{"type":"string"},"buildNumber":{"type":"string"},"canCaptureWhileStreaming":{"type":"boolean"},"isCameraStorageAvailable":{"type":"boolean"},"isLocalStoreAvailable":{"type":"boolean"},"isUsbStoreAvailable":{"type":"boolean"},"storage":{"$ref":"#/components/schemas/CameraStatStorage"},"version":{"type":"string"}},"required":["id","object","labels","timestamp","createdAt","updatedAt","cameraOn","piOn","heaterOn","gnssLongitude","lt4015BatteryCoulomb","lt4015InputCurrent","lt4015InputVoltage","lt4015BatteryCurrent","lt4015ChargerStatus","gnssLatitude","ina219ShuntVoltage","lt4015BatteryVoltage","ina219BusVoltage","lt4015ChargerState","upTime","imagesTaken","imagesOnCamera","imagesOnLocal"],"type":"object","additionalProperties":false},"ResourceList_CameraStat_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/CameraStat"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"CameraTunnelToken":{"properties":{"token":{"type":"string"}},"required":["token"],"type":"object","additionalProperties":false},"CameraCommandKey":{"type":"string","enum":["WAKEUP","STREAM_START","STREAM_STOP","SLEEP"],"nullable":false},"SendCameraCommandRequest":{"properties":{"command":{"$ref":"#/components/schemas/CameraCommandKey","description":"The command to send to the camera's linked device.\nMust be one of the supported command keys."}},"required":["command"],"type":"object","additionalProperties":false},"CameraTokenAccessResponse":{"properties":{"deviceUrl":{"type":"string"},"verifyUrl":{"type":"string"},"hubUrl":{"type":"string"},"token":{"type":"string"}},"required":["deviceUrl","verifyUrl","hubUrl","token"],"type":"object","additionalProperties":false},"Partial_Brand_":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"domain":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"supportUrl":{"type":"string"},"logoBase64":{"type":"string"},"favIconBase64":{"type":"string"},"mfaEnabled":{"type":"boolean"},"signupEnabled":{"type":"boolean"},"meta":{"properties":{"zoho":{"properties":{"desk":{"properties":{"orgId":{"type":"string"},"jwtSecretKey":{"type":"string"},"asapId":{"type":"string"}},"type":"object"}},"type":"object"},"helpLinks":{"items":{"properties":{"url":{"type":"string"},"type":{"type":"string"}},"required":["type"],"type":"object"},"type":"array"}},"type":"object"},"object":{"$ref":"#/components/schemas/Resources"}},"type":"object","description":"Make all properties in T optional"},"Brand":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"domain":{"items":{"type":"string"},"type":"array"},"email":{"type":"string"},"supportUrl":{"type":"string"},"logoBase64":{"type":"string"},"favIconBase64":{"type":"string"},"mfaEnabled":{"type":"boolean"},"signupEnabled":{"type":"boolean"},"meta":{"properties":{"zoho":{"properties":{"desk":{"properties":{"orgId":{"type":"string"},"jwtSecretKey":{"type":"string"},"asapId":{"type":"string"}},"type":"object"}},"type":"object"},"helpLinks":{"items":{"properties":{"url":{"type":"string"},"type":{"type":"string"}},"required":["type"],"type":"object"},"type":"array"}},"type":"object"},"object":{"$ref":"#/components/schemas/Resources"}},"required":["id","name","domain","email","supportUrl","logoBase64","favIconBase64","mfaEnabled","signupEnabled","object"],"type":"object","additionalProperties":false},"ResourceList_Brand_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/Brand"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"BrandsOrderBy":{"enum":["name","createdAt","updatedAt"],"type":"string"},"GetCBrandsRequest":{"properties":{"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/BrandsOrderBy","description":"Field to order the results by (defaults to name)"},"search":{"type":"string","description":"Search term for Name"}},"type":"object","additionalProperties":false},"BrandHelpLinkRequest":{"properties":{"type":{"type":"string","description":"The type of help link"},"url":{"$ref":"#/components/schemas/Url","description":"The URL of the help link"}},"required":["type"],"type":"object","additionalProperties":false},"BrandZohoDeskRequest":{"properties":{"asapId":{"type":"string","description":"Zoho ASAP Widget ID","pattern":"^[0-9]{18}$"},"jwtSecretKey":{"type":"string","description":"Zoho Desk JWT Secret Key","pattern":"^[a-zA-Z0-9]{40}$"}},"type":"object","additionalProperties":false},"BrandZohoRequest":{"properties":{"desk":{"$ref":"#/components/schemas/BrandZohoDeskRequest"}},"type":"object","additionalProperties":false},"BrandMetaRequest":{"properties":{"helpLinks":{"items":{"$ref":"#/components/schemas/BrandHelpLinkRequest"},"type":"array"},"zoho":{"$ref":"#/components/schemas/BrandZohoRequest"}},"type":"object","additionalProperties":false},"BrandRequest":{"properties":{"name":{"type":"string","description":"The name of the brand","minLength":3,"maxLength":250},"domain":{"items":{"$ref":"#/components/schemas/Url"},"type":"array","description":"The domains associated with the brand"},"email":{"$ref":"#/components/schemas/Email","description":"The contact email address for the brand"},"supportUrl":{"$ref":"#/components/schemas/Url","description":"The support URL for the brand"},"logoBase64":{"type":"string","description":"Base64 encoded logo image (png, jpeg, jpg, gif, or webp)","pattern":"^data:image\\/(png|jpeg|jpg|gif|webp);base64,[A-Za-z0-9+/]+=*$"},"favIconBase64":{"type":"string","description":"Base64 encoded favicon image (png only)","pattern":"^data:image\\/(png);base64,[A-Za-z0-9+/]+=*$"},"mfaEnabled":{"type":"boolean","description":"Whether MFA is enabled for the brand"},"signupEnabled":{"type":"boolean","description":"Whether signup is enabled for the brand"},"meta":{"$ref":"#/components/schemas/BrandMetaRequest","description":"Additional metadata for the brand"}},"required":["name","domain","email","supportUrl","logoBase64","favIconBase64"],"type":"object","additionalProperties":false},"BatchDownloadStatus":{"enum":["INITIATED","PROCESSING","PROCESSED","UPLOADING","COMPLETE"],"type":"string"},"BatchZipStatus":{"enum":["INITIATED","PROCESSING","COMPLETE"],"type":"string"},"BatchZip":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"type":"string"},"batchDownload":{"type":"string"},"index":{"type":"number","format":"double"},"status":{"$ref":"#/components/schemas/BatchZipStatus"},"signedUploadUrl":{"type":"string"},"signedDownloadUrl":{"type":"string"},"fileName":{"type":"string"},"gsUri":{"type":"string"},"fileUrls":{"items":{"type":"string"},"type":"array"},"fileCount":{"type":"number","format":"double"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","object","organisation","batchDownload","index","status","fileName","gsUri","fileCount","createdAt","updatedAt"],"type":"object","additionalProperties":false},"BatchDownload":{"properties":{"id":{"type":"string"},"object":{"$ref":"#/components/schemas/Resources"},"organisation":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/OrganisationExpand"}]},"status":{"$ref":"#/components/schemas/BatchDownloadStatus"},"view":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ViewExpand"}]},"batchZips":{"items":{"$ref":"#/components/schemas/BatchZip"},"type":"array"},"zipCount":{"type":"number","format":"double"},"fileUrls":{"items":{"type":"string"},"type":"array"},"fileCount":{"type":"number","format":"double"},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"expireAt":{"type":"string"}},"required":["id","object","organisation","status","view","batchZips","zipCount","fileCount","createdAt","updatedAt","expireAt"],"type":"object","additionalProperties":false},"ResourceList_BatchDownload_":{"properties":{"object":{"type":"string"},"resource_path":{"type":"string"},"has_more":{"type":"boolean"},"total_count":{"type":"number","format":"double"},"data":{"items":{"$ref":"#/components/schemas/BatchDownload"},"type":"array"}},"required":["object","resource_path","has_more","total_count","data"],"type":"object","additionalProperties":false},"BatchDownloadsOrderBy":{"enum":["createdAt"],"type":"string"},"BatchDownloadExpandable":{"enum":["organisation","view"],"type":"string"},"GetBatchDownloadsRequest":{"properties":{"organisation":{"items":{"$ref":"#/components/schemas/MongoId"},"type":"array","description":"Must be a valid Mongo ObjectId"},"page":{"type":"integer","format":"int32","description":"Page number of results","default":1,"minimum":1},"limit":{"type":"integer","format":"int32","description":"Number of results per page","default":25,"minimum":1},"sort":{"$ref":"#/components/schemas/SortOrder","description":"Sort order of results (defaults to DESC)"},"orderBy":{"$ref":"#/components/schemas/BatchDownloadsOrderBy","description":"Field to order the results by (defaults to createdAt)"},"view":{"$ref":"#/components/schemas/MongoId","description":"Must be a valid Mongo ObjectId"},"status":{"$ref":"#/components/schemas/BatchDownloadStatus","description":"Status of the Sequence"},"expand":{"items":{"$ref":"#/components/schemas/BatchDownloadExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"CreateBatchDownloadRequest":{"properties":{"organisation":{"$ref":"#/components/schemas/MongoId"},"view":{"$ref":"#/components/schemas/MongoId"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"startTime":{"type":"string","description":"Filter by captured time of day in UTC (HH:MM, 24-hour format).\nImages captured before this time of day will be excluded.","example":"08:00"},"endTime":{"type":"string","description":"Filter by captured time of day in UTC (HH:MM, 24-hour format).\nImages captured after this time of day will be excluded.\nSupports overnight ranges where endTime < startTime (e.g., 22:00 to 04:00).","example":"18:00"},"luminanceMin":{"type":"number","format":"double","description":"Filter by minimum median luminance (0–255). Images with a medianLuminance below this\nvalue will be excluded. Uses the value stored under meta.analysis.luminance.medianLuminance.","minimum":0,"maximum":255},"luminanceMax":{"type":"number","format":"double","description":"Filter by maximum median luminance (0–255). Images with a medianLuminance above this\nvalue will be excluded. Uses the value stored under meta.analysis.luminance.medianLuminance.","minimum":0,"maximum":255},"sharpnessMin":{"type":"number","format":"double","description":"Filter by sharpness (0–2000). Images with a sharpness below this value\nwill be excluded. Uses the value stored under meta.visibility.sharpness.","minimum":0,"maximum":2000},"sharpnessMax":{"type":"number","format":"double","description":"Filter by sharpness (0–2000). Images with a sharpness above this value\nwill be excluded. Uses the value stored under meta.visibility.sharpness.","minimum":0,"maximum":2000}},"required":["organisation","view"],"type":"object","additionalProperties":false},"GetBatchDownloadRequest":{"properties":{"expand":{"items":{"$ref":"#/components/schemas/BatchDownloadExpandable"},"type":"array","description":"Resources to expand in the response"}},"type":"object","additionalProperties":false},"UpdateBatchZipRequest":{"properties":{"status":{"$ref":"#/components/schemas/BatchZipStatus"},"zipUrl":{"type":"string"}},"type":"object","additionalProperties":false},"UserAuthSuccessResponse":{"properties":{"uid":{"type":"string"},"email":{"type":"string"},"refreshToken":{"type":"string"},"accessToken":{"type":"string"},"expirationTime":{"type":"number","format":"double"}},"required":["uid","email","refreshToken","accessToken","expirationTime"],"type":"object","additionalProperties":false},"EmailPasswordLoginRequest":{"properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"],"type":"object","additionalProperties":false},"ResetPasswordRequest":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object","additionalProperties":false},"MagicLinkRequest":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object","additionalProperties":false}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key"},"APIKeyQuery":{"type":"apiKey","name":"api_key","in":"query"},"api_key":{"type":"apiKey","name":"access_token","in":"query"},"firebase_jwt":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"cf_webhook_signature":{"type":"apiKey","in":"header","name":"Webhook-Signature"},"zoho_webhook_signature":{"type":"apiKey","in":"header","name":"x-zoho-webhook-signature"}}},"info":{"title":"GabrielCam API","version":"v1","description":"GabrielCam API","license":{"name":"UNLICENCED"}},"paths":{"/webhooks/zoho":{"post":{"operationId":"zohoWebhook","responses":{"204":{"description":"No content"}},"tags":["Webhook"],"security":[{"APIKeyHeader":[]},{"zoho_webhook_signature":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"event_time":{"type":"string"},"event_source":{"type":"string"},"event_time_formatted":{"type":"string"},"data":{},"event_type":{"type":"string"},"event_id":{"type":"string"},"created_time":{"type":"string"}},"required":["event_time","event_source","event_time_formatted","data","event_type","event_id","created_time"],"type":"object"}}}}}},"/webhooks/gcs_events":{"post":{"operationId":"webhookGcsEvent","responses":{"204":{"description":"No content"}},"tags":["Webhook"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookGCSEventRequest"}}}}}},"/webhooks/cloud_scheduler":{"post":{"operationId":"webhookCloudScheduler","responses":{"204":{"description":"No content"}},"tags":["Webhook"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCloudSchedulerRequest"}}}}}},"/webhooks/clouflare_stream_events":{"post":{"operationId":"webhookCloudflareStreamEvent","responses":{"204":{"description":"No content"}},"tags":["Webhook"],"security":[{"cf_webhook_signature":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCloudflareStreamEventRequest"}}}}}},"/views":{"get":{"operationId":"listViews","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ResourceList_View_"},{"$ref":"#/components/schemas/Partial_EventSubscription_"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Returns a list of views.","tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to lastCapturedUtc)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/ViewsOrderBy"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"camera","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"client","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"project","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"subscription","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Subscription Code of the views to return","in":"query","name":"subscriptionCode","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionCode"}}},{"description":"Search term for View Name","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Special search for the start character of a View name, this is uses to allow grouping of views in the UI","in":"query","name":"startsWith","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"description":"Is the View Public or private, defaults to all","in":"query","name":"visibility","required":false,"schema":{"$ref":"#/components/schemas/ViewVisibility"}},{"description":"Status of the view","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/ViewStatus"}},{"description":"If to attach a channel to the View","in":"query","name":"subscribe","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ListViewsQueryExpandable"}}}]},"post":{"operationId":"createView","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateViewRequest"}}}}}},"/views/origins":{"get":{"operationId":"getOriginsByProvider","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ViewOriginS3"},"type":"array"}},"required":["data"],"type":"object"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"query","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/OriginProviders"}}]}},"/views/{viewId}":{"get":{"operationId":"getViewById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"public":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetViewQueryExpandable"}}}]},"put":{"operationId":"updateViewById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateViewRequest"}}}}},"delete":{"operationId":"deleteViewById","responses":{"204":{"description":"No content"}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/views/{viewId}/source":{"put":{"operationId":"updateViewByIdSource","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetViewSourceRequest"}}}}}},"/views/{viewId}/source/import":{"post":{"operationId":"importViewByIdFromSource","responses":{"204":{"description":"No content"}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/views/{viewId}/origin":{"put":{"operationId":"updateViewByIdOrigin","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetViewOriginRequest"}}}}}},"/views/{viewId}/transfer":{"put":{"operationId":"updateViewByIdSetTransfer","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetViewTransferRequest"}}}}},"delete":{"operationId":"updateViewByIdDeleteTransfer","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetViewTransferRequest"}}}}}},"/views/{viewId}/images":{"get":{"operationId":"listViewByIdImages","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Image_"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"public":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"startDate","required":false,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"endDate","required":false,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/ImageStatus"}}]},"post":{"operationId":"createViewByIdImage","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"api_key":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImageRequest"}}}}}},"/views/{viewId}/images/captured-dates":{"get":{"operationId":"listViewByIdCapturedDates","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_string_"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"public":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"timezone","required":false,"schema":{"type":"string"}}]}},"/views/{viewId}/stats":{"get":{"operationId":"listViewByIdStats","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_ViewStat_"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"startDate","required":false,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"endDate","required":false,"schema":{"format":"date-time","type":"string"}}]}},"/views/{viewId}/stats/latest":{"get":{"operationId":"getViewByIdStatLatest","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewStat"}}}},"204":{"description":""}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/views/{viewId}/api-key":{"post":{"operationId":"refreshViewByIdApiKey","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pick_User.apiKey_"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"delete":{"operationId":"deleteViewByIdApiKey","responses":{"204":{"description":"No content"}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/views/{viewId}/ftp-import":{"post":{"operationId":"createViewByIdFtpImport","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableFtpRequest"}}}}},"put":{"operationId":"updateViewByIdFtpImport","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableFtpRequest"}}}}},"delete":{"operationId":"deleteViewByIdFtpImport","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/views/{viewId}/live-stream":{"get":{"operationId":"getViewByIdLiveStream","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewLiveStreamSession"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Returns a minimal Live Stream session and heartbeat-scoped Ably subscription token for a View.","tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/views/{viewId}/live-stream/command":{"post":{"operationId":"createViewByIdLiveStreamCommand","responses":{"202":{"description":"Accepted"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Sends a Live Stream hardware command (WAKEUP, STREAM_START, or STREAM_STOP) to the Camera assigned to a View.","tags":["View"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendViewLiveStreamCommandRequest"}}}}}},"/admin/views/{viewId}/suspend":{"put":{"operationId":"adminSuspendView","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["Admin","View Administration"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/admin/views/{viewId}/resume":{"put":{"operationId":"adminResumeView","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}},"tags":["Admin","View Administration"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/users":{"get":{"operationId":"listUsers","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_User_"}}}}},"description":"Returns a list of users.","tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to displayName)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/UsersOrderBy"}},{"description":"Search term for forename, surname, displayName, email","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"User status","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/UserStatus"}},{"description":"Role the User might have","in":"query","name":"role","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/RolesFilter"}}}]}},"/users/self":{"get":{"operationId":"getUserSelf","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"description":"Gets the details of the currently logged in user.","tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}},{"description":"A list of resources to expand in the response.","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/Resources.Organisation"}}}]}},"/users/self/zoho/token":{"get":{"operationId":"getUserSelfZohoToken","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}}}}},"tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}}]}},"/users/self/roles":{"get":{"operationId":"getUserSelfRoles","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AssignedRole"},"type":"array"}}}}},"description":"Lists the roles assigned to the currently logged in user.","tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"description":"The ID of the organisation to filter results by.","in":"query","name":"organisation","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/users/{userId}":{"get":{"operationId":"getUserById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"description":"ADMIN ONLY. Gets details of a user.","tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"description":"The ID of the user","in":"path","name":"userId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"organisation","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"put":{"operationId":"updateUserById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"userId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}}}},"/users/invite":{"post":{"operationId":"inviteUser","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteUserRequest"}}}}}},"/users/{userId}/roles":{"post":{"operationId":"assignUserByIdRoles","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AssignedRole"},"type":"array"}}}}},"tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"userId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignUserRolesRequest"}}}}}},"/users/{userId}/roles/revoke":{"post":{"operationId":"revokeUserByIdRole","responses":{"204":{"description":"No content"}},"tags":["User"],"security":[{"firebase_jwt":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"userId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeUserRoleRequest"}}}}}},"/admin/users/{userId}":{"delete":{"operationId":"deleteUserById","responses":{"204":{"description":"No content"}},"tags":["Admin","User Administration"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"description":"The ID of the user","in":"path","name":"userId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/admin/users":{"put":{"operationId":"promoteUserToAdministratorByEmail","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"tags":["Admin","User Administration"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteAdministratorRequest"}}}}}},"/admin/users/{userId}/disable_mfa":{"post":{"operationId":"adminDisableMFAById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"tags":["Admin","User Administration"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"userId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/transfer-settings":{"get":{"operationId":"listTransferSettings","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_TransferSetting_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Transfer Settings"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"query","name":"organisation","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"page","required":false,"schema":{"default":1,"format":"double","type":"number"}},{"in":"query","name":"limit","required":false,"schema":{"default":100,"format":"double","type":"number"}}]},"post":{"operationId":"createTransferSetting","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSetting"}}}}},"tags":["Transfer Settings"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransferSettingsRequest"}}}}}},"/transfer-settings/{transferSettingId}":{"put":{"operationId":"updateTransferSettingById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSetting"}}}}},"tags":["Transfer Settings"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"transferSettingId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTransferSettingsRequest"}}}}},"get":{"operationId":"getTransferSettingById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSetting"}}}}},"tags":["Transfer Settings"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"transferSettingId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"delete":{"operationId":"deleteTransferSettingById","responses":{"204":{"description":"No content"}},"tags":["Transfer Settings"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"transferSettingId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/transfer-settings/{transferSettingId}/test":{"get":{"operationId":"testTransferSettingById","responses":{"204":{"description":"No content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Transfer Settings"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"transferSettingId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/tasks/handle":{"post":{"operationId":"handleTask","responses":{"204":{"description":"No content"}},"tags":["Tasks"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskRequest"}}}}}},"/system/init":{"post":{"operationId":"initSystem","responses":{"204":{"description":"No content"}},"tags":["System"],"security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[]}},"/system":{"get":{"operationId":"getSystem","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/System"}}}}},"tags":["System"],"security":[],"parameters":[]}},"/system/revokeOrgAdminRole":{"post":{"operationId":"revokeOrgAdminRole","responses":{"204":{"description":"No content"}},"tags":["System"],"security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[]}},"/system/seedZohoDesk":{"post":{"operationId":"seedZohoDesk","responses":{"204":{"description":"No content"}},"tags":["System"],"security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[]}},"/system/seedZohoCrm":{"post":{"operationId":"seedZohoCrm","responses":{"204":{"description":"No content"}},"tags":["System"],"security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[]}},"/subscriptions":{"get":{"operationId":"listSubscriptions","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Subscription_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Subscription"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to createdAt)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/SubscriptionsOrderBy"}},{"description":"Code","in":"query","name":"code","required":false,"schema":{"$ref":"#/components/schemas/SubscriptionCode"}},{"description":"Search term for External Reference","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Status of the Sequence","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/SubscriptionStatus"}}]}},"/subscriptions/{subscriptionId}":{"get":{"operationId":"getSubscriptionById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Omit_Subscription.meta_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Subscription"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"subscriptionId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/stats":{"post":{"operationId":"createStat","responses":{"204":{"description":"No content"},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Stats"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCameraStatRequest"}}}}}},"/sequences":{"get":{"operationId":"listSequences","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Omit_Sequence.imageUrls-or-uploadURL-or-clipUrls-or-clips__"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Returns a list of sequences.","tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to createdAt)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/SequencesOrderBy"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"view","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Search term for Sequence Name","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Status of the Sequence","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/SequenceStatus"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/SequencesQueryExpandable"}}}]},"post":{"operationId":"createSequence","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sequence"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSequenceRequest"}}}}}},"/sequences/preview":{"post":{"operationId":"previewSequenceImages","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Image"},"type":"array"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewSequenceRequest"}}}}}},"/sequences/{sequenceId}/log":{"post":{"operationId":"createSequenceLog","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Log"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"sequenceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLogRequest"}}}}}},"/sequences/upload":{"post":{"operationId":"createUploadedSequence","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sequence"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSequenceRequest"}}}}}},"/sequences/{sequenceId}":{"get":{"operationId":"getSequenceById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sequence"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"sequenceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/SequencesQueryExpandable"}}}]},"delete":{"operationId":"deleteSequenceById","responses":{"204":{"description":"No content"}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"sequenceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"put":{"operationId":"updateSequenceById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sequence"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"sequenceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSequenceRequest"}}}}}},"/sequences/{sequenceId}/download":{"get":{"operationId":"getSequenceDownloadUrl","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceDownload"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"sequenceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/sequences/{sequenceId}/clips/{clipIndex}":{"get":{"operationId":"getSequenceByIdClipByIndex","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Clip"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceMissing_"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"sequenceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"path","name":"clipIndex","required":true,"schema":{"format":"double","type":"number"}}]},"put":{"operationId":"updateSequenceByIdClipByIndex","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Clip"}}}}},"tags":["Sequences"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"sequenceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"path","name":"clipIndex","required":true,"schema":{"format":"double","type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClipRequest"}}}}}},"/sequence-schedules":{"get":{"operationId":"listSequenceSchedules","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_SequenceSchedule_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Sequence Schedules"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"in":"query","name":"view","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"post":{"operationId":"createSequenceSchedule","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceSchedule"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Sequence Schedules"],"security":[{"firebase_jwt":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSequenceScheduleRequest"}}}}}},"/sequence-schedules/{id}":{"get":{"operationId":"getSequenceScheduleById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceSchedule"}}}}},"tags":["Sequence Schedules"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"put":{"operationId":"updateSequenceScheduleById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceSchedule"}}}}},"tags":["Sequence Schedules"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSequenceScheduleRequest"}}}}},"delete":{"operationId":"deleteSequenceScheduleById","responses":{"204":{"description":"No content"}},"tags":["Sequence Schedules"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/sequence-automations":{"get":{"operationId":"listSequenceAutomations","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_SequenceAutomation_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Sequence Automations"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"in":"query","name":"view","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"type","required":false,"schema":{"$ref":"#/components/schemas/SequenceAutomationFrequency"}}]},"post":{"operationId":"upsertSequenceAutomation","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceAutomation"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Sequence Automations"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertSequenceAutomationRequest"}}}}}},"/sequence-automations/{id}":{"get":{"operationId":"getSequenceAutomationById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceAutomation"}}}}},"tags":["Sequence Automations"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"put":{"operationId":"updateSequenceAutomationById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceAutomation"}}}}},"tags":["Sequence Automations"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSequenceAutomationRequest"}}}}},"delete":{"operationId":"deleteSequenceAutomationById","responses":{"204":{"description":"No content"}},"tags":["Sequence Automations"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/roles":{"get":{"operationId":"listRoles","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Role_"}}}}},"tags":["Role"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[]}},"/public/image":{"post":{"operationId":"createImage","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"NOTE: This Route is Rate Limited in Cloudflare, see workers/api-gateway","tags":["Public"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateImageRequest"}}}}}},"/projects":{"get":{"operationId":"listProjects","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Project_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Returns a list of projects.","tags":["Project"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to createdAt)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/ProjectsOrderBy"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"client","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Search term for Sequence Name","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectExpandable"}}}]},"post":{"operationId":"createProject","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}}},"tags":["Project"],"security":[{"firebase_jwt":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRequest"}}}}}},"/projects/{projectId}":{"get":{"operationId":"getProjectById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}}},"tags":["Project"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"projectId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectExpandable"}}}]},"put":{"operationId":"updateProjectById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}}},"tags":["Project"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"projectId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectRequest"}}}}},"delete":{"operationId":"deleteProjectById","responses":{"204":{"description":"No content"}},"tags":["Project"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"projectId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/plans":{"get":{"operationId":"listPlans","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Plan"},"type":"array"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ServiceUnavailable_"}}}}},"tags":["Plan"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"query","name":"organisation","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/plans/url":{"post":{"operationId":"createPlanPurchaseUrl","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ServiceUnavailable_"}}}}},"tags":["Plan"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePurchaseUrlRequest"}}}}}},"/organisations":{"get":{"operationId":"listOrganisations","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Organisation_"}}}}},"description":"Returns a list of organisations.","tags":["Organisation"],"security":[{"firebase_jwt":[]},{"api_key":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Filter by brand","in":"query","name":"brand","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to name)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/OrganisationsOrderBy"}},{"description":"Search term for Organisation Name","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ListOrganisationsQueryExpandable"}}}]},"post":{"operationId":"createOrganisation","responses":{"200":{"description":"The created organisation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Create a new organisation directly (system admin only)","tags":["Organisation"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"description":"The organisation creation parameters","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrganisationRequest","description":"The organisation creation parameters"}}}}}},"/organisations/{organisationId}":{"get":{"operationId":"getOrganisationById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"put":{"operationId":"updateOrganisationById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganisationRequest"}}}}},"delete":{"operationId":"deleteOrganisationById","responses":{"204":{"description":"No content"}},"tags":["Organisation"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/mfa":{"put":{"operationId":"updateOrganisationMfaById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"tags":["Organisation"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganisationMfaRequest"}}}}}},"/organisations/register":{"post":{"operationId":"registerOrganisation","responses":{"200":{"description":"The created user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"description":"Register a new organisation to a brand","tags":["Organisation"],"security":[],"parameters":[{"description":"The domain of the brand","in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The request body","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterOrganisationRequest","description":"The request body"}}}}}},"/organisations/{organisationId}/enable_hardware_api":{"post":{"operationId":"organisationByIdEnableHardwareApi","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Enables hardware API and sets permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/disable_hardware_api":{"post":{"operationId":"organisationByIdDisableHardwareApi","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Enables hardware API and revokes permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/enable_image_service":{"post":{"operationId":"organisationByIdEnableImageService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Enables Image Service (ix.gabrielcam.com) API and sets permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/disable_image_service":{"post":{"operationId":"organisationByIdDisableImageService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Enables Image Service API (ix.gabrielcam.com) and revokes permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/enable_image_analysis_service":{"post":{"operationId":"organisationByIdEnableImageAnalysisService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Enable Image Analysis Service and assign permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/disable_image_analysis_service":{"post":{"operationId":"organisationByIdDisableImageAnalysisService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Disable Image Analysis Service and revokes permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/enable_aws_lambda_service":{"post":{"operationId":"organisationByIdEnableAwsLambdaService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Enables AWS Lambda Service and adds the organisation to the AWS user for authentication.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/disable_aws_lambda_service":{"post":{"operationId":"organisationByIdDisableAwsLambdaService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Disable AWS Lambda Service and removes the organisation from the AWS user for authentication.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/enable_batch_image_analysis_service":{"post":{"operationId":"organisationByIdEnableBatchImageAnalysisService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Enable Batch Image Analysis Service and assign permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/{organisationId}/disable_batch_image_analysis_service":{"post":{"operationId":"organisationByIdDisableBatchImageAnalysisService","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"description":"Disable Batch Image Analysis Service and revoke permissions.","tags":["Organisation"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the organisation to update","in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/organisations/synchroniseSubscriptions":{"post":{"operationId":"synchroniseSubscriptionsByOrganisationId","responses":{"204":{"description":"No content"}},"tags":["Organisation"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"query","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/admin/organisations/{organisationId}/brand":{"put":{"operationId":"updateOrganisationBrand","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}}},"tags":["Admin","Organisation Administration"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"organisationId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganisationBrandRequest"}}}}}},"/notifications":{"get":{"operationId":"listNotifications","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Notification_"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Notification"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"query","name":"resource","required":true,"schema":{"$ref":"#/components/schemas/NotifiableResources"}},{"in":"query","name":"resourceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"page","required":false,"schema":{"default":1,"format":"double","type":"number"}},{"in":"query","name":"limit","required":false,"schema":{"default":100,"format":"double","type":"number"}}]},"put":{"operationId":"createOrUpdateNotification","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}}},"tags":["Notification"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequest"}}}}}},"/notifications/{resource}/{resourceId}/{notificationType}":{"get":{"operationId":"getNotificationByResourceAndType","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"204":{"description":""},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Notification"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"resource","required":true,"schema":{"$ref":"#/components/schemas/NotifiableResources"}},{"in":"path","name":"resourceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"path","name":"notificationType","required":true,"schema":{"$ref":"#/components/schemas/NotificationType"}}]}},"/notifications/{resource}/{resourceId}/{notificationType}/test":{"post":{"operationId":"testNotificationByResourceAndType","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Notification"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}},{"in":"path","name":"resource","required":true,"schema":{"$ref":"#/components/schemas/NotifiableResources"}},{"in":"path","name":"resourceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"path","name":"notificationType","required":true,"schema":{"$ref":"#/components/schemas/NotificationType"}}]}},"/logs":{"post":{"operationId":"createLog","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Log"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_Unauthorised_"}}}}},"tags":["Log"],"security":[{"firebase_jwt":[]},{"api_key":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLogRequest"}}}}},"get":{"operationId":"listLogsByResourceAndId","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Log_"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Log"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to createdAt)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/LogsOrderBy"}},{"description":"The related resource","in":"query","name":"resource","required":true,"schema":{"$ref":"#/components/schemas/Resources"}},{"description":"The related resources Id, Must be a valid Mongo ObjectId","in":"query","name":"resourceId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"The Log Level","in":"query","name":"level","required":false,"schema":{"default":["INFO","ERROR","WARN"],"type":"array","items":{"$ref":"#/components/schemas/LogLevel"}}},{"description":"The Start date (createdAt)","in":"query","name":"startDate","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"The End date (createdAt)","in":"query","name":"endDate","required":false,"schema":{"format":"date-time","type":"string"}}]}},"/images":{"get":{"operationId":"listImages","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Image_"}}}}},"tags":["Image"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to CAPTURED_AT)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/ImagesOrderBy"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"view","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Start Date Range (capturedAt)","in":"query","name":"startDate","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"End Date Range (capturedAt)","in":"query","name":"endDate","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Filter by captured time of day in UTC (HH:MM, 24-hour format).\nImages captured before this time of day will be excluded.","in":"query","name":"startTime","required":false,"schema":{"type":"string"},"example":"08:00"},{"description":"Filter by captured time of day in UTC (HH:MM, 24-hour format).\nImages captured after this time of day will be excluded.\nSupports overnight ranges where endTime < startTime (e.g., 22:00 to 04:00).","in":"query","name":"endTime","required":false,"schema":{"type":"string"},"example":"18:00"},{"description":"Image status","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/ImageStatus"}},{"description":"Filter by minimum median luminance (0–255). Images with a medianLuminance below this\nvalue will be excluded. Uses the value stored under meta.analysis.luminance.medianLuminance.","in":"query","name":"luminanceMin","required":false,"schema":{"format":"double","type":"number","minimum":0,"maximum":255}},{"description":"Filter by maximum median luminance (0–255). Images with a medianLuminance above this\nvalue will be excluded. Uses the value stored under meta.analysis.luminance.medianLuminance.","in":"query","name":"luminanceMax","required":false,"schema":{"format":"double","type":"number","minimum":0,"maximum":255}},{"description":"Filter by sharpness (0–2000). Images with a sharpness below this value\nwill be excluded. Uses the value stored under meta.visibility.sharpness.","in":"query","name":"sharpnessMin","required":false,"schema":{"format":"double","type":"number","minimum":0,"maximum":2000}},{"description":"Filter by sharpness (0–2000). Images with a sharpness above this value\nwill be excluded. Uses the value stored under meta.visibility.sharpness.","in":"query","name":"sharpnessMax","required":false,"schema":{"format":"double","type":"number","minimum":0,"maximum":2000}}]},"post":{"operationId":"createImage","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Creates an image and returns a signed upload URL.","tags":["Image"],"security":[{"firebase_jwt":[]},{"api_key":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImageRequest"}}}}}},"/images/{imageId}":{"get":{"operationId":"getImageById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}}},"tags":["Image"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"imageId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"delete":{"operationId":"deleteImageById","responses":{"204":{"description":"No content"}},"tags":["Image"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"imageId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/batch-image-analysis":{"post":{"operationId":"createBatchImageAnalysis","responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchImageAnalysis"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceMissing_"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceConflict_"}}}}},"description":"Initiates a batch image analysis on a View.","tags":["Batch Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBatchImageAnalysisRequest"}}}}},"get":{"operationId":"listBatchImageAnalyses","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_BatchImageAnalysis_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Lists batch image analysis jobs.","tags":["Batch Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to createdAt)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/BatchImageAnalysesOrderBy"}},{"description":"Filter by View ID (must be a valid Mongo ObjectId)","in":"query","name":"view","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Filter by batch analysis status","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/BatchImageAnalysisStatus"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/BatchImageAnalysesQueryExpandable"}}}]}},"/batch-image-analysis/{id}":{"get":{"operationId":"getBatchImageAnalysisById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchImageAnalysis"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceMissing_"}}}}},"description":"Returns batch image analysis details including status and progress counters.","tags":["Batch Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/BatchImageAnalysesQueryExpandable"}}}]},"delete":{"operationId":"deleteBatchImageAnalysisById","responses":{"204":{"description":"No content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceMissing_"}}}}},"description":"Deletes a batch image analysis job (cannot delete active jobs; cancel first).","tags":["Batch Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/batch-image-analysis/{id}/start":{"post":{"operationId":"startBatchImageAnalysisById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchImageAnalysis"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceMissing_"}}}}},"description":"Starts an initiated batch image analysis job (transitions status to IN_PROGRESS).","tags":["Batch Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/batch-image-analysis/{id}/cancel":{"post":{"operationId":"cancelBatchImageAnalysisById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchImageAnalysis"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceMissing_"}}}}},"description":"Cancels an active batch image analysis job.","tags":["Batch Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/image/{imageId}/annotations":{"put":{"operationId":"upsertImageByIdAnnotations","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageAnnotation"}}}}},"tags":["Image Annotations"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"imageId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertAnnotationRequest"}}}}},"get":{"operationId":"getImageByIdAnnotations","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageAnnotation"}}}}},"tags":["Image Annotations"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"public":[]}],"parameters":[{"in":"path","name":"imageId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/images/{imageId}/analyse":{"post":{"operationId":"analyseImageById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Image"},{}]}}}}},"description":"Submits the image to the image-service for analysis. Results are stored\non the image record under `meta.analysis` and recorded in historical image_analyses collection.","tags":["Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"imageId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/images/{imageId}/analysis":{"post":{"operationId":"saveImageAnalysisCallback","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}}},"description":"Receives pipeline analysis results (e.g. from background image-analysis-api callback),\ncreates a historical record in `image_analyses` linked to `image` and `view`,\nupdates `meta.analysis` on the Image document, and returns the updated Image.","tags":["Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"imageId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveImageAnalysisCallbackRequest"}}}}}},"/views/{viewId}/image-analysis":{"get":{"operationId":"listViewByIdImageAnalysis","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_ImageAnalysisCostSummary_"}}}}},"description":"Returns analysis cost and credit records for a view between dates.","tags":["Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"startDate","required":false,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"endDate","required":false,"schema":{"format":"date-time","type":"string"}}]}},"/views/{viewId}/image-analysis/stats":{"get":{"operationId":"getViewByIdImageAnalysisStats","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageAnalysisStatsResponse"}}}}},"description":"Returns aggregated server-side image analysis credits and execution statistics\ngrouped by fixed timeframe (daily, weekly, monthly) for a view.","tags":["Image Analysis"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"viewId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"timeframe","required":false,"schema":{"$ref":"#/components/schemas/ImageAnalysisTimeframe"}}]}},"/health":{"get":{"operationId":"getHealth","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}},"tags":["Health"],"security":[],"parameters":[]}},"/events/ably-token":{"get":{"operationId":"getAblyToken","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenDetails"}}}}},"tags":["Events"],"security":[{"firebase_jwt":[]}],"parameters":[]}},"/clients":{"get":{"operationId":"listClients","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Client_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Returns a list of clients.","tags":["Client"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to name)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/ClientsOrderBy"}},{"description":"Search term for name","in":"query","name":"search","required":false,"schema":{"type":"string"}}]},"post":{"operationId":"createClient","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}}},"tags":["Client"],"security":[{"firebase_jwt":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClientRequest"}}}}}},"/clients/{clientId}":{"get":{"operationId":"getClientById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}}},"tags":["Client"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"clientId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"put":{"operationId":"updateClientById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}}},"tags":["Client"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"clientId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientRequest"}}}}},"delete":{"operationId":"deleteClientById","responses":{"204":{"description":"No content"}},"tags":["Client"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"clientId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/cameras":{"get":{"operationId":"listCameras","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Camera_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Returns a list of cameras.","tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to serialNumber)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/CamerasOrderBy"}},{"description":"The type of Camera","in":"query","name":"systemType","required":false,"schema":{"$ref":"#/components/schemas/SupportedSystems"}},{"description":"The status of the Camera","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/CameraStatus"}},{"description":"Search term for Serial Number","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ListCamerasQueryExpandable"}}}]},"post":{"operationId":"createCamera","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Camera"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCameraRequest"}}}}}},"/cameras/{cameraId}":{"get":{"operationId":"getCameraById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Camera"},{"$ref":"#/components/schemas/Partial_EventSubscription_"}]}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"subscribe","required":false,"schema":{"default":false,"type":"boolean"}}]},"put":{"operationId":"updateCameraById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Camera"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCameraRequest"}}}}},"delete":{"operationId":"deleteCameraById","responses":{"204":{"description":"No content"}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/cameras/register":{"post":{"operationId":"registerCamera","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Camera"}}}}},"description":"Called when a User registers their camera using the serial number","tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterCameraRequest"}}}}}},"/cameras/{cameraId}/unregister":{"put":{"operationId":"unregisterCamera","responses":{"204":{"description":"No content"}},"description":"Called when a User de-registers their camera, this will free up the Camera to be registered elsewhere","tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/cameras/register-provisioning":{"post":{"operationId":"registerProvisioningCamera","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Camera"}}}}},"description":"Called when a User registers their camera using a provisioning code","tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterProvisioningCameraRequest"}}}}}},"/cameras/provision":{"post":{"operationId":"provisionCamera","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionCameraResponse"}}}}},"description":"Called from SOLO / non-gc devices to provision them.\nThis API is then repeatedly called by the device while waiting for the user to complete provisioning the Camera in the UI.","tags":["Camera"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionCameraRequest"}}}}}},"/cameras/{cameraId}/shadow":{"get":{"operationId":"getCameraByIdShadow","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Shadow"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"post":{"operationId":"updateCameraByIdShadow","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Shadow"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDeviceShadowRequest"}}}}}},"/cameras/{cameraId}/stats":{"get":{"operationId":"listCameraByIdStats","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_CameraStat_"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"query","name":"startDate","required":false,"schema":{"format":"date-time","type":"string"}},{"in":"query","name":"endDate","required":false,"schema":{"format":"date-time","type":"string"}}]},"post":{"operationId":"createCameraStatById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraStat"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCameraStatRequest"}}}}}},"/cameras/{cameraId}/stats/latest":{"get":{"operationId":"getCameraByIdStatLatest","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraStat"}}}},"204":{"description":""}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/cameras/{cameraId}/tunnel":{"get":{"operationId":"getCameraByIdTunnelToken","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraTunnelToken"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"api_key":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/cameras/{cameraId}/api-key":{"post":{"operationId":"refreshCameraByIdApiKey","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pick_User.apiKey_"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/cameras/{cameraId}/command":{"post":{"operationId":"createCameraByIdCommand","responses":{"202":{"description":""},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Sends a command to the device linked to the given camera.","tags":["Camera"],"security":[{"firebase_jwt":[]}],"parameters":[{"description":"The ID of the camera","in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"description":"The command to send","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCameraCommandRequest","description":"The command to send"}}}}}},"/camera/{cameraId}/logs":{"post":{"operationId":"createCameraLogById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Log"}}}}},"tags":["Camera"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLogRequest"}}}}}},"/cameras/{cameraId}/auth/create-token":{"get":{"operationId":"createCameraToken","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraTokenAccessResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Create a custom token for signing in to a Camera using firebase\nhttps://firebase.google.com/docs/auth/web/custom-auth#authenticate-with-firebase\n\nReturns the token, as well as related urls","tags":["Camera"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/cameras/{cameraId}/auth/verify-access":{"get":{"operationId":"verifyCameraAccess","responses":{"202":{"description":""},"204":{"description":"No content"}},"tags":["Camera"],"security":[{"firebase_jwt":[]}],"parameters":[{"in":"path","name":"cameraId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/brands/detect":{"get":{"operationId":"detectBrand","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Partial_Brand_"}}}}},"tags":["Brand"],"security":[],"parameters":[{"in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}}]}},"/brands":{"get":{"operationId":"listBrands","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_Brand_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Brand"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to name)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/BrandsOrderBy"}},{"description":"Search term for Name","in":"query","name":"search","required":false,"schema":{"type":"string"}}]},"post":{"operationId":"createBrand","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}}},"tags":["Brand"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandRequest"}}}}}},"/brands/{id}":{"get":{"operationId":"getBrandById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}}},"tags":["Brand"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"put":{"operationId":"updateBrandById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}}},"tags":["Brand"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandRequest"}}}}},"delete":{"operationId":"deleteBrandById","responses":{"204":{"description":"No content"}},"tags":["Brand"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]}},"/batch-download":{"get":{"operationId":"listBatchDownloads","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceList_BatchDownload_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"description":"Returns a list of batch downloads.","tags":["Batch Download"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"description":"Must be a valid Mongo ObjectId","in":"query","name":"organisation","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MongoId"}}},{"description":"Page number of results","in":"query","name":"page","required":false,"schema":{"default":1,"format":"int32","type":"integer","minimum":1}},{"description":"Number of results per page","in":"query","name":"limit","required":false,"schema":{"default":25,"format":"int32","type":"integer","minimum":1}},{"description":"Sort order of results (defaults to DESC)","in":"query","name":"sort","required":false,"schema":{"$ref":"#/components/schemas/SortOrder"}},{"description":"Field to order the results by (defaults to createdAt)","in":"query","name":"orderBy","required":false,"schema":{"$ref":"#/components/schemas/BatchDownloadsOrderBy"}},{"description":"Must be a valid Mongo ObjectId","in":"query","name":"view","required":false,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Status of the Sequence","in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/BatchDownloadStatus"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/BatchDownloadExpandable"}}}]},"post":{"operationId":"createBatchDownload","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDownload"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}}},"tags":["Batch Download"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBatchDownloadRequest"}}}}}},"/batch-download/{batchDownloadId}":{"delete":{"operationId":"deleteBatchDownloadById","responses":{"204":{"description":"No content"}},"tags":["Batch Download"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"batchDownloadId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}}]},"get":{"operationId":"getBatchDownloadById","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDownload"}}}}},"tags":["Batch Download"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"batchDownloadId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"description":"Resources to expand in the response","in":"query","name":"expand","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/BatchDownloadExpandable"}}}]}},"/batch-download/{batchDownloadId}/zip/{zipIndex}":{"get":{"operationId":"getBatchDownloadByIdZipByIndex","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchZip"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_ResourceMissing_"}}}}},"tags":["Batch Download"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"batchDownloadId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"path","name":"zipIndex","required":true,"schema":{"format":"double","type":"number"}},{"in":"query","name":"include","required":false,"schema":{"type":"string","enum":["fileUrls"]}}]},"put":{"operationId":"updateBatchDownloadByIdZipByIndex","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchZip"}}}}},"tags":["Batch Download"],"security":[{"firebase_jwt":[]},{"APIKeyHeader":[]}],"parameters":[{"in":"path","name":"batchDownloadId","required":true,"schema":{"$ref":"#/components/schemas/MongoId"}},{"in":"path","name":"zipIndex","required":true,"schema":{"format":"double","type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBatchZipRequest"}}}}}},"/auth/login":{"post":{"operationId":"loginWithEmailAndPassword","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAuthSuccessResponse"},"examples":{"Example 1":{"value":{"uid":"JDk1y02GcD659p5amXYV9Z0BoJBJ","email":"joe.bloggs@example.com","refreshToken":"c29tZXJlYWxseWxvbmdyZWZyZXNodG9rZW4==","accessToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","expirationTime":1674674672944}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_BadRequest_"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse_Unauthorised_"}}}}},"description":"Authenticates the user with Firebase auth using email and password.\nReturns an access token as a Firebase JWT for authenticating future requests.","tags":["Auth"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPasswordLoginRequest"}}}}}},"/auth/reset-password":{"post":{"operationId":"resetPassword","responses":{"204":{"description":"No content"}},"tags":["Auth"],"security":[],"parameters":[{"in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}}}}},"/auth/magic-link":{"post":{"operationId":"sendMagicLink","responses":{"204":{"description":"No content"}},"tags":["Auth"],"security":[],"parameters":[{"in":"header","name":"x-brand-domain","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequest"}}}}}}},"servers":[{"url":"/"}]}