@camera.ui/browser 0.0.44 → 0.0.45

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 (95) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/{client → packages/client}/node/src/proxy/cameraDevice/cameraDevice.browser.d.ts +2 -2
  3. package/dist/{client → packages/client}/node/src/proxy/cameraDevice/cameraDevice.node.d.ts +2 -2
  4. package/dist/{client → packages/client}/node/src/proxy/deviceManager.d.ts +3 -2
  5. package/dist/{client → packages/client}/node/src/proxy/pluginsManager.d.ts +3 -2
  6. package/dist/{client → packages/client}/node/src/proxy/systemManager.d.ts +3 -2
  7. package/dist/{client → packages/client}/node/src/socket.d.ts +1 -1
  8. package/dist/{client → packages/client}/node/src/types.d.ts +3 -3
  9. package/dist/server/bin/python.d.ts +26 -0
  10. package/dist/{src → server/src}/api/database/index.d.ts +1 -1
  11. package/dist/{src → server/src}/api/database/types.d.ts +1 -1
  12. package/dist/{src → server/src}/api/go2rtc/api/streams.d.ts +1 -1
  13. package/dist/{src → server/src}/api/schemas/cameras.schema.d.ts +39 -39
  14. package/dist/{src → server/src}/api/schemas/users.schema.d.ts +84 -84
  15. package/dist/{src → server/src}/api/services/cameras.service.d.ts +1 -1
  16. package/dist/{src → server/src}/api/types/index.d.ts +8 -7
  17. package/dist/{src → server/src}/api/ws/nsp/logs.d.ts +1 -1
  18. package/dist/{src → server/src}/api/ws/nsp/main.d.ts +1 -1
  19. package/dist/{src → server/src}/api/ws/nsp/metrics.d.ts +2 -2
  20. package/dist/{src → server/src}/api/ws/nsp/notifications.d.ts +1 -1
  21. package/dist/{src → server/src}/api/ws/nsp/plugins.d.ts +2 -2
  22. package/dist/{src → server/src}/api/ws/nsp/status.d.ts +2 -2
  23. package/dist/{src → server/src}/api/ws/nsp/streams.d.ts +1 -1
  24. package/dist/{src → server/src}/api.d.ts +4 -6
  25. package/dist/{src → server/src}/camera/index.d.ts +3 -4
  26. package/dist/{src → server/src}/camera/streaming/browser/browser-peer-connection.d.ts +1 -1
  27. package/dist/{src → server/src}/camera/streaming/browser/browser-streaming-session.d.ts +1 -1
  28. package/dist/{src → server/src}/camera/streaming/browser/webrtc-browser-connection.d.ts +1 -1
  29. package/dist/{src → server/src}/camera/streaming/peer-connection.d.ts +3 -3
  30. package/dist/{src → server/src}/camera/streaming/streaming-session.d.ts +2 -2
  31. package/dist/{src → server/src}/camera/streaming/webrtc-connection.d.ts +1 -1
  32. package/dist/{src → server/src}/camera/types.d.ts +3 -3
  33. package/dist/{src → server/src}/go2rtc/index.d.ts +2 -1
  34. package/dist/{src → server/src}/plugins/index.d.ts +4 -9
  35. package/dist/{src/plugins → server/src/plugins/node}/api.d.ts +13 -7
  36. package/dist/{src/plugins → server/src/plugins/node}/cameraStorage.d.ts +3 -3
  37. package/dist/{src/plugins → server/src/plugins/node}/config.d.ts +1 -10
  38. package/dist/server/src/plugins/node/logger.d.ts +11 -0
  39. package/dist/{src/proxy/client → server/src/plugins/node/proxy}/cameraDevice.d.ts +8 -7
  40. package/dist/server/src/plugins/node/proxy/deviceManager.d.ts +45 -0
  41. package/dist/server/src/plugins/node/proxy/pluginsManager.d.ts +36 -0
  42. package/dist/{src/proxy/client → server/src/plugins/node/proxy}/queue.d.ts +4 -3
  43. package/dist/server/src/plugins/node/proxy/systemManager.d.ts +34 -0
  44. package/dist/{src/plugins → server/src/plugins/node}/schema.d.ts +4 -4
  45. package/dist/{src/plugins → server/src/plugins/node}/storageController.d.ts +3 -3
  46. package/dist/{src → server/src}/plugins/plugin.d.ts +13 -8
  47. package/dist/{src → server/src}/plugins/types.d.ts +14 -8
  48. package/dist/server/src/plugins/worker-ipc.d.ts +16 -0
  49. package/dist/{src → server/src}/plugins/worker.d.ts +5 -1
  50. package/dist/{src/proxy/proxies/server.d.ts → server/src/proxy/api.d.ts} +5 -5
  51. package/dist/{src/proxy/proxies → server/src/proxy}/camera.d.ts +5 -6
  52. package/dist/{src → server/src}/proxy/constants.d.ts +1 -1
  53. package/dist/{src → server/src}/proxy/index.d.ts +8 -8
  54. package/dist/{src/proxy/proxies → server/src/proxy}/plugin.d.ts +4 -4
  55. package/dist/{src → server/src}/proxy/types.d.ts +1 -6
  56. package/dist/{src/proxy/ws/index.d.ts → server/src/proxy/ws.d.ts} +2 -2
  57. package/dist/{src → server/src}/services/config/constants.d.ts +1 -1
  58. package/dist/{src → server/src}/services/config/index.d.ts +2 -4
  59. package/dist/{src → server/src}/services/logger/index.d.ts +0 -12
  60. package/dist/shared/common/utils.d.ts +2 -2
  61. package/dist/shared/types/index.d.ts +10 -10
  62. package/package.json +7 -6
  63. package/dist/src/plugins/base.d.ts +0 -15
  64. package/dist/src/proxy/client/deviceManager.d.ts +0 -35
  65. package/dist/src/proxy/client/pluginsManager.d.ts +0 -26
  66. package/dist/src/proxy/client/systemManager.d.ts +0 -24
  67. package/dist/{client → packages/client}/node/src/api.d.ts +0 -0
  68. package/dist/{client → packages/client}/node/src/client.d.ts +0 -0
  69. package/dist/{client → packages/client}/node/src/index.d.ts +1 -1
  70. package/dist/{client → packages/client}/node/src/proxy/cameraDevice/cameraDevice.mock.d.ts +0 -0
  71. package/dist/{client → packages/client}/node/src/proxy/cameraDevice/index.d.ts +0 -0
  72. package/dist/{client → packages/client}/node/src/proxy/index.d.ts +0 -0
  73. package/dist/{src → server/src}/api/go2rtc/api/application.d.ts +0 -0
  74. package/dist/{src → server/src}/api/go2rtc/api/config.d.ts +0 -0
  75. package/dist/{src → server/src}/api/go2rtc/api/index.d.ts +0 -0
  76. package/dist/{src → server/src}/api/go2rtc/api/snapshot.d.ts +0 -0
  77. package/dist/{src → server/src}/api/go2rtc/index.d.ts +0 -0
  78. package/dist/{src → server/src}/api/go2rtc/queue.d.ts +0 -0
  79. package/dist/{src → server/src}/api/go2rtc/types.d.ts +0 -0
  80. package/dist/{src → server/src}/api/middlewares/socketAuth.middleware.d.ts +0 -0
  81. package/dist/{src → server/src}/api/schemas/backup.schema.d.ts +36 -36
  82. package/dist/{src → server/src}/api/schemas/config.schema.d.ts +2 -2
  83. package/dist/{src → server/src}/api/schemas/go2rtc.schema.d.ts +16 -16
  84. package/dist/{src → server/src}/api/services/auth.service.d.ts +0 -0
  85. package/dist/{src → server/src}/api/services/plugins.service.d.ts +0 -0
  86. package/dist/{src → server/src}/api/services/users.service.d.ts +0 -0
  87. package/dist/{src → server/src}/api/utils/constants.d.ts +0 -0
  88. package/dist/{src → server/src}/api/ws/index.d.ts +0 -0
  89. package/dist/{src → server/src}/api/ws/types.d.ts +0 -0
  90. package/dist/{src → server/src}/camera/utils/subscribed.d.ts +0 -0
  91. package/dist/{src → server/src}/go2rtc/types.d.ts +0 -0
  92. package/dist/{src/proxy/client → server/src/plugins/node/proxy}/index.d.ts +0 -0
  93. package/dist/{src → server/src}/proxy/queue.d.ts +1 -1
  94. /package/dist/{src → server/src}/proxy/utils/generateKeys.d.ts +0 -0
  95. /package/dist/{src → server/src}/services/config/types.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import type { Camera } from '../api/database/types';
2
+ import type { CameraConfig, CameraDevice, FfmpegOptions, OnSetEvent, PrebufferType, StateValues, StreamInfo } from '../camera/types';
2
3
  import type { CameraExtension } from '../plugins/types';
3
- import type { CameraConfig, OnSetEvent, StateValues, CameraDevice, FfmpegOptions, PrebufferType, StreamInfo } from '../camera/types';
4
4
  import type { IceServer } from '../services/config/types';
5
5
  export type MethodKeys<T> = {
6
6
  [K in keyof T]: T[K] extends Function ? K : never;
@@ -64,11 +64,6 @@ export interface DeviceManagerProxyMethods {
64
64
  removeCameraByName(name: string): Promise<void>;
65
65
  removeCameraById(id: string): Promise<void>;
66
66
  }
67
- export interface DeviceManagerProxyMethodsListener {
68
- listen<E extends keyof DeviceManagerProxyEventCallbacks>(eventType: E, callback: DeviceManagerProxyEventCallbacks[E]): void;
69
- removeListener<E extends keyof DeviceManagerProxyEventCallbacks>(eventType: E, callbackToRemove: DeviceManagerProxyEventCallbacks[E]): void;
70
- removeAllListeners<E extends keyof DeviceManagerProxyEventCallbacks>(eventType?: E): void;
71
- }
72
67
  export type DeviceManagerProxyMethodNames = MethodKeys<DeviceManagerProxyMethods>;
73
68
  export interface DeviceManagerProxyEvents {
74
69
  cameraSelected: {
@@ -1,5 +1,5 @@
1
- import type { Server, Namespace } from 'socket.io';
2
- import type { SocketNsp } from '../../api/ws/types';
1
+ import type { Namespace, Server } from 'socket.io';
2
+ import type { SocketNsp } from '../api/ws/types';
3
3
  export declare class ProxyBridge {
4
4
  nsp: Namespace;
5
5
  nspName: SocketNsp;
@@ -1,5 +1,5 @@
1
1
  import type { RTCIceServer } from 'werift';
2
- import type { IceServer, IConfig, Go2RtcConfig } from './types';
2
+ import type { Go2RtcConfig, IConfig, IceServer } from './types';
3
3
  export declare const DEFAULT_ICE_SERVERS: IceServer[];
4
4
  export declare const DEFAULT_WERIFT_ICE_SERVERS: RTCIceServer[];
5
5
  export declare const DEFAULT_CONFIG: IConfig;
@@ -1,4 +1,4 @@
1
- import type { IConfig, Go2RtcConfig, Secrets } from './types';
1
+ import type { Go2RtcConfig, IConfig, Secrets } from './types';
2
2
  export declare class ConfigService {
3
3
  private logger;
4
4
  private _config;
@@ -32,13 +32,11 @@ export declare class ConfigService {
32
32
  CONFIG_FILE: string;
33
33
  SECRETS_FILE: string;
34
34
  FFMPEG_BINARY: string;
35
+ PYTHON_BINARY: string;
35
36
  GO2RTC_BINARY: string;
36
37
  GO2RTC_CONFIG_FILE: string;
37
38
  UI_PORT: number;
38
39
  UI_ELECTRON_PORT: number;
39
- PROXY_ROUTER_ADDRESS: string;
40
- PROXY_PUB_ADDRESS: string;
41
- PROXY_PUBLIC_KEY: string;
42
40
  get config(): IConfig;
43
41
  set config(newConfig: IConfig);
44
42
  get go2rtcConfig(): Go2RtcConfig;
@@ -2,18 +2,6 @@ import 'reflect-metadata';
2
2
  import type { Socket } from 'socket.io';
3
3
  import type { UiNotification } from '../../api/types';
4
4
  import type { LoggingLevel } from '../config/types';
5
- export declare class PluginLogger {
6
- subprefix: string;
7
- private logger;
8
- private get prefix();
9
- constructor(subprefix: string);
10
- log(...args: any[]): void;
11
- error(...args: any[]): void;
12
- warn(...args: any[]): void;
13
- attention(...args: any[]): void;
14
- debug(...args: any[]): void;
15
- trace(...args: any[]): void;
16
- }
17
5
  export declare class Logger {
18
6
  private _loggerPrefix;
19
7
  private _debugEnabled;
@@ -1,6 +1,6 @@
1
1
  import type { JwtTokenDecoded } from '../types';
2
- export declare const dataToQuery: (data: any) => string;
3
- export declare const queryToData: (query: string) => Record<string, any>;
2
+ export declare const toQuery: (data: any) => string;
3
+ export declare const toData: (query: string) => Record<string, any>;
4
4
  export declare const isJson: (str: any) => boolean;
5
5
  export declare const parseJwt: (access_token: string) => JwtTokenDecoded;
6
6
  export declare const sleep: (ms: number) => Promise<void>;
@@ -1,10 +1,10 @@
1
- export * from '../../src/api/types';
2
- export * from '../../src/services/config/types';
3
- export * from '../../src/api/database/types';
4
- export * from '../../src/plugins/types';
5
- export * from '../../src/api/ws/types';
6
- export * from '../../src/go2rtc/types';
7
- export * from '../../src/camera/types';
8
- export * from '../../src/proxy/types';
9
- export * from '../../src/camera/streaming/browser/browser-streaming-session';
10
- export * from '../../src/camera/streaming/browser/webrtc-browser-connection';
1
+ export * from '../../server/src/api/database/types';
2
+ export * from '../../server/src/api/types';
3
+ export * from '../../server/src/api/ws/types';
4
+ export * from '../../server/src/camera/streaming/browser/browser-streaming-session';
5
+ export * from '../../server/src/camera/streaming/browser/webrtc-browser-connection';
6
+ export * from '../../server/src/camera/types';
7
+ export * from '../../server/src/go2rtc/types';
8
+ export * from '../../server/src/plugins/types';
9
+ export * from '../../server/src/proxy/types';
10
+ export * from '../../server/src/services/config/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/browser",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "camera.ui browser client",
5
5
  "author": "seydx (https://github.com/seydx/camera.ui)",
6
6
  "main": "./dist/bundle.js",
@@ -9,9 +9,9 @@
9
9
  "type": "commonjs",
10
10
  "exports": {
11
11
  ".": {
12
- "default": "./dist/bundle.js",
13
- "import": "./dist/bundle.js",
14
- "types": "./dist/client/node/src/index.d.ts"
12
+ "default": "./dist/packages/bundle.js",
13
+ "import": "./dist/packages/bundle.js",
14
+ "types": "./dist/packages/client/node/src/index.d.ts"
15
15
  }
16
16
  },
17
17
  "scripts": {
@@ -22,14 +22,15 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "rxjs": "^7.8.1",
25
- "socket.io-client": "^4.7.4"
25
+ "socket.io-client": "^4.7.5"
26
26
  },
27
27
  "devDependencies": {
28
+ "@swc/register": "^0.1.10",
28
29
  "bufferutil": "^4.0.8",
29
30
  "rimraf": "^5.0.5",
30
31
  "ts-loader": "^9.5.1",
31
32
  "typescript": "^5.4.2",
32
- "updates": "^15.3.1",
33
+ "updates": "^16.0.0",
33
34
  "utf-8-validate": "^6.0.3",
34
35
  "webpack": "^5.90.3",
35
36
  "webpack-cli": "^5.1.4"
@@ -1,15 +0,0 @@
1
- import type { API } from './api';
2
- import type { CameraDevice } from '../camera/types';
3
- import type { PluginLogger } from '../services/logger';
4
- import type { PluginContract } from './types';
5
- export declare abstract class BasePlugin {
6
- static contract: PluginContract;
7
- id: string;
8
- api: API;
9
- logger: PluginLogger;
10
- constructor(pluginId: string, log: PluginLogger, api: API);
11
- abstract onFormSubmit(actionId: string, payload: any): Promise<{
12
- toast?: string;
13
- } | void>;
14
- abstract configureCameras(cameras: CameraDevice[]): void;
15
- }
@@ -1,35 +0,0 @@
1
- import { CameraDeviceClientProxy } from '../client/cameraDevice';
2
- import type { CameraConfig, CameraDevice } from '../../camera/types';
3
- import type { PluginLogger } from '../../services/logger';
4
- import type { ZmqInfo } from '../../plugins/types';
5
- import type { DeviceManagerProxyMethods, DeviceManagerProxyEventCallbacks, DeviceManagerProxyMethodsListener } from '../types';
6
- import { PluginAPI } from '../../plugins/api';
7
- export declare class DeviceManager implements DeviceManagerProxyMethods, DeviceManagerProxyMethodsListener {
8
- private api;
9
- private logger;
10
- private dealer;
11
- private subscriber;
12
- private messageQueue;
13
- private proxy;
14
- private pluginId;
15
- private pluginName;
16
- private dealerId;
17
- private subscriberIds;
18
- private MAX_LISTENERS_PER_EVENT;
19
- private devices;
20
- private eventListeners;
21
- constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, proxy: ZmqInfo);
22
- getCameraById(id: string): Promise<CameraDevice | undefined>;
23
- getCameraByName(name: string): Promise<CameraDevice | undefined>;
24
- createCamera(cameraConfig: CameraConfig): Promise<CameraDevice>;
25
- removeCameraByName(name: string): Promise<void>;
26
- removeCameraById(id: string): Promise<void>;
27
- listen<E extends keyof DeviceManagerProxyEventCallbacks>(eventType: E, callback: DeviceManagerProxyEventCallbacks[E]): void;
28
- removeListener<E extends keyof DeviceManagerProxyEventCallbacks>(eventType: E, callbackToRemove: DeviceManagerProxyEventCallbacks[E]): void;
29
- removeAllListeners<E extends keyof DeviceManagerProxyEventCallbacks>(eventType?: E): void;
30
- configureCameras(cameraDevices: CameraDeviceClientProxy[]): void;
31
- private handleRouterRequest;
32
- private listenToSubscriberEvents;
33
- private onRequest;
34
- private addOrGetCamera;
35
- }
@@ -1,26 +0,0 @@
1
- import type { ZmqInfo } from '../../plugins/types';
2
- import type { PluginLogger } from '../../services/logger';
3
- import type { PluginsManagerProxyMethods, PluginsManagerProxyMethodsListener, PluginsManagerProxyEventCallbacks } from '../types';
4
- import type { PluginAPI } from '../../plugins/api';
5
- export declare class PluginsManager implements PluginsManagerProxyMethods, PluginsManagerProxyMethodsListener {
6
- private api;
7
- private logger;
8
- private dealer;
9
- private subscriber;
10
- private messageQueue;
11
- private pluginId;
12
- private pluginName;
13
- private dealerId;
14
- private subscriberIds;
15
- private MAX_LISTENERS_PER_EVENT;
16
- private eventListeners;
17
- constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, proxy: ZmqInfo);
18
- listen<E extends keyof PluginsManagerProxyEventCallbacks>(eventType: E, callback: PluginsManagerProxyEventCallbacks[E]): void;
19
- removeListener<E extends keyof PluginsManagerProxyEventCallbacks>(eventType: E, callbackToRemove: PluginsManagerProxyEventCallbacks[E]): void;
20
- removeAllListeners<E extends keyof PluginsManagerProxyEventCallbacks>(eventType?: E): void;
21
- private handleRouterRequest;
22
- private listenToSubscriberEvents;
23
- private onRequest;
24
- private isPluginMessage;
25
- private isStorageMessage;
26
- }
@@ -1,24 +0,0 @@
1
- import type { SystemManagerProxyMethods, SystemManagerProxyMethodsListener, SystemManagerProxyEventCallbacks } from '../types';
2
- import type { PluginLogger } from '../../services/logger';
3
- import type { ZmqInfo } from '../../plugins/types';
4
- import { PluginAPI } from '../../plugins/api';
5
- export declare class SystemManager implements SystemManagerProxyMethods, SystemManagerProxyMethodsListener {
6
- private api;
7
- private logger;
8
- private dealer;
9
- private subscriber;
10
- private messageQueue;
11
- private pluginId;
12
- private pluginName;
13
- private dealerId;
14
- private subscriberIds;
15
- private MAX_LISTENERS_PER_EVENT;
16
- private eventListeners;
17
- constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, proxy: ZmqInfo);
18
- listen<E extends keyof SystemManagerProxyEventCallbacks>(eventType: E, callback: SystemManagerProxyEventCallbacks[E]): void;
19
- removeListener<E extends keyof SystemManagerProxyEventCallbacks>(eventType: E, callbackToRemove: SystemManagerProxyEventCallbacks[E]): void;
20
- removeAllListeners<E extends keyof SystemManagerProxyEventCallbacks>(eventType?: E): void;
21
- private handleRouterRequest;
22
- private listenToSubscriberEvents;
23
- private onRequest;
24
- }
@@ -1,2 +1,2 @@
1
- export * from './types';
2
1
  export * from './client';
2
+ export * from './types';
File without changes
File without changes
File without changes
@@ -12,25 +12,25 @@ export declare const downloadBackupSchema: zod.ZodObject<{
12
12
  _id: zod.ZodString;
13
13
  name: zod.ZodString;
14
14
  }, "strict", zod.ZodTypeAny, {
15
- _id: string;
16
15
  name: string;
17
- }, {
18
16
  _id: string;
17
+ }, {
19
18
  name: string;
19
+ _id: string;
20
20
  }>, "many">;
21
21
  }, "strict", zod.ZodTypeAny, {
22
- _id: string;
23
22
  name: string;
23
+ _id: string;
24
24
  cameras: {
25
- _id: string;
26
25
  name: string;
26
+ _id: string;
27
27
  }[];
28
28
  }, {
29
- _id: string;
30
29
  name: string;
30
+ _id: string;
31
31
  cameras: {
32
- _id: string;
33
32
  name: string;
33
+ _id: string;
34
34
  }[];
35
35
  }>>;
36
36
  preferences: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -40,59 +40,59 @@ export declare const downloadBackupSchema: zod.ZodObject<{
40
40
  _id: zod.ZodString;
41
41
  name: zod.ZodString;
42
42
  }, "strict", zod.ZodTypeAny, {
43
- _id: string;
44
43
  name: string;
45
- }, {
46
44
  _id: string;
45
+ }, {
47
46
  name: string;
47
+ _id: string;
48
48
  }>, "many">;
49
49
  }, "strict", zod.ZodTypeAny, {
50
- _id: string;
51
50
  name: string;
51
+ _id: string;
52
52
  cameras: {
53
- _id: string;
54
53
  name: string;
54
+ _id: string;
55
55
  }[];
56
56
  }, {
57
- _id: string;
58
57
  name: string;
58
+ _id: string;
59
59
  cameras: {
60
- _id: string;
61
60
  name: string;
61
+ _id: string;
62
62
  }[];
63
63
  }>, "many">>;
64
64
  }, "strict", zod.ZodTypeAny, {
65
65
  currentLayout?: {
66
- _id: string;
67
66
  name: string;
67
+ _id: string;
68
68
  cameras: {
69
- _id: string;
70
69
  name: string;
70
+ _id: string;
71
71
  }[];
72
72
  } | undefined;
73
73
  preferences?: {
74
- _id: string;
75
74
  name: string;
75
+ _id: string;
76
76
  cameras: {
77
- _id: string;
78
77
  name: string;
78
+ _id: string;
79
79
  }[];
80
80
  }[] | undefined;
81
81
  }, {
82
82
  currentLayout?: {
83
- _id: string;
84
83
  name: string;
84
+ _id: string;
85
85
  cameras: {
86
- _id: string;
87
86
  name: string;
87
+ _id: string;
88
88
  }[];
89
89
  } | undefined;
90
90
  preferences?: {
91
- _id: string;
92
91
  name: string;
92
+ _id: string;
93
93
  cameras: {
94
- _id: string;
95
94
  name: string;
95
+ _id: string;
96
96
  }[];
97
97
  }[] | undefined;
98
98
  }>>>;
@@ -110,19 +110,19 @@ export declare const downloadBackupSchema: zod.ZodObject<{
110
110
  }, "strict", zod.ZodTypeAny, {
111
111
  layout?: {
112
112
  currentLayout?: {
113
- _id: string;
114
113
  name: string;
114
+ _id: string;
115
115
  cameras: {
116
- _id: string;
117
116
  name: string;
117
+ _id: string;
118
118
  }[];
119
119
  } | undefined;
120
120
  preferences?: {
121
- _id: string;
122
121
  name: string;
122
+ _id: string;
123
123
  cameras: {
124
- _id: string;
125
124
  name: string;
125
+ _id: string;
126
126
  }[];
127
127
  }[] | undefined;
128
128
  } | undefined;
@@ -134,19 +134,19 @@ export declare const downloadBackupSchema: zod.ZodObject<{
134
134
  }, {
135
135
  layout?: {
136
136
  currentLayout?: {
137
- _id: string;
138
137
  name: string;
138
+ _id: string;
139
139
  cameras: {
140
- _id: string;
141
140
  name: string;
141
+ _id: string;
142
142
  }[];
143
143
  } | undefined;
144
144
  preferences?: {
145
- _id: string;
146
145
  name: string;
146
+ _id: string;
147
147
  cameras: {
148
- _id: string;
149
148
  name: string;
149
+ _id: string;
150
150
  }[];
151
151
  }[] | undefined;
152
152
  } | undefined;
@@ -160,19 +160,19 @@ export declare const downloadBackupSchema: zod.ZodObject<{
160
160
  localStorage?: {
161
161
  layout?: {
162
162
  currentLayout?: {
163
- _id: string;
164
163
  name: string;
164
+ _id: string;
165
165
  cameras: {
166
- _id: string;
167
166
  name: string;
167
+ _id: string;
168
168
  }[];
169
169
  } | undefined;
170
170
  preferences?: {
171
- _id: string;
172
171
  name: string;
172
+ _id: string;
173
173
  cameras: {
174
- _id: string;
175
174
  name: string;
175
+ _id: string;
176
176
  }[];
177
177
  }[] | undefined;
178
178
  } | undefined;
@@ -186,19 +186,19 @@ export declare const downloadBackupSchema: zod.ZodObject<{
186
186
  localStorage?: {
187
187
  layout?: {
188
188
  currentLayout?: {
189
- _id: string;
190
189
  name: string;
190
+ _id: string;
191
191
  cameras: {
192
- _id: string;
193
192
  name: string;
193
+ _id: string;
194
194
  }[];
195
195
  } | undefined;
196
196
  preferences?: {
197
- _id: string;
198
197
  name: string;
198
+ _id: string;
199
199
  cameras: {
200
- _id: string;
201
200
  name: string;
201
+ _id: string;
202
202
  }[];
203
203
  }[] | undefined;
204
204
  } | undefined;
@@ -61,9 +61,9 @@ export declare const mqttSchema: zod.ZodObject<{
61
61
  key?: string | undefined;
62
62
  }>>>;
63
63
  }, "strict", zod.ZodTypeAny, {
64
+ port: number;
64
65
  enabled: boolean;
65
66
  host: string;
66
- port: number;
67
67
  topicPrefix: string;
68
68
  clientId: string;
69
69
  tls: {
@@ -162,11 +162,11 @@ export declare const patchConfigSchema: zod.ZodObject<{
162
162
  snapshotCache?: number | undefined;
163
163
  }>>;
164
164
  }, "strict", zod.ZodTypeAny, {
165
+ port: number;
165
166
  plugins: {
166
167
  sudo?: boolean | undefined;
167
168
  disabledPlugins?: string[] | undefined;
168
169
  };
169
- port: number;
170
170
  insecurePort: number;
171
171
  ssl: {
172
172
  certFile: string;
@@ -17,6 +17,7 @@ export declare const logSchema: zod.ZodObject<{
17
17
  streams: zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"trace">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"fatal">]>;
18
18
  webrtc: zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"trace">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"fatal">]>;
19
19
  }, "strict", zod.ZodTypeAny, {
20
+ rtsp: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
20
21
  webrtc: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
21
22
  mjpeg: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
22
23
  hls: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
@@ -26,13 +27,13 @@ export declare const logSchema: zod.ZodObject<{
26
27
  api: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
27
28
  exec: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
28
29
  ngrok: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
29
- rtsp: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
30
30
  rtmp: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
31
31
  homekit: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
32
32
  webtorrent: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
33
33
  hass: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
34
34
  streams: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
35
35
  }, {
36
+ rtsp: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
36
37
  webrtc: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
37
38
  mjpeg: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
38
39
  hls: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
@@ -40,7 +41,6 @@ export declare const logSchema: zod.ZodObject<{
40
41
  api: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
41
42
  exec: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
42
43
  ngrok: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
43
- rtsp: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
44
44
  rtmp: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
45
45
  homekit: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
46
46
  webtorrent: "error" | "info" | "debug" | "warn" | "trace" | "fatal";
@@ -55,9 +55,9 @@ export declare const apiSchema: zod.ZodObject<{
55
55
  password: zod.ZodDefault<zod.ZodString>;
56
56
  origin: zod.ZodDefault<zod.ZodString>;
57
57
  }, "strict", zod.ZodTypeAny, {
58
- username: string;
59
58
  password: string;
60
59
  listen: string;
60
+ username: string;
61
61
  origin: string;
62
62
  }, {
63
63
  listen?: string | undefined;
@@ -86,9 +86,9 @@ export declare const rtspSchema: zod.ZodObject<{
86
86
  password: zod.ZodDefault<zod.ZodString>;
87
87
  default_query: zod.ZodDefault<zod.ZodString>;
88
88
  }, "strict", zod.ZodTypeAny, {
89
- username: string;
90
89
  password: string;
91
90
  listen: string;
91
+ username: string;
92
92
  default_query: string;
93
93
  }, {
94
94
  listen?: string | undefined;
@@ -104,11 +104,11 @@ export declare const ffmpegSchema: zod.ZodIntersection<zod.ZodRecord<zod.ZodStri
104
104
  rtsp: zod.ZodDefault<zod.ZodString>;
105
105
  output: zod.ZodDefault<zod.ZodString>;
106
106
  }, "strip", zod.ZodTypeAny, {
107
- rtsp: string;
108
107
  bin: string;
109
108
  global: string;
110
109
  file: string;
111
110
  http: string;
111
+ rtsp: string;
112
112
  output: string;
113
113
  }, {
114
114
  bin?: string | undefined;
@@ -308,9 +308,9 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
308
308
  password: zod.ZodDefault<zod.ZodString>;
309
309
  origin: zod.ZodDefault<zod.ZodString>;
310
310
  }, "strict", zod.ZodTypeAny, {
311
- username: string;
312
311
  password: string;
313
312
  listen: string;
313
+ username: string;
314
314
  origin: string;
315
315
  }, {
316
316
  listen?: string | undefined;
@@ -324,9 +324,9 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
324
324
  password: zod.ZodDefault<zod.ZodString>;
325
325
  default_query: zod.ZodDefault<zod.ZodString>;
326
326
  }, "strict", zod.ZodTypeAny, {
327
- username: string;
328
327
  password: string;
329
328
  listen: string;
329
+ username: string;
330
330
  default_query: string;
331
331
  }, {
332
332
  listen?: string | undefined;
@@ -389,11 +389,11 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
389
389
  rtsp: zod.ZodDefault<zod.ZodString>;
390
390
  output: zod.ZodDefault<zod.ZodString>;
391
391
  }, "strip", zod.ZodTypeAny, {
392
- rtsp: string;
393
392
  bin: string;
394
393
  global: string;
395
394
  file: string;
396
395
  http: string;
396
+ rtsp: string;
397
397
  output: string;
398
398
  }, {
399
399
  bin?: string | undefined;
@@ -457,6 +457,12 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
457
457
  command?: string | undefined;
458
458
  }>>;
459
459
  }, "strict", zod.ZodTypeAny, {
460
+ rtsp: {
461
+ password: string;
462
+ listen: string;
463
+ username: string;
464
+ default_query: string;
465
+ };
460
466
  webrtc: {
461
467
  listen: string;
462
468
  candidates: string[];
@@ -467,26 +473,20 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
467
473
  }[];
468
474
  };
469
475
  api: {
470
- username: string;
471
476
  password: string;
472
477
  listen: string;
473
- origin: string;
474
- };
475
- rtsp: {
476
478
  username: string;
477
- password: string;
478
- listen: string;
479
- default_query: string;
479
+ origin: string;
480
480
  };
481
481
  rtmp: {
482
482
  listen: string;
483
483
  };
484
484
  ffmpeg: Record<string, string> & {
485
- rtsp: string;
486
485
  bin: string;
487
486
  global: string;
488
487
  file: string;
489
488
  http: string;
489
+ rtsp: string;
490
490
  output: string;
491
491
  };
492
492
  log: {