@camera.ui/browser 0.0.81 → 0.0.83
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.
- package/dist/bundle.js +1 -1
- package/dist/types/packages/client/browser/src/client.d.ts +1 -7
- package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +4 -14
- package/dist/types/packages/client/browser/src/proxy/index.d.ts +0 -2
- package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +2 -0
- package/dist/types/server/src/api/database/index.d.ts +11 -8
- package/dist/types/server/src/api/database/migration.d.ts +12 -0
- package/dist/types/server/src/api/database/types.d.ts +22 -2
- package/dist/types/server/src/api/go2rtc/api/streams.d.ts +4 -4
- package/dist/types/server/src/api/go2rtc/types.d.ts +6 -2
- package/dist/types/server/src/api/schemas/backup.schema.d.ts +18 -18
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +116 -96
- package/dist/types/server/src/api/schemas/config.schema.d.ts +11 -11
- package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +60 -60
- package/dist/types/server/src/api/schemas/plugins.schema.d.ts +47 -0
- package/dist/types/server/src/api/schemas/users.schema.d.ts +499 -112
- package/dist/types/server/src/api/services/cameras.service.d.ts +1 -1
- package/dist/types/server/src/api/services/users.service.d.ts +12 -3
- package/dist/types/server/src/api/types/index.d.ts +41 -30
- package/dist/types/server/src/api.d.ts +3 -3
- package/dist/types/server/src/camera/controller.d.ts +11 -11
- package/dist/types/server/src/camera/device.d.ts +15 -3
- package/dist/types/server/src/camera/index.d.ts +23 -46
- package/dist/types/server/src/camera/interfaces/camera.d.ts +1 -1
- package/dist/types/server/src/camera/types.d.ts +2 -21
- package/dist/types/server/src/camera/videoFrame.d.ts +3 -3
- package/dist/types/server/src/decoder/types.d.ts +12 -10
- package/dist/types/server/src/decoder/worker.d.ts +3 -5
- package/dist/types/server/src/nats/connection.d.ts +17 -0
- package/dist/types/server/src/nats/error.d.ts +9 -0
- package/dist/types/server/src/nats/index.d.ts +12 -9
- package/dist/types/server/src/nats/messageQueue.d.ts +20 -0
- package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +8 -19
- package/dist/types/server/src/nats/proxy/deviceManager.d.ts +6 -21
- package/dist/types/server/src/nats/server.d.ts +0 -1
- package/dist/types/server/src/nats/subscription.d.ts +12 -0
- package/dist/types/server/src/nats/types.d.ts +44 -102
- package/dist/types/server/src/nats/utils.d.ts +2 -4
- package/dist/types/server/src/plugins/index.d.ts +3 -5
- package/dist/types/server/src/plugins/interfaces/audioDetection.d.ts +7 -0
- package/dist/types/server/src/plugins/{base.d.ts → interfaces/base.d.ts} +2 -2
- package/dist/types/server/src/plugins/interfaces/motionDetection.d.ts +6 -0
- package/dist/types/server/src/plugins/interfaces/objectDetection.d.ts +7 -0
- package/dist/types/server/src/plugins/plugin.d.ts +4 -13
- package/dist/types/server/src/plugins/types.d.ts +16 -5
- package/dist/types/server/src/plugins/worker.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/cameraStorage.d.ts +2 -2
- package/dist/types/server/src/polyglot/node/plugins/{api.d.ts → pluginApi.d.ts} +10 -17
- package/dist/types/server/src/polyglot/node/plugins/{logger.d.ts → pluginLogger.d.ts} +2 -0
- package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +12 -26
- package/dist/types/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +6 -8
- package/dist/types/server/src/polyglot/node/plugins/schema.d.ts +14 -10
- package/dist/types/server/src/polyglot/node/plugins/storageController.d.ts +2 -2
- package/dist/types/server/src/services/config/index.d.ts +3 -2
- package/dist/types/server/src/services/config/types.d.ts +4 -4
- package/dist/types/server/src/services/logger/index.d.ts +2 -0
- package/dist/types/server/src/utils/ffmpeg.d.ts +2 -0
- package/dist/types/server/src/utils/pythonInstaller.d.ts +1 -1
- package/dist/types/server/src/utils/subscribed.d.ts +4 -4
- package/dist/types/server/src/utils/utils.d.ts +1 -2
- package/package.json +6 -6
- package/dist/types/packages/client/browser/src/proxy/pluginsManager.d.ts +0 -10
- package/dist/types/packages/client/browser/src/proxy/systemManager.d.ts +0 -10
- package/dist/types/server/src/api/controllers/api.controller.d.ts +0 -6
- package/dist/types/server/src/api/controllers/auth.controller.d.ts +0 -20
- package/dist/types/server/src/api/controllers/backup.controller.d.ts +0 -10
- package/dist/types/server/src/api/controllers/cameras.controller.d.ts +0 -33
- package/dist/types/server/src/api/controllers/config.controller.d.ts +0 -14
- package/dist/types/server/src/api/controllers/files.controller.d.ts +0 -8
- package/dist/types/server/src/api/controllers/frameWorkers.controller.d.ts +0 -16
- package/dist/types/server/src/api/controllers/plugins.controller.d.ts +0 -54
- package/dist/types/server/src/api/controllers/system.controller.d.ts +0 -14
- package/dist/types/server/src/api/controllers/users.controller.d.ts +0 -21
- package/dist/types/server/src/api/index.d.ts +0 -21
- package/dist/types/server/src/api/middlewares/authPermission.middleware.d.ts +0 -5
- package/dist/types/server/src/api/middlewares/authValidation.middleware.d.ts +0 -4
- package/dist/types/server/src/api/middlewares/pagination.middleware.d.ts +0 -3
- package/dist/types/server/src/api/plugins/cameraui.plugin.d.ts +0 -11
- package/dist/types/server/src/api/plugins/database.plugin.d.ts +0 -11
- package/dist/types/server/src/api/plugins/go2rtc.plugin.d.ts +0 -11
- package/dist/types/server/src/api/plugins/logger.plugin.d.ts +0 -7
- package/dist/types/server/src/api/plugins/socket.plugin.d.ts +0 -11
- package/dist/types/server/src/api/plugins/system.plugin.d.ts +0 -21
- package/dist/types/server/src/api/plugins/useragent.plugin.d.ts +0 -8
- package/dist/types/server/src/api/routes/api.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/auth.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/backup.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/cameras.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/config.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/files.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/frameWorkers.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/index.d.ts +0 -6
- package/dist/types/server/src/api/routes/plugins.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/system.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/users.routes.d.ts +0 -2
- package/dist/types/server/src/api/services/backup.service.d.ts +0 -10
- package/dist/types/server/src/api/utils/cert.d.ts +0 -11
- package/dist/types/server/src/api/utils/fetch.d.ts +0 -2
- package/dist/types/server/src/api/utils/moveFiles.d.ts +0 -1
- package/dist/types/server/src/camera/interfaces/audioDetection.d.ts +0 -10
- package/dist/types/server/src/camera/interfaces/motionDetection.d.ts +0 -10
- package/dist/types/server/src/camera/interfaces/objectDetection.d.ts +0 -10
- package/dist/types/server/src/decoder/ffmpeg.d.ts +0 -2
- package/dist/types/server/src/main.d.ts +0 -21
- package/dist/types/server/src/nats/proxy/index.d.ts +0 -4
- package/dist/types/server/src/nats/proxy/pluginsManager.d.ts +0 -12
- package/dist/types/server/src/nats/proxy/systemManager.d.ts +0 -8
- package/dist/types/server/src/nats/queue.d.ts +0 -17
- package/dist/types/server/src/polyglot/node/plugins/proxy/index.d.ts +0 -4
- package/dist/types/server/src/polyglot/node/plugins/proxy/pluginsManager.d.ts +0 -39
- package/dist/types/server/src/polyglot/node/plugins/proxy/queue.d.ts +0 -20
- package/dist/types/server/src/polyglot/node/plugins/proxy/systemManager.d.ts +0 -37
- /package/dist/types/server/src/polyglot/node/plugins/{config.d.ts → configService.d.ts} +0 -0
|
@@ -7,7 +7,7 @@ export declare const recordingsSettingsSchema: zod.ZodObject<{
|
|
|
7
7
|
enabled?: boolean | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const coordsSchema: zod.ZodObject<{
|
|
10
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
10
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
11
11
|
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
12
12
|
}, "strip", zod.ZodTypeAny, {
|
|
13
13
|
_id: string;
|
|
@@ -18,9 +18,9 @@ export declare const coordsSchema: zod.ZodObject<{
|
|
|
18
18
|
}>;
|
|
19
19
|
export declare const objectClassesSchema: zod.ZodUnion<[zod.ZodLiteral<"person">, zod.ZodLiteral<"bicycle">, zod.ZodLiteral<"car">, zod.ZodLiteral<"motorcycle">, zod.ZodLiteral<"airplane">, zod.ZodLiteral<"bus">, zod.ZodLiteral<"train">, zod.ZodLiteral<"truck">, zod.ZodLiteral<"boat">, zod.ZodLiteral<"traffic light">, zod.ZodLiteral<"fire hydrant">, zod.ZodLiteral<"stop sign">, zod.ZodLiteral<"parking meter">, zod.ZodLiteral<"bench">, zod.ZodLiteral<"bird">, zod.ZodLiteral<"cat">, zod.ZodLiteral<"dog">, zod.ZodLiteral<"horse">, zod.ZodLiteral<"sheep">, zod.ZodLiteral<"cow">, zod.ZodLiteral<"elephant">, zod.ZodLiteral<"bear">, zod.ZodLiteral<"zebra">, zod.ZodLiteral<"giraffe">, zod.ZodLiteral<"backpack">, zod.ZodLiteral<"umbrella">, zod.ZodLiteral<"handbag">, zod.ZodLiteral<"tie">, zod.ZodLiteral<"suitcase">, zod.ZodLiteral<"frisbee">, zod.ZodLiteral<"skis">, zod.ZodLiteral<"snowboard">, zod.ZodLiteral<"sports ball">, zod.ZodLiteral<"kite">, zod.ZodLiteral<"baseball bat">, zod.ZodLiteral<"baseball glove">, zod.ZodLiteral<"skateboard">, zod.ZodLiteral<"surfboard">, zod.ZodLiteral<"tennis racket">, zod.ZodLiteral<"bottle">, zod.ZodLiteral<"wine glass">, zod.ZodLiteral<"cup">, zod.ZodLiteral<"fork">, zod.ZodLiteral<"knife">, zod.ZodLiteral<"spoon">, zod.ZodLiteral<"bowl">, zod.ZodLiteral<"banana">, zod.ZodLiteral<"apple">, zod.ZodLiteral<"sandwich">, zod.ZodLiteral<"orange">, zod.ZodLiteral<"broccoli">, zod.ZodLiteral<"carrot">, zod.ZodLiteral<"hot dog">, zod.ZodLiteral<"pizza">, zod.ZodLiteral<"donut">, zod.ZodLiteral<"cake">, zod.ZodLiteral<"chair">, zod.ZodLiteral<"couch">, zod.ZodLiteral<"potted plant">, zod.ZodLiteral<"bed">, zod.ZodLiteral<"dining table">, zod.ZodLiteral<"toilet">, zod.ZodLiteral<"tv">, zod.ZodLiteral<"laptop">, zod.ZodLiteral<"mouse">, zod.ZodLiteral<"remote">, zod.ZodLiteral<"keyboard">, zod.ZodLiteral<"cell phone">, zod.ZodLiteral<"microwave">, zod.ZodLiteral<"oven">, zod.ZodLiteral<"toaster">, zod.ZodLiteral<"sink">, zod.ZodLiteral<"refrigerator">, zod.ZodLiteral<"book">, zod.ZodLiteral<"clock">, zod.ZodLiteral<"vase">, zod.ZodLiteral<"scissors">, zod.ZodLiteral<"teddy bear">, zod.ZodLiteral<"hair drier">, zod.ZodLiteral<"toothbrush">, zod.ZodLiteral<"motion">]>;
|
|
20
20
|
export declare const regionsSchema: zod.ZodObject<{
|
|
21
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
21
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
22
22
|
coords: zod.ZodArray<zod.ZodObject<{
|
|
23
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
23
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
24
24
|
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
25
25
|
}, "strip", zod.ZodTypeAny, {
|
|
26
26
|
_id: string;
|
|
@@ -57,9 +57,9 @@ export declare const regionsSchema: zod.ZodObject<{
|
|
|
57
57
|
export declare const cameraZonesSchema: zod.ZodObject<{
|
|
58
58
|
name: zod.ZodString;
|
|
59
59
|
regions: zod.ZodArray<zod.ZodObject<{
|
|
60
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
60
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
61
61
|
coords: zod.ZodArray<zod.ZodObject<{
|
|
62
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
62
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
63
63
|
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
64
64
|
}, "strip", zod.ZodTypeAny, {
|
|
65
65
|
_id: string;
|
|
@@ -150,37 +150,37 @@ export declare const activitySettingsSchema: zod.ZodObject<{
|
|
|
150
150
|
timeout: number;
|
|
151
151
|
};
|
|
152
152
|
}>;
|
|
153
|
-
export declare const inputRoleSchema: zod.ZodUnion<[zod.ZodLiteral<"
|
|
153
|
+
export declare const inputRoleSchema: zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>;
|
|
154
154
|
export declare const inputSchema: zod.ZodObject<{
|
|
155
155
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
156
156
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
157
|
-
roles: zod.
|
|
157
|
+
roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
|
|
158
158
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
159
159
|
}, "strict", zod.ZodTypeAny, {
|
|
160
160
|
name: string;
|
|
161
|
-
urls: string[];
|
|
162
161
|
_id: string;
|
|
163
|
-
roles: ("
|
|
162
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
163
|
+
urls: string[];
|
|
164
164
|
}, {
|
|
165
165
|
name: string;
|
|
166
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
166
167
|
urls: string[];
|
|
167
|
-
roles: ("none" | "detect" | "record" | "stream" | "snapshot")[];
|
|
168
168
|
_id?: string | undefined;
|
|
169
169
|
}>;
|
|
170
170
|
export declare const patchInputSchema: zod.ZodObject<{
|
|
171
171
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
172
172
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
173
|
-
roles: zod.
|
|
173
|
+
roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
|
|
174
174
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
175
175
|
}, "strict", zod.ZodTypeAny, {
|
|
176
176
|
name: string;
|
|
177
|
-
urls: string[];
|
|
178
177
|
_id: string;
|
|
179
|
-
roles: ("
|
|
178
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
179
|
+
urls: string[];
|
|
180
180
|
}, {
|
|
181
181
|
name: string;
|
|
182
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
182
183
|
urls: string[];
|
|
183
|
-
roles: ("none" | "detect" | "record" | "stream" | "snapshot")[];
|
|
184
184
|
_id?: string | undefined;
|
|
185
185
|
}>;
|
|
186
186
|
export declare const extensionsSettingsSchema: zod.ZodObject<{
|
|
@@ -194,19 +194,19 @@ export declare const extensionsSettingsSchema: zod.ZodObject<{
|
|
|
194
194
|
}, "strict", zod.ZodTypeAny, {
|
|
195
195
|
plugins: string[];
|
|
196
196
|
prebuffer?: string | undefined;
|
|
197
|
-
hub?: string[] | undefined;
|
|
198
197
|
motionDetection?: string | undefined;
|
|
199
|
-
audioDetection?: string | undefined;
|
|
200
198
|
objectDetection?: string | undefined;
|
|
199
|
+
audioDetection?: string | undefined;
|
|
201
200
|
ptz?: string | undefined;
|
|
201
|
+
hub?: string[] | undefined;
|
|
202
202
|
}, {
|
|
203
203
|
plugins: string[];
|
|
204
204
|
prebuffer?: string | undefined;
|
|
205
|
-
hub?: string[] | undefined;
|
|
206
205
|
motionDetection?: string | undefined;
|
|
207
|
-
audioDetection?: string | undefined;
|
|
208
206
|
objectDetection?: string | undefined;
|
|
207
|
+
audioDetection?: string | undefined;
|
|
209
208
|
ptz?: string | undefined;
|
|
209
|
+
hub?: string[] | undefined;
|
|
210
210
|
}>;
|
|
211
211
|
export declare const streamingModeSchema: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
|
|
212
212
|
export declare const frameWorkerSettingsSchema: zod.ZodObject<{
|
|
@@ -226,9 +226,9 @@ export declare const cameraTypeSchema: zod.ZodUnion<[zod.ZodLiteral<"camera">, z
|
|
|
226
226
|
export declare const interfaceSettingsSchema: zod.ZodObject<{
|
|
227
227
|
streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
|
|
228
228
|
}, "strip", zod.ZodTypeAny, {
|
|
229
|
-
streamingMode: "
|
|
229
|
+
streamingMode: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4";
|
|
230
230
|
}, {
|
|
231
|
-
streamingMode: "
|
|
231
|
+
streamingMode: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4";
|
|
232
232
|
}>;
|
|
233
233
|
export declare const cameraInfoSchema: zod.ZodObject<{
|
|
234
234
|
model: zod.ZodString;
|
|
@@ -286,22 +286,32 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
286
286
|
firmwareVersion: string;
|
|
287
287
|
supportUrl: string;
|
|
288
288
|
}>>;
|
|
289
|
-
sources: zod.ZodArray<zod.ZodObject<{
|
|
289
|
+
sources: zod.ZodEffects<zod.ZodArray<zod.ZodObject<{
|
|
290
290
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
291
291
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
292
|
-
roles: zod.
|
|
292
|
+
roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
|
|
293
293
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
294
294
|
}, "strict", zod.ZodTypeAny, {
|
|
295
295
|
name: string;
|
|
296
|
-
urls: string[];
|
|
297
296
|
_id: string;
|
|
298
|
-
roles: ("
|
|
297
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
298
|
+
urls: string[];
|
|
299
299
|
}, {
|
|
300
300
|
name: string;
|
|
301
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
301
302
|
urls: string[];
|
|
302
|
-
roles: ("none" | "detect" | "record" | "stream" | "snapshot")[];
|
|
303
303
|
_id?: string | undefined;
|
|
304
|
-
}>, "many"
|
|
304
|
+
}>, "many">, {
|
|
305
|
+
name: string;
|
|
306
|
+
_id: string;
|
|
307
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
308
|
+
urls: string[];
|
|
309
|
+
}[], {
|
|
310
|
+
name: string;
|
|
311
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
312
|
+
urls: string[];
|
|
313
|
+
_id?: string | undefined;
|
|
314
|
+
}[]>;
|
|
305
315
|
extensions: zod.ZodDefault<zod.ZodObject<{
|
|
306
316
|
hub: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
307
317
|
prebuffer: zod.ZodOptional<zod.ZodString>;
|
|
@@ -313,19 +323,19 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
313
323
|
}, "strict", zod.ZodTypeAny, {
|
|
314
324
|
plugins: string[];
|
|
315
325
|
prebuffer?: string | undefined;
|
|
316
|
-
hub?: string[] | undefined;
|
|
317
326
|
motionDetection?: string | undefined;
|
|
318
|
-
audioDetection?: string | undefined;
|
|
319
327
|
objectDetection?: string | undefined;
|
|
328
|
+
audioDetection?: string | undefined;
|
|
320
329
|
ptz?: string | undefined;
|
|
330
|
+
hub?: string[] | undefined;
|
|
321
331
|
}, {
|
|
322
332
|
plugins: string[];
|
|
323
333
|
prebuffer?: string | undefined;
|
|
324
|
-
hub?: string[] | undefined;
|
|
325
334
|
motionDetection?: string | undefined;
|
|
326
|
-
audioDetection?: string | undefined;
|
|
327
335
|
objectDetection?: string | undefined;
|
|
336
|
+
audioDetection?: string | undefined;
|
|
328
337
|
ptz?: string | undefined;
|
|
338
|
+
hub?: string[] | undefined;
|
|
329
339
|
}>>;
|
|
330
340
|
recording: zod.ZodDefault<zod.ZodObject<{
|
|
331
341
|
enabled: zod.ZodDefault<zod.ZodBoolean>;
|
|
@@ -337,16 +347,16 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
337
347
|
interface: zod.ZodDefault<zod.ZodObject<{
|
|
338
348
|
streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
|
|
339
349
|
}, "strip", zod.ZodTypeAny, {
|
|
340
|
-
streamingMode: "
|
|
350
|
+
streamingMode: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4";
|
|
341
351
|
}, {
|
|
342
|
-
streamingMode: "
|
|
352
|
+
streamingMode: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4";
|
|
343
353
|
}>>;
|
|
344
354
|
activityZones: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
345
355
|
name: zod.ZodString;
|
|
346
356
|
regions: zod.ZodArray<zod.ZodObject<{
|
|
347
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
357
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
348
358
|
coords: zod.ZodArray<zod.ZodObject<{
|
|
349
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
359
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
350
360
|
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
351
361
|
}, "strip", zod.ZodTypeAny, {
|
|
352
362
|
_id: string;
|
|
@@ -463,33 +473,33 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
463
473
|
extensions: {
|
|
464
474
|
plugins: string[];
|
|
465
475
|
prebuffer?: string | undefined;
|
|
466
|
-
hub?: string[] | undefined;
|
|
467
476
|
motionDetection?: string | undefined;
|
|
468
|
-
audioDetection?: string | undefined;
|
|
469
477
|
objectDetection?: string | undefined;
|
|
478
|
+
audioDetection?: string | undefined;
|
|
470
479
|
ptz?: string | undefined;
|
|
480
|
+
hub?: string[] | undefined;
|
|
471
481
|
};
|
|
472
|
-
|
|
473
|
-
interface: {
|
|
474
|
-
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
475
|
-
};
|
|
476
|
-
_id: string;
|
|
482
|
+
disabled: boolean;
|
|
477
483
|
pluginId: string;
|
|
484
|
+
type: "doorbell" | "camera";
|
|
485
|
+
_id: string;
|
|
486
|
+
isCloud: boolean;
|
|
487
|
+
hasLight: boolean;
|
|
488
|
+
hasSiren: boolean;
|
|
489
|
+
hasBinarySensor: boolean;
|
|
490
|
+
hasBattery: boolean;
|
|
478
491
|
sources: {
|
|
479
492
|
name: string;
|
|
480
|
-
urls: string[];
|
|
481
493
|
_id: string;
|
|
482
|
-
roles: ("
|
|
494
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
495
|
+
urls: string[];
|
|
483
496
|
}[];
|
|
484
497
|
recording: {
|
|
485
498
|
enabled: boolean;
|
|
486
499
|
};
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
hasSiren: boolean;
|
|
491
|
-
hasBinarySensor: boolean;
|
|
492
|
-
hasBattery: boolean;
|
|
500
|
+
interface: {
|
|
501
|
+
streamingMode: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4";
|
|
502
|
+
};
|
|
493
503
|
activityZones: {
|
|
494
504
|
name: string;
|
|
495
505
|
regions: {
|
|
@@ -522,8 +532,8 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
522
532
|
name: string;
|
|
523
533
|
sources: {
|
|
524
534
|
name: string;
|
|
535
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
525
536
|
urls: string[];
|
|
526
|
-
roles: ("none" | "detect" | "record" | "stream" | "snapshot")[];
|
|
527
537
|
_id?: string | undefined;
|
|
528
538
|
}[];
|
|
529
539
|
info?: {
|
|
@@ -537,28 +547,28 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
537
547
|
extensions?: {
|
|
538
548
|
plugins: string[];
|
|
539
549
|
prebuffer?: string | undefined;
|
|
540
|
-
hub?: string[] | undefined;
|
|
541
550
|
motionDetection?: string | undefined;
|
|
542
|
-
audioDetection?: string | undefined;
|
|
543
551
|
objectDetection?: string | undefined;
|
|
552
|
+
audioDetection?: string | undefined;
|
|
544
553
|
ptz?: string | undefined;
|
|
554
|
+
hub?: string[] | undefined;
|
|
545
555
|
} | undefined;
|
|
546
|
-
|
|
547
|
-
interface?: {
|
|
548
|
-
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
549
|
-
} | undefined;
|
|
550
|
-
_id?: string | undefined;
|
|
556
|
+
disabled?: boolean | undefined;
|
|
551
557
|
pluginId?: string | undefined;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
} | undefined;
|
|
558
|
+
type?: "doorbell" | "camera" | undefined;
|
|
559
|
+
_id?: string | undefined;
|
|
555
560
|
nativeId?: string | undefined;
|
|
556
|
-
disabled?: boolean | undefined;
|
|
557
561
|
isCloud?: boolean | undefined;
|
|
558
562
|
hasLight?: boolean | undefined;
|
|
559
563
|
hasSiren?: boolean | undefined;
|
|
560
564
|
hasBinarySensor?: boolean | undefined;
|
|
561
565
|
hasBattery?: boolean | undefined;
|
|
566
|
+
recording?: {
|
|
567
|
+
enabled?: boolean | undefined;
|
|
568
|
+
} | undefined;
|
|
569
|
+
interface?: {
|
|
570
|
+
streamingMode: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4";
|
|
571
|
+
} | undefined;
|
|
562
572
|
activityZones?: {
|
|
563
573
|
name: string;
|
|
564
574
|
regions: {
|
|
@@ -613,22 +623,32 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
613
623
|
firmwareVersion?: string | undefined;
|
|
614
624
|
supportUrl?: string | undefined;
|
|
615
625
|
}>>;
|
|
616
|
-
sources: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
626
|
+
sources: zod.ZodOptional<zod.ZodEffects<zod.ZodArray<zod.ZodObject<{
|
|
617
627
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
618
628
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
619
|
-
roles: zod.
|
|
629
|
+
roles: zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">, zod.ZodLiteral<"snapshot">]>, "many">;
|
|
620
630
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
621
631
|
}, "strict", zod.ZodTypeAny, {
|
|
622
632
|
name: string;
|
|
623
|
-
urls: string[];
|
|
624
633
|
_id: string;
|
|
625
|
-
roles: ("
|
|
634
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
635
|
+
urls: string[];
|
|
626
636
|
}, {
|
|
627
637
|
name: string;
|
|
638
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
628
639
|
urls: string[];
|
|
629
|
-
roles: ("none" | "detect" | "record" | "stream" | "snapshot")[];
|
|
630
640
|
_id?: string | undefined;
|
|
631
|
-
}>, "many"
|
|
641
|
+
}>, "many">, {
|
|
642
|
+
name: string;
|
|
643
|
+
_id: string;
|
|
644
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
645
|
+
urls: string[];
|
|
646
|
+
}[], {
|
|
647
|
+
name: string;
|
|
648
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
649
|
+
urls: string[];
|
|
650
|
+
_id?: string | undefined;
|
|
651
|
+
}[]>>;
|
|
632
652
|
extensions: zod.ZodOptional<zod.ZodObject<{
|
|
633
653
|
hub: zod.ZodOptional<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
|
|
634
654
|
prebuffer: zod.ZodOptional<zod.ZodOptional<zod.ZodString>>;
|
|
@@ -638,28 +658,28 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
638
658
|
ptz: zod.ZodOptional<zod.ZodOptional<zod.ZodString>>;
|
|
639
659
|
plugins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
640
660
|
}, "strict", zod.ZodTypeAny, {
|
|
641
|
-
plugins?: string[] | undefined;
|
|
642
661
|
prebuffer?: string | undefined;
|
|
643
|
-
hub?: string[] | undefined;
|
|
644
662
|
motionDetection?: string | undefined;
|
|
645
|
-
audioDetection?: string | undefined;
|
|
646
663
|
objectDetection?: string | undefined;
|
|
664
|
+
audioDetection?: string | undefined;
|
|
647
665
|
ptz?: string | undefined;
|
|
648
|
-
|
|
666
|
+
hub?: string[] | undefined;
|
|
649
667
|
plugins?: string[] | undefined;
|
|
668
|
+
}, {
|
|
650
669
|
prebuffer?: string | undefined;
|
|
651
|
-
hub?: string[] | undefined;
|
|
652
670
|
motionDetection?: string | undefined;
|
|
653
|
-
audioDetection?: string | undefined;
|
|
654
671
|
objectDetection?: string | undefined;
|
|
672
|
+
audioDetection?: string | undefined;
|
|
655
673
|
ptz?: string | undefined;
|
|
674
|
+
hub?: string[] | undefined;
|
|
675
|
+
plugins?: string[] | undefined;
|
|
656
676
|
}>>;
|
|
657
677
|
interface: zod.ZodOptional<zod.ZodObject<{
|
|
658
678
|
streamingMode: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>>;
|
|
659
679
|
}, "strip", zod.ZodTypeAny, {
|
|
660
|
-
streamingMode?: "
|
|
680
|
+
streamingMode?: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4" | undefined;
|
|
661
681
|
}, {
|
|
662
|
-
streamingMode?: "
|
|
682
|
+
streamingMode?: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4" | undefined;
|
|
663
683
|
}>>;
|
|
664
684
|
recording: zod.ZodOptional<zod.ZodObject<{
|
|
665
685
|
enabled: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
@@ -671,9 +691,9 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
671
691
|
activityZones: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
672
692
|
name: zod.ZodString;
|
|
673
693
|
regions: zod.ZodArray<zod.ZodObject<{
|
|
674
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
694
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
675
695
|
coords: zod.ZodArray<zod.ZodObject<{
|
|
676
|
-
_id: zod.ZodDefault<zod.ZodString>;
|
|
696
|
+
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
677
697
|
points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
|
|
678
698
|
}, "strip", zod.ZodTypeAny, {
|
|
679
699
|
_id: string;
|
|
@@ -788,28 +808,28 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
788
808
|
} | undefined;
|
|
789
809
|
name?: string | undefined;
|
|
790
810
|
extensions?: {
|
|
791
|
-
plugins?: string[] | undefined;
|
|
792
811
|
prebuffer?: string | undefined;
|
|
793
|
-
hub?: string[] | undefined;
|
|
794
812
|
motionDetection?: string | undefined;
|
|
795
|
-
audioDetection?: string | undefined;
|
|
796
813
|
objectDetection?: string | undefined;
|
|
814
|
+
audioDetection?: string | undefined;
|
|
797
815
|
ptz?: string | undefined;
|
|
816
|
+
hub?: string[] | undefined;
|
|
817
|
+
plugins?: string[] | undefined;
|
|
798
818
|
} | undefined;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
streamingMode?: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp" | undefined;
|
|
802
|
-
} | undefined;
|
|
819
|
+
disabled?: boolean | undefined;
|
|
820
|
+
type?: "doorbell" | "camera" | undefined;
|
|
803
821
|
sources?: {
|
|
804
822
|
name: string;
|
|
805
|
-
urls: string[];
|
|
806
823
|
_id: string;
|
|
807
|
-
roles: ("
|
|
824
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
825
|
+
urls: string[];
|
|
808
826
|
}[] | undefined;
|
|
809
827
|
recording?: {
|
|
810
828
|
enabled?: boolean | undefined;
|
|
811
829
|
} | undefined;
|
|
812
|
-
|
|
830
|
+
interface?: {
|
|
831
|
+
streamingMode?: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4" | undefined;
|
|
832
|
+
} | undefined;
|
|
813
833
|
activityZones?: {
|
|
814
834
|
name: string;
|
|
815
835
|
regions: {
|
|
@@ -848,28 +868,28 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
848
868
|
} | undefined;
|
|
849
869
|
name?: string | undefined;
|
|
850
870
|
extensions?: {
|
|
851
|
-
plugins?: string[] | undefined;
|
|
852
871
|
prebuffer?: string | undefined;
|
|
853
|
-
hub?: string[] | undefined;
|
|
854
872
|
motionDetection?: string | undefined;
|
|
855
|
-
audioDetection?: string | undefined;
|
|
856
873
|
objectDetection?: string | undefined;
|
|
874
|
+
audioDetection?: string | undefined;
|
|
857
875
|
ptz?: string | undefined;
|
|
876
|
+
hub?: string[] | undefined;
|
|
877
|
+
plugins?: string[] | undefined;
|
|
858
878
|
} | undefined;
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
streamingMode?: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp" | undefined;
|
|
862
|
-
} | undefined;
|
|
879
|
+
disabled?: boolean | undefined;
|
|
880
|
+
type?: "doorbell" | "camera" | undefined;
|
|
863
881
|
sources?: {
|
|
864
882
|
name: string;
|
|
883
|
+
roles: ("snapshot" | "high-resolution" | "mid-resolution" | "low-resolution")[];
|
|
865
884
|
urls: string[];
|
|
866
|
-
roles: ("none" | "detect" | "record" | "stream" | "snapshot")[];
|
|
867
885
|
_id?: string | undefined;
|
|
868
886
|
}[] | undefined;
|
|
869
887
|
recording?: {
|
|
870
888
|
enabled?: boolean | undefined;
|
|
871
889
|
} | undefined;
|
|
872
|
-
|
|
890
|
+
interface?: {
|
|
891
|
+
streamingMode?: "webrtc" | "mse" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4" | undefined;
|
|
892
|
+
} | undefined;
|
|
873
893
|
activityZones?: {
|
|
874
894
|
name: string;
|
|
875
895
|
regions: {
|
|
@@ -19,16 +19,16 @@ export declare const mqttTLSSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
19
19
|
key?: string | undefined;
|
|
20
20
|
cert?: string | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
enabled?: boolean | undefined;
|
|
23
22
|
key?: string | undefined;
|
|
23
|
+
enabled?: boolean | undefined;
|
|
24
24
|
cert?: string | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
enabled: boolean;
|
|
27
27
|
key?: string | undefined;
|
|
28
28
|
cert?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
enabled?: boolean | undefined;
|
|
31
30
|
key?: string | undefined;
|
|
31
|
+
enabled?: boolean | undefined;
|
|
32
32
|
cert?: string | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
export declare const mqttSchema: zod.ZodObject<{
|
|
@@ -48,16 +48,16 @@ export declare const mqttSchema: zod.ZodObject<{
|
|
|
48
48
|
key?: string | undefined;
|
|
49
49
|
cert?: string | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
enabled?: boolean | undefined;
|
|
52
51
|
key?: string | undefined;
|
|
52
|
+
enabled?: boolean | undefined;
|
|
53
53
|
cert?: string | undefined;
|
|
54
54
|
}>, {
|
|
55
55
|
enabled: boolean;
|
|
56
56
|
key?: string | undefined;
|
|
57
57
|
cert?: string | undefined;
|
|
58
58
|
}, {
|
|
59
|
-
enabled?: boolean | undefined;
|
|
60
59
|
key?: string | undefined;
|
|
60
|
+
enabled?: boolean | undefined;
|
|
61
61
|
cert?: string | undefined;
|
|
62
62
|
}>>>;
|
|
63
63
|
}, "strict", zod.ZodTypeAny, {
|
|
@@ -82,8 +82,8 @@ export declare const mqttSchema: zod.ZodObject<{
|
|
|
82
82
|
clientId?: string | undefined;
|
|
83
83
|
user?: string | undefined;
|
|
84
84
|
tls?: {
|
|
85
|
-
enabled?: boolean | undefined;
|
|
86
85
|
key?: string | undefined;
|
|
86
|
+
enabled?: boolean | undefined;
|
|
87
87
|
cert?: string | undefined;
|
|
88
88
|
} | undefined;
|
|
89
89
|
}>;
|
|
@@ -161,6 +161,10 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
161
161
|
snapshotCache?: number | undefined;
|
|
162
162
|
}>>;
|
|
163
163
|
}, "strict", zod.ZodTypeAny, {
|
|
164
|
+
plugins: {
|
|
165
|
+
sudo?: boolean | undefined;
|
|
166
|
+
disabledPlugins?: string[] | undefined;
|
|
167
|
+
};
|
|
164
168
|
port: number;
|
|
165
169
|
ssl: {
|
|
166
170
|
certFile: string;
|
|
@@ -171,10 +175,6 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
171
175
|
level: "error" | "info" | "debug" | "warn" | "trace";
|
|
172
176
|
disableTimestamps: boolean;
|
|
173
177
|
};
|
|
174
|
-
plugins: {
|
|
175
|
-
sudo?: boolean | undefined;
|
|
176
|
-
disabledPlugins?: string[] | undefined;
|
|
177
|
-
};
|
|
178
178
|
settings: {
|
|
179
179
|
snapshotCache: number;
|
|
180
180
|
};
|
|
@@ -189,12 +189,12 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
189
189
|
level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
|
|
190
190
|
disableTimestamps?: boolean | undefined;
|
|
191
191
|
};
|
|
192
|
-
port?: number | undefined;
|
|
193
|
-
tempFile?: string | undefined;
|
|
194
192
|
plugins?: {
|
|
195
193
|
sudo?: boolean | undefined;
|
|
196
194
|
disabledPlugins?: string[] | undefined;
|
|
197
195
|
} | undefined;
|
|
196
|
+
port?: number | undefined;
|
|
197
|
+
tempFile?: string | undefined;
|
|
198
198
|
settings?: {
|
|
199
199
|
snapshotCache?: number | undefined;
|
|
200
200
|
} | undefined;
|