@camera.ui/browser 0.0.87 → 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 (27) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +0 -1
  3. package/dist/types/server/src/api/database/index.d.ts +1 -2
  4. package/dist/types/server/src/api/database/types.d.ts +7 -2
  5. package/dist/types/server/src/api/go2rtc/api/streams.d.ts +2 -1
  6. package/dist/types/server/src/api/go2rtc/types.d.ts +44 -0
  7. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +102 -102
  8. package/dist/types/server/src/api/schemas/config.schema.d.ts +24 -104
  9. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +81 -81
  10. package/dist/types/server/src/api/schemas/users.schema.d.ts +158 -158
  11. package/dist/types/server/src/api/services/cameras.service.d.ts +1 -5
  12. package/dist/types/server/src/api/types/index.d.ts +5 -0
  13. package/dist/types/server/src/camera/iou.d.ts +2 -0
  14. package/dist/types/server/src/camera/streaming/peer-connection.d.ts +4 -2
  15. package/dist/types/server/src/camera/streaming/webrtc-connection.d.ts +2 -0
  16. package/dist/types/server/src/camera/streaming/werift-session.d.ts +1 -1
  17. package/dist/types/server/src/camera/types.d.ts +2 -1
  18. package/dist/types/server/src/plugins/worker.d.ts +1 -0
  19. package/dist/types/server/src/polyglot/node/plugins/cameraStorage.d.ts +3 -3
  20. package/dist/types/server/src/polyglot/node/plugins/configService.d.ts +1 -1
  21. package/dist/types/server/src/polyglot/node/plugins/pluginApi.d.ts +3 -2
  22. package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +4 -4
  23. package/dist/types/server/src/polyglot/node/plugins/storageController.d.ts +3 -1
  24. package/dist/types/server/src/services/config/index.d.ts +6 -5
  25. package/dist/types/server/src/services/config/types.d.ts +8 -9
  26. package/dist/types/server/src/types.d.ts +3 -0
  27. 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,25 +24,24 @@ export declare const iConfigSSLSchema: zod.ZodObject<{
101
24
  addresses?: string[] | undefined;
102
25
  }>;
103
26
  export declare const pluginsSchema: zod.ZodObject<{
104
- sudo: zod.ZodOptional<zod.ZodBoolean>;
105
- disabledPlugins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
27
+ disabledPlugins: zod.ZodArray<zod.ZodString, "many">;
106
28
  }, "strict", zod.ZodTypeAny, {
107
- sudo?: boolean | undefined;
108
- disabledPlugins?: string[] | undefined;
29
+ disabledPlugins: string[];
109
30
  }, {
110
- sudo?: boolean | undefined;
111
- disabledPlugins?: string[] | undefined;
31
+ disabledPlugins: string[];
112
32
  }>;
113
33
  export declare const interfaceSettingsSchema: zod.ZodObject<{
114
34
  snapshotCache: zod.ZodDefault<zod.ZodNumber>;
115
- }, "strip", zod.ZodTypeAny, {
35
+ saveSessions: zod.ZodDefault<zod.ZodBoolean>;
36
+ }, "strict", zod.ZodTypeAny, {
116
37
  snapshotCache: number;
38
+ saveSessions: boolean;
117
39
  }, {
118
40
  snapshotCache?: number | undefined;
41
+ saveSessions?: boolean | undefined;
119
42
  }>;
120
43
  export declare const patchConfigSchema: zod.ZodObject<{
121
44
  port: zod.ZodDefault<zod.ZodNumber>;
122
- tempFile: zod.ZodOptional<zod.ZodString>;
123
45
  ssl: zod.ZodObject<{
124
46
  certFile: zod.ZodString;
125
47
  keyFile: zod.ZodString;
@@ -133,7 +55,7 @@ export declare const patchConfigSchema: zod.ZodObject<{
133
55
  keyFile: string;
134
56
  addresses?: string[] | undefined;
135
57
  }>;
136
- logger: zod.ZodObject<{
58
+ logger: zod.ZodDefault<zod.ZodObject<{
137
59
  level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"trace">]>>>;
138
60
  disableTimestamps: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
139
61
  }, "strict", zod.ZodTypeAny, {
@@ -142,28 +64,27 @@ export declare const patchConfigSchema: zod.ZodObject<{
142
64
  }, {
143
65
  level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
144
66
  disableTimestamps?: boolean | undefined;
145
- }>;
67
+ }>>;
146
68
  plugins: zod.ZodDefault<zod.ZodObject<{
147
- sudo: zod.ZodOptional<zod.ZodBoolean>;
148
- disabledPlugins: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
69
+ disabledPlugins: zod.ZodArray<zod.ZodString, "many">;
149
70
  }, "strict", zod.ZodTypeAny, {
150
- sudo?: boolean | undefined;
151
- disabledPlugins?: string[] | undefined;
71
+ disabledPlugins: string[];
152
72
  }, {
153
- sudo?: boolean | undefined;
154
- disabledPlugins?: string[] | undefined;
73
+ disabledPlugins: string[];
155
74
  }>>;
156
75
  settings: zod.ZodDefault<zod.ZodObject<{
157
76
  snapshotCache: zod.ZodDefault<zod.ZodNumber>;
158
- }, "strip", zod.ZodTypeAny, {
77
+ saveSessions: zod.ZodDefault<zod.ZodBoolean>;
78
+ }, "strict", zod.ZodTypeAny, {
159
79
  snapshotCache: number;
80
+ saveSessions: boolean;
160
81
  }, {
161
82
  snapshotCache?: number | undefined;
83
+ saveSessions?: boolean | undefined;
162
84
  }>>;
163
85
  }, "strict", zod.ZodTypeAny, {
164
86
  plugins: {
165
- sudo?: boolean | undefined;
166
- disabledPlugins?: string[] | undefined;
87
+ disabledPlugins: string[];
167
88
  };
168
89
  port: number;
169
90
  ssl: {
@@ -177,26 +98,25 @@ export declare const patchConfigSchema: zod.ZodObject<{
177
98
  };
178
99
  settings: {
179
100
  snapshotCache: number;
101
+ saveSessions: boolean;
180
102
  };
181
- tempFile?: string | undefined;
182
103
  }, {
183
104
  ssl: {
184
105
  certFile: string;
185
106
  keyFile: string;
186
107
  addresses?: string[] | undefined;
187
108
  };
188
- logger: {
189
- level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
190
- disableTimestamps?: boolean | undefined;
191
- };
192
109
  plugins?: {
193
- sudo?: boolean | undefined;
194
- disabledPlugins?: string[] | undefined;
110
+ disabledPlugins: string[];
195
111
  } | undefined;
196
112
  port?: number | undefined;
197
- tempFile?: string | undefined;
113
+ logger?: {
114
+ level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
115
+ disableTimestamps?: boolean | undefined;
116
+ } | undefined;
198
117
  settings?: {
199
118
  snapshotCache?: number | undefined;
119
+ saveSessions?: boolean | undefined;
200
120
  } | undefined;
201
121
  }>;
202
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;