@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
@@ -6,11 +6,11 @@ export declare const userPreferencesCamviewGridsLayoutCameras: zod.ZodObject<{
6
6
  _id: zod.ZodString;
7
7
  name: zod.ZodString;
8
8
  }, "strip", zod.ZodTypeAny, {
9
- _id: string;
10
9
  name: string;
11
- }, {
12
10
  _id: string;
11
+ }, {
13
12
  name: string;
13
+ _id: string;
14
14
  }>;
15
15
  export declare const userPreferencesCamviewGridsLayout: zod.ZodObject<{
16
16
  _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
@@ -19,24 +19,24 @@ export declare const userPreferencesCamviewGridsLayout: zod.ZodObject<{
19
19
  _id: zod.ZodString;
20
20
  name: zod.ZodString;
21
21
  }, "strip", zod.ZodTypeAny, {
22
- _id: string;
23
22
  name: string;
24
- }, {
25
23
  _id: string;
24
+ }, {
26
25
  name: string;
26
+ _id: string;
27
27
  }>, "many">;
28
28
  }, "strip", zod.ZodTypeAny, {
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
  name: string;
37
37
  cameras: {
38
- _id: string;
39
38
  name: string;
39
+ _id: string;
40
40
  }[];
41
41
  _id?: string | undefined;
42
42
  }>;
@@ -48,42 +48,42 @@ export declare const userPreferencesCamview: zod.ZodObject<{
48
48
  _id: zod.ZodString;
49
49
  name: zod.ZodString;
50
50
  }, "strip", zod.ZodTypeAny, {
51
- _id: string;
52
51
  name: string;
53
- }, {
54
52
  _id: string;
53
+ }, {
55
54
  name: string;
55
+ _id: string;
56
56
  }>, "many">;
57
57
  }, "strip", zod.ZodTypeAny, {
58
- _id: string;
59
58
  name: string;
59
+ _id: string;
60
60
  cameras: {
61
- _id: string;
62
61
  name: string;
62
+ _id: string;
63
63
  }[];
64
64
  }, {
65
65
  name: string;
66
66
  cameras: {
67
- _id: string;
68
67
  name: string;
68
+ _id: string;
69
69
  }[];
70
70
  _id?: string | undefined;
71
71
  }>, "many">;
72
72
  }, "strip", zod.ZodTypeAny, {
73
73
  grids: {
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
  }[];
81
81
  }, {
82
82
  grids: {
83
83
  name: string;
84
84
  cameras: {
85
- _id: string;
86
85
  name: string;
86
+ _id: string;
87
87
  }[];
88
88
  _id?: string | undefined;
89
89
  }[];
@@ -97,42 +97,42 @@ export declare const userPreferences: zod.ZodObject<{
97
97
  _id: zod.ZodString;
98
98
  name: zod.ZodString;
99
99
  }, "strip", zod.ZodTypeAny, {
100
- _id: string;
101
100
  name: string;
102
- }, {
103
101
  _id: string;
102
+ }, {
104
103
  name: string;
104
+ _id: string;
105
105
  }>, "many">;
106
106
  }, "strip", zod.ZodTypeAny, {
107
- _id: string;
108
107
  name: string;
108
+ _id: string;
109
109
  cameras: {
110
- _id: string;
111
110
  name: string;
111
+ _id: string;
112
112
  }[];
113
113
  }, {
114
114
  name: string;
115
115
  cameras: {
116
- _id: string;
117
116
  name: string;
117
+ _id: string;
118
118
  }[];
119
119
  _id?: string | undefined;
120
120
  }>, "many">;
121
121
  }, "strip", zod.ZodTypeAny, {
122
122
  grids: {
123
- _id: string;
124
123
  name: string;
124
+ _id: string;
125
125
  cameras: {
126
- _id: string;
127
126
  name: string;
127
+ _id: string;
128
128
  }[];
129
129
  }[];
130
130
  }, {
131
131
  grids: {
132
132
  name: string;
133
133
  cameras: {
134
- _id: string;
135
134
  name: string;
135
+ _id: string;
136
136
  }[];
137
137
  _id?: string | undefined;
138
138
  }[];
@@ -140,11 +140,11 @@ export declare const userPreferences: zod.ZodObject<{
140
140
  }, "strip", zod.ZodTypeAny, {
141
141
  camview: {
142
142
  grids: {
143
- _id: string;
144
143
  name: string;
144
+ _id: string;
145
145
  cameras: {
146
- _id: string;
147
146
  name: string;
147
+ _id: string;
148
148
  }[];
149
149
  }[];
150
150
  };
@@ -153,8 +153,8 @@ export declare const userPreferences: zod.ZodObject<{
153
153
  grids: {
154
154
  name: string;
155
155
  cameras: {
156
- _id: string;
157
156
  name: string;
157
+ _id: string;
158
158
  }[];
159
159
  _id?: string | undefined;
160
160
  }[];
@@ -179,42 +179,42 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
179
179
  _id: zod.ZodString;
180
180
  name: zod.ZodString;
181
181
  }, "strip", zod.ZodTypeAny, {
182
- _id: string;
183
182
  name: string;
184
- }, {
185
183
  _id: string;
184
+ }, {
186
185
  name: string;
186
+ _id: string;
187
187
  }>, "many">;
188
188
  }, "strip", zod.ZodTypeAny, {
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
  }, {
196
196
  name: string;
197
197
  cameras: {
198
- _id: string;
199
198
  name: string;
199
+ _id: string;
200
200
  }[];
201
201
  _id?: string | undefined;
202
202
  }>, "many">;
203
203
  }, "strip", zod.ZodTypeAny, {
204
204
  grids: {
205
- _id: string;
206
205
  name: string;
206
+ _id: string;
207
207
  cameras: {
208
- _id: string;
209
208
  name: string;
209
+ _id: string;
210
210
  }[];
211
211
  }[];
212
212
  }, {
213
213
  grids: {
214
214
  name: string;
215
215
  cameras: {
216
- _id: string;
217
216
  name: string;
217
+ _id: string;
218
218
  }[];
219
219
  _id?: string | undefined;
220
220
  }[];
@@ -222,11 +222,11 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
222
222
  }, "strip", zod.ZodTypeAny, {
223
223
  camview: {
224
224
  grids: {
225
- _id: string;
226
225
  name: string;
226
+ _id: string;
227
227
  cameras: {
228
- _id: string;
229
228
  name: string;
229
+ _id: string;
230
230
  }[];
231
231
  }[];
232
232
  };
@@ -235,8 +235,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
235
235
  grids: {
236
236
  name: string;
237
237
  cameras: {
238
- _id: string;
239
238
  name: string;
239
+ _id: string;
240
240
  }[];
241
241
  _id?: string | undefined;
242
242
  }[];
@@ -244,31 +244,31 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
244
244
  }>>;
245
245
  }, "strict", zod.ZodTypeAny, {
246
246
  _id: string;
247
- username: string;
248
247
  password: string;
249
- passwordConfirm: string;
250
- role: "admin" | "user";
251
- sessionTimer: number;
252
- rememberMe: boolean;
253
- oneLogin: boolean;
254
- firstLogin: boolean;
255
248
  preferences: {
256
249
  camview: {
257
250
  grids: {
258
- _id: string;
259
251
  name: string;
252
+ _id: string;
260
253
  cameras: {
261
- _id: string;
262
254
  name: string;
255
+ _id: string;
263
256
  }[];
264
257
  }[];
265
258
  };
266
259
  };
267
- }, {
268
260
  username: string;
261
+ passwordConfirm: string;
262
+ role: "user" | "admin";
263
+ sessionTimer: number;
264
+ rememberMe: boolean;
265
+ oneLogin: boolean;
266
+ firstLogin: boolean;
267
+ }, {
269
268
  password: string;
269
+ username: string;
270
270
  passwordConfirm: string;
271
- role: "admin" | "user";
271
+ role: "user" | "admin";
272
272
  _id?: string | undefined;
273
273
  sessionTimer?: number | undefined;
274
274
  rememberMe?: boolean | undefined;
@@ -279,8 +279,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
279
279
  grids: {
280
280
  name: string;
281
281
  cameras: {
282
- _id: string;
283
282
  name: string;
283
+ _id: string;
284
284
  }[];
285
285
  _id?: string | undefined;
286
286
  }[];
@@ -288,31 +288,31 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
288
288
  } | undefined;
289
289
  }>, {
290
290
  _id: string;
291
- username: string;
292
291
  password: string;
293
- passwordConfirm: string;
294
- role: "admin" | "user";
295
- sessionTimer: number;
296
- rememberMe: boolean;
297
- oneLogin: boolean;
298
- firstLogin: boolean;
299
292
  preferences: {
300
293
  camview: {
301
294
  grids: {
302
- _id: string;
303
295
  name: string;
296
+ _id: string;
304
297
  cameras: {
305
- _id: string;
306
298
  name: string;
299
+ _id: string;
307
300
  }[];
308
301
  }[];
309
302
  };
310
303
  };
311
- }, {
312
304
  username: string;
305
+ passwordConfirm: string;
306
+ role: "user" | "admin";
307
+ sessionTimer: number;
308
+ rememberMe: boolean;
309
+ oneLogin: boolean;
310
+ firstLogin: boolean;
311
+ }, {
313
312
  password: string;
313
+ username: string;
314
314
  passwordConfirm: string;
315
- role: "admin" | "user";
315
+ role: "user" | "admin";
316
316
  _id?: string | undefined;
317
317
  sessionTimer?: number | undefined;
318
318
  rememberMe?: boolean | undefined;
@@ -323,8 +323,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
323
323
  grids: {
324
324
  name: string;
325
325
  cameras: {
326
- _id: string;
327
326
  name: string;
327
+ _id: string;
328
328
  }[];
329
329
  _id?: string | undefined;
330
330
  }[];
@@ -336,12 +336,12 @@ export declare const loginUserSchema: zod.ZodObject<{
336
336
  password: zod.ZodString;
337
337
  rememberMe: zod.ZodDefault<zod.ZodBoolean>;
338
338
  }, "strict", zod.ZodTypeAny, {
339
- username: string;
340
339
  password: string;
340
+ username: string;
341
341
  rememberMe: boolean;
342
342
  }, {
343
- username: string;
344
343
  password: string;
344
+ username: string;
345
345
  rememberMe?: boolean | undefined;
346
346
  }>;
347
347
  export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
@@ -362,42 +362,42 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
362
362
  _id: zod.ZodString;
363
363
  name: zod.ZodString;
364
364
  }, "strip", zod.ZodTypeAny, {
365
- _id: string;
366
365
  name: string;
367
- }, {
368
366
  _id: string;
367
+ }, {
369
368
  name: string;
369
+ _id: string;
370
370
  }>, "many">;
371
371
  }, "strip", zod.ZodTypeAny, {
372
- _id: string;
373
372
  name: string;
373
+ _id: string;
374
374
  cameras: {
375
- _id: string;
376
375
  name: string;
376
+ _id: string;
377
377
  }[];
378
378
  }, {
379
379
  name: string;
380
380
  cameras: {
381
- _id: string;
382
381
  name: string;
382
+ _id: string;
383
383
  }[];
384
384
  _id?: string | undefined;
385
385
  }>, "many">;
386
386
  }, "strip", zod.ZodTypeAny, {
387
387
  grids: {
388
- _id: string;
389
388
  name: string;
389
+ _id: string;
390
390
  cameras: {
391
- _id: string;
392
391
  name: string;
392
+ _id: string;
393
393
  }[];
394
394
  }[];
395
395
  }, {
396
396
  grids: {
397
397
  name: string;
398
398
  cameras: {
399
- _id: string;
400
399
  name: string;
400
+ _id: string;
401
401
  }[];
402
402
  _id?: string | undefined;
403
403
  }[];
@@ -405,11 +405,11 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
405
405
  }, "strip", zod.ZodTypeAny, {
406
406
  camview?: {
407
407
  grids: {
408
- _id: string;
409
408
  name: string;
409
+ _id: string;
410
410
  cameras: {
411
- _id: string;
412
411
  name: string;
412
+ _id: string;
413
413
  }[];
414
414
  }[];
415
415
  } | undefined;
@@ -418,8 +418,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
418
418
  grids: {
419
419
  name: string;
420
420
  cameras: {
421
- _id: string;
422
421
  name: string;
422
+ _id: string;
423
423
  }[];
424
424
  _id?: string | undefined;
425
425
  }[];
@@ -428,7 +428,7 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
428
428
  }, "strict", zod.ZodTypeAny, {
429
429
  password?: string | undefined;
430
430
  passwordConfirm?: string | undefined;
431
- role?: "admin" | "user" | undefined;
431
+ role?: "user" | "admin" | undefined;
432
432
  sessionTimer?: number | undefined;
433
433
  upload?: MultipartFile | File | undefined;
434
434
  rememberMe?: boolean | undefined;
@@ -437,11 +437,11 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
437
437
  preferences?: {
438
438
  camview?: {
439
439
  grids: {
440
- _id: string;
441
440
  name: string;
441
+ _id: string;
442
442
  cameras: {
443
- _id: string;
444
443
  name: string;
444
+ _id: string;
445
445
  }[];
446
446
  }[];
447
447
  } | undefined;
@@ -449,7 +449,7 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
449
449
  }, {
450
450
  password?: string | undefined;
451
451
  passwordConfirm?: string | undefined;
452
- role?: "admin" | "user" | undefined;
452
+ role?: "user" | "admin" | undefined;
453
453
  sessionTimer?: number | undefined;
454
454
  upload?: MultipartFile | File | undefined;
455
455
  rememberMe?: boolean | undefined;
@@ -460,8 +460,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
460
460
  grids: {
461
461
  name: string;
462
462
  cameras: {
463
- _id: string;
464
463
  name: string;
464
+ _id: string;
465
465
  }[];
466
466
  _id?: string | undefined;
467
467
  }[];
@@ -470,7 +470,7 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
470
470
  }>, {
471
471
  password?: string | undefined;
472
472
  passwordConfirm?: string | undefined;
473
- role?: "admin" | "user" | undefined;
473
+ role?: "user" | "admin" | undefined;
474
474
  sessionTimer?: number | undefined;
475
475
  upload?: MultipartFile | File | undefined;
476
476
  rememberMe?: boolean | undefined;
@@ -479,11 +479,11 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
479
479
  preferences?: {
480
480
  camview?: {
481
481
  grids: {
482
- _id: string;
483
482
  name: string;
483
+ _id: string;
484
484
  cameras: {
485
- _id: string;
486
485
  name: string;
486
+ _id: string;
487
487
  }[];
488
488
  }[];
489
489
  } | undefined;
@@ -491,7 +491,7 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
491
491
  }, {
492
492
  password?: string | undefined;
493
493
  passwordConfirm?: string | undefined;
494
- role?: "admin" | "user" | undefined;
494
+ role?: "user" | "admin" | undefined;
495
495
  sessionTimer?: number | undefined;
496
496
  upload?: MultipartFile | File | undefined;
497
497
  rememberMe?: boolean | undefined;
@@ -502,8 +502,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
502
502
  grids: {
503
503
  name: string;
504
504
  cameras: {
505
- _id: string;
506
505
  name: string;
506
+ _id: string;
507
507
  }[];
508
508
  _id?: string | undefined;
509
509
  }[];
@@ -1,5 +1,5 @@
1
1
  import { type CameraExtension } from '../../plugins/types';
2
- import type { DBCamera, Camera, CameraZone } from '../database/types';
2
+ import type { Camera, CameraZone, DBCamera } from '../database/types';
3
3
  type DeepPartial<T> = T extends object ? {
4
4
  [P in keyof T]?: DeepPartial<T[P]>;
5
5
  } : T;
@@ -2,15 +2,15 @@
2
2
  /// <reference types="pouchdb-core" />
3
3
  /// <reference types="node" />
4
4
  import type { Readable } from 'stream';
5
- import type { CreateUserInput, LoginUserInput, PatchUserInput } from '../schemas/users.schema';
6
- import type { CreateCameraInput, PreviewCameraInput, PatchCameraInput } from '../schemas/cameras.schema';
7
- import type { PatchConfigInput } from '../schemas/config.schema';
8
- import type { RestoreBackupInput } from '../schemas/backup.schema';
9
- import type { PatchGo2RtcConfigInput } from '../schemas/go2rtc.schema';
5
+ import type { CameraExtension, PluginContract, PluginRootSchema } from '../../plugins/types';
10
6
  import type { LoggingLevel } from '../../services/config/types';
7
+ import type { CameraExtensions, CameraZone, DBCamera, DBCamviewLayout, DBRoles, DBUser } from '../database/types';
11
8
  import type { ApplicationResponse } from '../go2rtc/types';
12
- import type { DBRoles, DBCamera, DBUser, DBCamviewLayout, CameraExtensions, CameraZone } from '../database/types';
13
- import type { CameraExtension, PluginContract, PluginRootSchema } from '../../plugins/types';
9
+ import type { RestoreBackupInput } from '../schemas/backup.schema';
10
+ import type { CreateCameraInput, PatchCameraInput, PreviewCameraInput } from '../schemas/cameras.schema';
11
+ import type { PatchConfigInput } from '../schemas/config.schema';
12
+ import type { PatchGo2RtcConfigInput } from '../schemas/go2rtc.schema';
13
+ import type { CreateUserInput, LoginUserInput, PatchUserInput } from '../schemas/users.schema';
14
14
  export interface BusboyFileStream extends Readable {
15
15
  truncated: boolean;
16
16
  bytesRead: number;
@@ -439,6 +439,7 @@ export interface IPackageJson {
439
439
  [key: string]: any;
440
440
  };
441
441
  type?: 'module';
442
+ 'camera.ui'?: PluginContract;
442
443
  }
443
444
  export interface INpmRegistryModule {
444
445
  _id: string;
@@ -1,4 +1,4 @@
1
- import type { Server, Namespace, Socket } from 'socket.io';
1
+ import type { Namespace, Server, Socket } from 'socket.io';
2
2
  import type { SocketNsp } from '../types';
3
3
  export declare class Logs {
4
4
  nsp: Namespace;
@@ -1,4 +1,4 @@
1
- import type { Server, Namespace, Socket } from 'socket.io';
1
+ import type { Namespace, Server, Socket } from 'socket.io';
2
2
  import type { SocketNsp } from '../types';
3
3
  export declare class Main {
4
4
  nsp: Namespace;
@@ -1,5 +1,5 @@
1
- import type { Server, Namespace } from 'socket.io';
2
- import type { SocketNsp, CpuInfo, CpuTempInfo, MemoryInfo, NetworkInfo, ProcessesInfo, PluginProcessesInfo } from '../types';
1
+ import type { Namespace, Server } from 'socket.io';
2
+ import type { CpuInfo, CpuTempInfo, MemoryInfo, NetworkInfo, PluginProcessesInfo, ProcessesInfo, SocketNsp } from '../types';
3
3
  export declare class Metrics {
4
4
  nsp: Namespace;
5
5
  nspName: SocketNsp;
@@ -1,4 +1,4 @@
1
- import type { Server, Namespace, Socket } from 'socket.io';
1
+ import type { Namespace, Server, Socket } from 'socket.io';
2
2
  import type { SocketNsp } from '../types';
3
3
  export declare class Notifications {
4
4
  nsp: Namespace;
@@ -1,6 +1,6 @@
1
- import type { Server, Namespace } from 'socket.io';
2
- import type { SocketNsp } from '../types';
1
+ import type { Namespace, Server } from 'socket.io';
3
2
  import type { PLUGIN_STATUS } from '../../../plugins/types';
3
+ import type { SocketNsp } from '../types';
4
4
  export declare class Plugins {
5
5
  nsp: Namespace;
6
6
  nspName: SocketNsp;
@@ -1,6 +1,6 @@
1
- import { RUNTIME_STATUS } from '../../../services/config/types';
1
+ import type { Namespace, Server, Socket } from 'socket.io';
2
2
  import { PLUGIN_STATUS } from '../../../plugins/types';
3
- import type { Server, Namespace, Socket } from 'socket.io';
3
+ import { RUNTIME_STATUS } from '../../../services/config/types';
4
4
  import type { SocketNsp } from '../types';
5
5
  export declare class Status {
6
6
  nsp: Namespace;
@@ -1,4 +1,4 @@
1
- import type { Server, Namespace } from 'socket.io';
1
+ import type { Namespace, Server } from 'socket.io';
2
2
  import type { SocketNsp } from '../types';
3
3
  export declare class Streams {
4
4
  nsp: Namespace;
@@ -1,14 +1,12 @@
1
1
  /// <reference types="node" />
2
2
  import EventEmitter from 'events';
3
3
  import { CameraController } from './camera';
4
- import type { PluginLogger } from './services/logger';
5
- import type { API } from './plugins/api';
6
- import type { BasePlugin } from './plugins/base';
7
4
  import type { Camera } from './api/database/types';
8
- import type { PluginContract } from './plugins/types';
5
+ import type { API } from './plugins/node/api';
6
+ import type { PluginLogger } from './plugins/node/logger';
7
+ import type { BasePlugin } from './plugins/types';
9
8
  export interface PluginConstructor {
10
- contract: PluginContract;
11
- new (pluginId: string, log: PluginLogger, api: API): BasePlugin;
9
+ new (logger: PluginLogger, api: API): BasePlugin;
12
10
  }
13
11
  export declare const enum API_EVENT {
14
12
  FINISH_LAUNCHING = "finishLaunching",
@@ -1,11 +1,10 @@
1
1
  import { Observable } from 'rxjs';
2
- import { StreamingSession } from './streaming/streaming-session';
3
2
  import { BrowserStreamingSession } from './streaming/browser/browser-streaming-session';
4
- import type { Camera, CameraPublicProperties, CameraZone, CameraType, CameraInformation } from '../api/database/types';
3
+ import { StreamingSession } from './streaming/streaming-session';
4
+ import type { Camera, CameraInformation, CameraPublicProperties, CameraType, CameraZone } from '../api/database/types';
5
5
  import type { ProxyServer } from '../proxy';
6
- import type { CameraDevice, BaseLogger, CameraDelegate, CameraPrebufferDelegate } from './types';
7
6
  import type { IceServer } from '../services/config/types';
8
- import type { StateValues, OnSetEvent, LightState, MotionState, AudioState, ObjectState, DoorbellState, SirenState, BatteryState, StreamingConnectionOptions, FfmpegOptions, CameraSource } from './types';
7
+ import type { AudioState, BaseLogger, BatteryState, CameraDelegate, CameraDevice, CameraPrebufferDelegate, CameraSource, DoorbellState, FfmpegOptions, LightState, MotionState, ObjectState, OnSetEvent, SirenState, StateValues, StreamingConnectionOptions } from './types';
9
8
  export declare class CameraController implements CameraDevice {
10
9
  private log;
11
10
  private proxy?;
@@ -1,7 +1,7 @@
1
1
  import { ReplaySubject, Subject } from 'rxjs';
2
2
  import { Subscribed } from '../../utils/subscribed';
3
- import type { BasicBrowserPeerConnection, BaseLogger, CameraDevice } from '../../types';
4
3
  import type { IceServer } from '../../../services/config/types';
4
+ import type { BaseLogger, BasicBrowserPeerConnection, CameraDevice } from '../../types';
5
5
  export declare class BrowserPeerConnection extends Subscribed implements BasicBrowserPeerConnection {
6
6
  onIceCandidate: Subject<RTCIceCandidate>;
7
7
  onConnectionState: ReplaySubject<RTCPeerConnectionState>;
@@ -1,4 +1,4 @@
1
- import { ReplaySubject, Observable } from 'rxjs';
1
+ import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { Subscribed } from '../../utils/subscribed';
3
3
  import type { BaseLogger, CameraDevice } from '../../types';
4
4
  import type { WebrtcBrowserConnection } from './webrtc-browser-connection';
@@ -1,8 +1,8 @@
1
1
  import { ReplaySubject, type Observable } from 'rxjs';
2
2
  import { Subscribed } from '../../utils/subscribed';
3
3
  import { BrowserPeerConnection } from './browser-peer-connection';
4
- import type { CameraDevice, BaseLogger } from '../../types';
5
4
  import type { IceServer } from '../../../services/config/types';
5
+ import type { BaseLogger, CameraDevice } from '../../types';
6
6
  export declare class WebrtcBrowserConnection extends Subscribed {
7
7
  readonly onCallAnswered: ReplaySubject<string>;
8
8
  readonly onCallEnded: ReplaySubject<void>;