{"openapi":"3.0.1","info":{"title":"jqvision 视频 AI 推理开放平台 API","description":"API-First / API-Only：平台全部能力以 OpenAPI 交付，无业务界面兜底。\n\n第三方调用需在请求头携带 X-App-Key / X-Timestamp / X-Nonce / X-Signature；\n待签串 = method + LF + path + LF + timestamp + LF + nonce + LF + sha256Hex(body)，\nsignature = Base64(HMAC-SHA256(待签串, appSecret))；时间窗 ±5 分钟，nonce 10 分钟内不可重放。","version":"v1"},"servers":[{"url":"https://vision.example.com","description":"生产"},{"url":"https://sandbox.vision.example.com","description":"沙箱"}],"security":[{"appKey":[],"timestamp":[],"nonce":[],"signature":[]}],"paths":{"/openapi/v1/tasks":{"get":{"tags":["open-api-task-controller"],"operationId":"list","parameters":[{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListTaskBrief"}}}}}},"post":{"tags":["open-api-task-controller"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenApiTaskReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTaskBrief"}}}}}}},"/openapi/v1/tasks/{id}/stop":{"post":{"tags":["open-api-task-controller"],"operationId":"stop","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTaskBrief"}}}}}}},"/openapi/v1/tasks/{id}/start":{"post":{"tags":["open-api-task-controller"],"operationId":"start","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTaskBrief"}}}}}}},"/openapi/v1/subscriptions":{"get":{"tags":["open-api-subscription-controller"],"operationId":"list_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListSubscriptionResp"}}}}}},"post":{"tags":["open-api-subscription-controller"],"operationId":"create_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultSubscriptionResp"}}}}}}},"/openapi/v1/subscriptions/{id}/deliveries/{deliveryId}/replay":{"post":{"tags":["open-api-subscription-controller"],"operationId":"replay","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultDeliveryView"}}}}}}},"/openapi/v1/detect":{"post":{"tags":["open-api-detect-controller"],"operationId":"detect","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultDetectResp"}}}}}}},"/ingest/v1/{tenantId}/alarm-sources/{code}":{"post":{"tags":["alarm-source-ingest-controller"],"operationId":"report","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Source-Secret","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultReportOutcome"}}}}}}},"/api/v1/zones":{"get":{"tags":["alarm-zone-controller"],"operationId":"list_2","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAlarmZone"}}}}}},"post":{"tags":["alarm-zone-controller"],"operationId":"create_2","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/zones/{id}/disarm":{"post":{"tags":["alarm-zone-controller"],"operationId":"disarm","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"operator","in":"query","required":false,"schema":{"type":"string"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultArmLog"}}}}}}},"/api/v1/zones/{id}/bypass":{"post":{"tags":["alarm-zone-controller"],"operationId":"bypass","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"operator","in":"query","required":false,"schema":{"type":"string"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultArmLog"}}}}}}},"/api/v1/zones/{id}/arm":{"post":{"tags":["alarm-zone-controller"],"operationId":"arm","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"operator","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultArmLog"}}}}}}},"/api/v1/tickets":{"get":{"tags":["ticket-controller"],"operationId":"list_3","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListMapStringObject"}}}}}},"post":{"tags":["ticket-controller"],"operationId":"create_3","parameters":[{"name":"X-User-Id","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/tickets/{id}/reply":{"post":{"tags":["ticket-controller"],"operationId":"reply","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"X-User-Id","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/tickets/{id}/close":{"post":{"tags":["ticket-controller"],"operationId":"close","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/tenants":{"get":{"tags":["tenant-controller"],"operationId":"list_4","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListTenant"}}}}}},"post":{"tags":["tenant-controller"],"operationId":"create_4","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTenantReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTenant"}}}}}}},"/api/v1/tasks":{"get":{"tags":["task-controller"],"operationId":"list_5","parameters":[{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListTask"}}}}}},"post":{"tags":["task-controller"],"operationId":"create_5","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/tasks/{id}/run-once":{"post":{"tags":["task-controller"],"operationId":"runOnce","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTaskDispatch"}}}}}}},"/api/v1/tasks/{id}/enable":{"post":{"tags":["task-controller"],"operationId":"enable","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTask"}}}}}}},"/api/v1/tasks/{id}/disable":{"post":{"tags":["task-controller"],"operationId":"disable","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTask"}}}}}}},"/api/v1/tasks/rois":{"get":{"tags":["task-controller"],"operationId":"listRois","parameters":[{"name":"cameraId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListRoi"}}}}}},"post":{"tags":["task-controller"],"operationId":"addRoi","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoiReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/records":{"get":{"tags":["record-controller"],"operationId":"list_6","parameters":[{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListRecordFile"}}}}}},"post":{"tags":["record-controller"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/records/{id}/lock":{"post":{"tags":["record-controller"],"operationId":"lock","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"locked","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultRecordFile"}}}}}}},"/api/v1/record-plans":{"get":{"tags":["record-plan-controller"],"operationId":"list_7","parameters":[{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListRecordPlan"}}}}}},"post":{"tags":["record-plan-controller"],"operationId":"create_6","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/record-plans/{id}/toggle":{"post":{"tags":["record-plan-controller"],"operationId":"toggle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultRecordPlan"}}}}}}},"/api/v1/openapi/subs":{"get":{"tags":["open-api-admin-controller"],"operationId":"listSubs","parameters":[{"name":"appKey","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListSubView"}}}}}},"post":{"tags":["open-api-admin-controller"],"operationId":"createSub","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCreateSubResp"}}}}}}},"/api/v1/openapi/sign":{"post":{"tags":["open-api-admin-controller"],"operationId":"sign","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultSignResp"}}}}}}},"/api/v1/openapi/apps":{"get":{"tags":["open-api-admin-controller"],"operationId":"listApps","parameters":[{"name":"tenantId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAppView"}}}}}},"post":{"tags":["open-api-admin-controller"],"operationId":"createApp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCreateAppResp"}}}}}}},"/api/v1/openapi/apps/{id}/rotate-secret":{"post":{"tags":["open-api-admin-controller"],"operationId":"rotateSecret","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCreateAppResp"}}}}}}},"/api/v1/openapi/apps/{id}/revoke":{"post":{"tags":["open-api-admin-controller"],"operationId":"revokeApp","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultAppView"}}}}}}},"/api/v1/notifications/read-all":{"post":{"tags":["notification-controller"],"operationId":"readAll","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/nodes/{nodeId}/upgrade":{"post":{"tags":["node-controller"],"operationId":"upgrade","parameters":[{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeUpgradeReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/nodes/{nodeId}/renew":{"post":{"tags":["node-controller"],"operationId":"renew","parameters":[{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Node-Token","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewNodeReq"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultRenewResp"}}}}}}},"/api/v1/nodes/{nodeId}/cmd":{"post":{"tags":["node-controller"],"operationId":"cmd","parameters":[{"name":"nodeId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeCmdReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/nodes/upgrade-batch":{"post":{"tags":["node-controller"],"operationId":"upgradeBatch","parameters":[{"name":"percent","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeUpgradeReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultUpgradeBatchResult"}}}}}}},"/api/v1/nodes/activate":{"post":{"tags":["node-controller"],"operationId":"activate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultActivateResp"}}}}}}},"/api/v1/models":{"get":{"tags":["model-controller"],"operationId":"list_10","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListModelEntry"}}}}}},"post":{"tags":["model-controller"],"operationId":"register_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateModelReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultModelEntry"}}}}}}},"/api/v1/models/{id}/reject":{"post":{"tags":["model-controller"],"operationId":"reject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultModelEntry"}}}}}}},"/api/v1/models/{id}/approve":{"post":{"tags":["model-controller"],"operationId":"approve","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultModelEntry"}}}}}}},"/api/v1/linkage-rules":{"get":{"tags":["linkage-controller"],"operationId":"list_11","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListLinkageRule"}}}}}},"post":{"tags":["linkage-controller"],"operationId":"create_7","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/linkage-rules/{id}/toggle":{"post":{"tags":["linkage-controller"],"operationId":"toggle_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLinkageRule"}}}}}}},"/api/v1/linkage-rules/logs/{id}/ack":{"post":{"tags":["linkage-controller"],"operationId":"ack","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLinkageLog"}}}}}}},"/api/v1/licenses":{"get":{"tags":["license-controller"],"operationId":"list_12","parameters":[{"name":"tenantId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"nodeId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListLicense"}}}}}},"post":{"tags":["license-controller"],"operationId":"issue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueLicenseReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultIssuedLicense"}}}}}}},"/api/v1/licenses/{id}/revoke":{"post":{"tags":["license-controller"],"operationId":"revoke","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLicense"}}}}}}},"/api/v1/licenses/verify":{"post":{"tags":["license-controller"],"operationId":"verify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyLicenseReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultVerifyResult"}}}}}}},"/api/v1/licenses/enforcement/run":{"post":{"tags":["license-controller"],"operationId":"enforce","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultEnforceResult"}}}}}}},"/api/v1/exports":{"get":{"tags":["export-controller"],"operationId":"list_13","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListExportApply"}}}}}},"post":{"tags":["export-controller"],"operationId":"apply","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/exports/{id}/reject":{"post":{"tags":["export-controller"],"operationId":"reject_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"approver","in":"query","required":false,"schema":{"type":"string"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultExportApply"}}}}}}},"/api/v1/exports/{id}/attach":{"post":{"tags":["export-controller"],"operationId":"attach","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"filePath","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultExportApply"}}}}}}},"/api/v1/exports/{id}/approve":{"post":{"tags":["export-controller"],"operationId":"approve_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"approver","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultExportApply"}}}}}}},"/api/v1/developer/registrations/{id}/reject":{"post":{"tags":["developer-registration-controller"],"operationId":"reject_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"X-User-Id","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/developer/registrations/{id}/approve":{"post":{"tags":["developer-registration-controller"],"operationId":"approve_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"X-User-Id","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultApprovalResult"}}}}}}},"/api/v1/developer/register":{"post":{"tags":["developer-registration-controller"],"operationId":"register_2","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/compliance/maintenance/purge-biometrics":{"post":{"tags":["compliance-controller"],"operationId":"purgeBiometrics","parameters":[{"name":"tenantId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"retentionDays","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultInteger"}}}}}}},"/api/v1/compliance/maintenance/archive-audit":{"post":{"tags":["compliance-controller"],"operationId":"archiveAudit","parameters":[{"name":"keepMonths","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":6}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultInteger"}}}}}}},"/api/v1/compliance/deletions":{"post":{"tags":["compliance-controller"],"operationId":"requestDeletion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLong"}}}}}}},"/api/v1/compliance/deletions/{id}/execute":{"post":{"tags":["compliance-controller"],"operationId":"executeDeletion","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"approvedBy","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultString"}}}}}}},"/api/v1/compliance/biometric-consent":{"get":{"tags":["compliance-controller"],"operationId":"hasConsent","parameters":[{"name":"tenantId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subjectRef","in":"query","required":true,"schema":{"type":"string"}},{"name":"purpose","in":"query","required":false,"schema":{"type":"string","default":"REID_SEARCH"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}},"post":{"tags":["compliance-controller"],"operationId":"grant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}},"delete":{"tags":["compliance-controller"],"operationId":"revoke_1","parameters":[{"name":"tenantId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subjectRef","in":"query","required":true,"schema":{"type":"string"}},{"name":"purpose","in":"query","required":false,"schema":{"type":"string","default":"REID_SEARCH"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/cameras":{"get":{"tags":["camera-controller"],"operationId":"list_15","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListCamera"}}}}}},"post":{"tags":["camera-controller"],"operationId":"create_8","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCameraReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCamera"}}}}}}},"/api/v1/cameras/{id}/synctime":{"post":{"tags":["camera-controller"],"operationId":"syncTime","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/cameras/{id}/stream":{"post":{"tags":["camera-controller"],"operationId":"startStream","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringString"}}}}}}},"/api/v1/cameras/{id}/snapshot":{"post":{"tags":["camera-controller"],"operationId":"snapshot","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultString"}}}}}}},"/api/v1/cameras/{id}/reboot":{"post":{"tags":["camera-controller"],"operationId":"reboot","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/cameras/{id}/ptz":{"post":{"tags":["camera-controller"],"operationId":"ptz","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtzReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/cameras/{id}/presets":{"get":{"tags":["camera-controller"],"operationId":"listPresets","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListPtzPreset"}}}}}},"post":{"tags":["camera-controller"],"operationId":"savePreset","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresetReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultPtzPreset"}}}}}}},"/api/v1/cameras/{id}/presets/{no}/goto":{"post":{"tags":["camera-controller"],"operationId":"gotoPreset","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"no","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/cameras/discovery":{"post":{"tags":["camera-controller"],"operationId":"discovery","parameters":[{"name":"cidr","in":"query","required":true,"schema":{"type":"string"}},{"name":"port","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":554}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListString"}}}}}}},"/api/v1/cameras/batch-import":{"post":{"tags":["camera-controller"],"operationId":"batchImport","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateCameraReq"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultInteger"}}}}}}},"/api/v1/auth/password":{"post":{"tags":["auth-controller"],"operationId":"changePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth-controller"],"operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLoginResp"}}}}}}},"/api/v1/alarms":{"get":{"tags":["alarm-controller"],"operationId":"list_17","parameters":[{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"code","in":"query","required":false,"schema":{"type":"string"}},{"name":"level","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"includeSuppressed","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAlarmEvent"}}}}}},"post":{"tags":["alarm-controller"],"operationId":"ingest","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultIngestOutcome"}}}}}}},"/api/v1/alarms/{id}/handle":{"post":{"tags":["alarm-controller"],"operationId":"handle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultAlarmHandle"}}}}}}},"/api/v1/alarms/{id}/confirm":{"post":{"tags":["alarm-controller"],"operationId":"confirmPending","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"operator","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultAlarmEvent"}}}}}}},"/api/v1/alarms/sla":{"get":{"tags":["alarm-controller"],"operationId":"slas","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAlarmSla"}}}}}},"post":{"tags":["alarm-controller"],"operationId":"upsertSla","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultAlarmSla"}}}}}}},"/api/v1/alarm-sources":{"get":{"tags":["alarm-source-controller"],"operationId":"list_18","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListSourceView"}}}}}},"post":{"tags":["alarm-source-controller"],"operationId":"create_9","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCreatedSource"}}}}}}},"/api/v1/alarm-sources/{id}/toggle":{"post":{"tags":["alarm-source-controller"],"operationId":"toggle_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultSourceView"}}}}}}},"/api/v1/activation-codes":{"get":{"tags":["activation-code-controller"],"operationId":"list_19","parameters":[{"name":"tenantId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListActivationCode"}}}}}},"post":{"tags":["activation-code-controller"],"operationId":"create_10","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateActivationCodesReq"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListActivationCode"}}}}}}},"/openapi/v1/tasks/{id}":{"get":{"tags":["open-api-task-controller"],"operationId":"detail","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTaskBrief"}}}}}}},"/openapi/v1/subscriptions/{id}/deliveries":{"get":{"tags":["open-api-subscription-controller"],"operationId":"deliveries","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListDeliveryView"}}}}}}},"/openapi/v1/stats/usage":{"get":{"tags":["open-api-catalog-controller"],"operationId":"ownUsage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultUsageView"}}}}}}},"/openapi/v1/files/{id}":{"get":{"tags":["open-api-file-controller"],"operationId":"download","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/openapi/v1/algorithms":{"get":{"tags":["open-api-catalog-controller"],"operationId":"algorithms","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAlgorithmView"}}}}}}},"/api/v1/zones/{id}/armed":{"get":{"tags":["alarm-zone-controller"],"operationId":"armed","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/tickets/{id}":{"get":{"tags":["ticket-controller"],"operationId":"detail_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/tasks/{id}":{"get":{"tags":["task-controller"],"operationId":"detail_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTask"}}}}}},"delete":{"tags":["task-controller"],"operationId":"delete_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/records/{id}":{"get":{"tags":["record-controller"],"operationId":"detail_3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultRecordFile"}}}}}}},"/api/v1/records/chain-verify":{"get":{"tags":["record-controller"],"operationId":"verifyChain","parameters":[{"name":"cameraId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultChainVerifyResult"}}}}}}},"/api/v1/record-plans/{id}":{"get":{"tags":["record-plan-controller"],"operationId":"detail_4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultRecordPlan"}}}}}},"delete":{"tags":["record-plan-controller"],"operationId":"delete_3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/openapi/usage":{"get":{"tags":["open-api-admin-controller"],"operationId":"usage","parameters":[{"name":"appKey","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultUsageView"}}}}}}},"/api/v1/openapi/stats/top-apis":{"get":{"tags":["open-api-admin-controller"],"operationId":"topApis","parameters":[{"name":"appKey","in":"query","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":7}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":8}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListTopApi"}}}}}}},"/api/v1/openapi/stats/daily":{"get":{"tags":["open-api-admin-controller"],"operationId":"daily","parameters":[{"name":"appKey","in":"query","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":7}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListDailyStat"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notification-controller"],"operationId":"list_8","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListMapStringObject"}}}}}}},"/api/v1/notifications/summary":{"get":{"tags":["notification-controller"],"operationId":"summary","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/nodes":{"get":{"tags":["node-controller"],"operationId":"list_9","parameters":[{"name":"nodeType","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListEdgeNode"}}}}}}},"/api/v1/models/{id}":{"get":{"tags":["model-controller"],"operationId":"detail_5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultModelEntry"}}}}}}},"/api/v1/linkage-rules/logs":{"get":{"tags":["linkage-controller"],"operationId":"logs","parameters":[{"name":"ruleId","in":"query","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"ackStatus","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListLinkageLog"}}}}}}},"/api/v1/linkage-rules/logs/pending":{"get":{"tags":["linkage-controller"],"operationId":"pendingAcks","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListLinkageLog"}}}}}}},"/api/v1/licenses/modes":{"get":{"tags":["license-controller"],"operationId":"modes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListMapStringObject"}}}}}}},"/api/v1/licenses/enforcement":{"get":{"tags":["license-controller"],"operationId":"enforcement","parameters":[{"name":"tenantId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultObject"}}}}}}},"/api/v1/licenses/check-logs":{"get":{"tags":["license-controller"],"operationId":"checkLogs","parameters":[{"name":"nodeId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListLicenseCheckLog"}}}}}}},"/api/v1/exports/{id}":{"get":{"tags":["export-controller"],"operationId":"detail_6","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultExportApply"}}}}}}},"/api/v1/developer/registrations":{"get":{"tags":["developer-registration-controller"],"operationId":"list_14","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListMapStringObject"}}}}}}},"/api/v1/compliance/self-check":{"get":{"tags":["compliance-controller"],"operationId":"selfCheck","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultSelfCheckSummary"}}}}}}},"/api/v1/capacity/calibration":{"get":{"tags":["capacity-controller"],"operationId":"calibration","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCalibrationProfile"}}}}}}},"/api/v1/capacity/calc":{"get":{"tags":["capacity-controller"],"operationId":"calc","parameters":[{"name":"channels","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":8}},{"name":"bitrateKbps","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":2048}},{"name":"retentionDays","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"fps","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":2}},{"name":"algorithms","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":3}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCapacityResult"}}}}}}},"/api/v1/cameras/{id}":{"get":{"tags":["camera-controller"],"operationId":"detail_7","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCamera"}}}}}},"delete":{"tags":["camera-controller"],"operationId":"delete_5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/cameras/{id}/health":{"get":{"tags":["camera-controller"],"operationId":"health","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultDeviceHealth"}}}}}}},"/api/v1/cameras/drivers":{"get":{"tags":["camera-controller"],"operationId":"drivers","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListString"}}}}}}},"/api/v1/auth/password-policy":{"get":{"tags":["auth-controller"],"operationId":"policy","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultString"}}}}}}},"/api/v1/algorithms":{"get":{"tags":["algorithm-controller"],"operationId":"list_16","parameters":[{"name":"onlyEnabled","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAlgorithm"}}}}}}},"/api/v1/algorithms/{code}":{"get":{"tags":["algorithm-controller"],"operationId":"detail_8","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultAlgorithm"}}}}}}},"/api/v1/alarms/{id}":{"get":{"tags":["alarm-controller"],"operationId":"detail_9","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultAlarmEvent"}}}}}}},"/api/v1/alarms/{id}/history":{"get":{"tags":["alarm-controller"],"operationId":"history","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAlarmHandle"}}}}}}},"/api/v1/alarms/stats":{"get":{"tags":["alarm-controller"],"operationId":"stats","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/alarms/sla-breaches":{"get":{"tags":["alarm-controller"],"operationId":"slaBreaches","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":7}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListSlaBreach"}}}}}}},"/api/v1/alarms/review/policy":{"get":{"tags":["alarm-controller"],"operationId":"reviewPolicy","parameters":[{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"code","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/alarms/review/logs":{"get":{"tags":["alarm-controller"],"operationId":"reviewLogs","parameters":[{"name":"eventUuid","in":"query","required":false,"schema":{"type":"string"}},{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListAlarmReview"}}}}}}},"/api/v1/alarms/heatmap":{"get":{"tags":["alarm-controller"],"operationId":"heatmap","parameters":[{"name":"cameraId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListHeatmapStat"}}}}}}},"/api/v1/alarm-sources/types":{"get":{"tags":["alarm-source-controller"],"operationId":"types","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultListString"}}}}}}},"/openapi/v1/subscriptions/{id}":{"delete":{"tags":["open-api-subscription-controller"],"operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/zones/{id}":{"delete":{"tags":["alarm-zone-controller"],"operationId":"delete_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/tasks/rois/{id}":{"delete":{"tags":["task-controller"],"operationId":"deleteRoi","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/openapi/subs/{id}":{"delete":{"tags":["open-api-admin-controller"],"operationId":"deleteSub","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/linkage-rules/{id}":{"delete":{"tags":["linkage-controller"],"operationId":"delete_4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/api/v1/cameras/{id}/presets/{no}":{"delete":{"tags":["camera-controller"],"operationId":"deletePreset","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"no","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBoolean"}}}}}}},"/api/v1/alarm-sources/{id}":{"delete":{"tags":["alarm-source-controller"],"operationId":"delete_6","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}}},"components":{"schemas":{"OpenApiTaskReq":{"required":["cameraId"],"type":"object","properties":{"cameraId":{"type":"integer","format":"int64"},"name":{"type":"string"},"algorithms":{"type":"array","items":{"type":"string"}},"threshold":{"type":"number","format":"double"},"timeWindowSec":{"type":"integer","format":"int32"},"dedupSec":{"type":"integer","format":"int32"},"targetFps":{"type":"number"},"sceneProfile":{"type":"string"},"resourceScope":{"type":"string"},"nodeId":{"type":"string"}}},"ResultTaskBrief":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/TaskBrief"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"TaskBrief":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"name":{"type":"string"},"algorithms":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"resourceScope":{"type":"string"},"nodeId":{"type":"string"},"sceneProfile":{"type":"string"},"targetFps":{"type":"number"},"createdAt":{"type":"string","format":"date-time"}}},"SubscriptionReq":{"required":["url"],"type":"object","properties":{"url":{"type":"string"},"eventTypes":{"type":"string"},"algorithms":{"type":"string"}}},"ResultSubscriptionResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/SubscriptionResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"SubscriptionResp":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"url":{"type":"string"},"eventTypes":{"type":"string"},"algorithms":{"type":"string"},"status":{"type":"string"},"secret":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"notice":{"type":"string"}}},"DeliveryView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"eventId":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"attempt":{"type":"integer","format":"int32"},"nextAt":{"type":"string","format":"date-time"},"response":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultDeliveryView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DeliveryView"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"DetectReq":{"required":["cameraId"],"type":"object","properties":{"cameraId":{"type":"integer","format":"int64"},"algorithms":{"type":"array","items":{"type":"string"}},"sceneProfile":{"type":"string"},"resourceScope":{"type":"string"},"nodeId":{"type":"string"},"threshold":{"type":"number","format":"double"},"minTarget":{"type":"number","format":"double"},"waitMs":{"type":"integer","format":"int32"},"dryRun":{"type":"boolean"}}},"DetectPlan":{"type":"object","properties":{"cameraId":{"type":"integer","format":"int64"},"cameraName":{"type":"string"},"algorithms":{"type":"array","items":{"type":"string"}},"sceneProfile":{"type":"string"},"resourceScope":{"type":"string"},"targetNode":{"type":"string"},"params":{"type":"object","additionalProperties":{"type":"object"}},"note":{"type":"string"}}},"DetectResp":{"type":"object","properties":{"dryRun":{"type":"boolean"},"plan":{"$ref":"#/components/schemas/DetectPlan"},"result":{"$ref":"#/components/schemas/DetectionOutcome"}}},"DetectionItem":{"type":"object","properties":{"algorithm":{"type":"string"},"label":{"type":"string"},"score":{"type":"number","format":"double"},"bbox":{"type":"array","items":{"type":"number","format":"double"}},"roiName":{"type":"string"},"trackId":{"type":"string"}}},"DetectionOutcome":{"type":"object","properties":{"requestId":{"type":"string"},"cameraId":{"type":"integer","format":"int64"},"node":{"type":"string"},"dispatched":{"type":"boolean"},"costMs":{"type":"integer","format":"int64"},"detections":{"type":"array","items":{"$ref":"#/components/schemas/DetectionItem"}},"note":{"type":"string"}}},"ResultDetectResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DetectResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ReportOutcome":{"type":"object","properties":{"sourceCode":{"type":"string"},"result":{"type":"string"},"eventId":{"type":"integer","format":"int64"},"detail":{"type":"string"}}},"ResultReportOutcome":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ReportOutcome"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultLong":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"integer","format":"int64"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ArmLog":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"zoneId":{"type":"integer","format":"int64"},"action":{"type":"string"},"operator":{"type":"string"},"reason":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultArmLog":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ArmLog"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultMapStringObject":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"object"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"CreateTenantReq":{"required":["code","name"],"type":"object","properties":{"code":{"pattern":"^[A-Za-z0-9_-]{2,64}$","type":"string"},"name":{"type":"string"},"plan":{"type":"string"},"isolationLevel":{"type":"string"},"quotaChannels":{"type":"integer","format":"int32"},"retainDays":{"type":"integer","format":"int32"},"dbHost":{"type":"string"},"dbPort":{"type":"integer","format":"int32"},"dbName":{"type":"string"},"dbUser":{"type":"string"},"dbPassword":{"type":"string"}}},"ResultTenant":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/Tenant"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"Tenant":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"name":{"type":"string"},"plan":{"type":"string"},"isolationLevel":{"type":"string"},"quotaChannels":{"type":"integer","format":"int32"},"quotaFps":{"type":"integer","format":"int32"},"quotaApiDay":{"type":"integer","format":"int64"},"quotaStorageGb":{"type":"integer","format":"int64"},"retainDays":{"type":"integer","format":"int32"},"status":{"type":"integer","format":"int32"},"dbHost":{"type":"string"},"dbPort":{"type":"integer","format":"int32"},"dbName":{"type":"string"},"dbUser":{"type":"string"},"dbPasswordSm4":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"CreateTaskReq":{"required":["algorithms","cameraId"],"type":"object","properties":{"cameraId":{"type":"integer","format":"int64"},"name":{"type":"string"},"algorithms":{"type":"array","items":{"type":"string"}},"roiIds":{"type":"array","items":{"type":"integer","format":"int64"}},"threshold":{"type":"number"},"timeWindowSec":{"type":"integer","format":"int32"},"dedupSec":{"type":"integer","format":"int32"},"targetFps":{"type":"number"},"sceneProfile":{"type":"string"},"resourceScope":{"type":"string"},"nodeId":{"type":"string"}}},"ResultTaskDispatch":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/TaskDispatch"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"TaskDispatch":{"type":"object","properties":{"taskId":{"type":"integer","format":"int64"},"dispatched":{"type":"boolean"},"nodeId":{"type":"string"},"message":{"type":"string"}}},"ResultTask":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/Task"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"Task":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"name":{"type":"string"},"algorithmsJson":{"type":"string"},"roiIdsJson":{"type":"string"},"paramsJson":{"type":"string"},"targetFps":{"type":"number"},"scheduleJson":{"type":"string"},"sceneProfile":{"type":"string"},"resourceScope":{"type":"string"},"nodeId":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"RoiReq":{"required":["cameraId","geomType","name","points"],"type":"object","properties":{"cameraId":{"type":"integer","format":"int64"},"name":{"type":"string"},"geomType":{"type":"string"},"points":{"type":"array","items":{"type":"array","items":{"type":"number","format":"double"}}},"direction":{"type":"string"},"minTarget":{"type":"number"},"maxTarget":{"type":"number"},"categoryFilter":{"type":"string"}}},"RecordFile":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"filePath":{"type":"string"},"startAt":{"type":"string","format":"date-time"},"endAt":{"type":"string","format":"date-time"},"sizeBytes":{"type":"integer","format":"int64"},"lockFlag":{"type":"integer","format":"int32"},"hashChain":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultRecordFile":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/RecordFile"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"RecordPlan":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"mode":{"type":"string"},"keepDays":{"type":"integer","format":"int32"},"preSeconds":{"type":"integer","format":"int32"},"postSeconds":{"type":"integer","format":"int32"},"enabled":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}},"ResultRecordPlan":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/RecordPlan"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"CreateSubReq":{"required":["appKey","url"],"type":"object","properties":{"appKey":{"type":"string"},"url":{"type":"string"},"eventTypes":{"type":"string"},"algorithms":{"type":"string"}}},"CreateSubResp":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"appKey":{"type":"string"},"url":{"type":"string"},"secret":{"type":"string"},"notice":{"type":"string"}}},"ResultCreateSubResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CreateSubResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"SignReq":{"required":["appKey","method","path"],"type":"object","properties":{"appKey":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"timestamp":{"type":"string"},"nonce":{"type":"string"},"body":{"type":"string"}}},"ResultSignResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/SignResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"SignResp":{"type":"object","properties":{"canonical":{"type":"string"},"signature":{"type":"string"},"note":{"type":"string"}}},"CreateAppReq":{"required":["name","tenantId"],"type":"object","properties":{"tenantId":{"type":"integer","format":"int64"},"name":{"type":"string"},"qps":{"type":"integer","format":"int32"},"quotaDay":{"type":"integer","format":"int64"},"sandbox":{"type":"boolean"}}},"CreateAppResp":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"appKey":{"type":"string"},"appSecret":{"type":"string"},"sandbox":{"type":"boolean"},"notice":{"type":"string"}}},"ResultCreateAppResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CreateAppResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"AppView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"appKey":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"name":{"type":"string"},"qps":{"type":"integer","format":"int32"},"quotaDay":{"type":"integer","format":"int64"},"status":{"type":"string"},"sandbox":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}},"ResultAppView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/AppView"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultBoolean":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"boolean"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"NodeUpgradeReq":{"required":["version"],"type":"object","properties":{"version":{"type":"string"},"payloadDir":{"type":"string"}}},"RenewNodeReq":{"type":"object","properties":{"licenseDays":{"type":"integer","format":"int32"},"graceDays":{"type":"integer","format":"int32"},"rotateToken":{"type":"boolean"},"tokenTtlSeconds":{"type":"integer","format":"int64"}}},"LicensePayload":{"type":"object","properties":{"licenseKey":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"nodeId":{"type":"string"},"machineFp":{"type":"string"},"maxChannels":{"type":"integer","format":"int32"},"algorithmPackage":{"type":"string"},"licenseType":{"type":"string"},"startAt":{"type":"integer","format":"int64"},"expireAt":{"type":"integer","format":"int64"},"graceDays":{"type":"integer","format":"int32"}}},"RenewResp":{"type":"object","properties":{"nodeId":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"nodeToken":{"type":"string"},"tokenTtlSeconds":{"type":"integer","format":"int64"},"license":{"$ref":"#/components/schemas/LicensePayload"},"signature":{"type":"string"},"previousExpireAt":{"type":"integer","format":"int64"},"expireAt":{"type":"integer","format":"int64"}}},"ResultRenewResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/RenewResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"NodeCmdReq":{"required":["action"],"type":"object","properties":{"action":{"type":"string"},"taskId":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"streamUrl":{"type":"string"},"algorithms":{"type":"array","items":{"type":"string"}},"params":{"type":"object","additionalProperties":{"type":"object"}}}},"ResultUpgradeBatchResult":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpgradeBatchResult"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"UpgradeBatchResult":{"type":"object","properties":{"total":{"type":"integer","format":"int32"},"targeted":{"type":"integer","format":"int32"},"percent":{"type":"integer","format":"int32"},"nodeIds":{"type":"array","items":{"type":"string"}}}},"ActivateReq":{"required":["activationCode","nodeId"],"type":"object","properties":{"activationCode":{"type":"string"},"nodeId":{"type":"string"},"name":{"type":"string"},"host":{"type":"string"},"ep":{"type":"string"},"capacity":{"type":"integer","format":"int32"},"machineFp":{"type":"string"},"version":{"type":"string"},"licenseDays":{"type":"integer","format":"int32"},"graceDays":{"type":"integer","format":"int32"},"algorithmPackage":{"type":"string"},"licenseType":{"type":"string"}}},"ActivateResp":{"type":"object","properties":{"nodeId":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"nodeToken":{"type":"string"},"tokenTtlSeconds":{"type":"integer","format":"int64"},"license":{"$ref":"#/components/schemas/LicensePayload"},"signature":{"type":"string"}}},"ResultActivateResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ActivateResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"CreateModelReq":{"required":["code","licenseType","name","sha256","version"],"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"licenseType":{"type":"string"},"source":{"type":"string"},"filePath":{"type":"string"},"sha256":{"type":"string"},"sizeBytes":{"type":"integer","format":"int64"},"inputSize":{"type":"integer","format":"int32"},"ep":{"type":"string"},"quant":{"type":"string"},"mapValue":{"type":"number"},"recallRate":{"type":"number"}}},"ModelEntry":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"licenseType":{"type":"string"},"source":{"type":"string"},"filePath":{"type":"string"},"sha256":{"type":"string"},"sizeBytes":{"type":"integer","format":"int64"},"inputSize":{"type":"integer","format":"int32"},"ep":{"type":"string"},"quant":{"type":"string"},"mapValue":{"type":"number"},"recallRate":{"type":"number"},"status":{"type":"string"},"grayPercent":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}},"ResultModelEntry":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ModelEntry"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"LinkageRule":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"eventFilter":{"type":"string"},"actionType":{"type":"string"},"actionConfig":{"type":"string"},"enabled":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}},"ResultLinkageRule":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LinkageRule"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"LinkageLog":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"ruleId":{"type":"integer","format":"int64"},"eventUuid":{"type":"string"},"success":{"type":"integer","format":"int32"},"detail":{"type":"string"},"ackStatus":{"type":"string"},"ackAt":{"type":"string","format":"date-time"},"ackBy":{"type":"string"},"ackNote":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultLinkageLog":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LinkageLog"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"IssueLicenseReq":{"required":["nodeId","tenantId"],"type":"object","properties":{"tenantId":{"type":"integer","format":"int64"},"nodeId":{"type":"string"},"machineFp":{"type":"string"},"maxChannels":{"type":"integer","format":"int32"},"algorithmPackage":{"type":"string"},"licenseType":{"type":"string"},"days":{"type":"integer","format":"int32"},"graceDays":{"type":"integer","format":"int32"}}},"IssuedLicense":{"type":"object","properties":{"licenseId":{"type":"integer","format":"int64"},"status":{"type":"string"},"license":{"$ref":"#/components/schemas/LicensePayload"},"signature":{"type":"string"},"previousExpireAt":{"type":"integer","format":"int64"}}},"ResultIssuedLicense":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/IssuedLicense"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"License":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"licenseKey":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"nodeId":{"type":"string"},"machineFp":{"type":"string"},"maxChannels":{"type":"integer","format":"int32"},"algorithmPackage":{"type":"string"},"licenseType":{"type":"string"},"startAt":{"type":"string","format":"date-time"},"expireAt":{"type":"string","format":"date-time"},"maintainExpireAt":{"type":"string","format":"date-time"},"graceDays":{"type":"integer","format":"int32"},"status":{"type":"string"},"signature":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultLicense":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/License"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"VerifyLicenseReq":{"required":["license"],"type":"object","properties":{"license":{"$ref":"#/components/schemas/LicensePayload"},"signature":{"type":"string"},"nodeId":{"type":"string"}}},"ResultVerifyResult":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/VerifyResult"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"VerifyResult":{"type":"object","properties":{"valid":{"type":"boolean"},"status":{"type":"string"},"reason":{"type":"string"},"expireAt":{"type":"integer","format":"int64"},"graceUntil":{"type":"integer","format":"int64"}}},"EnforceResult":{"type":"object","properties":{"checkedTenants":{"type":"integer","format":"int32"},"unavailableTenants":{"type":"integer","format":"int32"},"stoppedTasks":{"type":"integer","format":"int32"},"stoppedTenantIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"ResultEnforceResult":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/EnforceResult"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ExportApply":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"startAt":{"type":"string","format":"date-time"},"endAt":{"type":"string","format":"date-time"},"applicant":{"type":"string"},"reason":{"type":"string"},"status":{"type":"string"},"approver":{"type":"string"},"watermark":{"type":"string"},"filePath":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultExportApply":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ExportApply"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ApprovalResult":{"type":"object","properties":{"registrationId":{"type":"integer","format":"int64"},"tenantId":{"type":"integer","format":"int64"},"tenantCode":{"type":"string"},"username":{"type":"string"},"initialPassword":{"type":"string"},"notice":{"type":"string"}}},"ResultApprovalResult":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ApprovalResult"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultInteger":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"integer","format":"int32"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"DeletionReq":{"required":["targetRef","type"],"type":"object","properties":{"type":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"targetRef":{"type":"string"},"requestedBy":{"type":"string"},"reason":{"type":"string"}}},"ResultString":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"string"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ConsentReq":{"required":["subjectRef","tenantId"],"type":"object","properties":{"tenantId":{"type":"integer","format":"int64"},"subjectRef":{"type":"string"},"purpose":{"type":"string"},"expireAt":{"type":"string","format":"date-time"}}},"CreateCameraReq":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"driverType":{"type":"string"},"rtspUrl":{"type":"string"},"orgId":{"type":"integer","format":"int64"},"resourceScope":{"type":"string"}}},"Camera":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"orgId":{"type":"integer","format":"int64"},"name":{"type":"string"},"driverType":{"type":"string"},"gbDeviceId":{"type":"string"},"gbChannel":{"type":"string"},"smart":{"type":"integer","format":"int32"},"status":{"type":"string"},"resourceScope":{"type":"string"},"nodeId":{"type":"string"},"lastOnlineAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ResultCamera":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/Camera"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultMapStringString":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"string"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"PtzReq":{"required":["direction"],"type":"object","properties":{"direction":{"type":"string"},"speed":{"type":"integer","format":"int32"},"durationMs":{"type":"integer","format":"int32"}}},"PresetReq":{"required":["presetNo"],"type":"object","properties":{"presetNo":{"minimum":1,"type":"integer","format":"int32"},"name":{"type":"string"}}},"PtzPreset":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"presetNo":{"type":"integer","format":"int32"},"name":{"type":"string"},"snapshotPath":{"type":"string"}}},"ResultPtzPreset":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PtzPreset"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListString":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"string"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ChangePasswordReq":{"required":["newPassword","oldPassword","username"],"type":"object","properties":{"username":{"type":"string"},"oldPassword":{"type":"string"},"newPassword":{"type":"string"}}},"LoginReq":{"required":["password","username"],"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"}}},"LoginResp":{"type":"object","properties":{"token":{"type":"string"},"expiresIn":{"type":"integer","format":"int64"},"username":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"role":{"type":"string"}}},"ResultLoginResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/LoginResp"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"IngestOutcome":{"type":"object","properties":{"result":{"type":"string"},"eventId":{"type":"integer","format":"int64"},"message":{"type":"string"}}},"ResultIngestOutcome":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/IngestOutcome"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"AlarmHandle":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"eventId":{"type":"integer","format":"int64"},"action":{"type":"string"},"handler":{"type":"string"},"remark":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultAlarmHandle":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/AlarmHandle"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"AlarmEvent":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"taskId":{"type":"integer","format":"int64"},"zoneId":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"code":{"type":"string"},"level":{"type":"string"},"confidence":{"type":"number"},"label":{"type":"string"},"text":{"type":"string"},"bboxJson":{"type":"string"},"trackId":{"type":"integer","format":"int64"},"attrsJson":{"type":"string"},"dedupKey":{"type":"string"},"eventUuid":{"type":"string"},"snapshotPath":{"type":"string"},"clipPath":{"type":"string"},"source":{"type":"string"},"status":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"receivedAt":{"type":"string","format":"date-time"}}},"ResultAlarmEvent":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/AlarmEvent"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"AlarmSla":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"level":{"type":"string"},"ackMinutes":{"type":"integer","format":"int32"},"resolveMinutes":{"type":"integer","format":"int32"},"escalateTo":{"type":"string"},"enabled":{"type":"integer","format":"int32"}}},"ResultAlarmSla":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/AlarmSla"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"CreatedSource":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"secret":{"type":"string"},"reportPath":{"type":"string"},"notice":{"type":"string"}}},"ResultCreatedSource":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CreatedSource"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultSourceView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/SourceView"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"SourceView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}},"CreateActivationCodesReq":{"required":["tenantId"],"type":"object","properties":{"tenantId":{"type":"integer","format":"int64"},"count":{"maximum":100,"minimum":1,"type":"integer","format":"int32"},"ttlDays":{"type":"integer","format":"int32"},"nodeId":{"type":"string"}}},"ActivationCode":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"nodeId":{"type":"string"},"usedAt":{"type":"string","format":"date-time"},"expireAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultListActivationCode":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ActivationCode"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListTaskBrief":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/TaskBrief"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListSubscriptionResp":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionResp"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListDeliveryView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryView"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultUsageView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UsageView"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"UsageView":{"type":"object","properties":{"appKey":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"statDate":{"type":"string"},"todayCalls":{"type":"integer","format":"int64"},"todaySuccess":{"type":"integer","format":"int64"},"successRate":{"type":"number","format":"double"},"avgCostMs":{"type":"integer","format":"int64"},"quotaDay":{"type":"integer","format":"int64"},"quotaUsedPercent":{"type":"number","format":"double"},"meteredQuantity":{"type":"integer","format":"int64"}}},"AlgorithmView":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"trainMode":{"type":"string"},"roiType":{"type":"string"},"paramSchema":{"type":"string"},"defaultLevel":{"type":"string"}}},"ResultListAlgorithmView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AlgorithmView"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"AlarmZone":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"type":{"type":"string"},"enabled":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}},"ResultListAlarmZone":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AlarmZone"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListMapStringObject":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListTenant":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Tenant"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListTask":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListRoi":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Roi"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"Roi":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"name":{"type":"string"},"geomType":{"type":"string"},"pointsJson":{"type":"string"},"direction":{"type":"string"},"minTarget":{"type":"number"},"maxTarget":{"type":"number"},"categoryFilter":{"type":"string"},"enabled":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}},"ResultListRecordFile":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/RecordFile"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ChainVerifyResult":{"type":"object","properties":{"cameraId":{"type":"integer","format":"int64"},"checked":{"type":"integer","format":"int32"},"valid":{"type":"boolean"},"brokenAtId":{"type":"integer","format":"int64"}}},"ResultChainVerifyResult":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ChainVerifyResult"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListRecordPlan":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/RecordPlan"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListSubView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SubView"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"SubView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"appKey":{"type":"string"},"url":{"type":"string"},"eventTypes":{"type":"string"},"algorithms":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultListTopApi":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/TopApi"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"TopApi":{"type":"object","properties":{"api":{"type":"string"},"calls":{"type":"integer","format":"int64"},"success":{"type":"integer","format":"int64"},"successRate":{"type":"number","format":"double"}}},"DailyStat":{"type":"object","properties":{"statDate":{"type":"string"},"calls":{"type":"integer","format":"int64"},"success":{"type":"integer","format":"int64"},"avgCostMs":{"type":"integer","format":"int64"}}},"ResultListDailyStat":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DailyStat"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListAppView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AppView"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"EdgeNode":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"nodeId":{"type":"string"},"name":{"type":"string"},"nodeType":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"host":{"type":"string"},"ep":{"type":"string"},"capacity":{"type":"integer","format":"int32"},"loadValue":{"type":"integer","format":"int32"},"version":{"type":"string"},"heartbeatAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"tokenSm4":{"type":"string"},"machineFp":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ResultListEdgeNode":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/EdgeNode"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListModelEntry":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ModelEntry"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListLinkageRule":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LinkageRule"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListLinkageLog":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LinkageLog"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListLicense":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/License"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultObject":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"object"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"LicenseCheckLog":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"nodeId":{"type":"string"},"checkAt":{"type":"string","format":"date-time"},"result":{"type":"string"},"reason":{"type":"string"}}},"ResultListLicenseCheckLog":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LicenseCheckLog"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListExportApply":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExportApply"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultSelfCheckSummary":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/SelfCheckSummary"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"SelfCheckItem":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"mandatory":{"type":"boolean"},"passed":{"type":"boolean"},"detail":{"type":"string"}}},"SelfCheckSummary":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SelfCheckItem"}},"passedCount":{"type":"integer","format":"int32"},"totalCount":{"type":"integer","format":"int32"},"mandatoryFailed":{"type":"integer","format":"int32"},"generatedAt":{"type":"string","format":"date-time"},"allMandatoryPassed":{"type":"boolean"}}},"CalibrationProfile":{"type":"object","properties":{"name":{"type":"string"},"msPerInfer":{"type":"number","format":"double"},"utilization":{"type":"number","format":"double"},"coresPerNode":{"type":"integer","format":"int32"},"provenance":{"type":"string"},"measured":{"type":"boolean"}}},"ResultCalibrationProfile":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CalibrationProfile"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"CapacityResult":{"type":"object","properties":{"storageBytes":{"type":"integer","format":"int64"},"storageText":{"type":"string"},"bandwidthMbps":{"type":"number","format":"double"},"nodesNeeded":{"type":"integer","format":"int32"},"coresPerChannel":{"type":"number","format":"double"},"calibration":{"type":"string"},"calibrated":{"type":"boolean"},"provenance":{"type":"string"}}},"ResultCapacityResult":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CapacityResult"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListCamera":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Camera"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListPtzPreset":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PtzPreset"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"DeviceHealth":{"type":"object","properties":{"online":{"type":"boolean"},"responseMs":{"type":"integer","format":"int64"},"width":{"type":"integer","format":"int32"},"height":{"type":"integer","format":"int32"},"codec":{"type":"string"},"error":{"type":"string"}}},"ResultDeviceHealth":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/DeviceHealth"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"Algorithm":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"trainMode":{"type":"string"},"roiType":{"type":"string"},"paramSchema":{"type":"string"},"modelRef":{"type":"string"},"defaultLevel":{"type":"string"},"enabled":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}},"ResultListAlgorithm":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Algorithm"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultAlgorithm":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/Algorithm"},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListAlarmEvent":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AlarmEvent"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListAlarmHandle":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AlarmHandle"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListAlarmSla":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSla"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListSlaBreach":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SlaBreach"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"SlaBreach":{"type":"object","properties":{"eventId":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"code":{"type":"string"},"level":{"type":"string"},"status":{"type":"string"},"stage":{"type":"string"},"overdueMinutes":{"type":"integer","format":"int64"}}},"AlarmReview":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"eventUuid":{"type":"string"},"cameraId":{"type":"integer","format":"int64"},"code":{"type":"string"},"stage":{"type":"string"},"decision":{"type":"string"},"reason":{"type":"string"},"hits":{"type":"integer","format":"int32"},"threshold":{"type":"number"},"createdAt":{"type":"string","format":"date-time"}}},"ResultListAlarmReview":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AlarmReview"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"HeatmapStat":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"cameraId":{"type":"integer","format":"int64"},"roiId":{"type":"integer","format":"int64"},"statHour":{"type":"string","format":"date-time"},"personCnt":{"type":"integer","format":"int32"},"vehicleCnt":{"type":"integer","format":"int32"}}},"ResultListHeatmapStat":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/HeatmapStat"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ResultListSourceView":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SourceView"}},"traceId":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"success":{"type":"boolean"}}},"ErrorCode":{"type":"object","properties":{"0":{"type":"integer","description":"成功","format":"int32"},"40000":{"type":"integer","description":"请求参数格式错误","format":"int32"},"40001":{"type":"integer","description":"参数非法","format":"int32"},"40010":{"type":"integer","description":"缺少 X-Tenant-Id 请求头","format":"int32"},"40011":{"type":"integer","description":"租户不存在或已停用","format":"int32"},"40012":{"type":"integer","description":"跨租户访问被拒绝","format":"int32"},"40100":{"type":"integer","description":"未认证或登录已过期","format":"int32"},"40101":{"type":"integer","description":"签名无效","format":"int32"},"40102":{"type":"integer","description":"时间戳超出允许范围","format":"int32"},"40103":{"type":"integer","description":"nonce 已被使用（重放请求）","format":"int32"},"40300":{"type":"integer","description":"无权限执行该操作","format":"int32"},"40301":{"type":"integer","description":"License 无效","format":"int32"},"40302":{"type":"integer","description":"License 已过期或超出宽限期","format":"int32"},"40303":{"type":"integer","description":"超出授权路数","format":"int32"},"40304":{"type":"integer","description":"算法包未授权","format":"int32"},"40305":{"type":"integer","description":"点位未授权","format":"int32"},"40306":{"type":"integer","description":"激活码无效或已被使用","format":"int32"},"40307":{"type":"integer","description":"激活码已过期","format":"int32"},"40308":{"type":"integer","description":"节点已绑定其它租户","format":"int32"},"40309":{"type":"integer","description":"沙箱应用仅支持只读与 dryRun 调用","format":"int32"},"40400":{"type":"integer","description":"资源不存在","format":"int32"},"42901":{"type":"integer","description":"QPS 超限","format":"int32"},"42902":{"type":"integer","description":"日调用配额已耗尽","format":"int32"},"50000":{"type":"integer","description":"系统繁忙，请稍后重试","format":"int32"},"50001":{"type":"integer","description":"推理节点不可用","format":"int32"},"50002":{"type":"integer","description":"依赖服务不可用","format":"int32"}},"description":"全局错误码（与 ErrorCode 枚举同源；新增错误码必须同步对外文档）"}},"securitySchemes":{"appKey":{"type":"apiKey","description":"应用标识（公开）","name":"X-App-Key","in":"header"},"timestamp":{"type":"apiKey","description":"毫秒时间戳，与服务器时间偏差不得超过 5 分钟","name":"X-Timestamp","in":"header"},"nonce":{"type":"apiKey","description":"随机串，10 分钟内不可重复（防重放）","name":"X-Nonce","in":"header"},"signature":{"type":"apiKey","description":"Base64(HMAC-SHA256(待签串, appSecret))","name":"X-Signature","in":"header"}}},"x-error-codes":{"0":"成功","40000":"请求参数格式错误","40001":"参数非法","40010":"缺少 X-Tenant-Id 请求头","40011":"租户不存在或已停用","40012":"跨租户访问被拒绝","40100":"未认证或登录已过期","40101":"签名无效","40102":"时间戳超出允许范围","40103":"nonce 已被使用（重放请求）","40300":"无权限执行该操作","40301":"License 无效","40302":"License 已过期或超出宽限期","40303":"超出授权路数","40304":"算法包未授权","40305":"点位未授权","40306":"激活码无效或已被使用","40307":"激活码已过期","40308":"节点已绑定其它租户","40309":"沙箱应用仅支持只读与 dryRun 调用","40400":"资源不存在","42901":"QPS 超限","42902":"日调用配额已耗尽","50000":"系统繁忙，请稍后重试","50001":"推理节点不可用","50002":"依赖服务不可用"}}