@awarevue/api-types 2.0.128 → 2.0.129
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/events/all.d.ts +1 -1
- package/dist/api/events/intercom-terminal.d.ts +2 -2
- package/dist/objects/device/camera.d.ts +43 -0
- package/dist/objects/device/camera.js +13 -2
- package/dist/objects/device/intercom-terminal.d.ts +1 -1
- package/dist/objects/device/nvr-recorder.d.ts +0 -29
- package/dist/objects/device/nvr-recorder.js +1 -11
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +1 -1
- package/package.json +1 -1
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
|
-
connected: "connected";
|
|
135
134
|
connecting: "connecting";
|
|
135
|
+
connected: "connected";
|
|
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
|
-
connected: "connected";
|
|
8
7
|
connecting: "connecting";
|
|
8
|
+
connected: "connected";
|
|
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
|
-
connected: "connected";
|
|
27
26
|
connecting: "connecting";
|
|
27
|
+
connected: "connected";
|
|
28
28
|
ringing: "ringing";
|
|
29
29
|
terminated: "terminated";
|
|
30
30
|
}>;
|
|
@@ -150,6 +150,35 @@ export declare const sAnalyticsConfigData: z.ZodObject<{
|
|
|
150
150
|
}, z.core.$strip>>;
|
|
151
151
|
}, z.core.$strip>>;
|
|
152
152
|
}, z.core.$strip>;
|
|
153
|
+
export declare const sRecorderStreamStateDto: z.ZodObject<{
|
|
154
|
+
upstreamState: z.ZodEnum<{
|
|
155
|
+
error: "error";
|
|
156
|
+
connecting: "connecting";
|
|
157
|
+
connected: "connected";
|
|
158
|
+
disconnected: "disconnected";
|
|
159
|
+
}>;
|
|
160
|
+
upstreamError: z.ZodNullable<z.ZodString>;
|
|
161
|
+
isRecording: z.ZodBoolean;
|
|
162
|
+
head: z.ZodNullable<z.ZodNumber>;
|
|
163
|
+
tail: z.ZodNullable<z.ZodNumber>;
|
|
164
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
165
|
+
totalLengthMs: z.ZodNullable<z.ZodNumber>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
export type RecorderStreamStateDto = z.infer<typeof sRecorderStreamStateDto>;
|
|
168
|
+
export declare const sRecordingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
169
|
+
upstreamState: z.ZodEnum<{
|
|
170
|
+
error: "error";
|
|
171
|
+
connecting: "connecting";
|
|
172
|
+
connected: "connected";
|
|
173
|
+
disconnected: "disconnected";
|
|
174
|
+
}>;
|
|
175
|
+
upstreamError: z.ZodNullable<z.ZodString>;
|
|
176
|
+
isRecording: z.ZodBoolean;
|
|
177
|
+
head: z.ZodNullable<z.ZodNumber>;
|
|
178
|
+
tail: z.ZodNullable<z.ZodNumber>;
|
|
179
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
180
|
+
totalLengthMs: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
153
182
|
export declare const sCameraState: z.ZodObject<{
|
|
154
183
|
pan: z.ZodNumber;
|
|
155
184
|
tilt: z.ZodNumber;
|
|
@@ -181,6 +210,20 @@ export declare const sCameraState: z.ZodObject<{
|
|
|
181
210
|
}, z.core.$strip>>;
|
|
182
211
|
}, z.core.$strip>>;
|
|
183
212
|
}, z.core.$strip>;
|
|
213
|
+
recording: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
214
|
+
upstreamState: z.ZodEnum<{
|
|
215
|
+
error: "error";
|
|
216
|
+
connecting: "connecting";
|
|
217
|
+
connected: "connected";
|
|
218
|
+
disconnected: "disconnected";
|
|
219
|
+
}>;
|
|
220
|
+
upstreamError: z.ZodNullable<z.ZodString>;
|
|
221
|
+
isRecording: z.ZodBoolean;
|
|
222
|
+
head: z.ZodNullable<z.ZodNumber>;
|
|
223
|
+
tail: z.ZodNullable<z.ZodNumber>;
|
|
224
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
225
|
+
totalLengthMs: z.ZodNullable<z.ZodNumber>;
|
|
226
|
+
}, z.core.$strip>>;
|
|
184
227
|
}, z.core.$strip>;
|
|
185
228
|
export type CameraStateDto = z.infer<typeof sCameraState>;
|
|
186
229
|
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.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;
|
|
3
|
+
exports.sCameraState = exports.sRecordingState = exports.sRecorderStreamStateDto = 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
|
|
@@ -79,6 +79,17 @@ exports.sAiCapability = zod_1.z.enum([
|
|
|
79
79
|
exports.sAnalyticsConfigData = zod_1.z.object({
|
|
80
80
|
streams: zod_1.z.record(zod_1.z.string(), exports.sAiStreamConfiguration),
|
|
81
81
|
});
|
|
82
|
+
// RECORDING
|
|
83
|
+
exports.sRecorderStreamStateDto = zod_1.z.object({
|
|
84
|
+
upstreamState: zod_1.z.enum(['connecting', 'connected', 'disconnected', 'error']),
|
|
85
|
+
upstreamError: zod_1.z.string().nonempty().nullable(),
|
|
86
|
+
isRecording: zod_1.z.boolean(),
|
|
87
|
+
head: zod_1.z.number().nullable(),
|
|
88
|
+
tail: zod_1.z.number().nullable(),
|
|
89
|
+
totalSize: zod_1.z.number().nullable(),
|
|
90
|
+
totalLengthMs: zod_1.z.number().nullable(),
|
|
91
|
+
});
|
|
92
|
+
exports.sRecordingState = zod_1.z.record(zod_1.z.string(), exports.sRecorderStreamStateDto);
|
|
82
93
|
exports.sCameraState = zod_1.z.object({
|
|
83
94
|
pan: zod_1.z.number().min(-1).max(1),
|
|
84
95
|
tilt: zod_1.z.number().min(-1).max(1),
|
|
@@ -86,5 +97,5 @@ exports.sCameraState = zod_1.z.object({
|
|
|
86
97
|
enabled: zod_1.z.boolean(),
|
|
87
98
|
connected: zod_1.z.boolean(),
|
|
88
99
|
analytics: exports.sAnalyticsConfigData,
|
|
89
|
-
|
|
100
|
+
recording: exports.sRecordingState,
|
|
90
101
|
});
|
|
@@ -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
|
-
connected: "connected";
|
|
26
25
|
connecting: "connecting";
|
|
26
|
+
connected: "connected";
|
|
27
27
|
ringing: "ringing";
|
|
28
28
|
terminated: "terminated";
|
|
29
29
|
}>>;
|
|
@@ -2,40 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const NVR_RECORDER = "nvr-recorder";
|
|
3
3
|
export declare const sRecorderSpecs: z.ZodObject<{}, z.core.$strip>;
|
|
4
4
|
export type RecorderSpecs = z.infer<typeof sRecorderSpecs>;
|
|
5
|
-
export declare const sRecorderStreamStateDto: z.ZodObject<{
|
|
6
|
-
upstreamState: z.ZodEnum<{
|
|
7
|
-
error: "error";
|
|
8
|
-
connected: "connected";
|
|
9
|
-
connecting: "connecting";
|
|
10
|
-
disconnected: "disconnected";
|
|
11
|
-
}>;
|
|
12
|
-
upstreamError: z.ZodNullable<z.ZodString>;
|
|
13
|
-
isRecording: z.ZodBoolean;
|
|
14
|
-
head: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
tail: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
totalLengthMs: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export type RecorderStreamStateDto = z.infer<typeof sRecorderStreamStateDto>;
|
|
20
5
|
export declare const sRecorderStateDto: z.ZodObject<{
|
|
21
6
|
connected: z.ZodBoolean;
|
|
22
7
|
availableDiskSpace: z.ZodNullable<z.ZodNumber>;
|
|
23
8
|
totalDiskSpace: z.ZodNullable<z.ZodNumber>;
|
|
24
9
|
highWatermark: z.ZodNullable<z.ZodNumber>;
|
|
25
10
|
lowWatermark: z.ZodNullable<z.ZodNumber>;
|
|
26
|
-
cameras: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
|
-
upstreamState: z.ZodEnum<{
|
|
28
|
-
error: "error";
|
|
29
|
-
connected: "connected";
|
|
30
|
-
connecting: "connecting";
|
|
31
|
-
disconnected: "disconnected";
|
|
32
|
-
}>;
|
|
33
|
-
upstreamError: z.ZodNullable<z.ZodString>;
|
|
34
|
-
isRecording: z.ZodBoolean;
|
|
35
|
-
head: z.ZodNullable<z.ZodNumber>;
|
|
36
|
-
tail: z.ZodNullable<z.ZodNumber>;
|
|
37
|
-
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
38
|
-
totalLengthMs: z.ZodNullable<z.ZodNumber>;
|
|
39
|
-
}, z.core.$strip>>>;
|
|
40
11
|
}, z.core.$strip>;
|
|
41
12
|
export type RecorderStateDto = z.infer<typeof sRecorderStateDto>;
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sRecorderStateDto = exports.
|
|
3
|
+
exports.sRecorderStateDto = exports.sRecorderSpecs = exports.NVR_RECORDER = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.NVR_RECORDER = 'nvr-recorder';
|
|
6
6
|
exports.sRecorderSpecs = zod_1.z.object({});
|
|
7
|
-
exports.sRecorderStreamStateDto = zod_1.z.object({
|
|
8
|
-
upstreamState: zod_1.z.enum(['connecting', 'connected', 'disconnected', 'error']),
|
|
9
|
-
upstreamError: zod_1.z.string().nonempty().nullable(),
|
|
10
|
-
isRecording: zod_1.z.boolean(),
|
|
11
|
-
head: zod_1.z.number().nullable(),
|
|
12
|
-
tail: zod_1.z.number().nullable(),
|
|
13
|
-
totalSize: zod_1.z.number().nullable(),
|
|
14
|
-
totalLengthMs: zod_1.z.number().nullable(),
|
|
15
|
-
});
|
|
16
7
|
exports.sRecorderStateDto = zod_1.z.object({
|
|
17
8
|
connected: zod_1.z.boolean(),
|
|
18
9
|
availableDiskSpace: zod_1.z.number().nullable(),
|
|
19
10
|
totalDiskSpace: zod_1.z.number().nullable(),
|
|
20
11
|
highWatermark: zod_1.z.number().nullable(),
|
|
21
12
|
lowWatermark: zod_1.z.number().nullable(),
|
|
22
|
-
cameras: zod_1.z.record(zod_1.z.string(), zod_1.z.record(zod_1.z.string(), exports.sRecorderStreamStateDto)),
|
|
23
13
|
});
|
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.129",
|
|
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
|
@@ -281,8 +281,8 @@ export declare const sCameraPresetInfo: z.ZodObject<{
|
|
|
281
281
|
}, z.core.$strip>;
|
|
282
282
|
export type CameraPresetInfo = z.infer<typeof sCameraPresetInfo>;
|
|
283
283
|
export declare const sCallState: z.ZodEnum<{
|
|
284
|
-
connected: "connected";
|
|
285
284
|
connecting: "connecting";
|
|
285
|
+
connected: "connected";
|
|
286
286
|
ringing: "ringing";
|
|
287
287
|
terminated: "terminated";
|
|
288
288
|
}>;
|
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.129",
|
|
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",
|