@awarevue/api-types 2.0.112 → 2.0.114
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.
- package/dist/api/commands/all.d.ts +3 -4
- package/dist/api/commands/nvr-analytics-server.d.ts +6 -8
- package/dist/api/commands/nvr-analytics-server.js +2 -2
- package/dist/api/events/all.d.ts +1 -1
- package/dist/api/events/intercom-terminal.d.ts +2 -2
- package/dist/api/rest/camera.d.ts +3 -4
- package/dist/api/rest/camera.js +2 -2
- package/dist/objects/device/camera.d.ts +120 -8
- package/dist/objects/device/camera.js +53 -1
- package/dist/objects/device/device-relation.d.ts +6 -87
- package/dist/objects/device/device-relation.js +3 -42
- package/dist/objects/device/intercom-terminal.d.ts +1 -1
- package/dist/objects/device/nvr-analytics-server.js +2 -2
- package/dist/objects/device/nvr-recorder.d.ts +2 -2
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +1 -1
- package/package.json +1 -1
|
@@ -280,25 +280,24 @@ 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>;
|
|
284
|
+
enabled: import("zod").ZodBoolean;
|
|
285
285
|
}, import("zod/v4/core").$strip>>;
|
|
286
286
|
labelDetection: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
287
287
|
labels: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
288
288
|
threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
289
289
|
enabled: import("zod").ZodBoolean;
|
|
290
290
|
}, import("zod/v4/core").$strip>>;
|
|
291
|
-
enabled: import("zod").ZodBoolean;
|
|
292
291
|
fps: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
293
292
|
}, import("zod/v4/core").$strip>>;
|
|
294
293
|
faceRecognition: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
295
294
|
threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
296
|
-
enabled: import("zod").ZodBoolean;
|
|
297
295
|
fps: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
296
|
+
enabled: import("zod").ZodBoolean;
|
|
298
297
|
}, import("zod/v4/core").$strip>>;
|
|
299
298
|
semanticSearch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
300
|
-
enabled: import("zod").ZodBoolean;
|
|
301
299
|
fps: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
300
|
+
enabled: import("zod").ZodBoolean;
|
|
302
301
|
}, import("zod/v4/core").$strip>>;
|
|
303
302
|
}, import("zod/v4/core").$strip>;
|
|
304
303
|
}, import("zod/v4/core").$strip>;
|
|
@@ -123,25 +123,24 @@ 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>;
|
|
127
|
+
enabled: z.ZodBoolean;
|
|
128
128
|
}, z.core.$strip>>;
|
|
129
129
|
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
130
130
|
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
131
131
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
132
132
|
enabled: z.ZodBoolean;
|
|
133
133
|
}, z.core.$strip>>;
|
|
134
|
-
enabled: z.ZodBoolean;
|
|
135
134
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
136
135
|
}, z.core.$strip>>;
|
|
137
136
|
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
138
137
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
enabled: z.ZodBoolean;
|
|
140
138
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
enabled: z.ZodBoolean;
|
|
141
140
|
}, z.core.$strip>>;
|
|
142
141
|
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
143
|
-
enabled: z.ZodBoolean;
|
|
144
142
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
enabled: z.ZodBoolean;
|
|
145
144
|
}, z.core.$strip>>;
|
|
146
145
|
}, z.core.$strip>;
|
|
147
146
|
}, z.core.$strip>;
|
|
@@ -272,25 +271,24 @@ export declare const nvrAnalyticsServerCommandSchemas: {
|
|
|
272
271
|
rtspUrl: z.ZodString;
|
|
273
272
|
motionDetection: z.ZodOptional<z.ZodObject<{
|
|
274
273
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
275
|
-
enabled: z.ZodBoolean;
|
|
276
274
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
enabled: z.ZodBoolean;
|
|
277
276
|
}, z.core.$strip>>;
|
|
278
277
|
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
279
278
|
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
280
279
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
281
280
|
enabled: z.ZodBoolean;
|
|
282
281
|
}, z.core.$strip>>;
|
|
283
|
-
enabled: z.ZodBoolean;
|
|
284
282
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
285
283
|
}, z.core.$strip>>;
|
|
286
284
|
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
287
285
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
288
|
-
enabled: z.ZodBoolean;
|
|
289
286
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
enabled: z.ZodBoolean;
|
|
290
288
|
}, z.core.$strip>>;
|
|
291
289
|
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
292
|
-
enabled: z.ZodBoolean;
|
|
293
290
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
enabled: z.ZodBoolean;
|
|
294
292
|
}, z.core.$strip>>;
|
|
295
293
|
}, z.core.$strip>;
|
|
296
294
|
}, 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
|
|
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(
|
|
16
|
+
.extend(objects_1.sAiStreamConfiguration.shape),
|
|
17
17
|
});
|
|
18
18
|
exports.nvrAnalyticsServerCommandSchemas = {
|
|
19
19
|
'nvr-analytics-server.set-stream-analytics': exports.sSetStreamAnalyticsCommand,
|
package/dist/api/events/all.d.ts
CHANGED
|
@@ -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,25 +46,24 @@ 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>;
|
|
50
|
+
enabled: z.ZodBoolean;
|
|
51
51
|
}, z.core.$strip>>;
|
|
52
52
|
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
53
53
|
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
54
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
55
55
|
enabled: z.ZodBoolean;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
|
-
enabled: z.ZodBoolean;
|
|
58
57
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
59
58
|
}, z.core.$strip>>;
|
|
60
59
|
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
61
60
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
enabled: z.ZodBoolean;
|
|
63
61
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
enabled: z.ZodBoolean;
|
|
64
63
|
}, z.core.$strip>>;
|
|
65
64
|
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
66
|
-
enabled: z.ZodBoolean;
|
|
67
65
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
enabled: z.ZodBoolean;
|
|
68
67
|
}, z.core.$strip>>;
|
|
69
68
|
}, z.core.$strip>;
|
|
70
69
|
export declare const sBindStreamAnalyticsRs: z.ZodObject<{}, z.core.$strip>;
|
package/dist/api/rest/camera.js
CHANGED
|
@@ -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
|
|
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(
|
|
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(),
|
|
@@ -64,11 +64,123 @@ 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
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
export declare const sMotionDetectionConfiguration: z.ZodObject<{
|
|
68
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
enabled: z.ZodBoolean;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type MotionDetectionConfiguration = z.infer<typeof sMotionDetectionConfiguration>;
|
|
73
|
+
export declare const sAiLabelConfiguration: z.ZodObject<{
|
|
74
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
enabled: z.ZodBoolean;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type AiLabelConfiguration = z.infer<typeof sAiLabelConfiguration>;
|
|
78
|
+
export declare const sAiDetectionConfiguration: z.ZodObject<{
|
|
79
|
+
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
80
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
enabled: z.ZodBoolean;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type AiDetectionConfiguration = z.infer<typeof sAiDetectionConfiguration>;
|
|
86
|
+
export declare const sAiFaceRecognitionConfiguration: z.ZodObject<{
|
|
87
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
enabled: z.ZodBoolean;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type AiFaceRecognitionConfiguration = z.infer<typeof sAiFaceRecognitionConfiguration>;
|
|
92
|
+
export declare const sAiSemanticSearchConfiguration: z.ZodObject<{
|
|
93
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
enabled: z.ZodBoolean;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type AiSemanticSearchConfiguration = z.infer<typeof sAiSemanticSearchConfiguration>;
|
|
97
|
+
export declare const sAiStreamConfiguration: z.ZodObject<{
|
|
98
|
+
motionDetection: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
enabled: z.ZodBoolean;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
105
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
enabled: z.ZodBoolean;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
enabled: z.ZodBoolean;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
enabled: z.ZodBoolean;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export declare const sAiCapability: z.ZodEnum<{
|
|
121
|
+
motionDetection: "motionDetection";
|
|
122
|
+
labelDetection: "labelDetection";
|
|
123
|
+
faceRecognition: "faceRecognition";
|
|
124
|
+
semanticSearch: "semanticSearch";
|
|
125
|
+
}>;
|
|
126
|
+
export type AiCapability = z.infer<typeof sAiCapability>;
|
|
127
|
+
export type AiStreamConfiguration = z.infer<typeof sAiStreamConfiguration>;
|
|
128
|
+
export declare const sAnalyticsConfigData: z.ZodObject<{
|
|
129
|
+
streams: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
130
|
+
motionDetection: z.ZodOptional<z.ZodObject<{
|
|
131
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
enabled: z.ZodBoolean;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
137
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
enabled: z.ZodBoolean;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
enabled: z.ZodBoolean;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
enabled: z.ZodBoolean;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export declare const sCameraState: z.ZodObject<{
|
|
154
|
+
pan: z.ZodNumber;
|
|
155
|
+
tilt: z.ZodNumber;
|
|
156
|
+
zoom: z.ZodNumber;
|
|
157
|
+
enabled: z.ZodBoolean;
|
|
158
|
+
connected: z.ZodBoolean;
|
|
159
|
+
analytics: z.ZodObject<{
|
|
160
|
+
streams: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
161
|
+
motionDetection: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
enabled: z.ZodBoolean;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
167
|
+
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
168
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
enabled: z.ZodBoolean;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
174
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
enabled: z.ZodBoolean;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
enabled: z.ZodBoolean;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export type CameraStateDto = z.infer<typeof sCameraState>;
|
|
186
|
+
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,55 @@ 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
|
+
enabled: zod_1.z.boolean(),
|
|
44
|
+
});
|
|
45
|
+
// --- label detection module ---
|
|
46
|
+
exports.sAiLabelConfiguration = zod_1.z.object({
|
|
47
|
+
threshold: zod_1.z.number().min(0).max(1).optional(),
|
|
48
|
+
enabled: zod_1.z.boolean(),
|
|
49
|
+
});
|
|
50
|
+
exports.sAiDetectionConfiguration = zod_1.z.object({
|
|
51
|
+
labels: zod_1.z.record(zod_1.z.string(), exports.sAiLabelConfiguration),
|
|
52
|
+
fps: zod_1.z.number().int().positive().optional(),
|
|
53
|
+
});
|
|
54
|
+
// --- face recognition module ---
|
|
55
|
+
exports.sAiFaceRecognitionConfiguration = zod_1.z.object({
|
|
56
|
+
threshold: zod_1.z.number().min(0).max(1).optional(),
|
|
57
|
+
fps: zod_1.z.number().int().positive().optional(),
|
|
58
|
+
enabled: zod_1.z.boolean(),
|
|
59
|
+
});
|
|
60
|
+
// --- semantic search module ---
|
|
61
|
+
exports.sAiSemanticSearchConfiguration = zod_1.z.object({
|
|
62
|
+
fps: zod_1.z.number().int().positive().optional(),
|
|
63
|
+
enabled: zod_1.z.boolean(),
|
|
64
|
+
});
|
|
65
|
+
// --- stream configuration ---
|
|
66
|
+
exports.sAiStreamConfiguration = zod_1.z.object({
|
|
67
|
+
motionDetection: exports.sMotionDetectionConfiguration.optional(),
|
|
68
|
+
labelDetection: exports.sAiDetectionConfiguration.optional(),
|
|
69
|
+
faceRecognition: exports.sAiFaceRecognitionConfiguration.optional(),
|
|
70
|
+
semanticSearch: exports.sAiSemanticSearchConfiguration.optional(),
|
|
71
|
+
});
|
|
72
|
+
exports.sAiCapability = zod_1.z.enum([
|
|
73
|
+
'motionDetection',
|
|
74
|
+
'labelDetection',
|
|
75
|
+
'faceRecognition',
|
|
76
|
+
'semanticSearch',
|
|
77
|
+
]);
|
|
78
|
+
// all together now: AI inference relation data
|
|
79
|
+
exports.sAnalyticsConfigData = zod_1.z.object({
|
|
80
|
+
streams: zod_1.z.record(zod_1.z.string(), exports.sAiStreamConfiguration),
|
|
81
|
+
});
|
|
82
|
+
exports.sCameraState = zod_1.z.object({
|
|
83
|
+
pan: zod_1.z.number().min(-1).max(1),
|
|
84
|
+
tilt: zod_1.z.number().min(-1).max(1),
|
|
85
|
+
zoom: zod_1.z.number().min(0).max(1),
|
|
86
|
+
enabled: zod_1.z.boolean(),
|
|
87
|
+
connected: zod_1.z.boolean(),
|
|
88
|
+
analytics: exports.sAnalyticsConfigData,
|
|
89
|
+
// TODO recording: ...
|
|
90
|
+
});
|
|
@@ -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
|
-
|
|
160
|
-
motionDetection:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
|
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(
|
|
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.
|
|
7
|
+
"version": "2.0.114",
|
|
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",
|
package/dist/primitives.d.ts
CHANGED
|
@@ -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.
|
|
7
|
+
"version": "2.0.114",
|
|
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",
|