| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- declare namespace CVS {
- type QueryParams = {
- page: number
- pageSize: number
- spaceId?: string
- searchKey?: string
- searchValue?: string
- }
- interface space {
- id?: string
- description: string
- deviceCount?: number | null
- deviceMode?: string | null
- spaceName: string
- spaceId?: string,
- status?: 'RUNNING' | 'STOPPED' | 'OPERATING' | ''
- type: 'RTMP' | 'GB28181' | 'ONVIF' | 'BVCP' | 'RTSP' | 'JT808' | '',
- upstreamAuth: {
- enabled: boolean
- key: string
- expire: number
- },
- downstreamAuth: {
- enabled: boolean
- key: string
- expire: number
- }
- recording: {
- 'enabled': boolean,
- 'duration': number, // 单个文件市长,显示分钟 传递秒
- 'format': 'FLV',
- 'recordType': 'PERIOD' // 这个保留 只有周期录制
- 'bucket': string
- }
- thumbnail: {
- enabled: boolean
- interval: number
- bucket: string
- }
- // ai 配置
- 'aiConfig': {
- 'enabled': boolean,
- 'configuration': {
- confidence: number // 置信度 0 - 100
- interval: number // 抽帧间隔 毫秒单位
- effectiveTimeStart: string // 生效开始时间 时间格式是 HH:mm:ss
- effectiveTimeEnd: string // 生效结束时间 时间格式是 HH:mm:ss
- aiId: string // 算子id 选择某个算子的id
- groupId: string // 分组id 如果是人脸对比等信息 可能需要人脸库分组 id
- }[],
- 'bucket': string,
- }
- }
- interface device {
- deviceId: number, // 设备id
- deviceName: string // 设备名称
- type: 'RTSP' | 'RTMP' | 'GB28181' // 空间类型 RTSP RTMP GB28181
- description: string
- status: 'ONLINE' | 'OFFLINE' | 'PUSHING' | 'PULLING' | 'ERROR' // 设备状态,对应的值有 ONLINE 在线 OFFLINE 离线 PUSHING 推流中 PULLING 拉流中 ERROR 异常
- spaceId: string // 空间id
- spaceName: string // 空间名称
- deviceStreamId: string // 视频流id
- gisLongitude: string
- gisLatitude: string
- gisName: string
- }
- interface Group {
- 'groupLabel': string, // 分组名字
- 'upperGroupId': string, // 上级分组id
- 'id': string, // 分组id
- }
- interface GroupQueryParams {
- page: number,
- pageSize: number,
- modelId?: string,
- searchKey?: string,
- deviceGroupId: string,
- searchValue?: string,
- }
- interface Operator {
- id?: number // 序列化id
- aiId: string // 算子id
- aiName: string // 算子名称
- aiSourceType?: string // 来源 SYSTEM 系统预置 USER 自定义
- aiModelType?: string // 算子业务类型 //需要接口查询 返回 code 和业务实际的指
- recentlyAiVersion?: string // 最后一个版本
- }
- interface OperatorVersion {
- id?: string
- aiId?: string // 算子id
- aiVersion: string // 算子版本
- aiVersionComment: string// 版本说明;
- architecture: string // CPU 架构 值有 x86 arm
- brand: string // 芯片品牌 值有 英伟达 昆仑
- chipModel: string // 芯片型号
- aiVersionPkgUrl: string// 版本地址
- }
- interface Project {
- projectId: string // 项目id
- projectName: string // 项目名称
- description: string // 项目描述
- }
- namespace Feature {
- interface Face {
- id: number // 人脸id
- faceName: string // 人脸名称
- sex: 0 | 1 | 2 // 性别 0女1 男 2 其他
- faceUrl: string // 人脸图片地址
- }
- interface Car {
- id?: number // 车辆id;
- carNo: string // 车辆车牌号
- carUrl: string // 车辆图片地址
- }
- interface Frock {
- id: number // 工装id
- frockName: string// 工装名称
- frockUrl: string // 工装图片地址
- }
- interface Group {
- id: string,
- key: string,
- groupName: string // 组名
- upGroupId: number // 上次分组id
- hasSubGroup?: boolean // 是否有子级别分组
- }
- }
- namespace AiBox {
- interface AiBox {
- 'clientId': string, // aibox id 也是mqtt id 唯一标识
- 'name': string, // 名称
- 'description': string // 描述
- 'state': 'ONLINE' | 'OFFLINE' | '' // 状态 OFFLINE 离线 ONLINE 在线
- 'updateAt': number | null// 更新时间 需要展示 可能为null
- 'createAt': number | null// 创建时间 需要展示 可能为null
- }
- interface Task {
- 'taskNum': string,
- 'taskID': string,
- 'taskAbility': string,
- 'taskStream': string,
- 'taskDescribe': string,
- 'taskState':string,
- 'taskPlan': string,
- 'taskGB28121Addr': string,
- 'taskUploadAddr': string
- }
- interface Stream {
- 'streamNum': string,
- 'streamID': string,
- 'streamName': string,
- 'streamDescribe': string,
- 'streamState': string
- }
- interface Sys {
- 'systemVersion': string,
- 'softVersion': string,
- 'devState': number,
- 'devID': string
- }
- type eventType = '0' | '1' | '2' | '3' | '4' | '5' |'6' |'7' |'8' | '9'
- interface Event {
- 'saveTs': number,
- 'DevID': string,
- 'EventType': eventType,
- 'EventName': string,
- 'Data': {
- 'CameraID': string,
- 'CameraName': string,
- 'TaskName': string,
- 'TriggerTime': string,
- 'BkgPic': string,
- 'WarnPic': string,
- 'RecordType': string,
- 'EnterSum': string,
- 'ExitSum': string
- }
- }
- interface Forward {
- 'createAt'?: number,
- 'updateAt'?: null,
- 'id'?: number,
- 'forwardType': 'HTTP' | 'KAFKA', // 转发类型 HTTP KAFKA
- 'forwardConfig': { // 转发配置
- 'forwardType': string,
- 'endpointUrl': null,
- 'requestMethod': string,
- 'requestHeaders': Record<string, string>,
- 'defaultTimeout': number
- }
- }
- }
- namespace Nodes {
- interface ais {
- serverId: string
- serverName: string
- serverAddr: string
- serverPort: string
- rtspUrl: string
- rtmpUrl: string
- gbUrl: string
- hdlUrl: string
- hlsUrl: string
- serverId: string
- webRtcUrl: string
- lastPingTime: string
- }
- interface ss {
- serverId: string
- serverName: string
- serverAddr: string
- serverPort: string
- aiPath: string
- lastPingTime: string
- }
- }
- }
|