@camera.ui/browser 0.0.51 → 0.0.52

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.
@@ -359,11 +359,6 @@ export declare const createCameraSchema: zod.ZodObject<{
359
359
  }>, "many">>;
360
360
  motionTimeout: zod.ZodDefault<zod.ZodNumber>;
361
361
  }, "strict", zod.ZodTypeAny, {
362
- recording: {
363
- enabled: boolean;
364
- };
365
- _id: string;
366
- name: string;
367
362
  info: {
368
363
  model: string;
369
364
  manufacturer: string;
@@ -372,7 +367,11 @@ export declare const createCameraSchema: zod.ZodObject<{
372
367
  firmwareVersion: string;
373
368
  supportUrl: string;
374
369
  };
375
- type: "doorbell" | "camera";
370
+ recording: {
371
+ enabled: boolean;
372
+ };
373
+ _id: string;
374
+ name: string;
376
375
  extensions: {
377
376
  plugins: string[];
378
377
  hub?: string[] | undefined;
@@ -382,6 +381,7 @@ export declare const createCameraSchema: zod.ZodObject<{
382
381
  audioDetection?: string | undefined;
383
382
  ptz?: string | undefined;
384
383
  };
384
+ type: "doorbell" | "camera";
385
385
  pluginId: string;
386
386
  sources: {
387
387
  _id: string;
@@ -428,10 +428,6 @@ export declare const createCameraSchema: zod.ZodObject<{
428
428
  urls: string[];
429
429
  _id?: string | undefined;
430
430
  }[];
431
- recording?: {
432
- enabled?: boolean | undefined;
433
- } | undefined;
434
- _id?: string | undefined;
435
431
  info?: {
436
432
  model: string;
437
433
  manufacturer: string;
@@ -440,7 +436,10 @@ export declare const createCameraSchema: zod.ZodObject<{
440
436
  firmwareVersion: string;
441
437
  supportUrl: string;
442
438
  } | undefined;
443
- type?: "doorbell" | "camera" | undefined;
439
+ recording?: {
440
+ enabled?: boolean | undefined;
441
+ } | undefined;
442
+ _id?: string | undefined;
444
443
  extensions?: {
445
444
  plugins: string[];
446
445
  hub?: string[] | undefined;
@@ -450,6 +449,7 @@ export declare const createCameraSchema: zod.ZodObject<{
450
449
  audioDetection?: string | undefined;
451
450
  ptz?: string | undefined;
452
451
  } | undefined;
452
+ type?: "doorbell" | "camera" | undefined;
453
453
  nativeId?: string | undefined;
454
454
  pluginId?: string | undefined;
455
455
  disabled?: boolean | undefined;
@@ -658,10 +658,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
658
658
  }>, "many">>;
659
659
  motionTimeout: zod.ZodOptional<zod.ZodNumber>;
660
660
  }, "strict", zod.ZodTypeAny, {
661
- recording?: {
662
- enabled?: boolean | undefined;
663
- } | undefined;
664
- name?: string | undefined;
665
661
  info?: {
666
662
  model?: string | undefined;
667
663
  manufacturer?: string | undefined;
@@ -670,7 +666,10 @@ export declare const patchCameraSchema: zod.ZodObject<{
670
666
  firmwareVersion?: string | undefined;
671
667
  supportUrl?: string | undefined;
672
668
  } | undefined;
673
- type?: "doorbell" | "camera" | undefined;
669
+ recording?: {
670
+ enabled?: boolean | undefined;
671
+ } | undefined;
672
+ name?: string | undefined;
674
673
  extensions?: {
675
674
  hub?: string[] | undefined;
676
675
  prebuffer?: string | undefined;
@@ -680,6 +679,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
680
679
  ptz?: string | undefined;
681
680
  plugins?: string[] | undefined;
682
681
  } | undefined;
682
+ type?: "doorbell" | "camera" | undefined;
683
683
  sources?: {
684
684
  _id: string;
685
685
  name: string;
@@ -712,10 +712,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
712
712
  streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[] | undefined;
713
713
  } | undefined;
714
714
  }, {
715
- recording?: {
716
- enabled?: boolean | undefined;
717
- } | undefined;
718
- name?: string | undefined;
719
715
  info?: {
720
716
  model?: string | undefined;
721
717
  manufacturer?: string | undefined;
@@ -724,7 +720,10 @@ export declare const patchCameraSchema: zod.ZodObject<{
724
720
  firmwareVersion?: string | undefined;
725
721
  supportUrl?: string | undefined;
726
722
  } | undefined;
727
- type?: "doorbell" | "camera" | undefined;
723
+ recording?: {
724
+ enabled?: boolean | undefined;
725
+ } | undefined;
726
+ name?: string | undefined;
728
727
  extensions?: {
729
728
  hub?: string[] | undefined;
730
729
  prebuffer?: string | undefined;
@@ -734,6 +733,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
734
733
  ptz?: string | undefined;
735
734
  plugins?: string[] | undefined;
736
735
  } | undefined;
736
+ type?: "doorbell" | "camera" | undefined;
737
737
  sources?: {
738
738
  name: string;
739
739
  roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
@@ -61,8 +61,8 @@ export declare const mqttSchema: zod.ZodObject<{
61
61
  key?: string | undefined;
62
62
  }>>>;
63
63
  }, "strict", zod.ZodTypeAny, {
64
- port: number;
65
64
  enabled: boolean;
65
+ port: number;
66
66
  host: string;
67
67
  topicPrefix: string;
68
68
  clientId: string;
@@ -74,8 +74,8 @@ export declare const mqttSchema: zod.ZodObject<{
74
74
  password?: string | undefined;
75
75
  user?: string | undefined;
76
76
  }, {
77
- port?: number | undefined;
78
77
  enabled?: boolean | undefined;
78
+ port?: number | undefined;
79
79
  password?: string | undefined;
80
80
  host?: string | undefined;
81
81
  topicPrefix?: string | undefined;
@@ -1,11 +1,11 @@
1
1
  import { BehaviorSubject, Observable } from 'rxjs';
2
- import { BrowserStreamingSession } from './streaming/browser/browser-streaming-session';
3
- import { StreamingSession } from './streaming/streaming-session';
4
2
  import { Subscribed } from './utils/subscribed';
5
3
  import type { Camera, CameraInformation, CameraPublicProperties, CameraType, CameraZone } from '../api/database/types';
6
4
  import type { Frame } from '../detector/types';
7
5
  import type { IceServer } from '../services/config/types';
8
6
  import type { AudioState, BaseLogger, BatteryState, CameraDelegate, CameraPrebufferDelegate, CameraSource, DoorbellState, FfmpegOptions, LightState, MotionState, ObjectState, OnSetEvent, SirenState, StateValues, StreamingConnectionOptions } from './types';
7
+ type StreamingSession = InstanceType<typeof import('./streaming/streaming-session').StreamingSession>;
8
+ type BrowserStreamingSession = InstanceType<typeof import('./streaming/browser/browser-streaming-session').BrowserStreamingSession>;
9
9
  export type CameraDevice = ServerCameraDeviceBase | BrowserCameraDeviceBase;
10
10
  export declare abstract class CameraDeviceBase extends Subscribed {
11
11
  protected logger: BaseLogger;
@@ -88,3 +88,4 @@ export declare abstract class ServerCameraDeviceBase extends CameraDeviceBase {
88
88
  export declare abstract class BrowserCameraDeviceBase extends CameraDeviceBase {
89
89
  createBrowserSession(sourceName: string, videoElement: HTMLVideoElement): Promise<BrowserStreamingSession>;
90
90
  }
91
+ export {};
@@ -46,7 +46,6 @@ export interface PluginStorage {
46
46
  configFile: string;
47
47
  }
48
48
  export interface ProcessLoadMessage {
49
- publicKey: string;
50
49
  cameras: Camera[];
51
50
  pluginId: string;
52
51
  storage: PluginStorage;
@@ -8,6 +8,7 @@ export interface Runtime {
8
8
  }
9
9
  export declare const enum RUNTIME_STATUS {
10
10
  READY = "ready",
11
+ RESTARTING = "restarting",
11
12
  STARTING = "starting",
12
13
  STARTED = "started",
13
14
  STOPPED = "stopped",
@@ -8,5 +8,5 @@ export * from '../../server/src/camera/types';
8
8
  export * from '../../server/src/detector/types';
9
9
  export * from '../../server/src/go2rtc/types';
10
10
  export * from '../../server/src/plugins/types';
11
- export * from '../../server/src/proxy/types';
12
11
  export * from '../../server/src/services/config/types';
12
+ export * from '../../server/src/test/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/browser",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "description": "camera.ui browser client",
5
5
  "author": "seydx (https://github.com/seydx/camera.ui)",
6
6
  "module": "./dist/bundle.js",
package/empty.js DELETED
File without changes