@awarevue/api-types 2.0.111 → 2.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -280,24 +280,19 @@ export declare const commandSchemas: {
280
280
  rtspUrl: import("zod").ZodString;
281
281
  motionDetection: import("zod").ZodOptional<import("zod").ZodObject<{
282
282
  threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
283
- enabled: import("zod").ZodBoolean;
284
283
  fps: import("zod").ZodOptional<import("zod").ZodNumber>;
285
284
  }, import("zod/v4/core").$strip>>;
286
285
  labelDetection: import("zod").ZodOptional<import("zod").ZodObject<{
287
286
  labels: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
288
287
  threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
289
- enabled: import("zod").ZodBoolean;
290
288
  }, import("zod/v4/core").$strip>>;
291
- enabled: import("zod").ZodBoolean;
292
289
  fps: import("zod").ZodOptional<import("zod").ZodNumber>;
293
290
  }, import("zod/v4/core").$strip>>;
294
291
  faceRecognition: import("zod").ZodOptional<import("zod").ZodObject<{
295
292
  threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
296
- enabled: import("zod").ZodBoolean;
297
293
  fps: import("zod").ZodOptional<import("zod").ZodNumber>;
298
294
  }, import("zod/v4/core").$strip>>;
299
295
  semanticSearch: import("zod").ZodOptional<import("zod").ZodObject<{
300
- enabled: import("zod").ZodBoolean;
301
296
  fps: import("zod").ZodOptional<import("zod").ZodNumber>;
302
297
  }, import("zod/v4/core").$strip>>;
303
298
  }, import("zod/v4/core").$strip>;
@@ -123,24 +123,19 @@ export declare const sSetStreamAnalyticsCommand: z.ZodObject<{
123
123
  rtspUrl: z.ZodString;
124
124
  motionDetection: z.ZodOptional<z.ZodObject<{
125
125
  threshold: z.ZodOptional<z.ZodNumber>;
126
- enabled: z.ZodBoolean;
127
126
  fps: z.ZodOptional<z.ZodNumber>;
128
127
  }, z.core.$strip>>;
129
128
  labelDetection: z.ZodOptional<z.ZodObject<{
130
129
  labels: z.ZodRecord<z.ZodString, z.ZodObject<{
131
130
  threshold: z.ZodOptional<z.ZodNumber>;
132
- enabled: z.ZodBoolean;
133
131
  }, z.core.$strip>>;
134
- enabled: z.ZodBoolean;
135
132
  fps: z.ZodOptional<z.ZodNumber>;
136
133
  }, z.core.$strip>>;
137
134
  faceRecognition: z.ZodOptional<z.ZodObject<{
138
135
  threshold: z.ZodOptional<z.ZodNumber>;
139
- enabled: z.ZodBoolean;
140
136
  fps: z.ZodOptional<z.ZodNumber>;
141
137
  }, z.core.$strip>>;
142
138
  semanticSearch: z.ZodOptional<z.ZodObject<{
143
- enabled: z.ZodBoolean;
144
139
  fps: z.ZodOptional<z.ZodNumber>;
145
140
  }, z.core.$strip>>;
146
141
  }, z.core.$strip>;
@@ -272,24 +267,19 @@ export declare const nvrAnalyticsServerCommandSchemas: {
272
267
  rtspUrl: z.ZodString;
273
268
  motionDetection: z.ZodOptional<z.ZodObject<{
274
269
  threshold: z.ZodOptional<z.ZodNumber>;
275
- enabled: z.ZodBoolean;
276
270
  fps: z.ZodOptional<z.ZodNumber>;
277
271
  }, z.core.$strip>>;
278
272
  labelDetection: z.ZodOptional<z.ZodObject<{
279
273
  labels: z.ZodRecord<z.ZodString, z.ZodObject<{
280
274
  threshold: z.ZodOptional<z.ZodNumber>;
281
- enabled: z.ZodBoolean;
282
275
  }, z.core.$strip>>;
283
- enabled: z.ZodBoolean;
284
276
  fps: z.ZodOptional<z.ZodNumber>;
285
277
  }, z.core.$strip>>;
286
278
  faceRecognition: z.ZodOptional<z.ZodObject<{
287
279
  threshold: z.ZodOptional<z.ZodNumber>;
288
- enabled: z.ZodBoolean;
289
280
  fps: z.ZodOptional<z.ZodNumber>;
290
281
  }, z.core.$strip>>;
291
282
  semanticSearch: z.ZodOptional<z.ZodObject<{
292
- enabled: z.ZodBoolean;
293
283
  fps: z.ZodOptional<z.ZodNumber>;
294
284
  }, z.core.$strip>>;
295
285
  }, z.core.$strip>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.nvrAnalyticsServerCommandSchemas = exports.sSetStreamAnalyticsCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("../../primitives");
6
- const device_relation_1 = require("../../objects/device/device-relation");
6
+ const objects_1 = require("../../objects");
7
7
  // COMMANDS
8
8
  exports.sSetStreamAnalyticsCommand = zod_1.z.object({
9
9
  command: zod_1.z.literal('nvr-analytics-server.set-stream-analytics'),
@@ -13,7 +13,7 @@ exports.sSetStreamAnalyticsCommand = zod_1.z.object({
13
13
  streamId: primitives_1.sStreamId,
14
14
  rtspUrl: zod_1.z.string().nonempty(),
15
15
  })
16
- .extend(device_relation_1.sAiStreamConfiguration.shape),
16
+ .extend(objects_1.sAiStreamConfiguration.shape),
17
17
  });
18
18
  exports.nvrAnalyticsServerCommandSchemas = {
19
19
  'nvr-analytics-server.set-stream-analytics': exports.sSetStreamAnalyticsCommand,
@@ -131,8 +131,8 @@ export declare const eventSchemaByKind: {
131
131
  userId: z.ZodOptional<z.ZodString>;
132
132
  callId: z.ZodString;
133
133
  state: z.ZodEnum<{
134
- connecting: "connecting";
135
134
  connected: "connected";
135
+ connecting: "connecting";
136
136
  ringing: "ringing";
137
137
  terminated: "terminated";
138
138
  }>;
@@ -4,8 +4,8 @@ export declare const sCallStateChanged: z.ZodObject<{
4
4
  userId: z.ZodOptional<z.ZodString>;
5
5
  callId: z.ZodString;
6
6
  state: z.ZodEnum<{
7
- connecting: "connecting";
8
7
  connected: "connected";
8
+ connecting: "connecting";
9
9
  ringing: "ringing";
10
10
  terminated: "terminated";
11
11
  }>;
@@ -23,8 +23,8 @@ export declare const intercomTerminalEventSchemaByKind: {
23
23
  userId: z.ZodOptional<z.ZodString>;
24
24
  callId: z.ZodString;
25
25
  state: z.ZodEnum<{
26
- connecting: "connecting";
27
26
  connected: "connected";
27
+ connecting: "connecting";
28
28
  ringing: "ringing";
29
29
  terminated: "terminated";
30
30
  }>;
@@ -46,24 +46,19 @@ export declare const sBindStreamAnalyticsRq: z.ZodObject<{
46
46
  streamId: z.ZodString;
47
47
  motionDetection: z.ZodOptional<z.ZodObject<{
48
48
  threshold: z.ZodOptional<z.ZodNumber>;
49
- enabled: z.ZodBoolean;
50
49
  fps: z.ZodOptional<z.ZodNumber>;
51
50
  }, z.core.$strip>>;
52
51
  labelDetection: z.ZodOptional<z.ZodObject<{
53
52
  labels: z.ZodRecord<z.ZodString, z.ZodObject<{
54
53
  threshold: z.ZodOptional<z.ZodNumber>;
55
- enabled: z.ZodBoolean;
56
54
  }, z.core.$strip>>;
57
- enabled: z.ZodBoolean;
58
55
  fps: z.ZodOptional<z.ZodNumber>;
59
56
  }, z.core.$strip>>;
60
57
  faceRecognition: z.ZodOptional<z.ZodObject<{
61
58
  threshold: z.ZodOptional<z.ZodNumber>;
62
- enabled: z.ZodBoolean;
63
59
  fps: z.ZodOptional<z.ZodNumber>;
64
60
  }, z.core.$strip>>;
65
61
  semanticSearch: z.ZodOptional<z.ZodObject<{
66
- enabled: z.ZodBoolean;
67
62
  fps: z.ZodOptional<z.ZodNumber>;
68
63
  }, z.core.$strip>>;
69
64
  }, z.core.$strip>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sUnbindStreamAnalyticsRs = exports.sUnbindStreamAnalyticsRq = exports.sBindStreamAnalyticsRs = exports.sBindStreamAnalyticsRq = exports.sUnbindStreamRecorderRs = exports.sUnbindStreamRecorderRq = exports.sBindStreamRecorderRs = exports.sBindStreamRecorderRq = exports.sDeleteCameraStreamRs = exports.sDeleteCameraStreamRq = exports.sAddCameraStreamRs = exports.sPatchCameraStreamRs = exports.sPatchCameraStreamRq = exports.sAddCameraStreamRq = exports.sAddCameraRs = exports.sAddCameraRq = void 0;
4
4
  const zod_1 = require("zod");
5
- const device_relation_1 = require("../../objects/device/device-relation");
5
+ const objects_1 = require("../../objects");
6
6
  exports.sAddCameraRq = zod_1.z.object({
7
7
  displayName: zod_1.z.string().nonempty(),
8
8
  });
@@ -50,7 +50,7 @@ exports.sBindStreamAnalyticsRq = zod_1.z
50
50
  cameraId: zod_1.z.string().nonempty(),
51
51
  streamId: zod_1.z.string().nonempty(),
52
52
  })
53
- .extend(device_relation_1.sAiStreamConfiguration.shape);
53
+ .extend(objects_1.sAiStreamConfiguration.shape);
54
54
  exports.sBindStreamAnalyticsRs = zod_1.z.object({});
55
55
  exports.sUnbindStreamAnalyticsRq = zod_1.z.object({
56
56
  analyticsServerId: zod_1.z.string().nonempty(),
@@ -56,12 +56,14 @@ export declare const sAddDeviceRequest: z.ZodObject<{
56
56
  system: "system";
57
57
  }>;
58
58
  specs: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>;
59
+ displaySettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
60
  }, z.core.$strip>;
60
61
  export declare const sUpdateDeviceRequest: z.ZodObject<{
61
62
  id: z.ZodString;
62
63
  name: z.ZodOptional<z.ZodString>;
63
64
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
65
  providerMetadata: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>;
66
+ displaySettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
65
67
  specs: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>;
66
68
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
69
  relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -13,12 +13,14 @@ exports.sAddDeviceRequest = zod_1.z.object({
13
13
  relations: zod_1.z.array(objects_1.sDeviceRelationSide),
14
14
  type: objects_1.sDeviceType,
15
15
  specs: zod_1.z.object({}).catchall(zod_1.z.unknown()).optional(),
16
+ displaySettings: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
16
17
  });
17
18
  exports.sUpdateDeviceRequest = zod_1.z.object({
18
19
  id: zod_1.z.string().nonempty(),
19
20
  name: zod_1.z.string().optional(),
20
21
  notes: zod_1.z.string().nullable().optional(),
21
22
  providerMetadata: zod_1.z.object({}).catchall(zod_1.z.unknown()).optional(),
23
+ displaySettings: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
22
24
  specs: zod_1.z.object({}).catchall(zod_1.z.unknown()).optional(),
23
25
  tags: zod_1.z.array(zod_1.z.string()).optional(),
24
26
  relations: zod_1.z.array(objects_1.sDeviceRelationSide).optional(),
@@ -64,11 +64,106 @@ export declare const sCameraSpecs: z.ZodObject<{
64
64
  }, z.core.$strip>;
65
65
  export type WebRtcPlaybackSource = z.infer<typeof sWebRtcPlaybackSource>;
66
66
  export type CameraSpecs = z.infer<typeof sCameraSpecs>;
67
- export interface CameraStateDto {
68
- pan: number;
69
- tilt: number;
70
- zoom: number;
71
- enabled: boolean;
72
- objectDetectionEnabled: boolean;
73
- connected: boolean;
74
- }
67
+ export declare const sMotionDetectionConfiguration: z.ZodObject<{
68
+ threshold: z.ZodOptional<z.ZodNumber>;
69
+ fps: z.ZodOptional<z.ZodNumber>;
70
+ }, z.core.$strip>;
71
+ export type MotionDetectionConfiguration = z.infer<typeof sMotionDetectionConfiguration>;
72
+ export declare const sAiLabelConfiguration: z.ZodObject<{
73
+ threshold: z.ZodOptional<z.ZodNumber>;
74
+ }, z.core.$strip>;
75
+ export type AiLabelConfiguration = z.infer<typeof sAiLabelConfiguration>;
76
+ export declare const sAiDetectionConfiguration: z.ZodObject<{
77
+ labels: z.ZodRecord<z.ZodString, z.ZodObject<{
78
+ threshold: z.ZodOptional<z.ZodNumber>;
79
+ }, z.core.$strip>>;
80
+ fps: z.ZodOptional<z.ZodNumber>;
81
+ }, z.core.$strip>;
82
+ export type AiDetectionConfiguration = z.infer<typeof sAiDetectionConfiguration>;
83
+ export declare const sAiFaceRecognitionConfiguration: z.ZodObject<{
84
+ threshold: z.ZodOptional<z.ZodNumber>;
85
+ fps: z.ZodOptional<z.ZodNumber>;
86
+ }, z.core.$strip>;
87
+ export type AiFaceRecognitionConfiguration = z.infer<typeof sAiFaceRecognitionConfiguration>;
88
+ export declare const sAiSemanticSearchConfiguration: z.ZodObject<{
89
+ fps: z.ZodOptional<z.ZodNumber>;
90
+ }, z.core.$strip>;
91
+ export type AiSemanticSearchConfiguration = z.infer<typeof sAiSemanticSearchConfiguration>;
92
+ export declare const sAiStreamConfiguration: z.ZodObject<{
93
+ motionDetection: z.ZodOptional<z.ZodObject<{
94
+ threshold: z.ZodOptional<z.ZodNumber>;
95
+ fps: z.ZodOptional<z.ZodNumber>;
96
+ }, z.core.$strip>>;
97
+ labelDetection: z.ZodOptional<z.ZodObject<{
98
+ labels: z.ZodRecord<z.ZodString, z.ZodObject<{
99
+ threshold: z.ZodOptional<z.ZodNumber>;
100
+ }, z.core.$strip>>;
101
+ fps: z.ZodOptional<z.ZodNumber>;
102
+ }, z.core.$strip>>;
103
+ faceRecognition: z.ZodOptional<z.ZodObject<{
104
+ threshold: z.ZodOptional<z.ZodNumber>;
105
+ fps: z.ZodOptional<z.ZodNumber>;
106
+ }, z.core.$strip>>;
107
+ semanticSearch: z.ZodOptional<z.ZodObject<{
108
+ fps: z.ZodOptional<z.ZodNumber>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>;
111
+ export declare const sAiCapability: z.ZodEnum<{
112
+ motionDetection: "motionDetection";
113
+ labelDetection: "labelDetection";
114
+ faceRecognition: "faceRecognition";
115
+ semanticSearch: "semanticSearch";
116
+ }>;
117
+ export type AiCapability = z.infer<typeof sAiCapability>;
118
+ export type AiStreamConfiguration = z.infer<typeof sAiStreamConfiguration>;
119
+ export declare const sAnalyticsConfigData: z.ZodObject<{
120
+ streams: z.ZodRecord<z.ZodString, z.ZodObject<{
121
+ motionDetection: z.ZodOptional<z.ZodObject<{
122
+ threshold: z.ZodOptional<z.ZodNumber>;
123
+ fps: z.ZodOptional<z.ZodNumber>;
124
+ }, z.core.$strip>>;
125
+ labelDetection: z.ZodOptional<z.ZodObject<{
126
+ labels: z.ZodRecord<z.ZodString, z.ZodObject<{
127
+ threshold: z.ZodOptional<z.ZodNumber>;
128
+ }, z.core.$strip>>;
129
+ fps: z.ZodOptional<z.ZodNumber>;
130
+ }, z.core.$strip>>;
131
+ faceRecognition: z.ZodOptional<z.ZodObject<{
132
+ threshold: z.ZodOptional<z.ZodNumber>;
133
+ fps: z.ZodOptional<z.ZodNumber>;
134
+ }, z.core.$strip>>;
135
+ semanticSearch: z.ZodOptional<z.ZodObject<{
136
+ fps: z.ZodOptional<z.ZodNumber>;
137
+ }, z.core.$strip>>;
138
+ }, z.core.$strip>>;
139
+ }, z.core.$strip>;
140
+ export declare const sCameraState: z.ZodObject<{
141
+ pan: z.ZodNumber;
142
+ tilt: z.ZodNumber;
143
+ zoom: z.ZodNumber;
144
+ enabled: z.ZodBoolean;
145
+ connected: z.ZodBoolean;
146
+ analytics: z.ZodObject<{
147
+ streams: z.ZodRecord<z.ZodString, z.ZodObject<{
148
+ motionDetection: z.ZodOptional<z.ZodObject<{
149
+ threshold: z.ZodOptional<z.ZodNumber>;
150
+ fps: z.ZodOptional<z.ZodNumber>;
151
+ }, z.core.$strip>>;
152
+ labelDetection: z.ZodOptional<z.ZodObject<{
153
+ labels: z.ZodRecord<z.ZodString, z.ZodObject<{
154
+ threshold: z.ZodOptional<z.ZodNumber>;
155
+ }, z.core.$strip>>;
156
+ fps: z.ZodOptional<z.ZodNumber>;
157
+ }, z.core.$strip>>;
158
+ faceRecognition: z.ZodOptional<z.ZodObject<{
159
+ threshold: z.ZodOptional<z.ZodNumber>;
160
+ fps: z.ZodOptional<z.ZodNumber>;
161
+ }, z.core.$strip>>;
162
+ semanticSearch: z.ZodOptional<z.ZodObject<{
163
+ fps: z.ZodOptional<z.ZodNumber>;
164
+ }, z.core.$strip>>;
165
+ }, z.core.$strip>>;
166
+ }, z.core.$strip>;
167
+ }, z.core.$strip>;
168
+ export type CameraStateDto = z.infer<typeof sCameraState>;
169
+ export type AnalyticsConfigData = z.infer<typeof sAnalyticsConfigData>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sCameraSpecs = exports.sStreamInfo = exports.sWebRtcPlaybackSource = exports.CAMERA = void 0;
3
+ exports.sCameraState = exports.sAnalyticsConfigData = exports.sAiCapability = exports.sAiStreamConfiguration = exports.sAiSemanticSearchConfiguration = exports.sAiFaceRecognitionConfiguration = exports.sAiDetectionConfiguration = exports.sAiLabelConfiguration = exports.sMotionDetectionConfiguration = exports.sCameraSpecs = exports.sStreamInfo = exports.sWebRtcPlaybackSource = exports.CAMERA = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CAMERA = 'camera';
6
6
  // SPECS
@@ -36,3 +36,51 @@ exports.sCameraSpecs = zod_1.z.object({
36
36
  autoSwitchStreams: zod_1.z.boolean(),
37
37
  streamNaming: zod_1.z.enum(['cameraStreamNo', 'cameraStream', 'stream']),
38
38
  });
39
+ // STATE
40
+ exports.sMotionDetectionConfiguration = zod_1.z.object({
41
+ threshold: zod_1.z.number().min(0).max(1).optional(),
42
+ fps: zod_1.z.number().int().positive().optional(),
43
+ });
44
+ // --- label detection module ---
45
+ exports.sAiLabelConfiguration = zod_1.z.object({
46
+ threshold: zod_1.z.number().min(0).max(1).optional(),
47
+ });
48
+ exports.sAiDetectionConfiguration = zod_1.z.object({
49
+ labels: zod_1.z.record(zod_1.z.string(), exports.sAiLabelConfiguration),
50
+ fps: zod_1.z.number().int().positive().optional(),
51
+ });
52
+ // --- face recognition module ---
53
+ exports.sAiFaceRecognitionConfiguration = zod_1.z.object({
54
+ threshold: zod_1.z.number().min(0).max(1).optional(),
55
+ fps: zod_1.z.number().int().positive().optional(),
56
+ });
57
+ // --- semantic search module ---
58
+ exports.sAiSemanticSearchConfiguration = zod_1.z.object({
59
+ fps: zod_1.z.number().int().positive().optional(),
60
+ });
61
+ // --- stream configuration ---
62
+ exports.sAiStreamConfiguration = zod_1.z.object({
63
+ motionDetection: exports.sMotionDetectionConfiguration.optional(),
64
+ labelDetection: exports.sAiDetectionConfiguration.optional(),
65
+ faceRecognition: exports.sAiFaceRecognitionConfiguration.optional(),
66
+ semanticSearch: exports.sAiSemanticSearchConfiguration.optional(),
67
+ });
68
+ exports.sAiCapability = zod_1.z.enum([
69
+ 'motionDetection',
70
+ 'labelDetection',
71
+ 'faceRecognition',
72
+ 'semanticSearch',
73
+ ]);
74
+ // all together now: AI inference relation data
75
+ exports.sAnalyticsConfigData = zod_1.z.object({
76
+ streams: zod_1.z.record(zod_1.z.string(), exports.sAiStreamConfiguration),
77
+ });
78
+ exports.sCameraState = zod_1.z.object({
79
+ pan: zod_1.z.number().min(-1).max(1),
80
+ tilt: zod_1.z.number().min(-1).max(1),
81
+ zoom: zod_1.z.number().min(0).max(1),
82
+ enabled: zod_1.z.boolean(),
83
+ connected: zod_1.z.boolean(),
84
+ analytics: exports.sAnalyticsConfigData,
85
+ // TODO recording: ...
86
+ });
@@ -92,94 +92,13 @@ export declare const sRecordingRelationData: z.ZodObject<{
92
92
  }, z.core.$strip>;
93
93
  export type StreamRecorderSettings = z.infer<typeof sStreamRecorderSettings>;
94
94
  export type RecordingRelationData = z.infer<typeof sRecordingRelationData>;
95
- export declare const sMotionDetectionConfiguration: z.ZodObject<{
96
- threshold: z.ZodOptional<z.ZodNumber>;
97
- enabled: z.ZodBoolean;
98
- fps: z.ZodOptional<z.ZodNumber>;
99
- }, z.core.$strip>;
100
- export type MotionDetectionConfiguration = z.infer<typeof sMotionDetectionConfiguration>;
101
- export declare const sAiLabelConfiguration: z.ZodObject<{
102
- threshold: z.ZodOptional<z.ZodNumber>;
103
- enabled: z.ZodBoolean;
104
- }, z.core.$strip>;
105
- export type AiLabelConfiguration = z.infer<typeof sAiLabelConfiguration>;
106
- export declare const sAiDetectionConfiguration: z.ZodObject<{
107
- labels: z.ZodRecord<z.ZodString, z.ZodObject<{
108
- threshold: z.ZodOptional<z.ZodNumber>;
109
- enabled: z.ZodBoolean;
110
- }, z.core.$strip>>;
111
- enabled: z.ZodBoolean;
112
- fps: z.ZodOptional<z.ZodNumber>;
113
- }, z.core.$strip>;
114
- export type AiDetectionConfiguration = z.infer<typeof sAiDetectionConfiguration>;
115
- export declare const sAiFaceRecognitionConfiguration: z.ZodObject<{
116
- threshold: z.ZodOptional<z.ZodNumber>;
117
- enabled: z.ZodBoolean;
118
- fps: z.ZodOptional<z.ZodNumber>;
119
- }, z.core.$strip>;
120
- export type AiFaceRecognitionConfiguration = z.infer<typeof sAiFaceRecognitionConfiguration>;
121
- export declare const sAiSemanticSearchConfiguration: z.ZodObject<{
122
- enabled: z.ZodBoolean;
123
- fps: z.ZodOptional<z.ZodNumber>;
124
- }, z.core.$strip>;
125
- export type AiSemanticSearchConfiguration = z.infer<typeof sAiSemanticSearchConfiguration>;
126
- export declare const sAiStreamConfiguration: z.ZodObject<{
127
- motionDetection: z.ZodOptional<z.ZodObject<{
128
- threshold: z.ZodOptional<z.ZodNumber>;
129
- enabled: z.ZodBoolean;
130
- fps: z.ZodOptional<z.ZodNumber>;
131
- }, z.core.$strip>>;
132
- labelDetection: z.ZodOptional<z.ZodObject<{
133
- labels: z.ZodRecord<z.ZodString, z.ZodObject<{
134
- threshold: z.ZodOptional<z.ZodNumber>;
135
- enabled: z.ZodBoolean;
136
- }, z.core.$strip>>;
137
- enabled: z.ZodBoolean;
138
- fps: z.ZodOptional<z.ZodNumber>;
139
- }, z.core.$strip>>;
140
- faceRecognition: z.ZodOptional<z.ZodObject<{
141
- threshold: z.ZodOptional<z.ZodNumber>;
142
- enabled: z.ZodBoolean;
143
- fps: z.ZodOptional<z.ZodNumber>;
144
- }, z.core.$strip>>;
145
- semanticSearch: z.ZodOptional<z.ZodObject<{
146
- enabled: z.ZodBoolean;
147
- fps: z.ZodOptional<z.ZodNumber>;
148
- }, z.core.$strip>>;
149
- }, z.core.$strip>;
150
- export declare const sAiCapability: z.ZodEnum<{
151
- motionDetection: "motionDetection";
152
- labelDetection: "labelDetection";
153
- faceRecognition: "faceRecognition";
154
- semanticSearch: "semanticSearch";
155
- }>;
156
- export type AiCapability = z.infer<typeof sAiCapability>;
157
- export type AiStreamConfiguration = z.infer<typeof sAiStreamConfiguration>;
158
95
  export declare const sAiInferenceRelationData: z.ZodObject<{
159
- streams: z.ZodRecord<z.ZodString, z.ZodObject<{
160
- motionDetection: z.ZodOptional<z.ZodObject<{
161
- threshold: z.ZodOptional<z.ZodNumber>;
162
- enabled: z.ZodBoolean;
163
- fps: z.ZodOptional<z.ZodNumber>;
164
- }, z.core.$strip>>;
165
- labelDetection: z.ZodOptional<z.ZodObject<{
166
- labels: z.ZodRecord<z.ZodString, z.ZodObject<{
167
- threshold: z.ZodOptional<z.ZodNumber>;
168
- enabled: z.ZodBoolean;
169
- }, z.core.$strip>>;
170
- enabled: z.ZodBoolean;
171
- fps: z.ZodOptional<z.ZodNumber>;
172
- }, z.core.$strip>>;
173
- faceRecognition: z.ZodOptional<z.ZodObject<{
174
- threshold: z.ZodOptional<z.ZodNumber>;
175
- enabled: z.ZodBoolean;
176
- fps: z.ZodOptional<z.ZodNumber>;
177
- }, z.core.$strip>>;
178
- semanticSearch: z.ZodOptional<z.ZodObject<{
179
- enabled: z.ZodBoolean;
180
- fps: z.ZodOptional<z.ZodNumber>;
181
- }, z.core.$strip>>;
182
- }, z.core.$strip>>;
96
+ capabilities: z.ZodArray<z.ZodEnum<{
97
+ motionDetection: "motionDetection";
98
+ labelDetection: "labelDetection";
99
+ faceRecognition: "faceRecognition";
100
+ semanticSearch: "semanticSearch";
101
+ }>>;
183
102
  }, z.core.$strip>;
184
103
  export type AiInferenceRelationData = z.infer<typeof sAiInferenceRelationData>;
185
104
  export declare const sIoBoardRelationData: z.ZodObject<{
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sDeviceRelationDataMap = exports.sIoBoardRelationData = exports.sAiInferenceRelationData = exports.sAiCapability = exports.sAiStreamConfiguration = exports.sAiSemanticSearchConfiguration = exports.sAiFaceRecognitionConfiguration = exports.sAiDetectionConfiguration = exports.sAiLabelConfiguration = exports.sMotionDetectionConfiguration = exports.sRecordingRelationData = exports.sStreamRecorderSettings = exports.inverseRelationKinds = exports.relationKinds = exports.sDeviceRelationSide = exports.sDeviceRelationDto = exports.sDeviceRelationKind = void 0;
3
+ exports.sDeviceRelationDataMap = exports.sIoBoardRelationData = exports.sAiInferenceRelationData = exports.sRecordingRelationData = exports.sStreamRecorderSettings = exports.inverseRelationKinds = exports.relationKinds = exports.sDeviceRelationSide = exports.sDeviceRelationDto = exports.sDeviceRelationKind = void 0;
4
4
  const zod_1 = require("zod");
5
+ const camera_1 = require("./camera");
5
6
  exports.sDeviceRelationKind = zod_1.z.enum([
6
7
  'attachedTo',
7
8
  'parent',
@@ -94,48 +95,8 @@ exports.sRecordingRelationData = zod_1.z.object({
94
95
  });
95
96
  // AI INFERENCE RELATION DATA
96
97
  // --- motion detection module ---
97
- exports.sMotionDetectionConfiguration = zod_1.z.object({
98
- threshold: zod_1.z.number().min(0).max(1).optional(),
99
- enabled: zod_1.z.boolean(),
100
- fps: zod_1.z.number().int().positive().optional(),
101
- });
102
- // --- label detection module ---
103
- exports.sAiLabelConfiguration = zod_1.z.object({
104
- threshold: zod_1.z.number().min(0).max(1).optional(),
105
- enabled: zod_1.z.boolean(),
106
- });
107
- exports.sAiDetectionConfiguration = zod_1.z.object({
108
- labels: zod_1.z.record(zod_1.z.string(), exports.sAiLabelConfiguration),
109
- enabled: zod_1.z.boolean(),
110
- fps: zod_1.z.number().int().positive().optional(),
111
- });
112
- // --- face recognition module ---
113
- exports.sAiFaceRecognitionConfiguration = zod_1.z.object({
114
- threshold: zod_1.z.number().min(0).max(1).optional(),
115
- enabled: zod_1.z.boolean(),
116
- fps: zod_1.z.number().int().positive().optional(),
117
- });
118
- // --- semantic search module ---
119
- exports.sAiSemanticSearchConfiguration = zod_1.z.object({
120
- enabled: zod_1.z.boolean(),
121
- fps: zod_1.z.number().int().positive().optional(),
122
- });
123
- // --- stream configuration ---
124
- exports.sAiStreamConfiguration = zod_1.z.object({
125
- motionDetection: exports.sMotionDetectionConfiguration.optional(),
126
- labelDetection: exports.sAiDetectionConfiguration.optional(),
127
- faceRecognition: exports.sAiFaceRecognitionConfiguration.optional(),
128
- semanticSearch: exports.sAiSemanticSearchConfiguration.optional(),
129
- });
130
- exports.sAiCapability = zod_1.z.enum([
131
- 'motionDetection',
132
- 'labelDetection',
133
- 'faceRecognition',
134
- 'semanticSearch',
135
- ]);
136
- // all together now: AI inference relation data
137
98
  exports.sAiInferenceRelationData = zod_1.z.object({
138
- streams: zod_1.z.record(zod_1.z.string(), exports.sAiStreamConfiguration),
99
+ capabilities: camera_1.sAiCapability.array(),
139
100
  });
140
101
  // IO BOARD CONNECTIONS RELATION DATA
141
102
  exports.sIoBoardRelationData = zod_1.z.object({
@@ -22,8 +22,8 @@ export type IntercomTerminalSpecs = z.infer<typeof sIntercomTerminalSpecs>;
22
22
  export type AddIntercomTerminalRequest = z.infer<typeof sAddIntercomTerminal>;
23
23
  export declare const sIntercomTerminalState: z.ZodObject<{
24
24
  callState: z.ZodNullable<z.ZodEnum<{
25
- connecting: "connecting";
26
25
  connected: "connected";
26
+ connecting: "connecting";
27
27
  ringing: "ringing";
28
28
  terminated: "terminated";
29
29
  }>>;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sAnalyticsServerStateDto = exports.sAnalyticsServerSpecs = exports.NVR_ANALYTICS_SERVER = void 0;
4
4
  const zod_1 = require("zod");
5
- const device_relation_1 = require("./device-relation");
5
+ const camera_1 = require("./camera");
6
6
  exports.NVR_ANALYTICS_SERVER = 'nvr-analytics-server';
7
7
  exports.sAnalyticsServerSpecs = zod_1.z.object({
8
- capabilities: zod_1.z.array(device_relation_1.sAiCapability),
8
+ capabilities: zod_1.z.array(camera_1.sAiCapability),
9
9
  });
10
10
  exports.sAnalyticsServerStateDto = zod_1.z.object({
11
11
  connected: zod_1.z.boolean(),
@@ -5,8 +5,8 @@ export type RecorderSpecs = z.infer<typeof sRecorderSpecs>;
5
5
  export declare const sRecorderStreamStateDto: z.ZodObject<{
6
6
  upstreamState: z.ZodEnum<{
7
7
  error: "error";
8
- connecting: "connecting";
9
8
  connected: "connected";
9
+ connecting: "connecting";
10
10
  disconnected: "disconnected";
11
11
  }>;
12
12
  upstreamError: z.ZodNullable<z.ZodString>;
@@ -26,8 +26,8 @@ export declare const sRecorderStateDto: z.ZodObject<{
26
26
  cameras: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
27
27
  upstreamState: z.ZodEnum<{
28
28
  error: "error";
29
- connecting: "connecting";
30
29
  connected: "connected";
30
+ connecting: "connecting";
31
31
  disconnected: "disconnected";
32
32
  }>;
33
33
  upstreamError: z.ZodNullable<z.ZodString>;
package/dist/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.111",
7
+ "version": "2.0.113",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
@@ -277,8 +277,8 @@ export declare const sCameraPresetInfo: z.ZodObject<{
277
277
  }, z.core.$strip>;
278
278
  export type CameraPresetInfo = z.infer<typeof sCameraPresetInfo>;
279
279
  export declare const sCallState: z.ZodEnum<{
280
- connecting: "connecting";
281
280
  connected: "connected";
281
+ connecting: "connecting";
282
282
  ringing: "ringing";
283
283
  terminated: "terminated";
284
284
  }>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.111",
7
+ "version": "2.0.113",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",