@camera.ui/browser 0.0.74 → 0.0.75
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/types/packages/client/browser/src/types.d.ts +1 -1
- package/dist/types/server/src/api/controllers/cameras.controller.d.ts +5 -5
- package/dist/types/server/src/api/database/types.d.ts +22 -5
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +192 -158
- package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +6 -6
- package/dist/types/server/src/api/schemas/users.schema.d.ts +2 -2
- package/dist/types/server/src/api/services/cameras.service.d.ts +4 -3
- package/dist/types/server/src/api/types/index.d.ts +0 -5
- package/dist/types/server/src/api.d.ts +1 -1
- package/dist/types/server/src/camera/{controller/index.d.ts → controller.d.ts} +7 -6
- package/dist/types/server/src/camera/{cameraDevice.d.ts → device.d.ts} +1 -1
- package/dist/types/server/src/camera/index.d.ts +10 -12
- package/dist/types/server/src/camera/polygon.d.ts +3 -0
- package/dist/types/server/src/camera/streaming/peer-connection.d.ts +2 -2
- package/dist/types/server/src/camera/streaming/streaming-session.d.ts +2 -2
- package/dist/types/server/src/camera/streaming/webrtc-connection.d.ts +2 -2
- package/dist/types/server/src/camera/{controller/types.d.ts → types.d.ts} +12 -8
- package/dist/types/server/src/camera/videoFrame.d.ts +18 -0
- package/dist/types/server/src/decoder/index.d.ts +1 -12
- package/dist/types/server/src/decoder/types.d.ts +14 -5
- package/dist/types/server/src/decoder/worker.d.ts +6 -14
- package/dist/types/server/src/nats/constants.d.ts +0 -1
- package/dist/types/server/src/nats/index.d.ts +2 -2
- package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +1 -6
- package/dist/types/server/src/nats/proxy/deviceManager.d.ts +1 -1
- package/dist/types/server/src/nats/server.d.ts +4 -2
- package/dist/types/server/src/nats/types.d.ts +5 -9
- package/dist/types/server/src/nats/websocket.d.ts +1 -1
- package/dist/types/server/src/plugins/base.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/api.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +17 -16
- package/dist/types/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +9 -7
- package/dist/types/server/src/polyglot/node/plugins/proxy/pluginsManager.d.ts +6 -5
- package/dist/types/server/src/polyglot/node/plugins/proxy/queue.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/proxy/systemManager.d.ts +6 -5
- package/dist/types/shared/types/index.d.ts +2 -1
- package/package.json +3 -3
|
@@ -28,20 +28,32 @@ export declare const regionsSchema: zod.ZodObject<{
|
|
|
28
28
|
points: [number, number];
|
|
29
29
|
_id?: string | undefined;
|
|
30
30
|
}>, "many">;
|
|
31
|
+
type: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"intersect">, zod.ZodLiteral<"contain">]>>;
|
|
32
|
+
filter: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"include">, zod.ZodLiteral<"exclude">]>>;
|
|
33
|
+
classes: zod.ZodArray<zod.ZodString, "many">;
|
|
34
|
+
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
31
35
|
}, "strict", zod.ZodTypeAny, {
|
|
32
36
|
_id: string;
|
|
37
|
+
filter: "include" | "exclude";
|
|
38
|
+
type: "intersect" | "contain";
|
|
33
39
|
coords: {
|
|
34
40
|
_id: string;
|
|
35
41
|
points: [number, number];
|
|
36
42
|
}[];
|
|
43
|
+
classes: string[];
|
|
44
|
+
isPrivacyMask: boolean;
|
|
37
45
|
}, {
|
|
38
46
|
coords: {
|
|
39
47
|
points: [number, number];
|
|
40
48
|
_id?: string | undefined;
|
|
41
49
|
}[];
|
|
50
|
+
classes: string[];
|
|
42
51
|
_id?: string | undefined;
|
|
52
|
+
filter?: "include" | "exclude" | undefined;
|
|
53
|
+
type?: "intersect" | "contain" | undefined;
|
|
54
|
+
isPrivacyMask?: boolean | undefined;
|
|
43
55
|
}>;
|
|
44
|
-
export declare const
|
|
56
|
+
export declare const cameraZonesSchema: zod.ZodObject<{
|
|
45
57
|
name: zod.ZodString;
|
|
46
58
|
regions: zod.ZodArray<zod.ZodObject<{
|
|
47
59
|
_id: zod.ZodDefault<zod.ZodString>;
|
|
@@ -55,27 +67,43 @@ export declare const cameraZones: zod.ZodObject<{
|
|
|
55
67
|
points: [number, number];
|
|
56
68
|
_id?: string | undefined;
|
|
57
69
|
}>, "many">;
|
|
70
|
+
type: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"intersect">, zod.ZodLiteral<"contain">]>>;
|
|
71
|
+
filter: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"include">, zod.ZodLiteral<"exclude">]>>;
|
|
72
|
+
classes: zod.ZodArray<zod.ZodString, "many">;
|
|
73
|
+
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
58
74
|
}, "strict", zod.ZodTypeAny, {
|
|
59
75
|
_id: string;
|
|
76
|
+
filter: "include" | "exclude";
|
|
77
|
+
type: "intersect" | "contain";
|
|
60
78
|
coords: {
|
|
61
79
|
_id: string;
|
|
62
80
|
points: [number, number];
|
|
63
81
|
}[];
|
|
82
|
+
classes: string[];
|
|
83
|
+
isPrivacyMask: boolean;
|
|
64
84
|
}, {
|
|
65
85
|
coords: {
|
|
66
86
|
points: [number, number];
|
|
67
87
|
_id?: string | undefined;
|
|
68
88
|
}[];
|
|
89
|
+
classes: string[];
|
|
69
90
|
_id?: string | undefined;
|
|
91
|
+
filter?: "include" | "exclude" | undefined;
|
|
92
|
+
type?: "intersect" | "contain" | undefined;
|
|
93
|
+
isPrivacyMask?: boolean | undefined;
|
|
70
94
|
}>, "many">;
|
|
71
95
|
}, "strip", zod.ZodTypeAny, {
|
|
72
96
|
name: string;
|
|
73
97
|
regions: {
|
|
74
98
|
_id: string;
|
|
99
|
+
filter: "include" | "exclude";
|
|
100
|
+
type: "intersect" | "contain";
|
|
75
101
|
coords: {
|
|
76
102
|
_id: string;
|
|
77
103
|
points: [number, number];
|
|
78
104
|
}[];
|
|
105
|
+
classes: string[];
|
|
106
|
+
isPrivacyMask: boolean;
|
|
79
107
|
}[];
|
|
80
108
|
}, {
|
|
81
109
|
name: string;
|
|
@@ -84,9 +112,33 @@ export declare const cameraZones: zod.ZodObject<{
|
|
|
84
112
|
points: [number, number];
|
|
85
113
|
_id?: string | undefined;
|
|
86
114
|
}[];
|
|
115
|
+
classes: string[];
|
|
87
116
|
_id?: string | undefined;
|
|
117
|
+
filter?: "include" | "exclude" | undefined;
|
|
118
|
+
type?: "intersect" | "contain" | undefined;
|
|
119
|
+
isPrivacyMask?: boolean | undefined;
|
|
88
120
|
}[];
|
|
89
121
|
}>;
|
|
122
|
+
export declare const activitySettingsSchema: zod.ZodObject<{
|
|
123
|
+
motion: zod.ZodObject<{
|
|
124
|
+
timeout: zod.ZodNumber;
|
|
125
|
+
}, "strip", zod.ZodTypeAny, {
|
|
126
|
+
timeout: number;
|
|
127
|
+
}, {
|
|
128
|
+
timeout: number;
|
|
129
|
+
}>;
|
|
130
|
+
object: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
131
|
+
}, "strip", zod.ZodTypeAny, {
|
|
132
|
+
object: {};
|
|
133
|
+
motion: {
|
|
134
|
+
timeout: number;
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
object: {};
|
|
138
|
+
motion: {
|
|
139
|
+
timeout: number;
|
|
140
|
+
};
|
|
141
|
+
}>;
|
|
90
142
|
export declare const inputRoleSchema: zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>;
|
|
91
143
|
export declare const inputSchema: zod.ZodObject<{
|
|
92
144
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
@@ -150,9 +202,9 @@ export declare const cameraTypeSchema: zod.ZodUnion<[zod.ZodLiteral<"camera">, z
|
|
|
150
202
|
export declare const interfaceSettingsSchema: zod.ZodObject<{
|
|
151
203
|
streamingModes: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>, "many">;
|
|
152
204
|
}, "strip", zod.ZodTypeAny, {
|
|
153
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
205
|
+
streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
|
|
154
206
|
}, {
|
|
155
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
207
|
+
streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
|
|
156
208
|
}>;
|
|
157
209
|
export declare const cameraInfoSchema: zod.ZodObject<{
|
|
158
210
|
model: zod.ZodString;
|
|
@@ -261,11 +313,11 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
261
313
|
interface: zod.ZodDefault<zod.ZodObject<{
|
|
262
314
|
streamingModes: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>, "many">;
|
|
263
315
|
}, "strip", zod.ZodTypeAny, {
|
|
264
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
316
|
+
streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
|
|
265
317
|
}, {
|
|
266
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
318
|
+
streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
|
|
267
319
|
}>>;
|
|
268
|
-
|
|
320
|
+
activityZones: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
269
321
|
name: zod.ZodString;
|
|
270
322
|
regions: zod.ZodArray<zod.ZodObject<{
|
|
271
323
|
_id: zod.ZodDefault<zod.ZodString>;
|
|
@@ -279,27 +331,43 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
279
331
|
points: [number, number];
|
|
280
332
|
_id?: string | undefined;
|
|
281
333
|
}>, "many">;
|
|
334
|
+
type: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"intersect">, zod.ZodLiteral<"contain">]>>;
|
|
335
|
+
filter: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"include">, zod.ZodLiteral<"exclude">]>>;
|
|
336
|
+
classes: zod.ZodArray<zod.ZodString, "many">;
|
|
337
|
+
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
282
338
|
}, "strict", zod.ZodTypeAny, {
|
|
283
339
|
_id: string;
|
|
340
|
+
filter: "include" | "exclude";
|
|
341
|
+
type: "intersect" | "contain";
|
|
284
342
|
coords: {
|
|
285
343
|
_id: string;
|
|
286
344
|
points: [number, number];
|
|
287
345
|
}[];
|
|
346
|
+
classes: string[];
|
|
347
|
+
isPrivacyMask: boolean;
|
|
288
348
|
}, {
|
|
289
349
|
coords: {
|
|
290
350
|
points: [number, number];
|
|
291
351
|
_id?: string | undefined;
|
|
292
352
|
}[];
|
|
353
|
+
classes: string[];
|
|
293
354
|
_id?: string | undefined;
|
|
355
|
+
filter?: "include" | "exclude" | undefined;
|
|
356
|
+
type?: "intersect" | "contain" | undefined;
|
|
357
|
+
isPrivacyMask?: boolean | undefined;
|
|
294
358
|
}>, "many">;
|
|
295
359
|
}, "strip", zod.ZodTypeAny, {
|
|
296
360
|
name: string;
|
|
297
361
|
regions: {
|
|
298
362
|
_id: string;
|
|
363
|
+
filter: "include" | "exclude";
|
|
364
|
+
type: "intersect" | "contain";
|
|
299
365
|
coords: {
|
|
300
366
|
_id: string;
|
|
301
367
|
points: [number, number];
|
|
302
368
|
}[];
|
|
369
|
+
classes: string[];
|
|
370
|
+
isPrivacyMask: boolean;
|
|
303
371
|
}[];
|
|
304
372
|
}, {
|
|
305
373
|
name: string;
|
|
@@ -308,57 +376,36 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
308
376
|
points: [number, number];
|
|
309
377
|
_id?: string | undefined;
|
|
310
378
|
}[];
|
|
379
|
+
classes: string[];
|
|
311
380
|
_id?: string | undefined;
|
|
381
|
+
filter?: "include" | "exclude" | undefined;
|
|
382
|
+
type?: "intersect" | "contain" | undefined;
|
|
383
|
+
isPrivacyMask?: boolean | undefined;
|
|
312
384
|
}[];
|
|
313
385
|
}>, "many">>;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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
|
-
}[];
|
|
386
|
+
activitySettings: zod.ZodDefault<zod.ZodObject<{
|
|
387
|
+
motion: zod.ZodObject<{
|
|
388
|
+
timeout: zod.ZodNumber;
|
|
389
|
+
}, "strip", zod.ZodTypeAny, {
|
|
390
|
+
timeout: number;
|
|
334
391
|
}, {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}[];
|
|
339
|
-
_id?: string | undefined;
|
|
340
|
-
}>, "many">;
|
|
392
|
+
timeout: number;
|
|
393
|
+
}>;
|
|
394
|
+
object: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
341
395
|
}, "strip", zod.ZodTypeAny, {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
_id: string;
|
|
347
|
-
points: [number, number];
|
|
348
|
-
}[];
|
|
349
|
-
}[];
|
|
396
|
+
object: {};
|
|
397
|
+
motion: {
|
|
398
|
+
timeout: number;
|
|
399
|
+
};
|
|
350
400
|
}, {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}[];
|
|
357
|
-
_id?: string | undefined;
|
|
358
|
-
}[];
|
|
359
|
-
}>, "many">>;
|
|
360
|
-
motionTimeout: zod.ZodDefault<zod.ZodNumber>;
|
|
401
|
+
object: {};
|
|
402
|
+
motion: {
|
|
403
|
+
timeout: number;
|
|
404
|
+
};
|
|
405
|
+
}>>;
|
|
361
406
|
}, "strict", zod.ZodTypeAny, {
|
|
407
|
+
_id: string;
|
|
408
|
+
name: string;
|
|
362
409
|
disabled: boolean;
|
|
363
410
|
info: {
|
|
364
411
|
model: string;
|
|
@@ -368,9 +415,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
368
415
|
firmwareVersion: string;
|
|
369
416
|
supportUrl: string;
|
|
370
417
|
};
|
|
371
|
-
type: "
|
|
372
|
-
_id: string;
|
|
373
|
-
name: string;
|
|
418
|
+
type: "doorbell" | "camera";
|
|
374
419
|
pluginId: string;
|
|
375
420
|
isCloud: boolean;
|
|
376
421
|
hasLight: boolean;
|
|
@@ -396,29 +441,28 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
396
441
|
enabled: boolean;
|
|
397
442
|
};
|
|
398
443
|
interface: {
|
|
399
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
444
|
+
streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
|
|
400
445
|
};
|
|
401
|
-
|
|
446
|
+
activityZones: {
|
|
402
447
|
name: string;
|
|
403
448
|
regions: {
|
|
404
449
|
_id: string;
|
|
450
|
+
filter: "include" | "exclude";
|
|
451
|
+
type: "intersect" | "contain";
|
|
405
452
|
coords: {
|
|
406
453
|
_id: string;
|
|
407
454
|
points: [number, number];
|
|
408
455
|
}[];
|
|
456
|
+
classes: string[];
|
|
457
|
+
isPrivacyMask: boolean;
|
|
409
458
|
}[];
|
|
410
459
|
}[];
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
points: [number, number];
|
|
418
|
-
}[];
|
|
419
|
-
}[];
|
|
420
|
-
}[];
|
|
421
|
-
motionTimeout: number;
|
|
460
|
+
activitySettings: {
|
|
461
|
+
object: {};
|
|
462
|
+
motion: {
|
|
463
|
+
timeout: number;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
422
466
|
nativeId?: string | undefined;
|
|
423
467
|
}, {
|
|
424
468
|
name: string;
|
|
@@ -428,6 +472,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
428
472
|
urls: string[];
|
|
429
473
|
_id?: string | undefined;
|
|
430
474
|
}[];
|
|
475
|
+
_id?: string | undefined;
|
|
431
476
|
disabled?: boolean | undefined;
|
|
432
477
|
info?: {
|
|
433
478
|
model: string;
|
|
@@ -437,8 +482,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
437
482
|
firmwareVersion: string;
|
|
438
483
|
supportUrl: string;
|
|
439
484
|
} | undefined;
|
|
440
|
-
type?: "
|
|
441
|
-
_id?: string | undefined;
|
|
485
|
+
type?: "doorbell" | "camera" | undefined;
|
|
442
486
|
nativeId?: string | undefined;
|
|
443
487
|
pluginId?: string | undefined;
|
|
444
488
|
isCloud?: boolean | undefined;
|
|
@@ -459,29 +503,28 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
459
503
|
enabled?: boolean | undefined;
|
|
460
504
|
} | undefined;
|
|
461
505
|
interface?: {
|
|
462
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
506
|
+
streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
|
|
463
507
|
} | undefined;
|
|
464
|
-
|
|
508
|
+
activityZones?: {
|
|
465
509
|
name: string;
|
|
466
510
|
regions: {
|
|
467
511
|
coords: {
|
|
468
512
|
points: [number, number];
|
|
469
513
|
_id?: string | undefined;
|
|
470
514
|
}[];
|
|
515
|
+
classes: string[];
|
|
471
516
|
_id?: string | undefined;
|
|
517
|
+
filter?: "include" | "exclude" | undefined;
|
|
518
|
+
type?: "intersect" | "contain" | undefined;
|
|
519
|
+
isPrivacyMask?: boolean | undefined;
|
|
472
520
|
}[];
|
|
473
521
|
}[] | undefined;
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}[];
|
|
481
|
-
_id?: string | undefined;
|
|
482
|
-
}[];
|
|
483
|
-
}[] | undefined;
|
|
484
|
-
motionTimeout?: number | undefined;
|
|
522
|
+
activitySettings?: {
|
|
523
|
+
object: {};
|
|
524
|
+
motion: {
|
|
525
|
+
timeout: number;
|
|
526
|
+
};
|
|
527
|
+
} | undefined;
|
|
485
528
|
}>;
|
|
486
529
|
export declare const patchCameraSchema: zod.ZodObject<{
|
|
487
530
|
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
@@ -553,9 +596,9 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
553
596
|
interface: zod.ZodOptional<zod.ZodObject<{
|
|
554
597
|
streamingModes: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>, "many">>;
|
|
555
598
|
}, "strip", zod.ZodTypeAny, {
|
|
556
|
-
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
599
|
+
streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
|
|
557
600
|
}, {
|
|
558
|
-
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
601
|
+
streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
|
|
559
602
|
}>>;
|
|
560
603
|
recording: zod.ZodOptional<zod.ZodObject<{
|
|
561
604
|
enabled: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
@@ -564,7 +607,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
564
607
|
}, {
|
|
565
608
|
enabled?: boolean | undefined;
|
|
566
609
|
}>>;
|
|
567
|
-
|
|
610
|
+
activityZones: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
568
611
|
name: zod.ZodString;
|
|
569
612
|
regions: zod.ZodArray<zod.ZodObject<{
|
|
570
613
|
_id: zod.ZodDefault<zod.ZodString>;
|
|
@@ -578,27 +621,43 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
578
621
|
points: [number, number];
|
|
579
622
|
_id?: string | undefined;
|
|
580
623
|
}>, "many">;
|
|
624
|
+
type: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"intersect">, zod.ZodLiteral<"contain">]>>;
|
|
625
|
+
filter: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<"include">, zod.ZodLiteral<"exclude">]>>;
|
|
626
|
+
classes: zod.ZodArray<zod.ZodString, "many">;
|
|
627
|
+
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
581
628
|
}, "strict", zod.ZodTypeAny, {
|
|
582
629
|
_id: string;
|
|
630
|
+
filter: "include" | "exclude";
|
|
631
|
+
type: "intersect" | "contain";
|
|
583
632
|
coords: {
|
|
584
633
|
_id: string;
|
|
585
634
|
points: [number, number];
|
|
586
635
|
}[];
|
|
636
|
+
classes: string[];
|
|
637
|
+
isPrivacyMask: boolean;
|
|
587
638
|
}, {
|
|
588
639
|
coords: {
|
|
589
640
|
points: [number, number];
|
|
590
641
|
_id?: string | undefined;
|
|
591
642
|
}[];
|
|
643
|
+
classes: string[];
|
|
592
644
|
_id?: string | undefined;
|
|
645
|
+
filter?: "include" | "exclude" | undefined;
|
|
646
|
+
type?: "intersect" | "contain" | undefined;
|
|
647
|
+
isPrivacyMask?: boolean | undefined;
|
|
593
648
|
}>, "many">;
|
|
594
649
|
}, "strip", zod.ZodTypeAny, {
|
|
595
650
|
name: string;
|
|
596
651
|
regions: {
|
|
597
652
|
_id: string;
|
|
653
|
+
filter: "include" | "exclude";
|
|
654
|
+
type: "intersect" | "contain";
|
|
598
655
|
coords: {
|
|
599
656
|
_id: string;
|
|
600
657
|
points: [number, number];
|
|
601
658
|
}[];
|
|
659
|
+
classes: string[];
|
|
660
|
+
isPrivacyMask: boolean;
|
|
602
661
|
}[];
|
|
603
662
|
}, {
|
|
604
663
|
name: string;
|
|
@@ -607,57 +666,35 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
607
666
|
points: [number, number];
|
|
608
667
|
_id?: string | undefined;
|
|
609
668
|
}[];
|
|
669
|
+
classes: string[];
|
|
610
670
|
_id?: string | undefined;
|
|
671
|
+
filter?: "include" | "exclude" | undefined;
|
|
672
|
+
type?: "intersect" | "contain" | undefined;
|
|
673
|
+
isPrivacyMask?: boolean | undefined;
|
|
611
674
|
}[];
|
|
612
675
|
}>, "many">>;
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
619
|
-
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
620
|
-
}, "strip", zod.ZodTypeAny, {
|
|
621
|
-
_id: string;
|
|
622
|
-
points: [number, number];
|
|
623
|
-
}, {
|
|
624
|
-
points: [number, number];
|
|
625
|
-
_id?: string | undefined;
|
|
626
|
-
}>, "many">;
|
|
627
|
-
}, "strict", zod.ZodTypeAny, {
|
|
628
|
-
_id: string;
|
|
629
|
-
coords: {
|
|
630
|
-
_id: string;
|
|
631
|
-
points: [number, number];
|
|
632
|
-
}[];
|
|
676
|
+
activitySettings: zod.ZodOptional<zod.ZodObject<{
|
|
677
|
+
motion: zod.ZodOptional<zod.ZodObject<{
|
|
678
|
+
timeout: zod.ZodNumber;
|
|
679
|
+
}, "strip", zod.ZodTypeAny, {
|
|
680
|
+
timeout: number;
|
|
633
681
|
}, {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
}[];
|
|
638
|
-
_id?: string | undefined;
|
|
639
|
-
}>, "many">;
|
|
682
|
+
timeout: number;
|
|
683
|
+
}>>;
|
|
684
|
+
object: zod.ZodOptional<zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>>;
|
|
640
685
|
}, "strip", zod.ZodTypeAny, {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
_id: string;
|
|
646
|
-
points: [number, number];
|
|
647
|
-
}[];
|
|
648
|
-
}[];
|
|
686
|
+
object?: {} | undefined;
|
|
687
|
+
motion?: {
|
|
688
|
+
timeout: number;
|
|
689
|
+
} | undefined;
|
|
649
690
|
}, {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}[];
|
|
656
|
-
_id?: string | undefined;
|
|
657
|
-
}[];
|
|
658
|
-
}>, "many">>;
|
|
659
|
-
motionTimeout: zod.ZodOptional<zod.ZodNumber>;
|
|
691
|
+
object?: {} | undefined;
|
|
692
|
+
motion?: {
|
|
693
|
+
timeout: number;
|
|
694
|
+
} | undefined;
|
|
695
|
+
}>>;
|
|
660
696
|
}, "strict", zod.ZodTypeAny, {
|
|
697
|
+
name?: string | undefined;
|
|
661
698
|
disabled?: boolean | undefined;
|
|
662
699
|
info?: {
|
|
663
700
|
model?: string | undefined;
|
|
@@ -667,8 +704,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
667
704
|
firmwareVersion?: string | undefined;
|
|
668
705
|
supportUrl?: string | undefined;
|
|
669
706
|
} | undefined;
|
|
670
|
-
type?: "
|
|
671
|
-
name?: string | undefined;
|
|
707
|
+
type?: "doorbell" | "camera" | undefined;
|
|
672
708
|
sources?: {
|
|
673
709
|
_id: string;
|
|
674
710
|
name: string;
|
|
@@ -688,30 +724,30 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
688
724
|
enabled?: boolean | undefined;
|
|
689
725
|
} | undefined;
|
|
690
726
|
interface?: {
|
|
691
|
-
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
727
|
+
streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
|
|
692
728
|
} | undefined;
|
|
693
|
-
|
|
694
|
-
name: string;
|
|
695
|
-
regions: {
|
|
696
|
-
_id: string;
|
|
697
|
-
coords: {
|
|
698
|
-
_id: string;
|
|
699
|
-
points: [number, number];
|
|
700
|
-
}[];
|
|
701
|
-
}[];
|
|
702
|
-
}[] | undefined;
|
|
703
|
-
objectZones?: {
|
|
729
|
+
activityZones?: {
|
|
704
730
|
name: string;
|
|
705
731
|
regions: {
|
|
706
732
|
_id: string;
|
|
733
|
+
filter: "include" | "exclude";
|
|
734
|
+
type: "intersect" | "contain";
|
|
707
735
|
coords: {
|
|
708
736
|
_id: string;
|
|
709
737
|
points: [number, number];
|
|
710
738
|
}[];
|
|
739
|
+
classes: string[];
|
|
740
|
+
isPrivacyMask: boolean;
|
|
711
741
|
}[];
|
|
712
742
|
}[] | undefined;
|
|
713
|
-
|
|
743
|
+
activitySettings?: {
|
|
744
|
+
object?: {} | undefined;
|
|
745
|
+
motion?: {
|
|
746
|
+
timeout: number;
|
|
747
|
+
} | undefined;
|
|
748
|
+
} | undefined;
|
|
714
749
|
}, {
|
|
750
|
+
name?: string | undefined;
|
|
715
751
|
disabled?: boolean | undefined;
|
|
716
752
|
info?: {
|
|
717
753
|
model?: string | undefined;
|
|
@@ -721,8 +757,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
721
757
|
firmwareVersion?: string | undefined;
|
|
722
758
|
supportUrl?: string | undefined;
|
|
723
759
|
} | undefined;
|
|
724
|
-
type?: "
|
|
725
|
-
name?: string | undefined;
|
|
760
|
+
type?: "doorbell" | "camera" | undefined;
|
|
726
761
|
sources?: {
|
|
727
762
|
name: string;
|
|
728
763
|
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
@@ -742,29 +777,28 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
742
777
|
enabled?: boolean | undefined;
|
|
743
778
|
} | undefined;
|
|
744
779
|
interface?: {
|
|
745
|
-
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls"
|
|
780
|
+
streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
|
|
746
781
|
} | undefined;
|
|
747
|
-
|
|
748
|
-
name: string;
|
|
749
|
-
regions: {
|
|
750
|
-
coords: {
|
|
751
|
-
points: [number, number];
|
|
752
|
-
_id?: string | undefined;
|
|
753
|
-
}[];
|
|
754
|
-
_id?: string | undefined;
|
|
755
|
-
}[];
|
|
756
|
-
}[] | undefined;
|
|
757
|
-
objectZones?: {
|
|
782
|
+
activityZones?: {
|
|
758
783
|
name: string;
|
|
759
784
|
regions: {
|
|
760
785
|
coords: {
|
|
761
786
|
points: [number, number];
|
|
762
787
|
_id?: string | undefined;
|
|
763
788
|
}[];
|
|
789
|
+
classes: string[];
|
|
764
790
|
_id?: string | undefined;
|
|
791
|
+
filter?: "include" | "exclude" | undefined;
|
|
792
|
+
type?: "intersect" | "contain" | undefined;
|
|
793
|
+
isPrivacyMask?: boolean | undefined;
|
|
765
794
|
}[];
|
|
766
795
|
}[] | undefined;
|
|
767
|
-
|
|
796
|
+
activitySettings?: {
|
|
797
|
+
object?: {} | undefined;
|
|
798
|
+
motion?: {
|
|
799
|
+
timeout: number;
|
|
800
|
+
} | undefined;
|
|
801
|
+
} | undefined;
|
|
768
802
|
}>;
|
|
769
803
|
export declare const patchExtensionsSchema: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
770
804
|
export declare const previewCameraSchema: zod.ZodObject<{
|