@camera.ui/browser 0.0.88 → 0.0.89

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 (26) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/types/server/src/api/database/index.d.ts +1 -2
  3. package/dist/types/server/src/api/database/types.d.ts +7 -2
  4. package/dist/types/server/src/api/go2rtc/api/streams.d.ts +2 -1
  5. package/dist/types/server/src/api/go2rtc/types.d.ts +44 -0
  6. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +102 -102
  7. package/dist/types/server/src/api/schemas/config.schema.d.ts +24 -96
  8. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +81 -81
  9. package/dist/types/server/src/api/schemas/users.schema.d.ts +158 -158
  10. package/dist/types/server/src/api/services/cameras.service.d.ts +1 -5
  11. package/dist/types/server/src/api/types/index.d.ts +5 -0
  12. package/dist/types/server/src/camera/iou.d.ts +2 -0
  13. package/dist/types/server/src/camera/streaming/peer-connection.d.ts +4 -2
  14. package/dist/types/server/src/camera/streaming/webrtc-connection.d.ts +2 -0
  15. package/dist/types/server/src/camera/streaming/werift-session.d.ts +1 -1
  16. package/dist/types/server/src/camera/types.d.ts +2 -1
  17. package/dist/types/server/src/plugins/worker.d.ts +1 -0
  18. package/dist/types/server/src/polyglot/node/plugins/cameraStorage.d.ts +3 -3
  19. package/dist/types/server/src/polyglot/node/plugins/configService.d.ts +1 -1
  20. package/dist/types/server/src/polyglot/node/plugins/pluginApi.d.ts +3 -2
  21. package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +4 -4
  22. package/dist/types/server/src/polyglot/node/plugins/storageController.d.ts +3 -1
  23. package/dist/types/server/src/services/config/index.d.ts +6 -3
  24. package/dist/types/server/src/services/config/types.d.ts +8 -8
  25. package/dist/types/server/src/types.d.ts +3 -0
  26. package/package.json +3 -3
@@ -10,83 +10,6 @@ export declare const loggerSchema: zod.ZodObject<{
10
10
  level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
11
11
  disableTimestamps?: boolean | undefined;
12
12
  }>;
13
- export declare const mqttTLSSchema: zod.ZodEffects<zod.ZodObject<{
14
- enabled: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
15
- cert: zod.ZodOptional<zod.ZodString>;
16
- key: zod.ZodOptional<zod.ZodString>;
17
- }, "strict", zod.ZodTypeAny, {
18
- enabled: boolean;
19
- key?: string | undefined;
20
- cert?: string | undefined;
21
- }, {
22
- key?: string | undefined;
23
- enabled?: boolean | undefined;
24
- cert?: string | undefined;
25
- }>, {
26
- enabled: boolean;
27
- key?: string | undefined;
28
- cert?: string | undefined;
29
- }, {
30
- key?: string | undefined;
31
- enabled?: boolean | undefined;
32
- cert?: string | undefined;
33
- }>;
34
- export declare const mqttSchema: zod.ZodObject<{
35
- enabled: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
36
- host: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
37
- port: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
38
- topicPrefix: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
39
- clientId: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
40
- user: zod.ZodOptional<zod.ZodString>;
41
- password: zod.ZodOptional<zod.ZodString>;
42
- tls: zod.ZodDefault<zod.ZodOptional<zod.ZodEffects<zod.ZodObject<{
43
- enabled: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
44
- cert: zod.ZodOptional<zod.ZodString>;
45
- key: zod.ZodOptional<zod.ZodString>;
46
- }, "strict", zod.ZodTypeAny, {
47
- enabled: boolean;
48
- key?: string | undefined;
49
- cert?: string | undefined;
50
- }, {
51
- key?: string | undefined;
52
- enabled?: boolean | undefined;
53
- cert?: string | undefined;
54
- }>, {
55
- enabled: boolean;
56
- key?: string | undefined;
57
- cert?: string | undefined;
58
- }, {
59
- key?: string | undefined;
60
- enabled?: boolean | undefined;
61
- cert?: string | undefined;
62
- }>>>;
63
- }, "strict", zod.ZodTypeAny, {
64
- enabled: boolean;
65
- host: string;
66
- port: number;
67
- topicPrefix: string;
68
- clientId: string;
69
- tls: {
70
- enabled: boolean;
71
- key?: string | undefined;
72
- cert?: string | undefined;
73
- };
74
- password?: string | undefined;
75
- user?: string | undefined;
76
- }, {
77
- enabled?: boolean | undefined;
78
- password?: string | undefined;
79
- host?: string | undefined;
80
- port?: number | undefined;
81
- topicPrefix?: string | undefined;
82
- clientId?: string | undefined;
83
- user?: string | undefined;
84
- tls?: {
85
- key?: string | undefined;
86
- enabled?: boolean | undefined;
87
- cert?: string | undefined;
88
- } | undefined;
89
- }>;
90
13
  export declare const iConfigSSLSchema: zod.ZodObject<{
91
14
  certFile: zod.ZodString;
92
15
  keyFile: zod.ZodString;
@@ -101,22 +24,24 @@ export declare const iConfigSSLSchema: zod.ZodObject<{
101
24
  addresses?: string[] | undefined;
102
25
  }>;
103
26
  export declare const pluginsSchema: zod.ZodObject<{
104
- disabledPlugins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
27
+ disabledPlugins: zod.ZodArray<zod.ZodString, "many">;
105
28
  }, "strict", zod.ZodTypeAny, {
106
- disabledPlugins?: string[] | undefined;
29
+ disabledPlugins: string[];
107
30
  }, {
108
- disabledPlugins?: string[] | undefined;
31
+ disabledPlugins: string[];
109
32
  }>;
110
33
  export declare const interfaceSettingsSchema: zod.ZodObject<{
111
34
  snapshotCache: zod.ZodDefault<zod.ZodNumber>;
112
- }, "strip", zod.ZodTypeAny, {
35
+ saveSessions: zod.ZodDefault<zod.ZodBoolean>;
36
+ }, "strict", zod.ZodTypeAny, {
113
37
  snapshotCache: number;
38
+ saveSessions: boolean;
114
39
  }, {
115
40
  snapshotCache?: number | undefined;
41
+ saveSessions?: boolean | undefined;
116
42
  }>;
117
43
  export declare const patchConfigSchema: zod.ZodObject<{
118
44
  port: zod.ZodDefault<zod.ZodNumber>;
119
- tempFile: zod.ZodOptional<zod.ZodString>;
120
45
  ssl: zod.ZodObject<{
121
46
  certFile: zod.ZodString;
122
47
  keyFile: zod.ZodString;
@@ -130,7 +55,7 @@ export declare const patchConfigSchema: zod.ZodObject<{
130
55
  keyFile: string;
131
56
  addresses?: string[] | undefined;
132
57
  }>;
133
- logger: zod.ZodObject<{
58
+ logger: zod.ZodDefault<zod.ZodObject<{
134
59
  level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"trace">]>>>;
135
60
  disableTimestamps: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
136
61
  }, "strict", zod.ZodTypeAny, {
@@ -139,24 +64,27 @@ export declare const patchConfigSchema: zod.ZodObject<{
139
64
  }, {
140
65
  level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
141
66
  disableTimestamps?: boolean | undefined;
142
- }>;
67
+ }>>;
143
68
  plugins: zod.ZodDefault<zod.ZodObject<{
144
- disabledPlugins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
69
+ disabledPlugins: zod.ZodArray<zod.ZodString, "many">;
145
70
  }, "strict", zod.ZodTypeAny, {
146
- disabledPlugins?: string[] | undefined;
71
+ disabledPlugins: string[];
147
72
  }, {
148
- disabledPlugins?: string[] | undefined;
73
+ disabledPlugins: string[];
149
74
  }>>;
150
75
  settings: zod.ZodDefault<zod.ZodObject<{
151
76
  snapshotCache: zod.ZodDefault<zod.ZodNumber>;
152
- }, "strip", zod.ZodTypeAny, {
77
+ saveSessions: zod.ZodDefault<zod.ZodBoolean>;
78
+ }, "strict", zod.ZodTypeAny, {
153
79
  snapshotCache: number;
80
+ saveSessions: boolean;
154
81
  }, {
155
82
  snapshotCache?: number | undefined;
83
+ saveSessions?: boolean | undefined;
156
84
  }>>;
157
85
  }, "strict", zod.ZodTypeAny, {
158
86
  plugins: {
159
- disabledPlugins?: string[] | undefined;
87
+ disabledPlugins: string[];
160
88
  };
161
89
  port: number;
162
90
  ssl: {
@@ -170,25 +98,25 @@ export declare const patchConfigSchema: zod.ZodObject<{
170
98
  };
171
99
  settings: {
172
100
  snapshotCache: number;
101
+ saveSessions: boolean;
173
102
  };
174
- tempFile?: string | undefined;
175
103
  }, {
176
104
  ssl: {
177
105
  certFile: string;
178
106
  keyFile: string;
179
107
  addresses?: string[] | undefined;
180
108
  };
181
- logger: {
182
- level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
183
- disableTimestamps?: boolean | undefined;
184
- };
185
109
  plugins?: {
186
- disabledPlugins?: string[] | undefined;
110
+ disabledPlugins: string[];
187
111
  } | undefined;
188
112
  port?: number | undefined;
189
- tempFile?: string | undefined;
113
+ logger?: {
114
+ level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
115
+ disableTimestamps?: boolean | undefined;
116
+ } | undefined;
190
117
  settings?: {
191
118
  snapshotCache?: number | undefined;
119
+ saveSessions?: boolean | undefined;
192
120
  } | undefined;
193
121
  }>;
194
122
  export type PatchConfigInput = zod.TypeOf<typeof patchConfigSchema>;
@@ -133,17 +133,17 @@ export declare const ngrokSchema: zod.ZodObject<{
133
133
  command: string;
134
134
  }>;
135
135
  export declare const filterSchema: zod.ZodObject<{
136
- candidates: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
137
- networks: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
138
- interfaces: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
139
- ips: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
140
- udp_ports: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
136
+ candidates: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
137
+ networks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
138
+ interfaces: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
139
+ ips: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
140
+ udp_ports: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
141
141
  }, "strict", zod.ZodTypeAny, {
142
- candidates: string[];
143
- networks: string[];
144
- interfaces: string[];
145
- ips: string[];
146
- udp_ports: string[];
142
+ candidates?: string[] | undefined;
143
+ networks?: string[] | undefined;
144
+ interfaces?: string[] | undefined;
145
+ ips?: string[] | undefined;
146
+ udp_ports?: string[] | undefined;
147
147
  }, {
148
148
  candidates?: string[] | undefined;
149
149
  networks?: string[] | undefined;
@@ -152,7 +152,7 @@ export declare const filterSchema: zod.ZodObject<{
152
152
  udp_ports?: string[] | undefined;
153
153
  }>;
154
154
  export declare const iceServerSchema: zod.ZodObject<{
155
- urls: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
155
+ urls: zod.ZodArray<zod.ZodString, "many">;
156
156
  username: zod.ZodOptional<zod.ZodString>;
157
157
  credential: zod.ZodOptional<zod.ZodString>;
158
158
  }, "strict", zod.ZodTypeAny, {
@@ -160,15 +160,15 @@ export declare const iceServerSchema: zod.ZodObject<{
160
160
  username?: string | undefined;
161
161
  credential?: string | undefined;
162
162
  }, {
163
- urls?: string[] | undefined;
163
+ urls: string[];
164
164
  username?: string | undefined;
165
165
  credential?: string | undefined;
166
166
  }>;
167
167
  export declare const webrtcSchema: zod.ZodObject<{
168
168
  listen: zod.ZodDefault<zod.ZodString>;
169
- candidates: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
170
- ice_servers: zod.ZodArray<zod.ZodObject<{
171
- urls: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
169
+ candidates: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
170
+ ice_servers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
171
+ urls: zod.ZodArray<zod.ZodString, "many">;
172
172
  username: zod.ZodOptional<zod.ZodString>;
173
173
  credential: zod.ZodOptional<zod.ZodString>;
174
174
  }, "strict", zod.ZodTypeAny, {
@@ -176,22 +176,22 @@ export declare const webrtcSchema: zod.ZodObject<{
176
176
  username?: string | undefined;
177
177
  credential?: string | undefined;
178
178
  }, {
179
- urls?: string[] | undefined;
179
+ urls: string[];
180
180
  username?: string | undefined;
181
181
  credential?: string | undefined;
182
- }>, "many">;
182
+ }>, "many">>;
183
183
  filters: zod.ZodOptional<zod.ZodObject<{
184
- candidates: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
185
- networks: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
186
- interfaces: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
187
- ips: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
188
- udp_ports: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
184
+ candidates: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
185
+ networks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
186
+ interfaces: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
187
+ ips: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
188
+ udp_ports: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
189
189
  }, "strict", zod.ZodTypeAny, {
190
- candidates: string[];
191
- networks: string[];
192
- interfaces: string[];
193
- ips: string[];
194
- udp_ports: string[];
190
+ candidates?: string[] | undefined;
191
+ networks?: string[] | undefined;
192
+ interfaces?: string[] | undefined;
193
+ ips?: string[] | undefined;
194
+ udp_ports?: string[] | undefined;
195
195
  }, {
196
196
  candidates?: string[] | undefined;
197
197
  networks?: string[] | undefined;
@@ -201,27 +201,27 @@ export declare const webrtcSchema: zod.ZodObject<{
201
201
  }>>;
202
202
  }, "strict", zod.ZodTypeAny, {
203
203
  listen: string;
204
- candidates: string[];
205
- ice_servers: {
204
+ candidates?: string[] | undefined;
205
+ ice_servers?: {
206
206
  urls: string[];
207
207
  username?: string | undefined;
208
208
  credential?: string | undefined;
209
- }[];
209
+ }[] | undefined;
210
210
  filters?: {
211
- candidates: string[];
212
- networks: string[];
213
- interfaces: string[];
214
- ips: string[];
215
- udp_ports: string[];
211
+ candidates?: string[] | undefined;
212
+ networks?: string[] | undefined;
213
+ interfaces?: string[] | undefined;
214
+ ips?: string[] | undefined;
215
+ udp_ports?: string[] | undefined;
216
216
  } | undefined;
217
217
  }, {
218
- ice_servers: {
219
- urls?: string[] | undefined;
220
- username?: string | undefined;
221
- credential?: string | undefined;
222
- }[];
223
218
  listen?: string | undefined;
224
219
  candidates?: string[] | undefined;
220
+ ice_servers?: {
221
+ urls: string[];
222
+ username?: string | undefined;
223
+ credential?: string | undefined;
224
+ }[] | undefined;
225
225
  filters?: {
226
226
  candidates?: string[] | undefined;
227
227
  networks?: string[] | undefined;
@@ -402,9 +402,9 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
402
402
  }>>;
403
403
  webrtc: zod.ZodDefault<zod.ZodObject<{
404
404
  listen: zod.ZodDefault<zod.ZodString>;
405
- candidates: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
406
- ice_servers: zod.ZodArray<zod.ZodObject<{
407
- urls: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
405
+ candidates: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
406
+ ice_servers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
407
+ urls: zod.ZodArray<zod.ZodString, "many">;
408
408
  username: zod.ZodOptional<zod.ZodString>;
409
409
  credential: zod.ZodOptional<zod.ZodString>;
410
410
  }, "strict", zod.ZodTypeAny, {
@@ -412,22 +412,22 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
412
412
  username?: string | undefined;
413
413
  credential?: string | undefined;
414
414
  }, {
415
- urls?: string[] | undefined;
415
+ urls: string[];
416
416
  username?: string | undefined;
417
417
  credential?: string | undefined;
418
- }>, "many">;
418
+ }>, "many">>;
419
419
  filters: zod.ZodOptional<zod.ZodObject<{
420
- candidates: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
421
- networks: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
422
- interfaces: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
423
- ips: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
424
- udp_ports: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
420
+ candidates: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
421
+ networks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
422
+ interfaces: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
423
+ ips: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
424
+ udp_ports: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
425
425
  }, "strict", zod.ZodTypeAny, {
426
- candidates: string[];
427
- networks: string[];
428
- interfaces: string[];
429
- ips: string[];
430
- udp_ports: string[];
426
+ candidates?: string[] | undefined;
427
+ networks?: string[] | undefined;
428
+ interfaces?: string[] | undefined;
429
+ ips?: string[] | undefined;
430
+ udp_ports?: string[] | undefined;
431
431
  }, {
432
432
  candidates?: string[] | undefined;
433
433
  networks?: string[] | undefined;
@@ -437,27 +437,27 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
437
437
  }>>;
438
438
  }, "strict", zod.ZodTypeAny, {
439
439
  listen: string;
440
- candidates: string[];
441
- ice_servers: {
440
+ candidates?: string[] | undefined;
441
+ ice_servers?: {
442
442
  urls: string[];
443
443
  username?: string | undefined;
444
444
  credential?: string | undefined;
445
- }[];
445
+ }[] | undefined;
446
446
  filters?: {
447
- candidates: string[];
448
- networks: string[];
449
- interfaces: string[];
450
- ips: string[];
451
- udp_ports: string[];
447
+ candidates?: string[] | undefined;
448
+ networks?: string[] | undefined;
449
+ interfaces?: string[] | undefined;
450
+ ips?: string[] | undefined;
451
+ udp_ports?: string[] | undefined;
452
452
  } | undefined;
453
453
  }, {
454
- ice_servers: {
455
- urls?: string[] | undefined;
456
- username?: string | undefined;
457
- credential?: string | undefined;
458
- }[];
459
454
  listen?: string | undefined;
460
455
  candidates?: string[] | undefined;
456
+ ice_servers?: {
457
+ urls: string[];
458
+ username?: string | undefined;
459
+ credential?: string | undefined;
460
+ }[] | undefined;
461
461
  filters?: {
462
462
  candidates?: string[] | undefined;
463
463
  networks?: string[] | undefined;
@@ -550,18 +550,18 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
550
550
  };
551
551
  webrtc: {
552
552
  listen: string;
553
- candidates: string[];
554
- ice_servers: {
553
+ candidates?: string[] | undefined;
554
+ ice_servers?: {
555
555
  urls: string[];
556
556
  username?: string | undefined;
557
557
  credential?: string | undefined;
558
- }[];
558
+ }[] | undefined;
559
559
  filters?: {
560
- candidates: string[];
561
- networks: string[];
562
- interfaces: string[];
563
- ips: string[];
564
- udp_ports: string[];
560
+ candidates?: string[] | undefined;
561
+ networks?: string[] | undefined;
562
+ interfaces?: string[] | undefined;
563
+ ips?: string[] | undefined;
564
+ udp_ports?: string[] | undefined;
565
565
  } | undefined;
566
566
  };
567
567
  api: {
@@ -628,13 +628,13 @@ export declare const patchGo2RtcSchema: zod.ZodObject<{
628
628
  default_query?: string | undefined;
629
629
  } | undefined;
630
630
  webrtc?: {
631
- ice_servers: {
632
- urls?: string[] | undefined;
633
- username?: string | undefined;
634
- credential?: string | undefined;
635
- }[];
636
631
  listen?: string | undefined;
637
632
  candidates?: string[] | undefined;
633
+ ice_servers?: {
634
+ urls: string[];
635
+ username?: string | undefined;
636
+ credential?: string | undefined;
637
+ }[] | undefined;
638
638
  filters?: {
639
639
  candidates?: string[] | undefined;
640
640
  networks?: string[] | undefined;