@camera.ui/browser 0.0.111 → 0.0.112

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 (51) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +10 -1
  3. package/dist/index.d.ts +1269 -0
  4. package/dist/index.js +4179 -0
  5. package/package.json +55 -39
  6. package/CHANGELOG.md +0 -8
  7. package/dist/bundle.js +0 -2
  8. package/dist/bundle.js.LICENSE.txt +0 -14
  9. package/dist/types/packages/client/browser/src/api.d.ts +0 -8
  10. package/dist/types/packages/client/browser/src/client.d.ts +0 -21
  11. package/dist/types/packages/client/browser/src/index.d.ts +0 -2
  12. package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +0 -26
  13. package/dist/types/packages/client/browser/src/proxy/coreManager.d.ts +0 -14
  14. package/dist/types/packages/client/browser/src/proxy/deviceManager.d.ts +0 -16
  15. package/dist/types/packages/client/browser/src/proxy/index.d.ts +0 -3
  16. package/dist/types/packages/client/browser/src/proxy.d.ts +0 -7
  17. package/dist/types/packages/client/browser/src/streaming/config.d.ts +0 -21
  18. package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +0 -286
  19. package/dist/types/packages/client/browser/src/streaming/types.d.ts +0 -38
  20. package/dist/types/packages/client/browser/src/types.d.ts +0 -56
  21. package/dist/types/packages/client/browser/src/utils.d.ts +0 -12
  22. package/dist/types/packages/common/src/utils/subscribed.d.ts +0 -18
  23. package/dist/types/packages/types/src/index.d.ts +0 -812
  24. package/dist/types/server/src/api/database/types.d.ts +0 -80
  25. package/dist/types/server/src/api/go2rtc/types.d.ts +0 -147
  26. package/dist/types/server/src/api/schemas/backup.schema.d.ts +0 -211
  27. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +0 -1864
  28. package/dist/types/server/src/api/schemas/config.schema.d.ts +0 -102
  29. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +0 -735
  30. package/dist/types/server/src/api/schemas/plugins.schema.d.ts +0 -72
  31. package/dist/types/server/src/api/schemas/storage.schema.d.ts +0 -22
  32. package/dist/types/server/src/api/schemas/system.schema.d.ts +0 -185
  33. package/dist/types/server/src/api/schemas/users.schema.d.ts +0 -857
  34. package/dist/types/server/src/api/types/index.d.ts +0 -612
  35. package/dist/types/server/src/api/websocket/types.d.ts +0 -43
  36. package/dist/types/server/src/camera/classes.d.ts +0 -2
  37. package/dist/types/server/src/camera/index.d.ts +0 -92
  38. package/dist/types/server/src/camera/interfaces.d.ts +0 -17
  39. package/dist/types/server/src/camera/iou.d.ts +0 -2
  40. package/dist/types/server/src/camera/polygon.d.ts +0 -4
  41. package/dist/types/server/src/camera/types.d.ts +0 -17
  42. package/dist/types/server/src/go2rtc/types.d.ts +0 -15
  43. package/dist/types/server/src/manager/types.d.ts +0 -15
  44. package/dist/types/server/src/plugins/schema.d.ts +0 -27
  45. package/dist/types/server/src/plugins/types.d.ts +0 -49
  46. package/dist/types/server/src/rpc/namespaces.d.ts +0 -35
  47. package/dist/types/server/src/rpc/types.d.ts +0 -111
  48. package/dist/types/server/src/services/config/defaults.d.ts +0 -12
  49. package/dist/types/server/src/services/config/types.d.ts +0 -162
  50. package/dist/types/server/src/types.d.ts +0 -34
  51. package/dist/types/shared/types/index.d.ts +0 -22
@@ -1,857 +0,0 @@
1
- import * as zod from 'zod';
2
- import type { MultipartFile } from '@fastify/multipart';
3
- export declare const ACCEPTED_IMAGE_TYPES: string[];
4
- export declare const MAX_IMAGE_FILE_SIZE: number;
5
- export declare const userPreferencesCamviewViewsLayoutCameras: zod.ZodObject<{
6
- index: zod.ZodNumber;
7
- cameraId: zod.ZodString;
8
- }, "strip", zod.ZodTypeAny, {
9
- index: number;
10
- cameraId: string;
11
- }, {
12
- index: number;
13
- cameraId: string;
14
- }>;
15
- export declare const camviewViewSizeSchema: zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<4>, zod.ZodLiteral<6>, zod.ZodLiteral<7>, zod.ZodLiteral<9>, zod.ZodLiteral<10>, zod.ZodLiteral<12>, zod.ZodLiteral<13>, zod.ZodLiteral<15>, zod.ZodLiteral<16>, zod.ZodLiteral<20>, zod.ZodLiteral<26>]>;
16
- export declare const camviewViewTypeSchema: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
17
- export declare const userPreferencesCamviewViewsLayout: zod.ZodObject<{
18
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
19
- name: zod.ZodString;
20
- viewSize: zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<4>, zod.ZodLiteral<6>, zod.ZodLiteral<7>, zod.ZodLiteral<9>, zod.ZodLiteral<10>, zod.ZodLiteral<12>, zod.ZodLiteral<13>, zod.ZodLiteral<15>, zod.ZodLiteral<16>, zod.ZodLiteral<20>, zod.ZodLiteral<26>]>;
21
- cameras: zod.ZodArray<zod.ZodObject<{
22
- index: zod.ZodNumber;
23
- cameraId: zod.ZodString;
24
- }, "strip", zod.ZodTypeAny, {
25
- index: number;
26
- cameraId: string;
27
- }, {
28
- index: number;
29
- cameraId: string;
30
- }>, "many">;
31
- type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
32
- }, "strip", zod.ZodTypeAny, {
33
- name: string;
34
- type: "dnd" | "view";
35
- _id: string;
36
- cameras: {
37
- index: number;
38
- cameraId: string;
39
- }[];
40
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
41
- }, {
42
- name: string;
43
- type: "dnd" | "view";
44
- cameras: {
45
- index: number;
46
- cameraId: string;
47
- }[];
48
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
49
- _id?: string | undefined;
50
- }>;
51
- export declare const patchPreferencesCamviewViewsLayout: zod.ZodOptional<zod.ZodObject<{
52
- name: zod.ZodOptional<zod.ZodString>;
53
- viewSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<4>, zod.ZodLiteral<6>, zod.ZodLiteral<7>, zod.ZodLiteral<9>, zod.ZodLiteral<10>, zod.ZodLiteral<12>, zod.ZodLiteral<13>, zod.ZodLiteral<15>, zod.ZodLiteral<16>, zod.ZodLiteral<20>, zod.ZodLiteral<26>]>>;
54
- cameras: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
55
- index: zod.ZodNumber;
56
- cameraId: zod.ZodString;
57
- }, "strip", zod.ZodTypeAny, {
58
- index: number;
59
- cameraId: string;
60
- }, {
61
- index: number;
62
- cameraId: string;
63
- }>, "many">>;
64
- }, "strip", zod.ZodTypeAny, {
65
- name?: string | undefined;
66
- cameras?: {
67
- index: number;
68
- cameraId: string;
69
- }[] | undefined;
70
- viewSize?: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26 | undefined;
71
- }, {
72
- name?: string | undefined;
73
- cameras?: {
74
- index: number;
75
- cameraId: string;
76
- }[] | undefined;
77
- viewSize?: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26 | undefined;
78
- }>>;
79
- export declare const userPreferencesCamview: zod.ZodObject<{
80
- views: zod.ZodArray<zod.ZodObject<{
81
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
82
- name: zod.ZodString;
83
- viewSize: zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<4>, zod.ZodLiteral<6>, zod.ZodLiteral<7>, zod.ZodLiteral<9>, zod.ZodLiteral<10>, zod.ZodLiteral<12>, zod.ZodLiteral<13>, zod.ZodLiteral<15>, zod.ZodLiteral<16>, zod.ZodLiteral<20>, zod.ZodLiteral<26>]>;
84
- cameras: zod.ZodArray<zod.ZodObject<{
85
- index: zod.ZodNumber;
86
- cameraId: zod.ZodString;
87
- }, "strip", zod.ZodTypeAny, {
88
- index: number;
89
- cameraId: string;
90
- }, {
91
- index: number;
92
- cameraId: string;
93
- }>, "many">;
94
- type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
95
- }, "strip", zod.ZodTypeAny, {
96
- name: string;
97
- type: "dnd" | "view";
98
- _id: string;
99
- cameras: {
100
- index: number;
101
- cameraId: string;
102
- }[];
103
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
104
- }, {
105
- name: string;
106
- type: "dnd" | "view";
107
- cameras: {
108
- index: number;
109
- cameraId: string;
110
- }[];
111
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
112
- _id?: string | undefined;
113
- }>, "many">;
114
- }, "strip", zod.ZodTypeAny, {
115
- views: {
116
- name: string;
117
- type: "dnd" | "view";
118
- _id: string;
119
- cameras: {
120
- index: number;
121
- cameraId: string;
122
- }[];
123
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
124
- }[];
125
- }, {
126
- views: {
127
- name: string;
128
- type: "dnd" | "view";
129
- cameras: {
130
- index: number;
131
- cameraId: string;
132
- }[];
133
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
134
- _id?: string | undefined;
135
- }[];
136
- }>;
137
- export declare const userPreferencesCameraShortcutLayout: zod.ZodObject<{
138
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
139
- cameraId: zod.ZodString;
140
- points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
141
- }, "strip", zod.ZodTypeAny, {
142
- _id: string;
143
- points: [number, number];
144
- cameraId: string;
145
- }, {
146
- points: [number, number];
147
- cameraId: string;
148
- _id?: string | undefined;
149
- }>;
150
- export declare const patchPreferencesCameraShortcutLayout: zod.ZodOptional<zod.ZodObject<{
151
- cameraId: zod.ZodOptional<zod.ZodString>;
152
- points: zod.ZodOptional<zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>>;
153
- }, "strip", zod.ZodTypeAny, {
154
- points?: [number, number] | undefined;
155
- cameraId?: string | undefined;
156
- }, {
157
- points?: [number, number] | undefined;
158
- cameraId?: string | undefined;
159
- }>>;
160
- export declare const userPreferencesCameras: zod.ZodObject<{
161
- shortcuts: zod.ZodArray<zod.ZodObject<{
162
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
163
- cameraId: zod.ZodString;
164
- points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
165
- }, "strip", zod.ZodTypeAny, {
166
- _id: string;
167
- points: [number, number];
168
- cameraId: string;
169
- }, {
170
- points: [number, number];
171
- cameraId: string;
172
- _id?: string | undefined;
173
- }>, "many">;
174
- }, "strip", zod.ZodTypeAny, {
175
- shortcuts: {
176
- _id: string;
177
- points: [number, number];
178
- cameraId: string;
179
- }[];
180
- }, {
181
- shortcuts: {
182
- points: [number, number];
183
- cameraId: string;
184
- _id?: string | undefined;
185
- }[];
186
- }>;
187
- export declare const userPreferences: zod.ZodObject<{
188
- camview: zod.ZodObject<{
189
- views: zod.ZodArray<zod.ZodObject<{
190
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
191
- name: zod.ZodString;
192
- viewSize: zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<4>, zod.ZodLiteral<6>, zod.ZodLiteral<7>, zod.ZodLiteral<9>, zod.ZodLiteral<10>, zod.ZodLiteral<12>, zod.ZodLiteral<13>, zod.ZodLiteral<15>, zod.ZodLiteral<16>, zod.ZodLiteral<20>, zod.ZodLiteral<26>]>;
193
- cameras: zod.ZodArray<zod.ZodObject<{
194
- index: zod.ZodNumber;
195
- cameraId: zod.ZodString;
196
- }, "strip", zod.ZodTypeAny, {
197
- index: number;
198
- cameraId: string;
199
- }, {
200
- index: number;
201
- cameraId: string;
202
- }>, "many">;
203
- type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
204
- }, "strip", zod.ZodTypeAny, {
205
- name: string;
206
- type: "dnd" | "view";
207
- _id: string;
208
- cameras: {
209
- index: number;
210
- cameraId: string;
211
- }[];
212
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
213
- }, {
214
- name: string;
215
- type: "dnd" | "view";
216
- cameras: {
217
- index: number;
218
- cameraId: string;
219
- }[];
220
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
221
- _id?: string | undefined;
222
- }>, "many">;
223
- }, "strip", zod.ZodTypeAny, {
224
- views: {
225
- name: string;
226
- type: "dnd" | "view";
227
- _id: string;
228
- cameras: {
229
- index: number;
230
- cameraId: string;
231
- }[];
232
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
233
- }[];
234
- }, {
235
- views: {
236
- name: string;
237
- type: "dnd" | "view";
238
- cameras: {
239
- index: number;
240
- cameraId: string;
241
- }[];
242
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
243
- _id?: string | undefined;
244
- }[];
245
- }>;
246
- cameras: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
247
- shortcuts: zod.ZodArray<zod.ZodObject<{
248
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
249
- cameraId: zod.ZodString;
250
- points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
251
- }, "strip", zod.ZodTypeAny, {
252
- _id: string;
253
- points: [number, number];
254
- cameraId: string;
255
- }, {
256
- points: [number, number];
257
- cameraId: string;
258
- _id?: string | undefined;
259
- }>, "many">;
260
- }, "strip", zod.ZodTypeAny, {
261
- shortcuts: {
262
- _id: string;
263
- points: [number, number];
264
- cameraId: string;
265
- }[];
266
- }, {
267
- shortcuts: {
268
- points: [number, number];
269
- cameraId: string;
270
- _id?: string | undefined;
271
- }[];
272
- }>>;
273
- }, "strip", zod.ZodTypeAny, {
274
- cameras: Record<string, {
275
- shortcuts: {
276
- _id: string;
277
- points: [number, number];
278
- cameraId: string;
279
- }[];
280
- }>;
281
- camview: {
282
- views: {
283
- name: string;
284
- type: "dnd" | "view";
285
- _id: string;
286
- cameras: {
287
- index: number;
288
- cameraId: string;
289
- }[];
290
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
291
- }[];
292
- };
293
- }, {
294
- cameras: Record<string, {
295
- shortcuts: {
296
- points: [number, number];
297
- cameraId: string;
298
- _id?: string | undefined;
299
- }[];
300
- }>;
301
- camview: {
302
- views: {
303
- name: string;
304
- type: "dnd" | "view";
305
- cameras: {
306
- index: number;
307
- cameraId: string;
308
- }[];
309
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
310
- _id?: string | undefined;
311
- }[];
312
- };
313
- }>;
314
- export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
315
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
316
- username: zod.ZodString;
317
- password: zod.ZodString;
318
- passwordConfirm: zod.ZodString;
319
- role: zod.ZodUnion<[zod.ZodLiteral<"admin">, zod.ZodLiteral<"user">]>;
320
- sessionTimer: zod.ZodDefault<zod.ZodNumber>;
321
- rememberMe: zod.ZodDefault<zod.ZodBoolean>;
322
- singleSession: zod.ZodDefault<zod.ZodBoolean>;
323
- firstLogin: zod.ZodDefault<zod.ZodBoolean>;
324
- preferences: zod.ZodDefault<zod.ZodObject<{
325
- camview: zod.ZodObject<{
326
- views: zod.ZodArray<zod.ZodObject<{
327
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
328
- name: zod.ZodString;
329
- viewSize: zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<4>, zod.ZodLiteral<6>, zod.ZodLiteral<7>, zod.ZodLiteral<9>, zod.ZodLiteral<10>, zod.ZodLiteral<12>, zod.ZodLiteral<13>, zod.ZodLiteral<15>, zod.ZodLiteral<16>, zod.ZodLiteral<20>, zod.ZodLiteral<26>]>;
330
- cameras: zod.ZodArray<zod.ZodObject<{
331
- index: zod.ZodNumber;
332
- cameraId: zod.ZodString;
333
- }, "strip", zod.ZodTypeAny, {
334
- index: number;
335
- cameraId: string;
336
- }, {
337
- index: number;
338
- cameraId: string;
339
- }>, "many">;
340
- type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
341
- }, "strip", zod.ZodTypeAny, {
342
- name: string;
343
- type: "dnd" | "view";
344
- _id: string;
345
- cameras: {
346
- index: number;
347
- cameraId: string;
348
- }[];
349
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
350
- }, {
351
- name: string;
352
- type: "dnd" | "view";
353
- cameras: {
354
- index: number;
355
- cameraId: string;
356
- }[];
357
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
358
- _id?: string | undefined;
359
- }>, "many">;
360
- }, "strip", zod.ZodTypeAny, {
361
- views: {
362
- name: string;
363
- type: "dnd" | "view";
364
- _id: string;
365
- cameras: {
366
- index: number;
367
- cameraId: string;
368
- }[];
369
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
370
- }[];
371
- }, {
372
- views: {
373
- name: string;
374
- type: "dnd" | "view";
375
- cameras: {
376
- index: number;
377
- cameraId: string;
378
- }[];
379
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
380
- _id?: string | undefined;
381
- }[];
382
- }>;
383
- cameras: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
384
- shortcuts: zod.ZodArray<zod.ZodObject<{
385
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
386
- cameraId: zod.ZodString;
387
- points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
388
- }, "strip", zod.ZodTypeAny, {
389
- _id: string;
390
- points: [number, number];
391
- cameraId: string;
392
- }, {
393
- points: [number, number];
394
- cameraId: string;
395
- _id?: string | undefined;
396
- }>, "many">;
397
- }, "strip", zod.ZodTypeAny, {
398
- shortcuts: {
399
- _id: string;
400
- points: [number, number];
401
- cameraId: string;
402
- }[];
403
- }, {
404
- shortcuts: {
405
- points: [number, number];
406
- cameraId: string;
407
- _id?: string | undefined;
408
- }[];
409
- }>>;
410
- }, "strip", zod.ZodTypeAny, {
411
- cameras: Record<string, {
412
- shortcuts: {
413
- _id: string;
414
- points: [number, number];
415
- cameraId: string;
416
- }[];
417
- }>;
418
- camview: {
419
- views: {
420
- name: string;
421
- type: "dnd" | "view";
422
- _id: string;
423
- cameras: {
424
- index: number;
425
- cameraId: string;
426
- }[];
427
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
428
- }[];
429
- };
430
- }, {
431
- cameras: Record<string, {
432
- shortcuts: {
433
- points: [number, number];
434
- cameraId: string;
435
- _id?: string | undefined;
436
- }[];
437
- }>;
438
- camview: {
439
- views: {
440
- name: string;
441
- type: "dnd" | "view";
442
- cameras: {
443
- index: number;
444
- cameraId: string;
445
- }[];
446
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
447
- _id?: string | undefined;
448
- }[];
449
- };
450
- }>>;
451
- }, "strict", zod.ZodTypeAny, {
452
- _id: string;
453
- role: "admin" | "user";
454
- password: string;
455
- username: string;
456
- passwordConfirm: string;
457
- sessionTimer: number;
458
- rememberMe: boolean;
459
- singleSession: boolean;
460
- firstLogin: boolean;
461
- preferences: {
462
- cameras: Record<string, {
463
- shortcuts: {
464
- _id: string;
465
- points: [number, number];
466
- cameraId: string;
467
- }[];
468
- }>;
469
- camview: {
470
- views: {
471
- name: string;
472
- type: "dnd" | "view";
473
- _id: string;
474
- cameras: {
475
- index: number;
476
- cameraId: string;
477
- }[];
478
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
479
- }[];
480
- };
481
- };
482
- }, {
483
- role: "admin" | "user";
484
- password: string;
485
- username: string;
486
- passwordConfirm: string;
487
- _id?: string | undefined;
488
- sessionTimer?: number | undefined;
489
- rememberMe?: boolean | undefined;
490
- singleSession?: boolean | undefined;
491
- firstLogin?: boolean | undefined;
492
- preferences?: {
493
- cameras: Record<string, {
494
- shortcuts: {
495
- points: [number, number];
496
- cameraId: string;
497
- _id?: string | undefined;
498
- }[];
499
- }>;
500
- camview: {
501
- views: {
502
- name: string;
503
- type: "dnd" | "view";
504
- cameras: {
505
- index: number;
506
- cameraId: string;
507
- }[];
508
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
509
- _id?: string | undefined;
510
- }[];
511
- };
512
- } | undefined;
513
- }>, {
514
- _id: string;
515
- role: "admin" | "user";
516
- password: string;
517
- username: string;
518
- passwordConfirm: string;
519
- sessionTimer: number;
520
- rememberMe: boolean;
521
- singleSession: boolean;
522
- firstLogin: boolean;
523
- preferences: {
524
- cameras: Record<string, {
525
- shortcuts: {
526
- _id: string;
527
- points: [number, number];
528
- cameraId: string;
529
- }[];
530
- }>;
531
- camview: {
532
- views: {
533
- name: string;
534
- type: "dnd" | "view";
535
- _id: string;
536
- cameras: {
537
- index: number;
538
- cameraId: string;
539
- }[];
540
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
541
- }[];
542
- };
543
- };
544
- }, {
545
- role: "admin" | "user";
546
- password: string;
547
- username: string;
548
- passwordConfirm: string;
549
- _id?: string | undefined;
550
- sessionTimer?: number | undefined;
551
- rememberMe?: boolean | undefined;
552
- singleSession?: boolean | undefined;
553
- firstLogin?: boolean | undefined;
554
- preferences?: {
555
- cameras: Record<string, {
556
- shortcuts: {
557
- points: [number, number];
558
- cameraId: string;
559
- _id?: string | undefined;
560
- }[];
561
- }>;
562
- camview: {
563
- views: {
564
- name: string;
565
- type: "dnd" | "view";
566
- cameras: {
567
- index: number;
568
- cameraId: string;
569
- }[];
570
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
571
- _id?: string | undefined;
572
- }[];
573
- };
574
- } | undefined;
575
- }>;
576
- export declare const loginUserSchema: zod.ZodObject<{
577
- username: zod.ZodString;
578
- password: zod.ZodString;
579
- rememberMe: zod.ZodDefault<zod.ZodBoolean>;
580
- }, "strict", zod.ZodTypeAny, {
581
- password: string;
582
- username: string;
583
- rememberMe: boolean;
584
- }, {
585
- password: string;
586
- username: string;
587
- rememberMe?: boolean | undefined;
588
- }>;
589
- export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
590
- username: zod.ZodOptional<zod.ZodString>;
591
- password: zod.ZodOptional<zod.ZodString>;
592
- passwordConfirm: zod.ZodOptional<zod.ZodString>;
593
- role: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"admin">, zod.ZodLiteral<"user">]>>;
594
- sessionTimer: zod.ZodOptional<zod.ZodNumber>;
595
- upload: zod.ZodOptional<zod.ZodType<MultipartFile, zod.ZodTypeDef, MultipartFile>>;
596
- rememberMe: zod.ZodOptional<zod.ZodBoolean>;
597
- singleSession: zod.ZodOptional<zod.ZodBoolean>;
598
- firstLogin: zod.ZodOptional<zod.ZodBoolean>;
599
- preferences: zod.ZodOptional<zod.ZodObject<{
600
- camview: zod.ZodOptional<zod.ZodObject<{
601
- views: zod.ZodArray<zod.ZodObject<{
602
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
603
- name: zod.ZodString;
604
- viewSize: zod.ZodUnion<[zod.ZodLiteral<1>, zod.ZodLiteral<4>, zod.ZodLiteral<6>, zod.ZodLiteral<7>, zod.ZodLiteral<9>, zod.ZodLiteral<10>, zod.ZodLiteral<12>, zod.ZodLiteral<13>, zod.ZodLiteral<15>, zod.ZodLiteral<16>, zod.ZodLiteral<20>, zod.ZodLiteral<26>]>;
605
- cameras: zod.ZodArray<zod.ZodObject<{
606
- index: zod.ZodNumber;
607
- cameraId: zod.ZodString;
608
- }, "strip", zod.ZodTypeAny, {
609
- index: number;
610
- cameraId: string;
611
- }, {
612
- index: number;
613
- cameraId: string;
614
- }>, "many">;
615
- type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
616
- }, "strip", zod.ZodTypeAny, {
617
- name: string;
618
- type: "dnd" | "view";
619
- _id: string;
620
- cameras: {
621
- index: number;
622
- cameraId: string;
623
- }[];
624
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
625
- }, {
626
- name: string;
627
- type: "dnd" | "view";
628
- cameras: {
629
- index: number;
630
- cameraId: string;
631
- }[];
632
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
633
- _id?: string | undefined;
634
- }>, "many">;
635
- }, "strip", zod.ZodTypeAny, {
636
- views: {
637
- name: string;
638
- type: "dnd" | "view";
639
- _id: string;
640
- cameras: {
641
- index: number;
642
- cameraId: string;
643
- }[];
644
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
645
- }[];
646
- }, {
647
- views: {
648
- name: string;
649
- type: "dnd" | "view";
650
- cameras: {
651
- index: number;
652
- cameraId: string;
653
- }[];
654
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
655
- _id?: string | undefined;
656
- }[];
657
- }>>;
658
- cameras: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
659
- shortcuts: zod.ZodArray<zod.ZodObject<{
660
- _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
661
- cameraId: zod.ZodString;
662
- points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
663
- }, "strip", zod.ZodTypeAny, {
664
- _id: string;
665
- points: [number, number];
666
- cameraId: string;
667
- }, {
668
- points: [number, number];
669
- cameraId: string;
670
- _id?: string | undefined;
671
- }>, "many">;
672
- }, "strip", zod.ZodTypeAny, {
673
- shortcuts: {
674
- _id: string;
675
- points: [number, number];
676
- cameraId: string;
677
- }[];
678
- }, {
679
- shortcuts: {
680
- points: [number, number];
681
- cameraId: string;
682
- _id?: string | undefined;
683
- }[];
684
- }>>>;
685
- }, "strip", zod.ZodTypeAny, {
686
- cameras?: Record<string, {
687
- shortcuts: {
688
- _id: string;
689
- points: [number, number];
690
- cameraId: string;
691
- }[];
692
- }> | undefined;
693
- camview?: {
694
- views: {
695
- name: string;
696
- type: "dnd" | "view";
697
- _id: string;
698
- cameras: {
699
- index: number;
700
- cameraId: string;
701
- }[];
702
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
703
- }[];
704
- } | undefined;
705
- }, {
706
- cameras?: Record<string, {
707
- shortcuts: {
708
- points: [number, number];
709
- cameraId: string;
710
- _id?: string | undefined;
711
- }[];
712
- }> | undefined;
713
- camview?: {
714
- views: {
715
- name: string;
716
- type: "dnd" | "view";
717
- cameras: {
718
- index: number;
719
- cameraId: string;
720
- }[];
721
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
722
- _id?: string | undefined;
723
- }[];
724
- } | undefined;
725
- }>>;
726
- }, "strict", zod.ZodTypeAny, {
727
- role?: "admin" | "user" | undefined;
728
- password?: string | undefined;
729
- upload?: MultipartFile | undefined;
730
- username?: string | undefined;
731
- passwordConfirm?: string | undefined;
732
- sessionTimer?: number | undefined;
733
- rememberMe?: boolean | undefined;
734
- singleSession?: boolean | undefined;
735
- firstLogin?: boolean | undefined;
736
- preferences?: {
737
- cameras?: Record<string, {
738
- shortcuts: {
739
- _id: string;
740
- points: [number, number];
741
- cameraId: string;
742
- }[];
743
- }> | undefined;
744
- camview?: {
745
- views: {
746
- name: string;
747
- type: "dnd" | "view";
748
- _id: string;
749
- cameras: {
750
- index: number;
751
- cameraId: string;
752
- }[];
753
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
754
- }[];
755
- } | undefined;
756
- } | undefined;
757
- }, {
758
- role?: "admin" | "user" | undefined;
759
- password?: string | undefined;
760
- upload?: MultipartFile | undefined;
761
- username?: string | undefined;
762
- passwordConfirm?: string | undefined;
763
- sessionTimer?: number | undefined;
764
- rememberMe?: boolean | undefined;
765
- singleSession?: boolean | undefined;
766
- firstLogin?: boolean | undefined;
767
- preferences?: {
768
- cameras?: Record<string, {
769
- shortcuts: {
770
- points: [number, number];
771
- cameraId: string;
772
- _id?: string | undefined;
773
- }[];
774
- }> | undefined;
775
- camview?: {
776
- views: {
777
- name: string;
778
- type: "dnd" | "view";
779
- cameras: {
780
- index: number;
781
- cameraId: string;
782
- }[];
783
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
784
- _id?: string | undefined;
785
- }[];
786
- } | undefined;
787
- } | undefined;
788
- }>, {
789
- role?: "admin" | "user" | undefined;
790
- password?: string | undefined;
791
- upload?: MultipartFile | undefined;
792
- username?: string | undefined;
793
- passwordConfirm?: string | undefined;
794
- sessionTimer?: number | undefined;
795
- rememberMe?: boolean | undefined;
796
- singleSession?: boolean | undefined;
797
- firstLogin?: boolean | undefined;
798
- preferences?: {
799
- cameras?: Record<string, {
800
- shortcuts: {
801
- _id: string;
802
- points: [number, number];
803
- cameraId: string;
804
- }[];
805
- }> | undefined;
806
- camview?: {
807
- views: {
808
- name: string;
809
- type: "dnd" | "view";
810
- _id: string;
811
- cameras: {
812
- index: number;
813
- cameraId: string;
814
- }[];
815
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
816
- }[];
817
- } | undefined;
818
- } | undefined;
819
- }, {
820
- role?: "admin" | "user" | undefined;
821
- password?: string | undefined;
822
- upload?: MultipartFile | undefined;
823
- username?: string | undefined;
824
- passwordConfirm?: string | undefined;
825
- sessionTimer?: number | undefined;
826
- rememberMe?: boolean | undefined;
827
- singleSession?: boolean | undefined;
828
- firstLogin?: boolean | undefined;
829
- preferences?: {
830
- cameras?: Record<string, {
831
- shortcuts: {
832
- points: [number, number];
833
- cameraId: string;
834
- _id?: string | undefined;
835
- }[];
836
- }> | undefined;
837
- camview?: {
838
- views: {
839
- name: string;
840
- type: "dnd" | "view";
841
- cameras: {
842
- index: number;
843
- cameraId: string;
844
- }[];
845
- viewSize: 1 | 4 | 9 | 10 | 6 | 7 | 12 | 13 | 15 | 16 | 20 | 26;
846
- _id?: string | undefined;
847
- }[];
848
- } | undefined;
849
- } | undefined;
850
- }>;
851
- export type CreateUserInput = zod.TypeOf<typeof createUserSchema>;
852
- export type LoginUserInput = zod.TypeOf<typeof loginUserSchema>;
853
- export type PatchUserInput = zod.TypeOf<typeof patchUserSchema>;
854
- export type CreateViewInput = zod.TypeOf<typeof userPreferencesCamviewViewsLayout>;
855
- export type PatchViewInput = zod.TypeOf<typeof patchPreferencesCamviewViewsLayout>;
856
- export type CreateShortcutInput = zod.TypeOf<typeof userPreferencesCameraShortcutLayout>;
857
- export type PatchShortcutInput = zod.TypeOf<typeof patchPreferencesCameraShortcutLayout>;