กล้องวงจรปิด
แพลตฟอร์มหลักcctv_cameras_readกล้องวงจรปิดA facility's CCTV cameras and edge processors, and the camera catalogue. list shows AI edge processors with the network (RTSP/HTTP) cameras each one records, and cloud cameras; get shows one; status says which are online; snapshot returns a camera's latest still; capabilities shows a camera's image settings and motion mask. catalog_search and catalog_templates look up stream paths in the public camera database (the same data as "Find my camera" in Device Management). test_stream asks an edge processor to probe a stream before you add it. Stream credentials show as : unless includeCredentials is set; workflow steps and Agent devices never get stream addresses or IP addresses. Live video is never available here. To add, change, restart or remove cameras use cctv_cameras_write; for edge processors use cctv_edge_processors_write.
Actions:
- list: List cameras and edge processors. Edge processors (online means a heartbeat in the last 5 minutes, provisioning, system updates) with their cameras nested (stream status, offlineReason, IP, codec, recording and AI settings), then cloud cameras. Use it to pick an online edge processor or find a camera deviceUuid.
- get: Get a camera or edge processor. One camera or edge processor as list shows it, with its status (online, offline, pending or provisioning), why it's offline, when it was last seen, and a link to its recordings. Needs deviceUuid.
- status: Check which cameras are online. Every camera and edge processor with its status: online, offline (reason edge_processor_offline, not_streaming or no_heartbeat), pending (just added) or provisioning, plus counts and a one-line summary for messages. Narrow it with cameraIds or location; offlineOnly lists only what is offline (counts still cover everything chosen). A network camera is offline while its edge processor is.
- snapshot: Get a camera's latest still. The camera's latest still as an image, with capturedAt, a frameId and an imageUrl that shows its latest timelapse frame for 24 hours. Listed in Recent Access with who took it. Workflow steps and Agent devices need 'Workflows can share footage and identify people' turned on. Needs cameraId.
- capabilities: A camera's image settings and motion mask. A cloud camera reports its image settings (brightness, contrast and the like) live, within about 10 seconds; network cameras take theirs from the camera itself, so imageSettings is null. motionMask lists the areas where motion is ignored, as polygons with x and y from 0 to 1. Change them with cctv_cameras_write save_capabilities and save_mask. Needs deviceUuid.
- catalog_search: Search the camera catalogue. Find a manufacturer, series or model by the name or model number on the camera label, e.g. "CAM-0001". Each match has a manufacturer slug for catalog_templates and sometimes a templateId. Needs query.
- catalog_templates: A manufacturer's stream templates. Default port and username, stream templates and models. Prefer the template matching the search hit templateId, else the isDefault one. Templates look like rtsp://{username}:{password}@{ip}:{port}/Streaming/Channels/{channel}01; pass them as stream parts (mainStreamProtocol, camera IP, port, mainStreamPath with {channel} filled in, usually 1) so credentials are encoded server-side. Needs manufacturer.
- test_stream: Test a camera stream. The edge processor pings the camera, checks the port and probes the stream, then returns the outcome, codec, resolution, fps, logs and a snapshot image. Takes up to about 35 seconds. Run it for each camera before adding it; on failure the logs show the cause (wrong path or credentials, closed port, unreachable IP). Needs edgeProcessorUUID.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "list" | "get" | "status" | "snapshot" | "capabilities" | "catalog_search" | "catalog_templates" | "test_stream" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
includeCredentials | boolean | Return stream URLs with their username and password. Off by default (credentials show as ***:***). Only set this when the user explicitly needs the credentials; it needs CCTV access at the facility. (list, get) |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
deviceUuid | string | Camera or edge processor deviceUuid from list or status (get, capabilities) |
cameraIds | array | Camera ids (deviceUuid) from cctv_cameras_read list or status (status) |
location | string | A camera location (the camera's group, for example Reception) (status) |
offlineOnly | boolean | List only cameras and edge processors that are offline (status) |
cameraId | string | Camera id (deviceUuid) from cctv_cameras_read list or status (snapshot) |
query | string | ผู้ผลิต ซีรีส์ หรือรุ่นที่จะค้นหา (catalog_search) |
limit | integer | จำนวนผลลัพธ์สูงสุด (ค่าเริ่มต้น 10) (catalog_search) |
manufacturer | string | slug ของผู้ผลิตจาก catalog_search (catalog_templates) |
edgeProcessorUUID | string | deviceUuid ของ Edge Processor ที่ออนไลน์อยู่ที่สถานที่ซึ่งจะดึงสตรีม (test_stream) |
streamUrl | string | URL สตรีมแบบเต็ม เช่น rtsp://user:pass@192.0.2.20:554/stream1 (rtsp, rtsps, http หรือ https) ใช้ค่านี้ หรือ stream อย่างใดอย่างหนึ่ง (test_stream) |
stream | object | URL สตรีมแบบแยกส่วน ซึ่งประกอบที่ฝั่งเซิร์ฟเวอร์โดยเข้ารหัสข้อมูลรับรองแบบ URL ใช้ค่านี้ หรือ streamUrl อย่างใดอย่างหนึ่ง รับเส้นทางจาก catalog_templates ของ cctv_cameras_read (test_stream) |
cctv_cameras_writeกล้องวงจรปิดChanges the cameras at a facility. add puts network (RTSP/HTTP) IP cameras on an AI edge processor, which then pulls each stream for recording and AI (people tracking, motion). update changes a network or cloud camera. restart restarts a camera or edge processor that stopped responding. save_capabilities and save_mask change a camera's image settings and motion mask. remove takes a camera off the facility; its recordings stay until the retention period ends. Find cameras and edge processors with cctv_cameras_read list, and test each stream with cctv_cameras_read test_stream before adding it.
Actions:
- add: Add network cameras. Up to 25 per call. Each camera needs deviceName, cameraGroup (its location) and streamUrl or stream parts. Defaults: motion recording, people tracking on, 6 fps AI. All of the edge processor's streams reload once. Needs edgeProcessorUUID, cameras. Asks for confirmation.
- update: Change a camera. Only the settings you pass change. Network cameras also take peopleTracking, aiFramerate, transcription, a new stream (streamUrl or stream) and edgeProcessorUUID (move to another online edge processor); a new stream or edge processor asks for confirmation. Cloud cameras also take resolution. Needs deviceUuid. May ask for confirmation.
- remove: Remove a camera. A network camera is taken off its edge processor, whose other streams reload once. A cloud camera is decommissioned: unpaired so the hardware can be paired elsewhere. To replace an edge processor and keep its cameras, use cctv_edge_processors_write transfer_cameras. Needs deviceUuid. Asks for confirmation.
- restart: Restart a camera or edge processor. For a camera or edge processor that stopped responding. A cloud camera reboots. For a network camera, the edge processor that records it restarts, with all its cameras. An offline device may not get the restart (wasOnline); check cctv_cameras_read status a few minutes later. A workflow step restarts once per run. Needs deviceUuid. Asks for confirmation.
- save_capabilities: Change a camera's image settings. Cloud cameras only: send the settings to change as {
: }, using the ids and allowed values from cctv_cameras_read capabilities. The camera's recorder restarts to apply them, so a few seconds aren't recorded. Needs deviceUuid, settings. Asks for confirmation. - save_mask: Change a camera's motion mask. Replaces the areas where the camera ignores motion (an empty list clears them). Motion there no longer starts a recording or a 'Motion recorded' workflow. Read the current mask with cctv_cameras_read capabilities. Needs deviceUuid, polygons. Asks for confirmation.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "add" | "update" | "remove" | "restart" | "save_capabilities" | "save_mask" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
edgeProcessorUUID | string | deviceUuid ของ Edge Processor ที่ออนไลน์อยู่ที่สถานที่ (add, update) |
cameras | array | กล้องที่จะเพิ่ม (add) |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
deviceUuid | string | Camera deviceUuid from cctv_cameras_read list (network cameras start with ep_) (update, remove, restart, save_capabilities, save_mask) |
deviceName | string | ชื่อกล้อง (update) |
cameraGroup | string | ตำแหน่ง เช่น "Reception" (update) |
recordingEnabled | boolean | บันทึกวิดีโอจากกล้องนี้ (update) |
recordingMode | "motion" | "continuous" | บันทึกเมื่อมีการเคลื่อนไหวหรือบันทึกต่อเนื่อง (update) |
motionThreshold | integer | ความไวในการตรวจจับการเคลื่อนไหว ค่าต่ำกว่าไวกว่า (update) |
resolution | "1920x1080" | "1280x720" | "640x360" | ความละเอียดในการบันทึก (กล้องคลาวด์) (update) |
peopleTracking | boolean | ติดตามผู้คนด้วย AI (กล้องเครือข่าย) (update) |
aiFramerate | integer | จำนวนเฟรมต่อวินาทีที่ AI วิเคราะห์ (กล้องเครือข่าย) (update) |
transcriptionEnabled | boolean | ถอดความเสียง (กล้องเครือข่าย) (update) |
transcriptionPriority | "0" | "3" | "5" | ลำดับความสำคัญของการถอดความ: 0 ต่ำ, 3 ปานกลาง, 5 สูง (update) |
streamUrl | string | URL สตรีมแบบเต็ม เช่น rtsp://user:pass@192.0.2.20:554/stream1 (rtsp, rtsps, http หรือ https) ใช้ค่านี้ หรือ stream อย่างใดอย่างหนึ่ง (update) |
stream | object | URL สตรีมแบบแยกส่วน ซึ่งประกอบที่ฝั่งเซิร์ฟเวอร์โดยเข้ารหัสข้อมูลรับรองแบบ URL ใช้ค่านี้ หรือ streamUrl อย่างใดอย่างหนึ่ง รับเส้นทางจาก catalog_templates ของ cctv_cameras_read (update) |
settings | object | Image settings to change, for example { "brightness": 60 } (save_capabilities) |
polygons | array | Areas where motion is ignored, each a list of 3 to 50 corners { x, y } as fractions of the frame (0 is the left or top edge, 1 the right or bottom). An empty list clears the mask. (save_mask) |
confirm | boolean | ตั้งค่าเฉพาะหลังจากผู้ใช้ยืนยันตัวอย่างที่ได้จากการเรียกครั้งแรกแล้วเท่านั้น |
cctv_edge_processors_writeกล้องวงจรปิดManages AI edge processors, the on-site devices that record network cameras and run their AI. Find their deviceUuid with cctv_cameras_read list, and check whether they are online with cctv_cameras_read status. To restart one use cctv_cameras_write restart; to move one (with its cameras) to another facility use device_inventory_write move.
Actions:
- pair: Pair a new edge processor. Adds an edge processor to the facility by the serial number on its label. It must be powered and online. Needs deviceSerialNumber.
- update: Rename or relocate an edge processor. Needs deviceUuid.
- transfer_cameras: Move all cameras to another edge processor. Moves every network camera from deviceUuid to another online edge processor at the facility (toUUID), e.g. when replacing failed hardware. Needs deviceUuid, toUUID. Asks for confirmation.
- decommission: Decommission an edge processor. Unpairs it so the facility can be deleted or the hardware reused. Refused while it still has cameras unless removeCameras is true. Needs deviceUuid. Asks for confirmation.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "pair" | "update" | "transfer_cameras" | "decommission" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
deviceSerialNumber | string | หมายเลขซีเรียลที่จะจับคู่ (pair) |
deviceName | string | ชื่อ Edge Processor (pair, update) |
cameraGroup | string | ตำแหน่ง เช่น "Comms Room" (pair, update) |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
deviceUuid | string | deviceUuid ของ Edge Processor จาก list ของ cctv_cameras_read (update, transfer_cameras, decommission) |
toUUID | string | deviceUuid ของ Edge Processor ที่จะย้ายกล้องไป (transfer_cameras) |
removeCameras | boolean | นำกล้องเครือข่ายของอุปกรณ์นี้ออกด้วย (decommission) |
confirm | boolean | ตั้งค่าเฉพาะหลังจากผู้ใช้ยืนยันตัวอย่างที่ได้จากการเรียกครั้งแรกแล้วเท่านั้น |
cctv_recordings_readกล้องวงจรปิดA facility's CCTV recordings: list and get them, see when each camera recorded (timeline), count them (summary), and look at a frame from one. Recordings are referred to by recordingId (from list, a CCTV trigger or cctv_search_anything); times are ISO 8601. Each recording has a link that opens it in the CCTV app. Videos themselves never leave the app; frame returns a still instead. To keep, release or label recordings use cctv_recordings_write.
Actions:
- list: List recordings. Newest first, with camera, start and end, status (uploading, available, keeping, kept), who kept it and its note. Narrow by from and to, cameraIds, location or kept; page with cursor.
- get: Get a recording. Needs recordingId.
- timeline: When cameras recorded. Per camera between from and to (at most 7 days): the time ranges it recorded, how many recordings and how many are kept. Use it to find gaps or busy periods. Needs from.
- summary: Count recordings. How many recordings the facility has (available, kept, uploading) and the oldest and newest, as the Recordings page counts them (updated hourly).
- filters: What recordings can be filtered by. The cameras and locations that have recordings, and the statuses list takes.
- frame: Look at a frame. A still from a recording nearest at (default its middle; within a minute, from the camera's timelapse), or a frame by frameId. Returns the image, its frameId and an imageUrl that shows it for 24 hours. Listed in Recent Access with who looked. Workflow steps and Agent devices need 'Workflows can share footage and identify people' turned on.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "list" | "get" | "timeline" | "summary" | "filters" | "frame" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
from | string | Recordings that started at or after this time (list, timeline) |
to | string | and before this time (default now) (list, timeline) |
cameraIds | array | Camera ids (deviceUuid) from cctv_cameras_read list or status (list, timeline) |
location | string | A camera location (the camera's group, for example Reception) (list) |
kept | boolean | true lists only kept recordings, false only the others (list) |
limit | integer | จำนวนรายการต่อหน้า (ค่าเริ่มต้น 25 สูงสุด 100) (list) |
cursor | string | nextCursor จากหน้าก่อนหน้า (list) |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
recordingId | string | recordingId from cctv_recordings_read list, a CCTV trigger or cctv_search_anything (get, frame) |
at | string | A moment within the recording (frame) |
frameId | string | A frameId instead of a recording (frame) |
cctv_recordings_writeกล้องวงจรปิดKeeps CCTV recordings so the facility's recording retention never deletes them, changes their note or name, and releases them again. Keeping records who kept it (a person, the AI Agent or the workflow by name) and is listed in Recent Access. Find recordings with cctv_recordings_read list, a CCTV trigger or cctv_search_anything. Workflow steps keep and label recordings once per run; only a person can release one.
Actions:
- keep: Keep recordings. Up to 50 recordings by recordingId, with an optional note. Each one reports kept, already_kept, not_uploaded (still uploading; try again later) or failed. Needs recordingIds.
- keep_range: Keep every recording in a time range. Keeps every recording that overlaps from to to (at most 24 hours) on cameraIds, or on every camera when none are given. Use it for an incident: a few minutes either side of when it happened. Needs from.
- update: Change a recording's note or name. Pass note, name or both; null or an empty string clears one. Needs recordingId.
- release: Release a kept recording. Undoes keep: the recording is deleted when the facility's recording retention ends, like any other. Only a person can release one, from AI chat or the CCTV app. Needs recordingId. May ask for confirmation.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "keep" | "keep_range" | "update" | "release" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
recordingIds | array | recordingIds from cctv_recordings_read list, a CCTV trigger or cctv_search_anything (keep) |
note | stringnull | A note shown with the recording, for example why it was kept; null or empty clears it (keep, keep_range, update) |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
from | string | An ISO date and time (keep_range) |
to | string | Default now (keep_range) |
cameraIds | array | Camera ids (deviceUuid) from cctv_cameras_read list or status (keep_range) |
recordingId | string | recordingId from cctv_recordings_read list, a CCTV trigger or cctv_search_anything (update, release) |
name | stringnull | A name for the recording (update) |
confirm | boolean | ตั้งค่าเฉพาะหลังจากผู้ใช้ยืนยันตัวอย่างที่ได้จากการเรียกครั้งแรกแล้วเท่านั้น |
cctv_search_anythingกล้องวงจรปิดSearches a facility's indexed CCTV media (person crops, recording frames and timelapse frames) by meaning, as the CCTV page does. Returns one list of hits, newest first.
Ask in any of four ways; text with an image or seed narrows (the words filter, the picture ranks):
- Text: query (e.g. "person in a red jacket near reception this morning") plus timezone. Time, zone and camera phrases become filters (smartQuery).
- Image: imageBase64 and imageMimeType.
- More like an earlier hit: copy its results[N].seed into seedIndex, seedRef and seedFrameId (or seedOffsetMs).
- Filters: from and to (epoch ms), zoneIds, cameraNames or cameraIds.
Scores order hits. They aren't percentages, and text and image scores can't be compared. perIndex.*.textGated explains an empty list ("matched the picture, not the words"). With an image or a person seed, matching people come first, in faceMatches (insights_people_read get).
Each hit has a seed, a 1-based resultIndex and captureTimeMs. Recording hits carry a recordingId (cctv_recordings_read get), timelapse hits a frameId (cctv_recordings_read frame). Nothing is searchable until an edge processor has built the facility's indexes.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
facilityId | string | สถานที่ที่จะค้นหา |
timezone | string | เขตเวลา IANA สำหรับแยกวิเคราะห์เวลาใน smart query (เช่น Pacific/Auckland) จำเป็นเมื่อ query มีวลีเกี่ยวกับวันที่หรือเวลา |
query | string | คำอธิบายด้วยภาษาธรรมชาติและ/หรือวลีตัวกรอง เมื่อใช้ร่วมกับภาพหรือ seed ข้อความจะใช้คัดกรองผลลัพธ์ (ข้อความคัดกรอง ภาพจัดอันดับ) |
smartQuery | boolean | แยกวลีวันที่/โซน/กล้องออกจาก query เป็นตัวกรองก่อนค้นหา (ค่าเริ่มต้น true) |
imageBase64 | string | ไบต์ของภาพที่แนบในรูปแบบ base64 (ไม่มีคำนำหน้า data: URL) ส่งไบต์ของไฟล์ต้นฉบับ ห้ามปรับขนาดหรือเข้ารหัสใหม่ |
imageMimeType | string | ประเภท MIME ของ imageBase64 ต้องเป็น image/* (เช่น image/jpeg, image/png) |
seedIndex | "person-crops" | "recording-frames" | "timelapse-frames" | Search for more like an earlier hit: the index from its results[N].seed. Use with seedRef (and seedFrameId for recording frames). The tool keeps no state, so copy the seed back. |
seedRef | string | The ref from results[N].seed of an earlier search at this facility. |
seedFrameId | string | The frameId from results[N].seed, for recording-frames seeds. |
seedOffsetMs | integer | The offsetMs from results[N].seed, when it has no frameId. |
from | integer | เวลาที่บันทึกภาพ รวมค่านี้ เป็น epoch ms |
to | integer | เวลาที่บันทึกภาพ ไม่รวมค่านี้ เป็น epoch ms |
zoneIds | array | ID ของโซนการเข้าถึง โซนหลักจะรวมโซนย่อยด้วย |
cameraNames | array | ชื่อที่แสดงของกล้องที่จะใช้จำกัดผลลัพธ์ |
cameraIds | array | deviceUuid ของกล้องจาก list ของ cctv_cameras_read เมื่อระบุแล้วจะข้ามการแปลงโซน/ชื่อ |
limit | number | ขีดจำกัดต่อดัชนี (ค่าเริ่มต้น 50 สูงสุด 100) |
sort | "date" | "score" | date (ค่าเริ่มต้น) = เรียงตามลำดับเวลาแบบ All Results; score = ตามความเกี่ยวข้อง โดยไม่แยกส่วน Top Results |
includeFaceMatches | boolean | เมื่อใช้ภาพ หรือ seed ที่เป็นภาพครอปบุคคลหรือ timelapse ให้ค้นหาบุคคลด้วยใบหน้าด้วย (ค่าเริ่มต้น true) บุคคลที่ตรงกันจะแสดงก่อนในผลลัพธ์และอยู่ใน faceMatches พร้อม id, name, status และ similarity |
cctv_settings_readกล้องวงจรปิดHow long the facility keeps recordings, timelapse frames and analysis, whether enhanced analysis is on, recording counts, the Live Views everyone at the facility shares, and whether "Workflows can share footage and identify people" is on. To change them use cctv_settings_write.
Actions:
- settings: Read the CCTV settings. recordingRetentionDays, timelapseRetentionMonths and analysisRetentionMonths ("all" means kept forever), enhancedAnalysis, and workflowControl.
- storage: Recording counts and retention. How many recordings the facility has (available, kept, still uploading), the oldest and newest, and how long each kind of footage is kept.
- live_views: List shared Live Views. The camera walls everyone at the facility shares, each with its cameras by id and name. A Live View can be shown on a display screen.
- workflow_control: Can workflows share footage and identify people?. Whether "Workflows can share footage and identify people" is on, and what it allows workflow steps and Agent devices to do.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "settings" | "storage" | "live_views" | "workflow_control" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
cctv_settings_writeกล้องวงจรปิดChanges how long the facility keeps recordings, timelapse frames and analysis, turns enhanced analysis on or off, makes, changes and deletes the Live Views everyone at the facility shares, and turns "Workflows can share footage and identify people" on or off. Every change asks for confirmation except saving a Live View. Read the current values with cctv_settings_read. Workflow steps and Agent devices can't change CCTV settings.
Actions:
- save_settings: Change CCTV settings. Pass only the settings to change. Shortening a retention deletes older footage (kept recordings stay). May ask for confirmation.
- save_live_view: Make or change a shared Live View. Without viewId, makes a Live View (name and cameraIds required). With viewId, renames it or replaces its cameras. At most 36 cameras.
- delete_live_view: Delete a shared Live View. Needs viewId. Asks for confirmation.
- update_workflow_control: Turn "Workflows can share footage and identify people" on or off. Only a person can change it, from AI chat or the CCTV app, and it always asks for confirmation. While off, workflow steps that get footage images, make share links or identify people are shown but can't be turned on. Needs enabled. Asks for confirmation.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "save_settings" | "save_live_view" | "delete_live_view" | "update_workflow_control" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
recordingRetentionDays | integer | 1 to 365 (save_settings) |
timelapseRetentionMonths | integer | 1 to 60 (save_settings) |
analysisRetentionMonths | integer | 1 to 60 (save_settings) |
enhancedAnalysis | boolean | Analyse footage in more detail, for better search results (save_settings) |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
viewId | string | viewId from cctv_settings_read live_views (save_live_view, delete_live_view) |
name | string | (save_live_view) |
cameraIds | array | Camera ids (deviceUuid) from cctv_cameras_read list or status (save_live_view) |
enabled | boolean | (update_workflow_control) |
confirm | boolean | ตั้งค่าเฉพาะหลังจากผู้ใช้ยืนยันตัวอย่างที่ได้จากการเรียกครั้งแรกแล้วเท่านั้น |
cctv_sharing_readกล้องวงจรปิดShare History and Recent Access for a facility's CCTV. links lists the share links that let someone outside the organisation watch the facility's recordings, with their status, expiry, views and who made them (never the link itself). access_log lists who viewed, downloaded, kept, released, edited or searched footage, newest first, including workflow steps and the AI Agent by name. People are named, never shown by email. To make or revoke a link use cctv_sharing_write.
Actions:
- links: List share links. Newest first; status narrows to active, expired or revoked links. Page with cursor.
- access_log: List Recent Access. Each entry has when, the action, who (a person's name, a workflow by name, or the AI Agent), the recordingId when it was about a recording, and what was accessed. Entries by organisation admins show only to callers with organisation-wide CCTV access, as in the app. Page with cursor.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "links" | "access_log" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
status | "active" | "expired" | "revoked" | Only links with this status (links) |
limit | integer | จำนวนรายการต่อหน้า (ค่าเริ่มต้น 25 สูงสุด 100) |
cursor | string | nextCursor จากหน้าก่อนหน้า |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
accessAction | "viewed" | "downloaded" | "edited" | "kept" | "released" | "searched" | "door_unlocked" | Only entries for this action (access_log) |
cctv_sharing_writeกล้องวงจรปิดShare links let someone outside the organisation (an insurer, the police, a contractor) watch a facility's CCTV recordings in the browser until the link expires. create_link makes one and returns its url, the only time a url is returned; people can make links for up to 7 days, workflow steps and Agent devices for up to 24 hours, and only while "Workflows can share footage and identify people" is on in CCTV settings. revoke_link stops a link working within a minute, and restore makes a revoked one work again. Every link and who made it shows in Share History (cctv_sharing_read links).
Actions:
- create_link: Make a share link. Returns { link, url, expiresAt }. Send the url to whoever needs to watch the footage. expiresInHours defaults to 24. Asks for confirmation.
- revoke_link: Revoke a share link. Anyone watching with the link is signed out within a minute. Revoking a revoked link changes nothing (revoked: false). Needs linkId.
- restore: Restore a revoked share link. Makes a revoked link work again until it expires. An expired link can't be restored; make a new one instead. Needs linkId. May ask for confirmation.
- update: Change a share link's description. Needs linkId, description.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "create_link" | "revoke_link" | "restore" | "update" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
description | string | What the link is for, shown in Share History, for example "For the insurer" (create_link, update) |
expiresInHours | number | How long the link works, in hours (default 24; at most 24 for workflow steps and Agent devices) (create_link) |
facilityId | string | ID ของสถานที่ ไม่จำเป็นต้องระบุหากหมายถึงสถานที่ที่เชื่อมต่ออยู่ |
linkId | string | linkId from cctv_sharing_read links, cctv_sharing_write create_link or a Footage accessed trigger (revoke_link, restore, update) |
confirm | boolean | ตั้งค่าเฉพาะหลังจากผู้ใช้ยืนยันตัวอย่างที่ได้จากการเรียกครั้งแรกแล้วเท่านั้น |