@camera.ui/browser 0.0.34 → 0.0.36
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/bundle.js +1 -1
- package/dist/client/node/src/proxy/cameraDevice/cameraDevice.browser.d.ts +27 -15
- package/dist/client/node/src/proxy/cameraDevice/cameraDevice.node.d.ts +12 -7
- package/dist/src/api/database/types.d.ts +37 -27
- package/dist/src/api/go2rtc/api/application.d.ts +4 -3
- package/dist/src/api/go2rtc/api/config.d.ts +4 -3
- package/dist/src/api/go2rtc/api/snapshot.d.ts +4 -3
- package/dist/src/api/go2rtc/api/streams.d.ts +5 -5
- package/dist/src/api/go2rtc/index.d.ts +13 -4
- package/dist/src/api/go2rtc/queue.d.ts +10 -0
- package/dist/src/api/schemas/cameras.schema.d.ts +475 -13
- package/dist/src/api/schemas/config.schema.d.ts +12 -9
- package/dist/src/api/services/cameras.service.d.ts +16 -7
- package/dist/src/api/services/plugins.service.d.ts +2 -0
- package/dist/src/api/types/index.d.ts +22 -3
- package/dist/src/api/ws/nsp/status.d.ts +10 -2
- package/dist/src/api/ws/nsp/streams.d.ts +0 -15
- package/dist/src/api/ws/types.d.ts +14 -0
- package/dist/src/api.d.ts +3 -2
- package/dist/src/camera/index.d.ts +32 -19
- package/dist/src/camera/streaming/peer-connection.d.ts +5 -7
- package/dist/src/camera/streaming/streaming-session.d.ts +3 -3
- package/dist/src/camera/streaming/webrtc-connection.d.ts +4 -4
- package/dist/src/camera/types.d.ts +77 -19
- package/dist/src/go2rtc/index.d.ts +1 -0
- package/dist/src/plugins/cameraStorage.d.ts +4 -1
- package/dist/src/plugins/index.d.ts +0 -3
- package/dist/src/plugins/plugin.d.ts +1 -1
- package/dist/src/plugins/schema.d.ts +3 -3
- package/dist/src/plugins/types.d.ts +23 -13
- package/dist/src/proxy/client/cameraDevice.d.ts +20 -14
- package/dist/src/proxy/client/deviceManager.d.ts +13 -12
- package/dist/src/proxy/client/pluginsManager.d.ts +9 -12
- package/dist/src/proxy/client/queue.d.ts +10 -7
- package/dist/src/proxy/client/systemManager.d.ts +9 -9
- package/dist/src/proxy/index.d.ts +13 -7
- package/dist/src/proxy/proxies/camera.d.ts +62 -34
- package/dist/src/proxy/proxies/plugin.d.ts +5 -4
- package/dist/src/proxy/proxies/server.d.ts +4 -9
- package/dist/src/proxy/queue.d.ts +8 -9
- package/dist/src/proxy/types.d.ts +81 -106
- package/dist/src/services/config/index.d.ts +0 -1
- package/dist/src/services/config/types.d.ts +2 -1
- package/dist/src/services/logger/index.d.ts +5 -4
- package/package.json +4 -4
- /package/dist/src/camera/{subscribed.d.ts → utils/subscribed.d.ts} +0 -0
|
@@ -6,22 +6,111 @@ export declare const recordingsSettingsSchema: zod.ZodObject<{
|
|
|
6
6
|
}, {
|
|
7
7
|
enabled?: boolean | undefined;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export declare const coordsSchema: zod.ZodObject<{
|
|
10
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
11
|
+
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
12
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13
|
+
_id: string;
|
|
14
|
+
points: [number, number];
|
|
15
|
+
}, {
|
|
16
|
+
points: [number, number];
|
|
17
|
+
_id?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const regionsSchema: zod.ZodObject<{
|
|
20
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
21
|
+
coords: zod.ZodArray<zod.ZodObject<{
|
|
22
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
23
|
+
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
24
|
+
}, "strip", zod.ZodTypeAny, {
|
|
25
|
+
_id: string;
|
|
26
|
+
points: [number, number];
|
|
27
|
+
}, {
|
|
28
|
+
points: [number, number];
|
|
29
|
+
_id?: string | undefined;
|
|
30
|
+
}>, "many">;
|
|
12
31
|
}, "strict", zod.ZodTypeAny, {
|
|
13
|
-
|
|
14
|
-
|
|
32
|
+
_id: string;
|
|
33
|
+
coords: {
|
|
34
|
+
_id: string;
|
|
35
|
+
points: [number, number];
|
|
36
|
+
}[];
|
|
15
37
|
}, {
|
|
16
|
-
|
|
17
|
-
|
|
38
|
+
coords: {
|
|
39
|
+
points: [number, number];
|
|
40
|
+
_id?: string | undefined;
|
|
41
|
+
}[];
|
|
42
|
+
_id?: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const cameraZones: zod.ZodObject<{
|
|
45
|
+
name: zod.ZodString;
|
|
46
|
+
regions: zod.ZodArray<zod.ZodObject<{
|
|
47
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
48
|
+
coords: zod.ZodArray<zod.ZodObject<{
|
|
49
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
50
|
+
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
51
|
+
}, "strip", zod.ZodTypeAny, {
|
|
52
|
+
_id: string;
|
|
53
|
+
points: [number, number];
|
|
54
|
+
}, {
|
|
55
|
+
points: [number, number];
|
|
56
|
+
_id?: string | undefined;
|
|
57
|
+
}>, "many">;
|
|
58
|
+
}, "strict", zod.ZodTypeAny, {
|
|
59
|
+
_id: string;
|
|
60
|
+
coords: {
|
|
61
|
+
_id: string;
|
|
62
|
+
points: [number, number];
|
|
63
|
+
}[];
|
|
64
|
+
}, {
|
|
65
|
+
coords: {
|
|
66
|
+
points: [number, number];
|
|
67
|
+
_id?: string | undefined;
|
|
68
|
+
}[];
|
|
69
|
+
_id?: string | undefined;
|
|
70
|
+
}>, "many">;
|
|
71
|
+
}, "strip", zod.ZodTypeAny, {
|
|
72
|
+
name: string;
|
|
73
|
+
regions: {
|
|
74
|
+
_id: string;
|
|
75
|
+
coords: {
|
|
76
|
+
_id: string;
|
|
77
|
+
points: [number, number];
|
|
78
|
+
}[];
|
|
79
|
+
}[];
|
|
80
|
+
}, {
|
|
81
|
+
name: string;
|
|
82
|
+
regions: {
|
|
83
|
+
coords: {
|
|
84
|
+
points: [number, number];
|
|
85
|
+
_id?: string | undefined;
|
|
86
|
+
}[];
|
|
87
|
+
_id?: string | undefined;
|
|
88
|
+
}[];
|
|
18
89
|
}>;
|
|
19
90
|
export declare const inputRoleSchema: zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>;
|
|
20
91
|
export declare const inputSchema: zod.ZodObject<{
|
|
92
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
93
|
+
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
94
|
+
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
95
|
+
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
96
|
+
}, "strict", zod.ZodTypeAny, {
|
|
97
|
+
_id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
100
|
+
urls: string[];
|
|
101
|
+
}, {
|
|
102
|
+
name: string;
|
|
103
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
104
|
+
urls: string[];
|
|
105
|
+
_id?: string | undefined;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const patchInputSchema: zod.ZodObject<{
|
|
108
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
21
109
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
22
110
|
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
23
111
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
24
112
|
}, "strict", zod.ZodTypeAny, {
|
|
113
|
+
_id: string;
|
|
25
114
|
name: string;
|
|
26
115
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
27
116
|
urls: string[];
|
|
@@ -29,6 +118,7 @@ export declare const inputSchema: zod.ZodObject<{
|
|
|
29
118
|
name: string;
|
|
30
119
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
31
120
|
urls: string[];
|
|
121
|
+
_id?: string | undefined;
|
|
32
122
|
}>;
|
|
33
123
|
export declare const extensionsSettingsSchema: zod.ZodObject<{
|
|
34
124
|
hub: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -64,6 +154,28 @@ export declare const interfaceSettingsSchema: zod.ZodObject<{
|
|
|
64
154
|
}, {
|
|
65
155
|
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
66
156
|
}>;
|
|
157
|
+
export declare const cameraInfoSchema: zod.ZodObject<{
|
|
158
|
+
model: zod.ZodString;
|
|
159
|
+
manufacturer: zod.ZodString;
|
|
160
|
+
hardware: zod.ZodString;
|
|
161
|
+
serialNumber: zod.ZodString;
|
|
162
|
+
firmwareVersion: zod.ZodString;
|
|
163
|
+
supportUrl: zod.ZodString;
|
|
164
|
+
}, "strip", zod.ZodTypeAny, {
|
|
165
|
+
model: string;
|
|
166
|
+
manufacturer: string;
|
|
167
|
+
hardware: string;
|
|
168
|
+
serialNumber: string;
|
|
169
|
+
firmwareVersion: string;
|
|
170
|
+
supportUrl: string;
|
|
171
|
+
}, {
|
|
172
|
+
model: string;
|
|
173
|
+
manufacturer: string;
|
|
174
|
+
hardware: string;
|
|
175
|
+
serialNumber: string;
|
|
176
|
+
firmwareVersion: string;
|
|
177
|
+
supportUrl: string;
|
|
178
|
+
}>;
|
|
67
179
|
export declare const createCameraSchema: zod.ZodObject<{
|
|
68
180
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
69
181
|
nativeId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -74,12 +186,37 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
74
186
|
isCloud: zod.ZodDefault<zod.ZodBoolean>;
|
|
75
187
|
hasLight: zod.ZodDefault<zod.ZodBoolean>;
|
|
76
188
|
hasSiren: zod.ZodDefault<zod.ZodBoolean>;
|
|
77
|
-
|
|
189
|
+
hasBinarySensor: zod.ZodDefault<zod.ZodBoolean>;
|
|
190
|
+
hasBattery: zod.ZodDefault<zod.ZodBoolean>;
|
|
191
|
+
info: zod.ZodDefault<zod.ZodObject<{
|
|
192
|
+
model: zod.ZodString;
|
|
193
|
+
manufacturer: zod.ZodString;
|
|
194
|
+
hardware: zod.ZodString;
|
|
195
|
+
serialNumber: zod.ZodString;
|
|
196
|
+
firmwareVersion: zod.ZodString;
|
|
197
|
+
supportUrl: zod.ZodString;
|
|
198
|
+
}, "strip", zod.ZodTypeAny, {
|
|
199
|
+
model: string;
|
|
200
|
+
manufacturer: string;
|
|
201
|
+
hardware: string;
|
|
202
|
+
serialNumber: string;
|
|
203
|
+
firmwareVersion: string;
|
|
204
|
+
supportUrl: string;
|
|
205
|
+
}, {
|
|
206
|
+
model: string;
|
|
207
|
+
manufacturer: string;
|
|
208
|
+
hardware: string;
|
|
209
|
+
serialNumber: string;
|
|
210
|
+
firmwareVersion: string;
|
|
211
|
+
supportUrl: string;
|
|
212
|
+
}>>;
|
|
78
213
|
sources: zod.ZodArray<zod.ZodObject<{
|
|
214
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
79
215
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
80
216
|
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
81
217
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
82
218
|
}, "strict", zod.ZodTypeAny, {
|
|
219
|
+
_id: string;
|
|
83
220
|
name: string;
|
|
84
221
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
85
222
|
urls: string[];
|
|
@@ -87,6 +224,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
87
224
|
name: string;
|
|
88
225
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
89
226
|
urls: string[];
|
|
227
|
+
_id?: string | undefined;
|
|
90
228
|
}>, "many">;
|
|
91
229
|
extensions: zod.ZodDefault<zod.ZodObject<{
|
|
92
230
|
hub: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
@@ -127,6 +265,98 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
127
265
|
}, {
|
|
128
266
|
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
129
267
|
}>>;
|
|
268
|
+
motionZones: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
269
|
+
name: zod.ZodString;
|
|
270
|
+
regions: zod.ZodArray<zod.ZodObject<{
|
|
271
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
272
|
+
coords: zod.ZodArray<zod.ZodObject<{
|
|
273
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
274
|
+
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
275
|
+
}, "strip", zod.ZodTypeAny, {
|
|
276
|
+
_id: string;
|
|
277
|
+
points: [number, number];
|
|
278
|
+
}, {
|
|
279
|
+
points: [number, number];
|
|
280
|
+
_id?: string | undefined;
|
|
281
|
+
}>, "many">;
|
|
282
|
+
}, "strict", zod.ZodTypeAny, {
|
|
283
|
+
_id: string;
|
|
284
|
+
coords: {
|
|
285
|
+
_id: string;
|
|
286
|
+
points: [number, number];
|
|
287
|
+
}[];
|
|
288
|
+
}, {
|
|
289
|
+
coords: {
|
|
290
|
+
points: [number, number];
|
|
291
|
+
_id?: string | undefined;
|
|
292
|
+
}[];
|
|
293
|
+
_id?: string | undefined;
|
|
294
|
+
}>, "many">;
|
|
295
|
+
}, "strip", zod.ZodTypeAny, {
|
|
296
|
+
name: string;
|
|
297
|
+
regions: {
|
|
298
|
+
_id: string;
|
|
299
|
+
coords: {
|
|
300
|
+
_id: string;
|
|
301
|
+
points: [number, number];
|
|
302
|
+
}[];
|
|
303
|
+
}[];
|
|
304
|
+
}, {
|
|
305
|
+
name: string;
|
|
306
|
+
regions: {
|
|
307
|
+
coords: {
|
|
308
|
+
points: [number, number];
|
|
309
|
+
_id?: string | undefined;
|
|
310
|
+
}[];
|
|
311
|
+
_id?: string | undefined;
|
|
312
|
+
}[];
|
|
313
|
+
}>, "many">>;
|
|
314
|
+
objectZones: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
315
|
+
name: zod.ZodString;
|
|
316
|
+
regions: zod.ZodArray<zod.ZodObject<{
|
|
317
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
318
|
+
coords: zod.ZodArray<zod.ZodObject<{
|
|
319
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
320
|
+
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
321
|
+
}, "strip", zod.ZodTypeAny, {
|
|
322
|
+
_id: string;
|
|
323
|
+
points: [number, number];
|
|
324
|
+
}, {
|
|
325
|
+
points: [number, number];
|
|
326
|
+
_id?: string | undefined;
|
|
327
|
+
}>, "many">;
|
|
328
|
+
}, "strict", zod.ZodTypeAny, {
|
|
329
|
+
_id: string;
|
|
330
|
+
coords: {
|
|
331
|
+
_id: string;
|
|
332
|
+
points: [number, number];
|
|
333
|
+
}[];
|
|
334
|
+
}, {
|
|
335
|
+
coords: {
|
|
336
|
+
points: [number, number];
|
|
337
|
+
_id?: string | undefined;
|
|
338
|
+
}[];
|
|
339
|
+
_id?: string | undefined;
|
|
340
|
+
}>, "many">;
|
|
341
|
+
}, "strip", zod.ZodTypeAny, {
|
|
342
|
+
name: string;
|
|
343
|
+
regions: {
|
|
344
|
+
_id: string;
|
|
345
|
+
coords: {
|
|
346
|
+
_id: string;
|
|
347
|
+
points: [number, number];
|
|
348
|
+
}[];
|
|
349
|
+
}[];
|
|
350
|
+
}, {
|
|
351
|
+
name: string;
|
|
352
|
+
regions: {
|
|
353
|
+
coords: {
|
|
354
|
+
points: [number, number];
|
|
355
|
+
_id?: string | undefined;
|
|
356
|
+
}[];
|
|
357
|
+
_id?: string | undefined;
|
|
358
|
+
}[];
|
|
359
|
+
}>, "many">>;
|
|
130
360
|
}, "strict", zod.ZodTypeAny, {
|
|
131
361
|
_id: string;
|
|
132
362
|
name: string;
|
|
@@ -136,8 +366,18 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
136
366
|
isCloud: boolean;
|
|
137
367
|
hasLight: boolean;
|
|
138
368
|
hasSiren: boolean;
|
|
139
|
-
|
|
369
|
+
hasBinarySensor: boolean;
|
|
370
|
+
hasBattery: boolean;
|
|
371
|
+
info: {
|
|
372
|
+
model: string;
|
|
373
|
+
manufacturer: string;
|
|
374
|
+
hardware: string;
|
|
375
|
+
serialNumber: string;
|
|
376
|
+
firmwareVersion: string;
|
|
377
|
+
supportUrl: string;
|
|
378
|
+
};
|
|
140
379
|
sources: {
|
|
380
|
+
_id: string;
|
|
141
381
|
name: string;
|
|
142
382
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
143
383
|
urls: string[];
|
|
@@ -157,6 +397,26 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
157
397
|
interface: {
|
|
158
398
|
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
159
399
|
};
|
|
400
|
+
motionZones: {
|
|
401
|
+
name: string;
|
|
402
|
+
regions: {
|
|
403
|
+
_id: string;
|
|
404
|
+
coords: {
|
|
405
|
+
_id: string;
|
|
406
|
+
points: [number, number];
|
|
407
|
+
}[];
|
|
408
|
+
}[];
|
|
409
|
+
}[];
|
|
410
|
+
objectZones: {
|
|
411
|
+
name: string;
|
|
412
|
+
regions: {
|
|
413
|
+
_id: string;
|
|
414
|
+
coords: {
|
|
415
|
+
_id: string;
|
|
416
|
+
points: [number, number];
|
|
417
|
+
}[];
|
|
418
|
+
}[];
|
|
419
|
+
}[];
|
|
160
420
|
nativeId?: string | undefined;
|
|
161
421
|
}, {
|
|
162
422
|
name: string;
|
|
@@ -164,6 +424,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
164
424
|
name: string;
|
|
165
425
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
166
426
|
urls: string[];
|
|
427
|
+
_id?: string | undefined;
|
|
167
428
|
}[];
|
|
168
429
|
_id?: string | undefined;
|
|
169
430
|
nativeId?: string | undefined;
|
|
@@ -173,7 +434,16 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
173
434
|
isCloud?: boolean | undefined;
|
|
174
435
|
hasLight?: boolean | undefined;
|
|
175
436
|
hasSiren?: boolean | undefined;
|
|
176
|
-
|
|
437
|
+
hasBinarySensor?: boolean | undefined;
|
|
438
|
+
hasBattery?: boolean | undefined;
|
|
439
|
+
info?: {
|
|
440
|
+
model: string;
|
|
441
|
+
manufacturer: string;
|
|
442
|
+
hardware: string;
|
|
443
|
+
serialNumber: string;
|
|
444
|
+
firmwareVersion: string;
|
|
445
|
+
supportUrl: string;
|
|
446
|
+
} | undefined;
|
|
177
447
|
extensions?: {
|
|
178
448
|
plugins: string[];
|
|
179
449
|
hub?: string[] | undefined;
|
|
@@ -189,17 +459,60 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
189
459
|
interface?: {
|
|
190
460
|
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
191
461
|
} | undefined;
|
|
462
|
+
motionZones?: {
|
|
463
|
+
name: string;
|
|
464
|
+
regions: {
|
|
465
|
+
coords: {
|
|
466
|
+
points: [number, number];
|
|
467
|
+
_id?: string | undefined;
|
|
468
|
+
}[];
|
|
469
|
+
_id?: string | undefined;
|
|
470
|
+
}[];
|
|
471
|
+
}[] | undefined;
|
|
472
|
+
objectZones?: {
|
|
473
|
+
name: string;
|
|
474
|
+
regions: {
|
|
475
|
+
coords: {
|
|
476
|
+
points: [number, number];
|
|
477
|
+
_id?: string | undefined;
|
|
478
|
+
}[];
|
|
479
|
+
_id?: string | undefined;
|
|
480
|
+
}[];
|
|
481
|
+
}[] | undefined;
|
|
192
482
|
}>;
|
|
193
483
|
export declare const patchCameraSchema: zod.ZodObject<{
|
|
194
484
|
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
195
|
-
model: zod.ZodOptional<zod.ZodString>;
|
|
196
485
|
type: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"camera">, zod.ZodLiteral<"doorbell">]>>;
|
|
197
486
|
name: zod.ZodOptional<zod.ZodString>;
|
|
487
|
+
info: zod.ZodOptional<zod.ZodObject<{
|
|
488
|
+
model: zod.ZodOptional<zod.ZodString>;
|
|
489
|
+
manufacturer: zod.ZodOptional<zod.ZodString>;
|
|
490
|
+
hardware: zod.ZodOptional<zod.ZodString>;
|
|
491
|
+
serialNumber: zod.ZodOptional<zod.ZodString>;
|
|
492
|
+
firmwareVersion: zod.ZodOptional<zod.ZodString>;
|
|
493
|
+
supportUrl: zod.ZodOptional<zod.ZodString>;
|
|
494
|
+
}, "strip", zod.ZodTypeAny, {
|
|
495
|
+
model?: string | undefined;
|
|
496
|
+
manufacturer?: string | undefined;
|
|
497
|
+
hardware?: string | undefined;
|
|
498
|
+
serialNumber?: string | undefined;
|
|
499
|
+
firmwareVersion?: string | undefined;
|
|
500
|
+
supportUrl?: string | undefined;
|
|
501
|
+
}, {
|
|
502
|
+
model?: string | undefined;
|
|
503
|
+
manufacturer?: string | undefined;
|
|
504
|
+
hardware?: string | undefined;
|
|
505
|
+
serialNumber?: string | undefined;
|
|
506
|
+
firmwareVersion?: string | undefined;
|
|
507
|
+
supportUrl?: string | undefined;
|
|
508
|
+
}>>;
|
|
198
509
|
sources: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
510
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
199
511
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
200
512
|
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
201
513
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
202
514
|
}, "strict", zod.ZodTypeAny, {
|
|
515
|
+
_id: string;
|
|
203
516
|
name: string;
|
|
204
517
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
205
518
|
urls: string[];
|
|
@@ -207,6 +520,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
207
520
|
name: string;
|
|
208
521
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
209
522
|
urls: string[];
|
|
523
|
+
_id?: string | undefined;
|
|
210
524
|
}>, "many">>;
|
|
211
525
|
extensions: zod.ZodOptional<zod.ZodObject<{
|
|
212
526
|
hub: zod.ZodOptional<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
|
|
@@ -247,12 +561,112 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
247
561
|
}, {
|
|
248
562
|
enabled?: boolean | undefined;
|
|
249
563
|
}>>;
|
|
564
|
+
motionZones: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
565
|
+
name: zod.ZodString;
|
|
566
|
+
regions: zod.ZodArray<zod.ZodObject<{
|
|
567
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
568
|
+
coords: zod.ZodArray<zod.ZodObject<{
|
|
569
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
570
|
+
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
571
|
+
}, "strip", zod.ZodTypeAny, {
|
|
572
|
+
_id: string;
|
|
573
|
+
points: [number, number];
|
|
574
|
+
}, {
|
|
575
|
+
points: [number, number];
|
|
576
|
+
_id?: string | undefined;
|
|
577
|
+
}>, "many">;
|
|
578
|
+
}, "strict", zod.ZodTypeAny, {
|
|
579
|
+
_id: string;
|
|
580
|
+
coords: {
|
|
581
|
+
_id: string;
|
|
582
|
+
points: [number, number];
|
|
583
|
+
}[];
|
|
584
|
+
}, {
|
|
585
|
+
coords: {
|
|
586
|
+
points: [number, number];
|
|
587
|
+
_id?: string | undefined;
|
|
588
|
+
}[];
|
|
589
|
+
_id?: string | undefined;
|
|
590
|
+
}>, "many">;
|
|
591
|
+
}, "strip", zod.ZodTypeAny, {
|
|
592
|
+
name: string;
|
|
593
|
+
regions: {
|
|
594
|
+
_id: string;
|
|
595
|
+
coords: {
|
|
596
|
+
_id: string;
|
|
597
|
+
points: [number, number];
|
|
598
|
+
}[];
|
|
599
|
+
}[];
|
|
600
|
+
}, {
|
|
601
|
+
name: string;
|
|
602
|
+
regions: {
|
|
603
|
+
coords: {
|
|
604
|
+
points: [number, number];
|
|
605
|
+
_id?: string | undefined;
|
|
606
|
+
}[];
|
|
607
|
+
_id?: string | undefined;
|
|
608
|
+
}[];
|
|
609
|
+
}>, "many">>;
|
|
610
|
+
objectZones: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
611
|
+
name: zod.ZodString;
|
|
612
|
+
regions: zod.ZodArray<zod.ZodObject<{
|
|
613
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
614
|
+
coords: zod.ZodArray<zod.ZodObject<{
|
|
615
|
+
_id: zod.ZodDefault<zod.ZodString>;
|
|
616
|
+
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
617
|
+
}, "strip", zod.ZodTypeAny, {
|
|
618
|
+
_id: string;
|
|
619
|
+
points: [number, number];
|
|
620
|
+
}, {
|
|
621
|
+
points: [number, number];
|
|
622
|
+
_id?: string | undefined;
|
|
623
|
+
}>, "many">;
|
|
624
|
+
}, "strict", zod.ZodTypeAny, {
|
|
625
|
+
_id: string;
|
|
626
|
+
coords: {
|
|
627
|
+
_id: string;
|
|
628
|
+
points: [number, number];
|
|
629
|
+
}[];
|
|
630
|
+
}, {
|
|
631
|
+
coords: {
|
|
632
|
+
points: [number, number];
|
|
633
|
+
_id?: string | undefined;
|
|
634
|
+
}[];
|
|
635
|
+
_id?: string | undefined;
|
|
636
|
+
}>, "many">;
|
|
637
|
+
}, "strip", zod.ZodTypeAny, {
|
|
638
|
+
name: string;
|
|
639
|
+
regions: {
|
|
640
|
+
_id: string;
|
|
641
|
+
coords: {
|
|
642
|
+
_id: string;
|
|
643
|
+
points: [number, number];
|
|
644
|
+
}[];
|
|
645
|
+
}[];
|
|
646
|
+
}, {
|
|
647
|
+
name: string;
|
|
648
|
+
regions: {
|
|
649
|
+
coords: {
|
|
650
|
+
points: [number, number];
|
|
651
|
+
_id?: string | undefined;
|
|
652
|
+
}[];
|
|
653
|
+
_id?: string | undefined;
|
|
654
|
+
}[];
|
|
655
|
+
}>, "many">>;
|
|
250
656
|
}, "strict", zod.ZodTypeAny, {
|
|
251
657
|
disabled?: boolean | undefined;
|
|
252
|
-
model?: string | undefined;
|
|
253
658
|
type?: "camera" | "doorbell" | undefined;
|
|
254
659
|
name?: string | undefined;
|
|
660
|
+
info?: {
|
|
661
|
+
model?: string | undefined;
|
|
662
|
+
manufacturer?: string | undefined;
|
|
663
|
+
hardware?: string | undefined;
|
|
664
|
+
serialNumber?: string | undefined;
|
|
665
|
+
firmwareVersion?: string | undefined;
|
|
666
|
+
supportUrl?: string | undefined;
|
|
667
|
+
} | undefined;
|
|
255
668
|
sources?: {
|
|
669
|
+
_id: string;
|
|
256
670
|
name: string;
|
|
257
671
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
258
672
|
urls: string[];
|
|
@@ -272,15 +686,43 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
272
686
|
recording?: {
|
|
273
687
|
enabled?: boolean | undefined;
|
|
274
688
|
} | undefined;
|
|
689
|
+
motionZones?: {
|
|
690
|
+
name: string;
|
|
691
|
+
regions: {
|
|
692
|
+
_id: string;
|
|
693
|
+
coords: {
|
|
694
|
+
_id: string;
|
|
695
|
+
points: [number, number];
|
|
696
|
+
}[];
|
|
697
|
+
}[];
|
|
698
|
+
}[] | undefined;
|
|
699
|
+
objectZones?: {
|
|
700
|
+
name: string;
|
|
701
|
+
regions: {
|
|
702
|
+
_id: string;
|
|
703
|
+
coords: {
|
|
704
|
+
_id: string;
|
|
705
|
+
points: [number, number];
|
|
706
|
+
}[];
|
|
707
|
+
}[];
|
|
708
|
+
}[] | undefined;
|
|
275
709
|
}, {
|
|
276
710
|
disabled?: boolean | undefined;
|
|
277
|
-
model?: string | undefined;
|
|
278
711
|
type?: "camera" | "doorbell" | undefined;
|
|
279
712
|
name?: string | undefined;
|
|
713
|
+
info?: {
|
|
714
|
+
model?: string | undefined;
|
|
715
|
+
manufacturer?: string | undefined;
|
|
716
|
+
hardware?: string | undefined;
|
|
717
|
+
serialNumber?: string | undefined;
|
|
718
|
+
firmwareVersion?: string | undefined;
|
|
719
|
+
supportUrl?: string | undefined;
|
|
720
|
+
} | undefined;
|
|
280
721
|
sources?: {
|
|
281
722
|
name: string;
|
|
282
723
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
283
724
|
urls: string[];
|
|
725
|
+
_id?: string | undefined;
|
|
284
726
|
}[] | undefined;
|
|
285
727
|
extensions?: {
|
|
286
728
|
hub?: string[] | undefined;
|
|
@@ -297,6 +739,26 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
297
739
|
recording?: {
|
|
298
740
|
enabled?: boolean | undefined;
|
|
299
741
|
} | undefined;
|
|
742
|
+
motionZones?: {
|
|
743
|
+
name: string;
|
|
744
|
+
regions: {
|
|
745
|
+
coords: {
|
|
746
|
+
points: [number, number];
|
|
747
|
+
_id?: string | undefined;
|
|
748
|
+
}[];
|
|
749
|
+
_id?: string | undefined;
|
|
750
|
+
}[];
|
|
751
|
+
}[] | undefined;
|
|
752
|
+
objectZones?: {
|
|
753
|
+
name: string;
|
|
754
|
+
regions: {
|
|
755
|
+
coords: {
|
|
756
|
+
points: [number, number];
|
|
757
|
+
_id?: string | undefined;
|
|
758
|
+
}[];
|
|
759
|
+
_id?: string | undefined;
|
|
760
|
+
}[];
|
|
761
|
+
}[] | undefined;
|
|
300
762
|
}>;
|
|
301
763
|
export declare const patchExtensionsSchema: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
302
764
|
export declare const previewCameraSchema: zod.ZodObject<{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
|
-
export declare const logLevelSchema: zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"
|
|
2
|
+
export declare const logLevelSchema: zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"trace">]>;
|
|
3
3
|
export declare const loggerSchema: zod.ZodObject<{
|
|
4
|
-
level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"
|
|
4
|
+
level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"trace">]>>>;
|
|
5
5
|
disableTimestamps: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
6
6
|
}, "strict", zod.ZodTypeAny, {
|
|
7
|
-
level: "error" | "info" | "debug" | "warn" | "
|
|
7
|
+
level: "error" | "info" | "debug" | "warn" | "trace";
|
|
8
8
|
disableTimestamps: boolean;
|
|
9
9
|
}, {
|
|
10
|
-
level?: "error" | "info" | "debug" | "warn" | "
|
|
10
|
+
level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
|
|
11
11
|
disableTimestamps?: boolean | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
export declare const mqttTLSSchema: zod.ZodEffects<zod.ZodObject<{
|
|
@@ -119,6 +119,7 @@ export declare const interfaceSettingsSchema: zod.ZodObject<{
|
|
|
119
119
|
}>;
|
|
120
120
|
export declare const patchConfigSchema: zod.ZodObject<{
|
|
121
121
|
port: zod.ZodDefault<zod.ZodNumber>;
|
|
122
|
+
insecurePort: zod.ZodDefault<zod.ZodNumber>;
|
|
122
123
|
tempFile: zod.ZodOptional<zod.ZodString>;
|
|
123
124
|
ssl: zod.ZodObject<{
|
|
124
125
|
certFile: zod.ZodString;
|
|
@@ -134,13 +135,13 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
134
135
|
addresses?: string[] | undefined;
|
|
135
136
|
}>;
|
|
136
137
|
logger: zod.ZodObject<{
|
|
137
|
-
level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"
|
|
138
|
+
level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"trace">]>>>;
|
|
138
139
|
disableTimestamps: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
139
140
|
}, "strict", zod.ZodTypeAny, {
|
|
140
|
-
level: "error" | "info" | "debug" | "warn" | "
|
|
141
|
+
level: "error" | "info" | "debug" | "warn" | "trace";
|
|
141
142
|
disableTimestamps: boolean;
|
|
142
143
|
}, {
|
|
143
|
-
level?: "error" | "info" | "debug" | "warn" | "
|
|
144
|
+
level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
|
|
144
145
|
disableTimestamps?: boolean | undefined;
|
|
145
146
|
}>;
|
|
146
147
|
plugins: zod.ZodDefault<zod.ZodObject<{
|
|
@@ -166,13 +167,14 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
166
167
|
disabledPlugins?: string[] | undefined;
|
|
167
168
|
};
|
|
168
169
|
port: number;
|
|
170
|
+
insecurePort: number;
|
|
169
171
|
ssl: {
|
|
170
172
|
certFile: string;
|
|
171
173
|
keyFile: string;
|
|
172
174
|
addresses: string[];
|
|
173
175
|
};
|
|
174
176
|
logger: {
|
|
175
|
-
level: "error" | "info" | "debug" | "warn" | "
|
|
177
|
+
level: "error" | "info" | "debug" | "warn" | "trace";
|
|
176
178
|
disableTimestamps: boolean;
|
|
177
179
|
};
|
|
178
180
|
settings: {
|
|
@@ -186,10 +188,11 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
186
188
|
addresses?: string[] | undefined;
|
|
187
189
|
};
|
|
188
190
|
logger: {
|
|
189
|
-
level?: "error" | "info" | "debug" | "warn" | "
|
|
191
|
+
level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
|
|
190
192
|
disableTimestamps?: boolean | undefined;
|
|
191
193
|
};
|
|
192
194
|
port?: number | undefined;
|
|
195
|
+
insecurePort?: number | undefined;
|
|
193
196
|
tempFile?: string | undefined;
|
|
194
197
|
plugins?: {
|
|
195
198
|
sudo?: boolean | undefined;
|