@camera.ui/browser 0.0.76 → 0.0.79

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.
Files changed (54) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +7 -5
  3. package/dist/types/packages/client/browser/src/socket.d.ts +6 -5
  4. package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +54 -0
  5. package/dist/types/packages/client/browser/src/types.d.ts +13 -7
  6. package/dist/types/packages/client/browser/src/utils.d.ts +12 -0
  7. package/dist/types/server/src/api/database/index.d.ts +1 -1
  8. package/dist/types/server/src/api/database/types.d.ts +11 -6
  9. package/dist/types/server/src/api/go2rtc/api/config.d.ts +3 -4
  10. package/dist/types/server/src/api/go2rtc/api/index.d.ts +1 -2
  11. package/dist/types/server/src/api/go2rtc/api/streams.d.ts +4 -5
  12. package/dist/types/server/src/api/index.d.ts +0 -1
  13. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +180 -121
  14. package/dist/types/server/src/api/schemas/config.schema.d.ts +2 -2
  15. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +18 -18
  16. package/dist/types/server/src/api/schemas/users.schema.d.ts +8 -8
  17. package/dist/types/server/src/api/services/plugins.service.d.ts +1 -0
  18. package/dist/types/server/src/api/types/index.d.ts +0 -2
  19. package/dist/types/server/src/api/utils/fetch.d.ts +2 -0
  20. package/dist/types/server/src/api/websocket/types.d.ts +1 -15
  21. package/dist/types/server/src/api.d.ts +1 -2
  22. package/dist/types/server/src/camera/controller.d.ts +8 -3
  23. package/dist/types/server/src/camera/device.d.ts +2 -3
  24. package/dist/types/server/src/camera/index.d.ts +20 -18
  25. package/dist/types/server/src/camera/polygon.d.ts +5 -2
  26. package/dist/types/server/src/camera/streaming/peer-connection.d.ts +1 -1
  27. package/dist/types/server/src/camera/types.d.ts +7 -6
  28. package/dist/types/server/src/camera/videoFrame.d.ts +10 -11
  29. package/dist/types/server/src/decoder/types.d.ts +31 -22
  30. package/dist/types/server/src/decoder/worker.d.ts +3 -3
  31. package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +0 -2
  32. package/dist/types/server/src/nats/server.d.ts +10 -7
  33. package/dist/types/server/src/nats/types.d.ts +7 -8
  34. package/dist/types/server/src/nats/websocket.d.ts +8 -0
  35. package/dist/types/server/src/plugins/index.d.ts +1 -0
  36. package/dist/types/server/src/polyglot/node/plugins/api.d.ts +1 -2
  37. package/dist/types/server/src/polyglot/node/plugins/cameraStorage.d.ts +2 -2
  38. package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +8 -9
  39. package/dist/types/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +3 -3
  40. package/dist/types/server/src/polyglot/node/plugins/proxy/pluginsManager.d.ts +3 -3
  41. package/dist/types/server/src/polyglot/node/plugins/proxy/systemManager.d.ts +3 -3
  42. package/dist/types/server/src/polyglot/node/plugins/schema.d.ts +8 -1
  43. package/dist/types/server/src/polyglot/node/plugins/storageController.d.ts +1 -1
  44. package/dist/types/server/src/services/config/constants.d.ts +0 -2
  45. package/dist/types/server/src/services/config/index.d.ts +1 -1
  46. package/dist/types/server/src/utils/packer.d.ts +2 -0
  47. package/dist/types/server/src/utils/pythonInstaller.d.ts +1 -1
  48. package/dist/types/server/src/utils/utils.d.ts +5 -0
  49. package/package.json +6 -8
  50. package/dist/types/packages/client/browser/src/streaming/peer-connection.d.ts +0 -24
  51. package/dist/types/packages/client/browser/src/streaming/streaming-session.d.ts +0 -25
  52. package/dist/types/packages/client/browser/src/streaming/webrtc-connection.d.ts +0 -26
  53. package/dist/types/server/src/api/utils/axios.d.ts +0 -2
  54. package/dist/types/server/src/api/websocket/nsp/streams.d.ts +0 -15
@@ -35,8 +35,8 @@ export declare const regionsSchema: zod.ZodObject<{
35
35
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
36
36
  }, "strict", zod.ZodTypeAny, {
37
37
  _id: string;
38
- filter: "include" | "exclude";
39
38
  type: "intersect" | "contain";
39
+ filter: "include" | "exclude";
40
40
  coords: {
41
41
  _id: string;
42
42
  points: [number, number];
@@ -50,8 +50,8 @@ export declare const regionsSchema: zod.ZodObject<{
50
50
  }[];
51
51
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
52
52
  _id?: string | undefined;
53
- filter?: "include" | "exclude" | undefined;
54
53
  type?: "intersect" | "contain" | undefined;
54
+ filter?: "include" | "exclude" | undefined;
55
55
  isPrivacyMask?: boolean | undefined;
56
56
  }>;
57
57
  export declare const cameraZonesSchema: zod.ZodObject<{
@@ -74,8 +74,8 @@ export declare const cameraZonesSchema: zod.ZodObject<{
74
74
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
75
75
  }, "strict", zod.ZodTypeAny, {
76
76
  _id: string;
77
- filter: "include" | "exclude";
78
77
  type: "intersect" | "contain";
78
+ filter: "include" | "exclude";
79
79
  coords: {
80
80
  _id: string;
81
81
  points: [number, number];
@@ -89,16 +89,16 @@ export declare const cameraZonesSchema: zod.ZodObject<{
89
89
  }[];
90
90
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
91
91
  _id?: string | undefined;
92
- filter?: "include" | "exclude" | undefined;
93
92
  type?: "intersect" | "contain" | undefined;
93
+ filter?: "include" | "exclude" | undefined;
94
94
  isPrivacyMask?: boolean | undefined;
95
95
  }>, "many">;
96
96
  }, "strip", zod.ZodTypeAny, {
97
97
  name: string;
98
98
  regions: {
99
99
  _id: string;
100
- filter: "include" | "exclude";
101
100
  type: "intersect" | "contain";
101
+ filter: "include" | "exclude";
102
102
  coords: {
103
103
  _id: string;
104
104
  points: [number, number];
@@ -115,8 +115,8 @@ export declare const cameraZonesSchema: zod.ZodObject<{
115
115
  }[];
116
116
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
117
117
  _id?: string | undefined;
118
- filter?: "include" | "exclude" | undefined;
119
118
  type?: "intersect" | "contain" | undefined;
119
+ filter?: "include" | "exclude" | undefined;
120
120
  isPrivacyMask?: boolean | undefined;
121
121
  }[];
122
122
  }>;
@@ -209,13 +209,26 @@ export declare const extensionsSettingsSchema: zod.ZodObject<{
209
209
  ptz?: string | undefined;
210
210
  }>;
211
211
  export declare const streamingModeSchema: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
212
+ export declare const frameWorkerSettingsSchema: zod.ZodObject<{
213
+ decoder: zod.ZodUnion<[zod.ZodLiteral<"pillow">, zod.ZodLiteral<"wasm">]>;
214
+ fps: zod.ZodNumber;
215
+ resolution: zod.ZodUnion<[zod.ZodLiteral<640>, zod.ZodLiteral<480>, zod.ZodLiteral<320>]>;
216
+ }, "strip", zod.ZodTypeAny, {
217
+ decoder: "pillow" | "wasm";
218
+ fps: number;
219
+ resolution: 640 | 480 | 320;
220
+ }, {
221
+ decoder: "pillow" | "wasm";
222
+ fps: number;
223
+ resolution: 640 | 480 | 320;
224
+ }>;
212
225
  export declare const cameraTypeSchema: zod.ZodUnion<[zod.ZodLiteral<"camera">, zod.ZodLiteral<"doorbell">]>;
213
226
  export declare const interfaceSettingsSchema: zod.ZodObject<{
214
- 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">;
227
+ streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
215
228
  }, "strip", zod.ZodTypeAny, {
216
- streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
229
+ streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
217
230
  }, {
218
- streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
231
+ streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
219
232
  }>;
220
233
  export declare const cameraInfoSchema: zod.ZodObject<{
221
234
  model: zod.ZodString;
@@ -322,11 +335,11 @@ export declare const createCameraSchema: zod.ZodObject<{
322
335
  enabled?: boolean | undefined;
323
336
  }>>;
324
337
  interface: zod.ZodDefault<zod.ZodObject<{
325
- 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">;
338
+ streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
326
339
  }, "strip", zod.ZodTypeAny, {
327
- streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
340
+ streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
328
341
  }, {
329
- streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
342
+ streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
330
343
  }>>;
331
344
  activityZones: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
332
345
  name: zod.ZodString;
@@ -348,8 +361,8 @@ export declare const createCameraSchema: zod.ZodObject<{
348
361
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
349
362
  }, "strict", zod.ZodTypeAny, {
350
363
  _id: string;
351
- filter: "include" | "exclude";
352
364
  type: "intersect" | "contain";
365
+ filter: "include" | "exclude";
353
366
  coords: {
354
367
  _id: string;
355
368
  points: [number, number];
@@ -363,16 +376,16 @@ export declare const createCameraSchema: zod.ZodObject<{
363
376
  }[];
364
377
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
365
378
  _id?: string | undefined;
366
- filter?: "include" | "exclude" | undefined;
367
379
  type?: "intersect" | "contain" | undefined;
380
+ filter?: "include" | "exclude" | undefined;
368
381
  isPrivacyMask?: boolean | undefined;
369
382
  }>, "many">;
370
383
  }, "strip", zod.ZodTypeAny, {
371
384
  name: string;
372
385
  regions: {
373
386
  _id: string;
374
- filter: "include" | "exclude";
375
387
  type: "intersect" | "contain";
388
+ filter: "include" | "exclude";
376
389
  coords: {
377
390
  _id: string;
378
391
  points: [number, number];
@@ -389,8 +402,8 @@ export declare const createCameraSchema: zod.ZodObject<{
389
402
  }[];
390
403
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
391
404
  _id?: string | undefined;
392
- filter?: "include" | "exclude" | undefined;
393
405
  type?: "intersect" | "contain" | undefined;
406
+ filter?: "include" | "exclude" | undefined;
394
407
  isPrivacyMask?: boolean | undefined;
395
408
  }[];
396
409
  }>, "many">>;
@@ -424,10 +437,43 @@ export declare const createCameraSchema: zod.ZodObject<{
424
437
  timeout: number;
425
438
  };
426
439
  }>>;
440
+ frameWorkerSettings: zod.ZodDefault<zod.ZodObject<{
441
+ decoder: zod.ZodUnion<[zod.ZodLiteral<"pillow">, zod.ZodLiteral<"wasm">]>;
442
+ fps: zod.ZodNumber;
443
+ resolution: zod.ZodUnion<[zod.ZodLiteral<640>, zod.ZodLiteral<480>, zod.ZodLiteral<320>]>;
444
+ }, "strip", zod.ZodTypeAny, {
445
+ decoder: "pillow" | "wasm";
446
+ fps: number;
447
+ resolution: 640 | 480 | 320;
448
+ }, {
449
+ decoder: "pillow" | "wasm";
450
+ fps: number;
451
+ resolution: 640 | 480 | 320;
452
+ }>>;
427
453
  }, "strict", zod.ZodTypeAny, {
428
454
  _id: string;
429
455
  name: string;
456
+ activityZones: {
457
+ name: string;
458
+ regions: {
459
+ _id: string;
460
+ type: "intersect" | "contain";
461
+ filter: "include" | "exclude";
462
+ coords: {
463
+ _id: string;
464
+ points: [number, number];
465
+ }[];
466
+ classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
467
+ isPrivacyMask: boolean;
468
+ }[];
469
+ }[];
470
+ pluginId: string;
430
471
  disabled: boolean;
472
+ isCloud: boolean;
473
+ hasLight: boolean;
474
+ hasSiren: boolean;
475
+ hasBinarySensor: boolean;
476
+ hasBattery: boolean;
431
477
  info: {
432
478
  model: string;
433
479
  manufacturer: string;
@@ -437,12 +483,19 @@ export declare const createCameraSchema: zod.ZodObject<{
437
483
  supportUrl: string;
438
484
  };
439
485
  type: "doorbell" | "camera";
440
- pluginId: string;
441
- isCloud: boolean;
442
- hasLight: boolean;
443
- hasSiren: boolean;
444
- hasBinarySensor: boolean;
445
- hasBattery: boolean;
486
+ activitySettings: {
487
+ object: {
488
+ confidence: number;
489
+ };
490
+ motion: {
491
+ timeout: number;
492
+ };
493
+ };
494
+ frameWorkerSettings: {
495
+ decoder: "pillow" | "wasm";
496
+ fps: number;
497
+ resolution: 640 | 480 | 320;
498
+ };
446
499
  sources: {
447
500
  _id: string;
448
501
  name: string;
@@ -462,29 +515,7 @@ export declare const createCameraSchema: zod.ZodObject<{
462
515
  enabled: boolean;
463
516
  };
464
517
  interface: {
465
- streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
466
- };
467
- activityZones: {
468
- name: string;
469
- regions: {
470
- _id: string;
471
- filter: "include" | "exclude";
472
- type: "intersect" | "contain";
473
- coords: {
474
- _id: string;
475
- points: [number, number];
476
- }[];
477
- classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
478
- isPrivacyMask: boolean;
479
- }[];
480
- }[];
481
- activitySettings: {
482
- object: {
483
- confidence: number;
484
- };
485
- motion: {
486
- timeout: number;
487
- };
518
+ streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
488
519
  };
489
520
  nativeId?: string | undefined;
490
521
  }, {
@@ -496,7 +527,28 @@ export declare const createCameraSchema: zod.ZodObject<{
496
527
  _id?: string | undefined;
497
528
  }[];
498
529
  _id?: string | undefined;
530
+ activityZones?: {
531
+ name: string;
532
+ regions: {
533
+ coords: {
534
+ points: [number, number];
535
+ _id?: string | undefined;
536
+ }[];
537
+ classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
538
+ _id?: string | undefined;
539
+ type?: "intersect" | "contain" | undefined;
540
+ filter?: "include" | "exclude" | undefined;
541
+ isPrivacyMask?: boolean | undefined;
542
+ }[];
543
+ }[] | undefined;
544
+ nativeId?: string | undefined;
545
+ pluginId?: string | undefined;
499
546
  disabled?: boolean | undefined;
547
+ isCloud?: boolean | undefined;
548
+ hasLight?: boolean | undefined;
549
+ hasSiren?: boolean | undefined;
550
+ hasBinarySensor?: boolean | undefined;
551
+ hasBattery?: boolean | undefined;
500
552
  info?: {
501
553
  model: string;
502
554
  manufacturer: string;
@@ -506,13 +558,19 @@ export declare const createCameraSchema: zod.ZodObject<{
506
558
  supportUrl: string;
507
559
  } | undefined;
508
560
  type?: "doorbell" | "camera" | undefined;
509
- nativeId?: string | undefined;
510
- pluginId?: string | undefined;
511
- isCloud?: boolean | undefined;
512
- hasLight?: boolean | undefined;
513
- hasSiren?: boolean | undefined;
514
- hasBinarySensor?: boolean | undefined;
515
- hasBattery?: boolean | undefined;
561
+ activitySettings?: {
562
+ object: {
563
+ confidence: number;
564
+ };
565
+ motion: {
566
+ timeout: number;
567
+ };
568
+ } | undefined;
569
+ frameWorkerSettings?: {
570
+ decoder: "pillow" | "wasm";
571
+ fps: number;
572
+ resolution: 640 | 480 | 320;
573
+ } | undefined;
516
574
  extensions?: {
517
575
  plugins: string[];
518
576
  hub?: string[] | undefined;
@@ -526,29 +584,7 @@ export declare const createCameraSchema: zod.ZodObject<{
526
584
  enabled?: boolean | undefined;
527
585
  } | undefined;
528
586
  interface?: {
529
- streamingModes: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[];
530
- } | undefined;
531
- activityZones?: {
532
- name: string;
533
- regions: {
534
- coords: {
535
- points: [number, number];
536
- _id?: string | undefined;
537
- }[];
538
- classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
539
- _id?: string | undefined;
540
- filter?: "include" | "exclude" | undefined;
541
- type?: "intersect" | "contain" | undefined;
542
- isPrivacyMask?: boolean | undefined;
543
- }[];
544
- }[] | undefined;
545
- activitySettings?: {
546
- object: {
547
- confidence: number;
548
- };
549
- motion: {
550
- timeout: number;
551
- };
587
+ streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
552
588
  } | undefined;
553
589
  }>;
554
590
  export declare const patchCameraSchema: zod.ZodObject<{
@@ -619,11 +655,11 @@ export declare const patchCameraSchema: zod.ZodObject<{
619
655
  plugins?: string[] | undefined;
620
656
  }>>;
621
657
  interface: zod.ZodOptional<zod.ZodObject<{
622
- 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">>;
658
+ streamingMode: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>>;
623
659
  }, "strip", zod.ZodTypeAny, {
624
- streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
660
+ streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
625
661
  }, {
626
- streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
662
+ streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
627
663
  }>>;
628
664
  recording: zod.ZodOptional<zod.ZodObject<{
629
665
  enabled: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
@@ -652,8 +688,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
652
688
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
653
689
  }, "strict", zod.ZodTypeAny, {
654
690
  _id: string;
655
- filter: "include" | "exclude";
656
691
  type: "intersect" | "contain";
692
+ filter: "include" | "exclude";
657
693
  coords: {
658
694
  _id: string;
659
695
  points: [number, number];
@@ -667,16 +703,16 @@ export declare const patchCameraSchema: zod.ZodObject<{
667
703
  }[];
668
704
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
669
705
  _id?: string | undefined;
670
- filter?: "include" | "exclude" | undefined;
671
706
  type?: "intersect" | "contain" | undefined;
707
+ filter?: "include" | "exclude" | undefined;
672
708
  isPrivacyMask?: boolean | undefined;
673
709
  }>, "many">;
674
710
  }, "strip", zod.ZodTypeAny, {
675
711
  name: string;
676
712
  regions: {
677
713
  _id: string;
678
- filter: "include" | "exclude";
679
714
  type: "intersect" | "contain";
715
+ filter: "include" | "exclude";
680
716
  coords: {
681
717
  _id: string;
682
718
  points: [number, number];
@@ -693,8 +729,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
693
729
  }[];
694
730
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
695
731
  _id?: string | undefined;
696
- filter?: "include" | "exclude" | undefined;
697
732
  type?: "intersect" | "contain" | undefined;
733
+ filter?: "include" | "exclude" | undefined;
698
734
  isPrivacyMask?: boolean | undefined;
699
735
  }[];
700
736
  }>, "many">>;
@@ -728,8 +764,35 @@ export declare const patchCameraSchema: zod.ZodObject<{
728
764
  timeout: number;
729
765
  } | undefined;
730
766
  }>>;
767
+ frameWorkerSettings: zod.ZodOptional<zod.ZodObject<{
768
+ decoder: zod.ZodUnion<[zod.ZodLiteral<"pillow">, zod.ZodLiteral<"wasm">]>;
769
+ fps: zod.ZodNumber;
770
+ resolution: zod.ZodUnion<[zod.ZodLiteral<640>, zod.ZodLiteral<480>, zod.ZodLiteral<320>]>;
771
+ }, "strip", zod.ZodTypeAny, {
772
+ decoder: "pillow" | "wasm";
773
+ fps: number;
774
+ resolution: 640 | 480 | 320;
775
+ }, {
776
+ decoder: "pillow" | "wasm";
777
+ fps: number;
778
+ resolution: 640 | 480 | 320;
779
+ }>>;
731
780
  }, "strict", zod.ZodTypeAny, {
732
781
  name?: string | undefined;
782
+ activityZones?: {
783
+ name: string;
784
+ regions: {
785
+ _id: string;
786
+ type: "intersect" | "contain";
787
+ filter: "include" | "exclude";
788
+ coords: {
789
+ _id: string;
790
+ points: [number, number];
791
+ }[];
792
+ classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
793
+ isPrivacyMask: boolean;
794
+ }[];
795
+ }[] | undefined;
733
796
  disabled?: boolean | undefined;
734
797
  info?: {
735
798
  model?: string | undefined;
@@ -740,6 +803,19 @@ export declare const patchCameraSchema: zod.ZodObject<{
740
803
  supportUrl?: string | undefined;
741
804
  } | undefined;
742
805
  type?: "doorbell" | "camera" | undefined;
806
+ activitySettings?: {
807
+ object?: {
808
+ confidence: number;
809
+ } | undefined;
810
+ motion?: {
811
+ timeout: number;
812
+ } | undefined;
813
+ } | undefined;
814
+ frameWorkerSettings?: {
815
+ decoder: "pillow" | "wasm";
816
+ fps: number;
817
+ resolution: 640 | 480 | 320;
818
+ } | undefined;
743
819
  sources?: {
744
820
  _id: string;
745
821
  name: string;
@@ -759,32 +835,24 @@ export declare const patchCameraSchema: zod.ZodObject<{
759
835
  enabled?: boolean | undefined;
760
836
  } | undefined;
761
837
  interface?: {
762
- streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
838
+ streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
763
839
  } | undefined;
840
+ }, {
841
+ name?: string | undefined;
764
842
  activityZones?: {
765
843
  name: string;
766
844
  regions: {
767
- _id: string;
768
- filter: "include" | "exclude";
769
- type: "intersect" | "contain";
770
845
  coords: {
771
- _id: string;
772
846
  points: [number, number];
847
+ _id?: string | undefined;
773
848
  }[];
774
849
  classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
775
- isPrivacyMask: boolean;
850
+ _id?: string | undefined;
851
+ type?: "intersect" | "contain" | undefined;
852
+ filter?: "include" | "exclude" | undefined;
853
+ isPrivacyMask?: boolean | undefined;
776
854
  }[];
777
855
  }[] | undefined;
778
- activitySettings?: {
779
- object?: {
780
- confidence: number;
781
- } | undefined;
782
- motion?: {
783
- timeout: number;
784
- } | undefined;
785
- } | undefined;
786
- }, {
787
- name?: string | undefined;
788
856
  disabled?: boolean | undefined;
789
857
  info?: {
790
858
  model?: string | undefined;
@@ -795,6 +863,19 @@ export declare const patchCameraSchema: zod.ZodObject<{
795
863
  supportUrl?: string | undefined;
796
864
  } | undefined;
797
865
  type?: "doorbell" | "camera" | undefined;
866
+ activitySettings?: {
867
+ object?: {
868
+ confidence: number;
869
+ } | undefined;
870
+ motion?: {
871
+ timeout: number;
872
+ } | undefined;
873
+ } | undefined;
874
+ frameWorkerSettings?: {
875
+ decoder: "pillow" | "wasm";
876
+ fps: number;
877
+ resolution: 640 | 480 | 320;
878
+ } | undefined;
798
879
  sources?: {
799
880
  name: string;
800
881
  roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
@@ -814,29 +895,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
814
895
  enabled?: boolean | undefined;
815
896
  } | undefined;
816
897
  interface?: {
817
- streamingModes?: ("mp4" | "mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls")[] | undefined;
818
- } | undefined;
819
- activityZones?: {
820
- name: string;
821
- regions: {
822
- coords: {
823
- points: [number, number];
824
- _id?: string | undefined;
825
- }[];
826
- classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
827
- _id?: string | undefined;
828
- filter?: "include" | "exclude" | undefined;
829
- type?: "intersect" | "contain" | undefined;
830
- isPrivacyMask?: boolean | undefined;
831
- }[];
832
- }[] | undefined;
833
- activitySettings?: {
834
- object?: {
835
- confidence: number;
836
- } | undefined;
837
- motion?: {
838
- timeout: number;
839
- } | undefined;
898
+ streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
840
899
  } | undefined;
841
900
  }>;
842
901
  export declare const patchExtensionsSchema: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
@@ -71,16 +71,16 @@ export declare const mqttSchema: zod.ZodObject<{
71
71
  cert?: string | undefined;
72
72
  key?: string | undefined;
73
73
  };
74
- password?: string | undefined;
75
74
  user?: string | undefined;
75
+ password?: string | undefined;
76
76
  }, {
77
+ user?: string | undefined;
77
78
  password?: string | undefined;
78
79
  enabled?: boolean | undefined;
79
80
  host?: string | undefined;
80
81
  port?: number | undefined;
81
82
  topicPrefix?: string | undefined;
82
83
  clientId?: string | undefined;
83
- user?: string | undefined;
84
84
  tls?: {
85
85
  enabled?: boolean | undefined;
86
86
  cert?: string | undefined;