@camera.ui/browser 0.0.102 → 0.0.104

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 (32) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/types/packages/client/browser/src/utils.d.ts +1 -1
  3. package/dist/types/packages/plugineer/src/polyglot/node/plugins/schema.d.ts +2 -14
  4. package/dist/types/packages/plugineer/src/polyglot/node/plugins/types.d.ts +1 -0
  5. package/dist/types/packages/types/src/index.d.ts +6 -7
  6. package/dist/types/server/src/api/database/index.d.ts +3 -4
  7. package/dist/types/server/src/api/database/types.d.ts +7 -13
  8. package/dist/types/server/src/api/go2rtc/index.d.ts +1 -0
  9. package/dist/types/server/src/api/middlewares/socketAuth.middleware.d.ts +1 -1
  10. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +24 -24
  11. package/dist/types/server/src/api/schemas/users.schema.d.ts +48 -48
  12. package/dist/types/server/src/api/types/index.d.ts +105 -122
  13. package/dist/types/server/src/api/websocket/types.d.ts +3 -9
  14. package/dist/types/server/src/camera/controller.d.ts +4 -4
  15. package/dist/types/server/src/camera/frameWorker.d.ts +1 -2
  16. package/dist/types/server/src/nats/index.d.ts +3 -2
  17. package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +2 -1
  18. package/dist/types/server/src/nats/proxy/coreManager.d.ts +1 -1
  19. package/dist/types/server/src/nats/proxy/deviceManager.d.ts +1 -1
  20. package/dist/types/server/src/nats/types.d.ts +1 -1
  21. package/dist/types/server/src/nats/utils.d.ts +1 -1
  22. package/dist/types/server/src/plugins/plugin.d.ts +0 -2
  23. package/dist/types/server/src/plugins/worker.d.ts +7 -3
  24. package/dist/types/server/src/services/config/constants.d.ts +1 -1
  25. package/dist/types/server/src/services/config/index.d.ts +0 -1
  26. package/dist/types/server/src/services/config/types.d.ts +3 -9
  27. package/dist/types/shared/types/index.d.ts +1 -1
  28. package/eslint.config.js +89 -0
  29. package/package.json +12 -13
  30. /package/dist/types/packages/{plugineer/src/utils → common/src/nats}/messageQueue.d.ts +0 -0
  31. /package/dist/types/packages/{plugineer/src/utils → common/src/nats}/nats.d.ts +0 -0
  32. /package/dist/types/packages/{plugineer/src/utils → common/src/nats}/packer.d.ts +0 -0
@@ -5,7 +5,7 @@ export declare const isIpad: () => boolean;
5
5
  export declare const isAppleMobile: () => boolean;
6
6
  export declare const iosVersion: () => number[] | undefined;
7
7
  export declare const isSafari: () => boolean;
8
- export declare const safariVersion: () => RegExpMatchArray | null;
8
+ export declare const safariVersion: () => RegExpExecArray | null;
9
9
  export declare const isFirefox: () => boolean;
10
10
  export declare const isChrome: () => boolean;
11
11
  export declare const isTouch: () => boolean;
@@ -1,23 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  import type { JsonSchema, JsonSchemaArray, JsonSchemaBoolean, JsonSchemaButton, JsonSchemaEnum, JsonSchemaForm, JsonSchemaNumber, JsonSchemaObject, JsonSchemaObjectButton, JsonSchemaObjectWithButtons, JsonSchemaString, RootSchema } from '@camera.ui/types';
3
3
  import type { ZodTypeAny } from 'zod';
4
- type RootZodSchema = z.ZodObject<Record<string, ZodTypeAny>, 'strict', ZodTypeAny, {
5
- [x: string]: any;
6
- }, {
7
- [x: string]: any;
8
- }>;
4
+ type RootZodSchema = z.ZodObject<Record<string, ZodTypeAny>, 'strict', ZodTypeAny, Record<string, any>, Record<string, any>>;
9
5
  type OptionalZodString = z.ZodOptional<z.ZodString> | z.ZodString | z.ZodOptional<z.ZodEffects<z.ZodString, string, string>> | z.ZodEffects<z.ZodString, string, string>;
10
6
  type OptionalZodNumber = z.ZodOptional<z.ZodNumber> | z.ZodNumber | z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>> | z.ZodEffects<z.ZodNumber, number, number>;
11
7
  type OptionalZodBoolean = z.ZodOptional<z.ZodBoolean> | z.ZodBoolean;
12
- type OptionalZodZobject = z.ZodOptional<z.ZodObject<Record<string, z.ZodTypeAny>, 'strict', z.ZodTypeAny, {
13
- [x: string]: any;
14
- }, {
15
- [x: string]: any;
16
- }>> | z.ZodObject<Record<string, z.ZodTypeAny>, 'strict', z.ZodTypeAny, {
17
- [x: string]: any;
18
- }, {
19
- [x: string]: any;
20
- }> | z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>> | z.ZodRecord<z.ZodString, z.ZodAny>;
8
+ type OptionalZodZobject = z.ZodOptional<z.ZodObject<Record<string, z.ZodTypeAny>, 'strict', z.ZodTypeAny, Record<string, any>, Record<string, any>>> | z.ZodObject<Record<string, z.ZodTypeAny>, 'strict', z.ZodTypeAny, Record<string, any>, Record<string, any>> | z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>> | z.ZodRecord<z.ZodString, z.ZodAny>;
21
9
  type OptionalZodArray = z.ZodOptional<z.ZodType<any, any, any>> | z.ZodType<any, any, any>;
22
10
  type OptionalZodEnum = z.ZodOptional<z.ZodUnion<[z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]>> | z.ZodUnion<[z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]> | z.ZodEffects<z.ZodAny, any, any> | z.ZodUnion<any>;
23
11
  type OptionalZodEnumMultiple = z.ZodOptional<z.ZodArray<z.ZodUnion<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>, 'many'>> | z.ZodArray<z.ZodUnion<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>, 'many'> | z.ZodEffects<z.ZodAny, any, any> | z.ZodUnion<any>;
@@ -55,6 +55,7 @@ export interface PluginContractBase {
55
55
  options?: PluginOptions;
56
56
  dependencies?: string[];
57
57
  pythonVersion?: string;
58
+ bundled?: boolean;
58
59
  }
59
60
  export type PluginContract = PluginContractBase & ExtensionOrSupport;
60
61
  export type CameraExtensionWithoutHub = 'prebuffer' | 'motionDetection' | 'objectDetection' | 'audioDetection' | 'ptz';
@@ -2,12 +2,12 @@ import type { Observable, ReplaySubject, Subject, Subscription } from 'rxjs';
2
2
  import type sharp from 'sharp';
3
3
  import type { ConnectionState, RTCIceCandidate, RTCSessionDescription, RtpPacket } from 'werift';
4
4
  export type { ConnectionState, RTCIceCandidate, RTCSessionDescription, RtpPacket, sharp };
5
- export type JSONValue = string | number | boolean | JSONObject | JSONArray;
6
- export interface JSONObject {
7
- [key: string]: JSONValue;
5
+ export type JSONObject = Record<string, JSONValue>;
6
+ export interface JSONValue {
7
+ [key: string]: string | number | boolean | JSONValue | JSONValue[];
8
8
  }
9
9
  export type JSONArray = JSONValue[];
10
- export type Path = Array<number | string> | number | string;
10
+ export type Path = (number | string)[] | number | string;
11
11
  export type CameraType = 'camera' | 'doorbell';
12
12
  export type ZoneType = 'intersect' | 'contain';
13
13
  export type ZoneFilter = 'include' | 'exclude';
@@ -24,6 +24,7 @@ export type AudioCodec = 'PCMU' | 'PCMA' | 'MPEG4-GENERIC' | 'opus' | 'G722' | '
24
24
  export type AudioFFmpegCodec = 'pcm_mulaw' | 'pcm_alaw' | 'aac' | 'libopus' | 'g722' | 'mp3' | 'pcm_s16be' | 'pcm_s16le' | 'flac';
25
25
  export type VideoCodec = 'H264' | 'H265' | 'VP8' | 'VP9' | 'AV1' | 'JPEG' | 'RAW';
26
26
  export type VideoFFmpegCodec = 'h264' | 'hevc' | 'vp8' | 'vp9' | 'av1' | 'mjpeg' | 'rawvideo';
27
+ export type PythonVersion = '3.9' | '3.10' | '3.11' | '3.12';
27
28
  export interface CameraInformation {
28
29
  model?: string;
29
30
  manufacturer?: string;
@@ -548,9 +549,7 @@ export interface JsonSchemaObjectWithButtons extends JsonSchemaObject {
548
549
  buttons: JsonSchemaObjectButton[];
549
550
  }
550
551
  export type JsonSchema = JsonSchemaString | JsonSchemaNumber | JsonSchemaBoolean | JsonSchemaEnum | JsonSchemaObject | JsonSchemaObjectWithButtons | JsonSchemaArray | JsonSchemaButton;
551
- export interface JsonSchemaForm {
552
- [key: string]: JsonSchema;
553
- }
552
+ export type JsonSchemaForm = Record<string, JsonSchema>;
554
553
  export interface RootSchema {
555
554
  schema: JsonSchemaForm;
556
555
  }
@@ -1,8 +1,7 @@
1
- import type { FastifyInstance } from 'fastify';
2
1
  import type { Database as DB, RootDatabase as RootDB } from 'lmdb';
3
2
  import type { DBAuth, DBCamera, DBPlugin, DBSettings, DBSystem, DBUser } from './types.js';
4
3
  export declare class Database {
5
- static readonly VERSION = "1.0.4";
4
+ static readonly VERSION = "1.0.5";
6
5
  authDB: RootDB<DBAuth, 'auth'>;
7
6
  camerasDB: DB<DBCamera[], 'cameras'>;
8
7
  pluginsDB: DB<DBPlugin[], 'plugins'>;
@@ -13,11 +12,11 @@ export declare class Database {
13
12
  private databaseMigration;
14
13
  private selfCheck;
15
14
  private databases;
16
- private app;
17
15
  private configService;
18
16
  private logger;
17
+ private api;
19
18
  private authDbPath;
20
- constructor(app: FastifyInstance);
19
+ constructor();
21
20
  initialize(): Promise<void>;
22
21
  close(): Promise<void>;
23
22
  getRootAdminId(): Promise<string | null>;
@@ -48,11 +48,9 @@ export interface DBCameraShortcut {
48
48
  cameraId: string;
49
49
  coords: ZoneCoord;
50
50
  }
51
- export interface DBUserCameraPreferences {
52
- [key: string]: {
53
- shortcuts: DBCameraShortcut[];
54
- } | undefined;
55
- }
51
+ export type DBUserCameraPreferences = Record<string, {
52
+ shortcuts: DBCameraShortcut[];
53
+ } | undefined>;
56
54
  export interface DBUserPreferences {
57
55
  camview: {
58
56
  views: DBCamviewLayout[];
@@ -71,14 +69,10 @@ export interface DBCamviewLayoutCamera {
71
69
  index: number;
72
70
  cameraId: string;
73
71
  }
74
- export interface DBPluginStorage {
75
- [key: string]: {
76
- config: DBPluginStorageValue;
77
- };
78
- }
79
- export interface DBPluginStorageValue {
80
- [key: string]: any;
81
- }
72
+ export type DBPluginStorage = Record<string, {
73
+ config: DBPluginStorageValue;
74
+ }>;
75
+ export type DBPluginStorageValue = Record<string, any>;
82
76
  export interface CameraExtensions {
83
77
  hub?: string[];
84
78
  prebuffer?: string;
@@ -3,6 +3,7 @@ import { ConfigApi } from './api/config.js';
3
3
  import { SnapshotApi } from './api/snapshot.js';
4
4
  import { StreamsApi } from './api/streams.js';
5
5
  export declare class Go2RtcApi {
6
+ private api;
6
7
  private requestQueue;
7
8
  applicationApi: ApplicationApi;
8
9
  configApi: ConfigApi;
@@ -35,7 +35,7 @@ type SecretCallback = (decodedToken: CompleteDecodedToken) => Promise<string> |
35
35
  export interface AuthorizeOptions {
36
36
  secret: string | SecretCallback;
37
37
  algorithms?: Algorithm[];
38
- onAuthentication?: (decodedToken: any) => Promise<any> | any;
38
+ onAuthentication?: (decodedToken: any) => Promise<any>;
39
39
  }
40
40
  export declare const authorize: (options: AuthorizeOptions) => SocketIOMiddleware;
41
41
  export {};
@@ -35,8 +35,8 @@ export declare const regionsSchema: zod.ZodObject<{
35
35
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
36
36
  }, "strict", zod.ZodTypeAny, {
37
37
  filter: "include" | "exclude";
38
- type: "intersect" | "contain";
39
38
  _id: string;
39
+ type: "intersect" | "contain";
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
  filter?: "include" | "exclude" | undefined;
53
- type?: "intersect" | "contain" | undefined;
54
53
  _id?: string | undefined;
54
+ type?: "intersect" | "contain" | 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
  filter: "include" | "exclude";
77
- type: "intersect" | "contain";
78
77
  _id: string;
78
+ type: "intersect" | "contain";
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
  filter?: "include" | "exclude" | undefined;
92
- type?: "intersect" | "contain" | undefined;
93
92
  _id?: string | undefined;
93
+ type?: "intersect" | "contain" | undefined;
94
94
  isPrivacyMask?: boolean | undefined;
95
95
  }>, "many">;
96
96
  }, "strip", zod.ZodTypeAny, {
97
97
  name: string;
98
98
  regions: {
99
99
  filter: "include" | "exclude";
100
- type: "intersect" | "contain";
101
100
  _id: string;
101
+ type: "intersect" | "contain";
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
  filter?: "include" | "exclude" | undefined;
118
- type?: "intersect" | "contain" | undefined;
119
118
  _id?: string | undefined;
119
+ type?: "intersect" | "contain" | undefined;
120
120
  isPrivacyMask?: boolean | undefined;
121
121
  }[];
122
122
  }>;
@@ -391,8 +391,8 @@ export declare const createCameraSchema: zod.ZodObject<{
391
391
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
392
392
  }, "strict", zod.ZodTypeAny, {
393
393
  filter: "include" | "exclude";
394
- type: "intersect" | "contain";
395
394
  _id: string;
395
+ type: "intersect" | "contain";
396
396
  coords: {
397
397
  _id: string;
398
398
  points: [number, number];
@@ -406,16 +406,16 @@ export declare const createCameraSchema: zod.ZodObject<{
406
406
  }[];
407
407
  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")[];
408
408
  filter?: "include" | "exclude" | undefined;
409
- type?: "intersect" | "contain" | undefined;
410
409
  _id?: string | undefined;
410
+ type?: "intersect" | "contain" | undefined;
411
411
  isPrivacyMask?: boolean | undefined;
412
412
  }>, "many">;
413
413
  }, "strip", zod.ZodTypeAny, {
414
414
  name: string;
415
415
  regions: {
416
416
  filter: "include" | "exclude";
417
- type: "intersect" | "contain";
418
417
  _id: string;
418
+ type: "intersect" | "contain";
419
419
  coords: {
420
420
  _id: string;
421
421
  points: [number, number];
@@ -432,8 +432,8 @@ export declare const createCameraSchema: zod.ZodObject<{
432
432
  }[];
433
433
  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")[];
434
434
  filter?: "include" | "exclude" | undefined;
435
- type?: "intersect" | "contain" | undefined;
436
435
  _id?: string | undefined;
436
+ type?: "intersect" | "contain" | undefined;
437
437
  isPrivacyMask?: boolean | undefined;
438
438
  }[];
439
439
  }>, "many">>;
@@ -481,8 +481,6 @@ export declare const createCameraSchema: zod.ZodObject<{
481
481
  resolution: "3840x2160" | "3072x1728" | "2560x1440" | "1920x1080" | "1440x1080" | "1280x720" | "960x540" | "640x480" | "640x360" | "320x240" | "320x180";
482
482
  }>>;
483
483
  }, "strict", zod.ZodTypeAny, {
484
- pluginId: string;
485
- type: "camera" | "doorbell";
486
484
  disabled: boolean;
487
485
  _id: string;
488
486
  name: string;
@@ -490,8 +488,8 @@ export declare const createCameraSchema: zod.ZodObject<{
490
488
  name: string;
491
489
  regions: {
492
490
  filter: "include" | "exclude";
493
- type: "intersect" | "contain";
494
491
  _id: string;
492
+ type: "intersect" | "contain";
495
493
  coords: {
496
494
  _id: string;
497
495
  points: [number, number];
@@ -500,6 +498,7 @@ export declare const createCameraSchema: zod.ZodObject<{
500
498
  isPrivacyMask: boolean;
501
499
  }[];
502
500
  }[];
501
+ pluginId: string;
503
502
  isCloud: boolean;
504
503
  hasLight: boolean;
505
504
  hasSiren: boolean;
@@ -513,6 +512,7 @@ export declare const createCameraSchema: zod.ZodObject<{
513
512
  firmwareVersion?: string | undefined;
514
513
  supportUrl?: string | undefined;
515
514
  };
515
+ type: "doorbell" | "camera";
516
516
  snapshotTTL: number;
517
517
  activitySettings: {
518
518
  object: {
@@ -560,8 +560,6 @@ export declare const createCameraSchema: zod.ZodObject<{
560
560
  _id?: string | undefined;
561
561
  internal?: boolean | undefined;
562
562
  }[];
563
- pluginId?: string | undefined;
564
- type?: "camera" | "doorbell" | undefined;
565
563
  disabled?: boolean | undefined;
566
564
  _id?: string | undefined;
567
565
  activityZones?: {
@@ -573,12 +571,13 @@ export declare const createCameraSchema: zod.ZodObject<{
573
571
  }[];
574
572
  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")[];
575
573
  filter?: "include" | "exclude" | undefined;
576
- type?: "intersect" | "contain" | undefined;
577
574
  _id?: string | undefined;
575
+ type?: "intersect" | "contain" | undefined;
578
576
  isPrivacyMask?: boolean | undefined;
579
577
  }[];
580
578
  }[] | undefined;
581
579
  nativeId?: string | undefined;
580
+ pluginId?: string | undefined;
582
581
  isCloud?: boolean | undefined;
583
582
  hasLight?: boolean | undefined;
584
583
  hasSiren?: boolean | undefined;
@@ -592,6 +591,7 @@ export declare const createCameraSchema: zod.ZodObject<{
592
591
  firmwareVersion?: string | undefined;
593
592
  supportUrl?: string | undefined;
594
593
  } | undefined;
594
+ type?: "doorbell" | "camera" | undefined;
595
595
  snapshotTTL?: number | undefined;
596
596
  activitySettings?: {
597
597
  object: {
@@ -743,8 +743,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
743
743
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
744
744
  }, "strict", zod.ZodTypeAny, {
745
745
  filter: "include" | "exclude";
746
- type: "intersect" | "contain";
747
746
  _id: string;
747
+ type: "intersect" | "contain";
748
748
  coords: {
749
749
  _id: string;
750
750
  points: [number, number];
@@ -758,16 +758,16 @@ export declare const patchCameraSchema: zod.ZodObject<{
758
758
  }[];
759
759
  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")[];
760
760
  filter?: "include" | "exclude" | undefined;
761
- type?: "intersect" | "contain" | undefined;
762
761
  _id?: string | undefined;
762
+ type?: "intersect" | "contain" | undefined;
763
763
  isPrivacyMask?: boolean | undefined;
764
764
  }>, "many">;
765
765
  }, "strip", zod.ZodTypeAny, {
766
766
  name: string;
767
767
  regions: {
768
768
  filter: "include" | "exclude";
769
- type: "intersect" | "contain";
770
769
  _id: string;
770
+ type: "intersect" | "contain";
771
771
  coords: {
772
772
  _id: string;
773
773
  points: [number, number];
@@ -784,8 +784,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
784
784
  }[];
785
785
  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")[];
786
786
  filter?: "include" | "exclude" | undefined;
787
- type?: "intersect" | "contain" | undefined;
788
787
  _id?: string | undefined;
788
+ type?: "intersect" | "contain" | undefined;
789
789
  isPrivacyMask?: boolean | undefined;
790
790
  }[];
791
791
  }>, "many">>;
@@ -833,15 +833,14 @@ export declare const patchCameraSchema: zod.ZodObject<{
833
833
  resolution?: "3840x2160" | "3072x1728" | "2560x1440" | "1920x1080" | "1440x1080" | "1280x720" | "960x540" | "640x480" | "640x360" | "320x240" | "320x180" | undefined;
834
834
  }>>;
835
835
  }, "strict", zod.ZodTypeAny, {
836
- type?: "camera" | "doorbell" | undefined;
837
836
  disabled?: boolean | undefined;
838
837
  name?: string | undefined;
839
838
  activityZones?: {
840
839
  name: string;
841
840
  regions: {
842
841
  filter: "include" | "exclude";
843
- type: "intersect" | "contain";
844
842
  _id: string;
843
+ type: "intersect" | "contain";
845
844
  coords: {
846
845
  _id: string;
847
846
  points: [number, number];
@@ -858,6 +857,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
858
857
  firmwareVersion?: string | undefined;
859
858
  supportUrl?: string | undefined;
860
859
  } | undefined;
860
+ type?: "doorbell" | "camera" | undefined;
861
861
  snapshotTTL?: number | undefined;
862
862
  activitySettings?: {
863
863
  object?: {
@@ -896,7 +896,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
896
896
  streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
897
897
  } | undefined;
898
898
  }, {
899
- type?: "camera" | "doorbell" | undefined;
900
899
  disabled?: boolean | undefined;
901
900
  name?: string | undefined;
902
901
  activityZones?: {
@@ -908,8 +907,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
908
907
  }[];
909
908
  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")[];
910
909
  filter?: "include" | "exclude" | undefined;
911
- type?: "intersect" | "contain" | undefined;
912
910
  _id?: string | undefined;
911
+ type?: "intersect" | "contain" | undefined;
913
912
  isPrivacyMask?: boolean | undefined;
914
913
  }[];
915
914
  }[] | undefined;
@@ -921,6 +920,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
921
920
  firmwareVersion?: string | undefined;
922
921
  supportUrl?: string | undefined;
923
922
  } | undefined;
923
+ type?: "doorbell" | "camera" | undefined;
924
924
  snapshotTTL?: number | undefined;
925
925
  activitySettings?: {
926
926
  object?: {