@camera.ui/browser 0.0.94 → 0.0.96

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 (49) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +3 -1
  3. package/dist/types/packages/client/browser/src/proxy/coreManager.d.ts +2 -2
  4. package/dist/types/packages/common/src/utils/subscribed.d.ts +9 -0
  5. package/dist/types/packages/plugineer/src/polyglot/node/camera/index.d.ts +7 -5
  6. package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/prebuffer.d.ts +1 -2
  7. package/dist/types/packages/plugineer/src/polyglot/node/camera/types.d.ts +15 -0
  8. package/dist/types/packages/plugineer/src/polyglot/node/plugins/types.d.ts +136 -0
  9. package/dist/types/packages/plugineer/src/types.d.ts +4 -0
  10. package/dist/types/packages/{common/src/messaging/index.d.ts → plugineer/src/utils/messageQueue.d.ts} +3 -3
  11. package/dist/types/packages/types/src/index.d.ts +659 -0
  12. package/dist/types/server/src/api/database/index.d.ts +1 -2
  13. package/dist/types/server/src/api/database/types.d.ts +1 -122
  14. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +127 -101
  15. package/dist/types/server/src/api/schemas/config.schema.d.ts +6 -14
  16. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +84 -84
  17. package/dist/types/server/src/api/schemas/plugins.schema.d.ts +5 -5
  18. package/dist/types/server/src/api/schemas/users.schema.d.ts +48 -48
  19. package/dist/types/server/src/api/services/cameras.service.d.ts +9 -5
  20. package/dist/types/server/src/api/types/index.d.ts +12 -4
  21. package/dist/types/server/src/api/utils/cameraSource.d.ts +2 -0
  22. package/dist/types/server/src/api/websocket/nsp/plugins.d.ts +1 -1
  23. package/dist/types/server/src/api/websocket/types.d.ts +1 -1
  24. package/dist/types/server/src/api.d.ts +2 -2
  25. package/dist/types/server/src/camera/controller.d.ts +14 -4
  26. package/dist/types/server/src/camera/types.d.ts +1 -318
  27. package/dist/types/server/src/decoder/types.d.ts +0 -127
  28. package/dist/types/server/src/decoder/worker.d.ts +2 -2
  29. package/dist/types/server/src/nats/index.d.ts +4 -4
  30. package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +3 -3
  31. package/dist/types/server/src/nats/proxy/coreManager.d.ts +3 -5
  32. package/dist/types/server/src/nats/proxy/deviceManager.d.ts +3 -5
  33. package/dist/types/server/src/nats/types.d.ts +3 -101
  34. package/dist/types/server/src/nats/utils.d.ts +1 -1
  35. package/dist/types/server/src/nats/websocket.d.ts +2 -2
  36. package/dist/types/server/src/plugins/plugin.d.ts +2 -2
  37. package/dist/types/server/src/plugins/types.d.ts +1 -181
  38. package/dist/types/server/src/plugins/worker.d.ts +1 -1
  39. package/dist/types/server/src/services/config/constants.d.ts +3 -1
  40. package/dist/types/server/src/services/config/index.d.ts +1 -6
  41. package/dist/types/server/src/services/config/types.d.ts +1 -6
  42. package/dist/types/shared/types/index.d.ts +4 -3
  43. package/package.json +5 -4
  44. package/dist/types/server/src/plugins/interfaces/audioDetection.d.ts +0 -7
  45. package/dist/types/server/src/plugins/interfaces/base.d.ts +0 -6
  46. package/dist/types/server/src/plugins/interfaces/motionDetection.d.ts +0 -6
  47. package/dist/types/server/src/plugins/interfaces/objectDetection.d.ts +0 -7
  48. /package/dist/types/packages/{common/src/nats/index.d.ts → plugineer/src/utils/nats.d.ts} +0 -0
  49. /package/dist/types/packages/{common/src/packer/index.d.ts → plugineer/src/utils/packer.d.ts} +0 -0
@@ -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
- _id: string;
39
38
  type: "intersect" | "contain";
39
+ _id: string;
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
- _id?: string | undefined;
54
53
  type?: "intersect" | "contain" | undefined;
54
+ _id?: string | 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
- _id: string;
78
77
  type: "intersect" | "contain";
78
+ _id: string;
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
- _id?: string | undefined;
93
92
  type?: "intersect" | "contain" | undefined;
93
+ _id?: string | 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
- _id: string;
101
100
  type: "intersect" | "contain";
101
+ _id: string;
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
- _id?: string | undefined;
119
118
  type?: "intersect" | "contain" | undefined;
119
+ _id?: string | undefined;
120
120
  isPrivacyMask?: boolean | undefined;
121
121
  }[];
122
122
  }>;
@@ -157,32 +157,38 @@ export declare const inputSchema: zod.ZodObject<{
157
157
  name: zod.ZodEffects<zod.ZodString, string, string>;
158
158
  roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
159
159
  urls: zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">;
160
+ internal: zod.ZodDefault<zod.ZodBoolean>;
160
161
  }, "strict", zod.ZodTypeAny, {
161
162
  _id: string;
163
+ internal: boolean;
162
164
  name: string;
163
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
165
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
164
166
  urls: string[];
165
167
  }, {
166
168
  name: string;
167
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
169
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
168
170
  urls: string[];
169
171
  _id?: string | undefined;
172
+ internal?: boolean | undefined;
170
173
  }>;
171
174
  export declare const patchInputSchema: zod.ZodObject<{
172
175
  _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
173
176
  name: zod.ZodEffects<zod.ZodString, string, string>;
174
177
  roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
175
178
  urls: zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">;
179
+ internal: zod.ZodDefault<zod.ZodBoolean>;
176
180
  }, "strict", zod.ZodTypeAny, {
177
181
  _id: string;
182
+ internal: boolean;
178
183
  name: string;
179
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
184
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
180
185
  urls: string[];
181
186
  }, {
182
187
  name: string;
183
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
188
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
184
189
  urls: string[];
185
190
  _id?: string | undefined;
191
+ internal?: boolean | undefined;
186
192
  }>;
187
193
  export declare const extensionsSettingsSchema: zod.ZodObject<{
188
194
  hub: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
@@ -194,20 +200,20 @@ export declare const extensionsSettingsSchema: zod.ZodObject<{
194
200
  plugins: zod.ZodArray<zod.ZodString, "many">;
195
201
  }, "strict", zod.ZodTypeAny, {
196
202
  plugins: string[];
203
+ hub?: string[] | undefined;
197
204
  prebuffer?: string | undefined;
198
205
  motionDetection?: string | undefined;
199
206
  objectDetection?: string | undefined;
200
207
  audioDetection?: string | undefined;
201
208
  ptz?: string | undefined;
202
- hub?: string[] | undefined;
203
209
  }, {
204
210
  plugins: string[];
211
+ hub?: string[] | undefined;
205
212
  prebuffer?: string | undefined;
206
213
  motionDetection?: string | undefined;
207
214
  objectDetection?: string | undefined;
208
215
  audioDetection?: string | undefined;
209
216
  ptz?: string | undefined;
210
- hub?: string[] | undefined;
211
217
  }>;
212
218
  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">]>;
213
219
  export declare const frameWorkerSettingsSchema: zod.ZodObject<{
@@ -227,9 +233,9 @@ export declare const cameraTypeSchema: zod.ZodUnion<[zod.ZodLiteral<"camera">, z
227
233
  export declare const interfaceSettingsSchema: zod.ZodObject<{
228
234
  streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
229
235
  }, "strip", zod.ZodTypeAny, {
230
- streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
236
+ streamingMode: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls";
231
237
  }, {
232
- streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
238
+ streamingMode: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls";
233
239
  }>;
234
240
  export declare const cameraInfoSchema: zod.ZodObject<{
235
241
  model: zod.ZodOptional<zod.ZodString>;
@@ -265,6 +271,7 @@ export declare const createCameraSchema: zod.ZodObject<{
265
271
  hasSiren: zod.ZodDefault<zod.ZodBoolean>;
266
272
  hasBinarySensor: zod.ZodDefault<zod.ZodBoolean>;
267
273
  hasBattery: zod.ZodDefault<zod.ZodBoolean>;
274
+ snapshotTTL: zod.ZodDefault<zod.ZodNumber>;
268
275
  info: zod.ZodDefault<zod.ZodObject<{
269
276
  model: zod.ZodOptional<zod.ZodString>;
270
277
  manufacturer: zod.ZodOptional<zod.ZodString>;
@@ -292,26 +299,31 @@ export declare const createCameraSchema: zod.ZodObject<{
292
299
  name: zod.ZodEffects<zod.ZodString, string, string>;
293
300
  roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
294
301
  urls: zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">;
302
+ internal: zod.ZodDefault<zod.ZodBoolean>;
295
303
  }, "strict", zod.ZodTypeAny, {
296
304
  _id: string;
305
+ internal: boolean;
297
306
  name: string;
298
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
307
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
299
308
  urls: string[];
300
309
  }, {
301
310
  name: string;
302
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
311
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
303
312
  urls: string[];
304
313
  _id?: string | undefined;
314
+ internal?: boolean | undefined;
305
315
  }>, "many">, {
306
316
  _id: string;
317
+ internal: boolean;
307
318
  name: string;
308
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
319
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
309
320
  urls: string[];
310
321
  }[], {
311
322
  name: string;
312
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
323
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
313
324
  urls: string[];
314
325
  _id?: string | undefined;
326
+ internal?: boolean | undefined;
315
327
  }[]>;
316
328
  extensions: zod.ZodDefault<zod.ZodObject<{
317
329
  hub: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
@@ -323,20 +335,20 @@ export declare const createCameraSchema: zod.ZodObject<{
323
335
  plugins: zod.ZodArray<zod.ZodString, "many">;
324
336
  }, "strict", zod.ZodTypeAny, {
325
337
  plugins: string[];
338
+ hub?: string[] | undefined;
326
339
  prebuffer?: string | undefined;
327
340
  motionDetection?: string | undefined;
328
341
  objectDetection?: string | undefined;
329
342
  audioDetection?: string | undefined;
330
343
  ptz?: string | undefined;
331
- hub?: string[] | undefined;
332
344
  }, {
333
345
  plugins: string[];
346
+ hub?: string[] | undefined;
334
347
  prebuffer?: string | undefined;
335
348
  motionDetection?: string | undefined;
336
349
  objectDetection?: string | undefined;
337
350
  audioDetection?: string | undefined;
338
351
  ptz?: string | undefined;
339
- hub?: string[] | undefined;
340
352
  }>>;
341
353
  recording: zod.ZodDefault<zod.ZodObject<{
342
354
  enabled: zod.ZodDefault<zod.ZodBoolean>;
@@ -348,9 +360,9 @@ export declare const createCameraSchema: zod.ZodObject<{
348
360
  interface: zod.ZodDefault<zod.ZodObject<{
349
361
  streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
350
362
  }, "strip", zod.ZodTypeAny, {
351
- streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
363
+ streamingMode: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls";
352
364
  }, {
353
- streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
365
+ streamingMode: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls";
354
366
  }>>;
355
367
  activityZones: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
356
368
  name: zod.ZodString;
@@ -372,8 +384,8 @@ export declare const createCameraSchema: zod.ZodObject<{
372
384
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
373
385
  }, "strict", zod.ZodTypeAny, {
374
386
  filter: "include" | "exclude";
375
- _id: string;
376
387
  type: "intersect" | "contain";
388
+ _id: string;
377
389
  coords: {
378
390
  _id: string;
379
391
  points: [number, number];
@@ -387,16 +399,16 @@ export declare const createCameraSchema: zod.ZodObject<{
387
399
  }[];
388
400
  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")[];
389
401
  filter?: "include" | "exclude" | undefined;
390
- _id?: string | undefined;
391
402
  type?: "intersect" | "contain" | undefined;
403
+ _id?: string | undefined;
392
404
  isPrivacyMask?: boolean | undefined;
393
405
  }>, "many">;
394
406
  }, "strip", zod.ZodTypeAny, {
395
407
  name: string;
396
408
  regions: {
397
409
  filter: "include" | "exclude";
398
- _id: string;
399
410
  type: "intersect" | "contain";
411
+ _id: string;
400
412
  coords: {
401
413
  _id: string;
402
414
  points: [number, number];
@@ -413,8 +425,8 @@ export declare const createCameraSchema: zod.ZodObject<{
413
425
  }[];
414
426
  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")[];
415
427
  filter?: "include" | "exclude" | undefined;
416
- _id?: string | undefined;
417
428
  type?: "intersect" | "contain" | undefined;
429
+ _id?: string | undefined;
418
430
  isPrivacyMask?: boolean | undefined;
419
431
  }[];
420
432
  }>, "many">>;
@@ -462,20 +474,17 @@ export declare const createCameraSchema: zod.ZodObject<{
462
474
  resolution: 640 | 480 | 320;
463
475
  }>>;
464
476
  }, "strict", zod.ZodTypeAny, {
465
- info: {
466
- model?: string | undefined;
467
- manufacturer?: string | undefined;
468
- hardware?: string | undefined;
469
- serialNumber?: string | undefined;
470
- firmwareVersion?: string | undefined;
471
- supportUrl?: string | undefined;
472
- };
477
+ pluginId: string;
478
+ type: "camera" | "doorbell";
479
+ disabled: boolean;
480
+ _id: string;
481
+ name: string;
473
482
  activityZones: {
474
483
  name: string;
475
484
  regions: {
476
485
  filter: "include" | "exclude";
477
- _id: string;
478
486
  type: "intersect" | "contain";
487
+ _id: string;
479
488
  coords: {
480
489
  _id: string;
481
490
  points: [number, number];
@@ -484,16 +493,20 @@ export declare const createCameraSchema: zod.ZodObject<{
484
493
  isPrivacyMask: boolean;
485
494
  }[];
486
495
  }[];
487
- _id: string;
488
- pluginId: string;
489
- name: string;
490
- disabled: boolean;
491
496
  isCloud: boolean;
492
497
  hasLight: boolean;
493
498
  hasSiren: boolean;
494
499
  hasBinarySensor: boolean;
495
500
  hasBattery: boolean;
496
- type: "camera" | "doorbell";
501
+ info: {
502
+ model?: string | undefined;
503
+ manufacturer?: string | undefined;
504
+ hardware?: string | undefined;
505
+ serialNumber?: string | undefined;
506
+ firmwareVersion?: string | undefined;
507
+ supportUrl?: string | undefined;
508
+ };
509
+ snapshotTTL: number;
497
510
  activitySettings: {
498
511
  object: {
499
512
  confidence: number;
@@ -509,42 +522,40 @@ export declare const createCameraSchema: zod.ZodObject<{
509
522
  };
510
523
  sources: {
511
524
  _id: string;
525
+ internal: boolean;
512
526
  name: string;
513
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
527
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
514
528
  urls: string[];
515
529
  }[];
516
530
  extensions: {
517
531
  plugins: string[];
532
+ hub?: string[] | undefined;
518
533
  prebuffer?: string | undefined;
519
534
  motionDetection?: string | undefined;
520
535
  objectDetection?: string | undefined;
521
536
  audioDetection?: string | undefined;
522
537
  ptz?: string | undefined;
523
- hub?: string[] | undefined;
524
538
  };
525
539
  recording: {
526
540
  enabled: boolean;
527
541
  };
528
542
  interface: {
529
- streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
543
+ streamingMode: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls";
530
544
  };
531
545
  nativeId?: string | undefined;
532
546
  }, {
533
547
  name: string;
534
548
  sources: {
535
549
  name: string;
536
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
550
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
537
551
  urls: string[];
538
552
  _id?: string | undefined;
553
+ internal?: boolean | undefined;
539
554
  }[];
540
- info?: {
541
- model?: string | undefined;
542
- manufacturer?: string | undefined;
543
- hardware?: string | undefined;
544
- serialNumber?: string | undefined;
545
- firmwareVersion?: string | undefined;
546
- supportUrl?: string | undefined;
547
- } | undefined;
555
+ pluginId?: string | undefined;
556
+ type?: "camera" | "doorbell" | undefined;
557
+ disabled?: boolean | undefined;
558
+ _id?: string | undefined;
548
559
  activityZones?: {
549
560
  name: string;
550
561
  regions: {
@@ -554,21 +565,26 @@ export declare const createCameraSchema: zod.ZodObject<{
554
565
  }[];
555
566
  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")[];
556
567
  filter?: "include" | "exclude" | undefined;
557
- _id?: string | undefined;
558
568
  type?: "intersect" | "contain" | undefined;
569
+ _id?: string | undefined;
559
570
  isPrivacyMask?: boolean | undefined;
560
571
  }[];
561
572
  }[] | undefined;
562
- _id?: string | undefined;
563
573
  nativeId?: string | undefined;
564
- pluginId?: string | undefined;
565
- disabled?: boolean | undefined;
566
574
  isCloud?: boolean | undefined;
567
575
  hasLight?: boolean | undefined;
568
576
  hasSiren?: boolean | undefined;
569
577
  hasBinarySensor?: boolean | undefined;
570
578
  hasBattery?: boolean | undefined;
571
- type?: "camera" | "doorbell" | undefined;
579
+ info?: {
580
+ model?: string | undefined;
581
+ manufacturer?: string | undefined;
582
+ hardware?: string | undefined;
583
+ serialNumber?: string | undefined;
584
+ firmwareVersion?: string | undefined;
585
+ supportUrl?: string | undefined;
586
+ } | undefined;
587
+ snapshotTTL?: number | undefined;
572
588
  activitySettings?: {
573
589
  object: {
574
590
  confidence: number;
@@ -584,24 +600,25 @@ export declare const createCameraSchema: zod.ZodObject<{
584
600
  } | undefined;
585
601
  extensions?: {
586
602
  plugins: string[];
603
+ hub?: string[] | undefined;
587
604
  prebuffer?: string | undefined;
588
605
  motionDetection?: string | undefined;
589
606
  objectDetection?: string | undefined;
590
607
  audioDetection?: string | undefined;
591
608
  ptz?: string | undefined;
592
- hub?: string[] | undefined;
593
609
  } | undefined;
594
610
  recording?: {
595
611
  enabled?: boolean | undefined;
596
612
  } | undefined;
597
613
  interface?: {
598
- streamingMode: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls";
614
+ streamingMode: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls";
599
615
  } | undefined;
600
616
  }>;
601
617
  export declare const patchCameraSchema: zod.ZodObject<{
602
618
  disabled: zod.ZodOptional<zod.ZodBoolean>;
603
619
  type: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"camera">, zod.ZodLiteral<"doorbell">]>>;
604
620
  name: zod.ZodOptional<zod.ZodString>;
621
+ snapshotTTL: zod.ZodDefault<zod.ZodNumber>;
605
622
  info: zod.ZodOptional<zod.ZodObject<{
606
623
  model: zod.ZodOptional<zod.ZodOptional<zod.ZodString>>;
607
624
  manufacturer: zod.ZodOptional<zod.ZodOptional<zod.ZodString>>;
@@ -629,26 +646,31 @@ export declare const patchCameraSchema: zod.ZodObject<{
629
646
  name: zod.ZodEffects<zod.ZodString, string, string>;
630
647
  roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
631
648
  urls: zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">;
649
+ internal: zod.ZodDefault<zod.ZodBoolean>;
632
650
  }, "strict", zod.ZodTypeAny, {
633
651
  _id: string;
652
+ internal: boolean;
634
653
  name: string;
635
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
654
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
636
655
  urls: string[];
637
656
  }, {
638
657
  name: string;
639
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
658
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
640
659
  urls: string[];
641
660
  _id?: string | undefined;
661
+ internal?: boolean | undefined;
642
662
  }>, "many">, {
643
663
  _id: string;
664
+ internal: boolean;
644
665
  name: string;
645
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
666
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
646
667
  urls: string[];
647
668
  }[], {
648
669
  name: string;
649
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
670
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
650
671
  urls: string[];
651
672
  _id?: string | undefined;
673
+ internal?: boolean | undefined;
652
674
  }[]>>;
653
675
  extensions: zod.ZodOptional<zod.ZodObject<{
654
676
  hub: zod.ZodOptional<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
@@ -659,28 +681,28 @@ export declare const patchCameraSchema: zod.ZodObject<{
659
681
  ptz: zod.ZodOptional<zod.ZodOptional<zod.ZodString>>;
660
682
  plugins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
661
683
  }, "strict", zod.ZodTypeAny, {
684
+ hub?: string[] | undefined;
662
685
  prebuffer?: string | undefined;
663
686
  motionDetection?: string | undefined;
664
687
  objectDetection?: string | undefined;
665
688
  audioDetection?: string | undefined;
666
689
  ptz?: string | undefined;
667
- hub?: string[] | undefined;
668
690
  plugins?: string[] | undefined;
669
691
  }, {
692
+ hub?: string[] | undefined;
670
693
  prebuffer?: string | undefined;
671
694
  motionDetection?: string | undefined;
672
695
  objectDetection?: string | undefined;
673
696
  audioDetection?: string | undefined;
674
697
  ptz?: string | undefined;
675
- hub?: string[] | undefined;
676
698
  plugins?: string[] | undefined;
677
699
  }>>;
678
700
  interface: zod.ZodOptional<zod.ZodObject<{
679
701
  streamingMode: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>>;
680
702
  }, "strip", zod.ZodTypeAny, {
681
- streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
703
+ streamingMode?: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls" | undefined;
682
704
  }, {
683
- streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
705
+ streamingMode?: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls" | undefined;
684
706
  }>>;
685
707
  recording: zod.ZodOptional<zod.ZodObject<{
686
708
  enabled: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
@@ -709,8 +731,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
709
731
  isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
710
732
  }, "strict", zod.ZodTypeAny, {
711
733
  filter: "include" | "exclude";
712
- _id: string;
713
734
  type: "intersect" | "contain";
735
+ _id: string;
714
736
  coords: {
715
737
  _id: string;
716
738
  points: [number, number];
@@ -724,16 +746,16 @@ export declare const patchCameraSchema: zod.ZodObject<{
724
746
  }[];
725
747
  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")[];
726
748
  filter?: "include" | "exclude" | undefined;
727
- _id?: string | undefined;
728
749
  type?: "intersect" | "contain" | undefined;
750
+ _id?: string | undefined;
729
751
  isPrivacyMask?: boolean | undefined;
730
752
  }>, "many">;
731
753
  }, "strip", zod.ZodTypeAny, {
732
754
  name: string;
733
755
  regions: {
734
756
  filter: "include" | "exclude";
735
- _id: string;
736
757
  type: "intersect" | "contain";
758
+ _id: string;
737
759
  coords: {
738
760
  _id: string;
739
761
  points: [number, number];
@@ -750,8 +772,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
750
772
  }[];
751
773
  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")[];
752
774
  filter?: "include" | "exclude" | undefined;
753
- _id?: string | undefined;
754
775
  type?: "intersect" | "contain" | undefined;
776
+ _id?: string | undefined;
755
777
  isPrivacyMask?: boolean | undefined;
756
778
  }[];
757
779
  }>, "many">>;
@@ -799,20 +821,16 @@ export declare const patchCameraSchema: zod.ZodObject<{
799
821
  resolution?: 640 | 480 | 320 | undefined;
800
822
  }>>;
801
823
  }, "strict", zod.ZodTypeAny, {
802
- info?: {
803
- model?: string | undefined;
804
- manufacturer?: string | undefined;
805
- hardware?: string | undefined;
806
- serialNumber?: string | undefined;
807
- firmwareVersion?: string | undefined;
808
- supportUrl?: string | undefined;
809
- } | undefined;
824
+ snapshotTTL: number;
825
+ type?: "camera" | "doorbell" | undefined;
826
+ disabled?: boolean | undefined;
827
+ name?: string | undefined;
810
828
  activityZones?: {
811
829
  name: string;
812
830
  regions: {
813
831
  filter: "include" | "exclude";
814
- _id: string;
815
832
  type: "intersect" | "contain";
833
+ _id: string;
816
834
  coords: {
817
835
  _id: string;
818
836
  points: [number, number];
@@ -821,9 +839,14 @@ export declare const patchCameraSchema: zod.ZodObject<{
821
839
  isPrivacyMask: boolean;
822
840
  }[];
823
841
  }[] | undefined;
824
- name?: string | undefined;
825
- disabled?: boolean | undefined;
826
- type?: "camera" | "doorbell" | undefined;
842
+ info?: {
843
+ model?: string | undefined;
844
+ manufacturer?: string | undefined;
845
+ hardware?: string | undefined;
846
+ serialNumber?: string | undefined;
847
+ firmwareVersion?: string | undefined;
848
+ supportUrl?: string | undefined;
849
+ } | undefined;
827
850
  activitySettings?: {
828
851
  object?: {
829
852
  confidence: number;
@@ -839,34 +862,30 @@ export declare const patchCameraSchema: zod.ZodObject<{
839
862
  } | undefined;
840
863
  sources?: {
841
864
  _id: string;
865
+ internal: boolean;
842
866
  name: string;
843
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
867
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
844
868
  urls: string[];
845
869
  }[] | undefined;
846
870
  extensions?: {
871
+ hub?: string[] | undefined;
847
872
  prebuffer?: string | undefined;
848
873
  motionDetection?: string | undefined;
849
874
  objectDetection?: string | undefined;
850
875
  audioDetection?: string | undefined;
851
876
  ptz?: string | undefined;
852
- hub?: string[] | undefined;
853
877
  plugins?: string[] | undefined;
854
878
  } | undefined;
855
879
  recording?: {
856
880
  enabled?: boolean | undefined;
857
881
  } | undefined;
858
882
  interface?: {
859
- streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
883
+ streamingMode?: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls" | undefined;
860
884
  } | undefined;
861
885
  }, {
862
- info?: {
863
- model?: string | undefined;
864
- manufacturer?: string | undefined;
865
- hardware?: string | undefined;
866
- serialNumber?: string | undefined;
867
- firmwareVersion?: string | undefined;
868
- supportUrl?: string | undefined;
869
- } | undefined;
886
+ type?: "camera" | "doorbell" | undefined;
887
+ disabled?: boolean | undefined;
888
+ name?: string | undefined;
870
889
  activityZones?: {
871
890
  name: string;
872
891
  regions: {
@@ -876,14 +895,20 @@ export declare const patchCameraSchema: zod.ZodObject<{
876
895
  }[];
877
896
  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")[];
878
897
  filter?: "include" | "exclude" | undefined;
879
- _id?: string | undefined;
880
898
  type?: "intersect" | "contain" | undefined;
899
+ _id?: string | undefined;
881
900
  isPrivacyMask?: boolean | undefined;
882
901
  }[];
883
902
  }[] | undefined;
884
- name?: string | undefined;
885
- disabled?: boolean | undefined;
886
- type?: "camera" | "doorbell" | undefined;
903
+ info?: {
904
+ model?: string | undefined;
905
+ manufacturer?: string | undefined;
906
+ hardware?: string | undefined;
907
+ serialNumber?: string | undefined;
908
+ firmwareVersion?: string | undefined;
909
+ supportUrl?: string | undefined;
910
+ } | undefined;
911
+ snapshotTTL?: number | undefined;
887
912
  activitySettings?: {
888
913
  object?: {
889
914
  confidence: number;
@@ -899,24 +924,25 @@ export declare const patchCameraSchema: zod.ZodObject<{
899
924
  } | undefined;
900
925
  sources?: {
901
926
  name: string;
902
- roles: ("high-resolution" | "mid-resolution" | "low-resolution" | "snapshot")[];
927
+ roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
903
928
  urls: string[];
904
929
  _id?: string | undefined;
930
+ internal?: boolean | undefined;
905
931
  }[] | undefined;
906
932
  extensions?: {
933
+ hub?: string[] | undefined;
907
934
  prebuffer?: string | undefined;
908
935
  motionDetection?: string | undefined;
909
936
  objectDetection?: string | undefined;
910
937
  audioDetection?: string | undefined;
911
938
  ptz?: string | undefined;
912
- hub?: string[] | undefined;
913
939
  plugins?: string[] | undefined;
914
940
  } | undefined;
915
941
  recording?: {
916
942
  enabled?: boolean | undefined;
917
943
  } | undefined;
918
944
  interface?: {
919
- streamingMode?: "mp4" | "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | undefined;
945
+ streamingMode?: "mp4" | "mjpeg" | "mse" | "webrtc" | "webrtc/tcp" | "hls" | undefined;
920
946
  } | undefined;
921
947
  }>;
922
948
  export declare const patchExtensionsSchema: zod.ZodRecord<zod.ZodString, zod.ZodAny>;