@camera.ui/browser 0.0.81 → 0.0.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/types/packages/client/browser/src/client.d.ts +1 -7
  3. package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +4 -14
  4. package/dist/types/packages/client/browser/src/proxy/index.d.ts +0 -2
  5. package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +2 -0
  6. package/dist/types/server/src/api/database/index.d.ts +11 -8
  7. package/dist/types/server/src/api/database/migration.d.ts +12 -0
  8. package/dist/types/server/src/api/database/types.d.ts +22 -2
  9. package/dist/types/server/src/api/go2rtc/api/streams.d.ts +4 -4
  10. package/dist/types/server/src/api/go2rtc/types.d.ts +6 -2
  11. package/dist/types/server/src/api/schemas/backup.schema.d.ts +18 -18
  12. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +116 -96
  13. package/dist/types/server/src/api/schemas/config.schema.d.ts +11 -11
  14. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +60 -60
  15. package/dist/types/server/src/api/schemas/plugins.schema.d.ts +47 -0
  16. package/dist/types/server/src/api/schemas/users.schema.d.ts +499 -112
  17. package/dist/types/server/src/api/services/cameras.service.d.ts +1 -1
  18. package/dist/types/server/src/api/services/users.service.d.ts +12 -3
  19. package/dist/types/server/src/api/types/index.d.ts +41 -30
  20. package/dist/types/server/src/api.d.ts +3 -3
  21. package/dist/types/server/src/camera/controller.d.ts +11 -11
  22. package/dist/types/server/src/camera/device.d.ts +15 -3
  23. package/dist/types/server/src/camera/index.d.ts +23 -46
  24. package/dist/types/server/src/camera/interfaces/camera.d.ts +1 -1
  25. package/dist/types/server/src/camera/types.d.ts +2 -21
  26. package/dist/types/server/src/camera/videoFrame.d.ts +3 -3
  27. package/dist/types/server/src/decoder/types.d.ts +12 -10
  28. package/dist/types/server/src/decoder/worker.d.ts +3 -5
  29. package/dist/types/server/src/nats/connection.d.ts +17 -0
  30. package/dist/types/server/src/nats/error.d.ts +9 -0
  31. package/dist/types/server/src/nats/index.d.ts +12 -9
  32. package/dist/types/server/src/nats/messageQueue.d.ts +20 -0
  33. package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +8 -19
  34. package/dist/types/server/src/nats/proxy/deviceManager.d.ts +6 -21
  35. package/dist/types/server/src/nats/server.d.ts +0 -1
  36. package/dist/types/server/src/nats/subscription.d.ts +12 -0
  37. package/dist/types/server/src/nats/types.d.ts +44 -102
  38. package/dist/types/server/src/nats/utils.d.ts +2 -4
  39. package/dist/types/server/src/plugins/index.d.ts +3 -5
  40. package/dist/types/server/src/plugins/interfaces/audioDetection.d.ts +7 -0
  41. package/dist/types/server/src/plugins/{base.d.ts → interfaces/base.d.ts} +2 -2
  42. package/dist/types/server/src/plugins/interfaces/motionDetection.d.ts +6 -0
  43. package/dist/types/server/src/plugins/interfaces/objectDetection.d.ts +7 -0
  44. package/dist/types/server/src/plugins/plugin.d.ts +4 -13
  45. package/dist/types/server/src/plugins/types.d.ts +16 -5
  46. package/dist/types/server/src/plugins/worker.d.ts +1 -1
  47. package/dist/types/server/src/polyglot/node/plugins/cameraStorage.d.ts +2 -2
  48. package/dist/types/server/src/polyglot/node/plugins/{api.d.ts → pluginApi.d.ts} +10 -17
  49. package/dist/types/server/src/polyglot/node/plugins/{logger.d.ts → pluginLogger.d.ts} +2 -0
  50. package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +12 -26
  51. package/dist/types/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +6 -8
  52. package/dist/types/server/src/polyglot/node/plugins/schema.d.ts +14 -10
  53. package/dist/types/server/src/polyglot/node/plugins/storageController.d.ts +2 -2
  54. package/dist/types/server/src/services/config/index.d.ts +3 -2
  55. package/dist/types/server/src/services/config/types.d.ts +4 -4
  56. package/dist/types/server/src/services/logger/index.d.ts +2 -0
  57. package/dist/types/server/src/utils/ffmpeg.d.ts +2 -0
  58. package/dist/types/server/src/utils/pythonInstaller.d.ts +1 -1
  59. package/dist/types/server/src/utils/subscribed.d.ts +4 -4
  60. package/dist/types/server/src/utils/utils.d.ts +1 -2
  61. package/package.json +6 -6
  62. package/dist/types/packages/client/browser/src/proxy/pluginsManager.d.ts +0 -10
  63. package/dist/types/packages/client/browser/src/proxy/systemManager.d.ts +0 -10
  64. package/dist/types/server/src/api/controllers/api.controller.d.ts +0 -6
  65. package/dist/types/server/src/api/controllers/auth.controller.d.ts +0 -20
  66. package/dist/types/server/src/api/controllers/backup.controller.d.ts +0 -10
  67. package/dist/types/server/src/api/controllers/cameras.controller.d.ts +0 -33
  68. package/dist/types/server/src/api/controllers/config.controller.d.ts +0 -14
  69. package/dist/types/server/src/api/controllers/files.controller.d.ts +0 -8
  70. package/dist/types/server/src/api/controllers/frameWorkers.controller.d.ts +0 -16
  71. package/dist/types/server/src/api/controllers/plugins.controller.d.ts +0 -54
  72. package/dist/types/server/src/api/controllers/system.controller.d.ts +0 -14
  73. package/dist/types/server/src/api/controllers/users.controller.d.ts +0 -21
  74. package/dist/types/server/src/api/index.d.ts +0 -21
  75. package/dist/types/server/src/api/middlewares/authPermission.middleware.d.ts +0 -5
  76. package/dist/types/server/src/api/middlewares/authValidation.middleware.d.ts +0 -4
  77. package/dist/types/server/src/api/middlewares/pagination.middleware.d.ts +0 -3
  78. package/dist/types/server/src/api/plugins/cameraui.plugin.d.ts +0 -11
  79. package/dist/types/server/src/api/plugins/database.plugin.d.ts +0 -11
  80. package/dist/types/server/src/api/plugins/go2rtc.plugin.d.ts +0 -11
  81. package/dist/types/server/src/api/plugins/logger.plugin.d.ts +0 -7
  82. package/dist/types/server/src/api/plugins/socket.plugin.d.ts +0 -11
  83. package/dist/types/server/src/api/plugins/system.plugin.d.ts +0 -21
  84. package/dist/types/server/src/api/plugins/useragent.plugin.d.ts +0 -8
  85. package/dist/types/server/src/api/routes/api.routes.d.ts +0 -2
  86. package/dist/types/server/src/api/routes/auth.routes.d.ts +0 -2
  87. package/dist/types/server/src/api/routes/backup.routes.d.ts +0 -2
  88. package/dist/types/server/src/api/routes/cameras.routes.d.ts +0 -2
  89. package/dist/types/server/src/api/routes/config.routes.d.ts +0 -2
  90. package/dist/types/server/src/api/routes/files.routes.d.ts +0 -2
  91. package/dist/types/server/src/api/routes/frameWorkers.routes.d.ts +0 -2
  92. package/dist/types/server/src/api/routes/index.d.ts +0 -6
  93. package/dist/types/server/src/api/routes/plugins.routes.d.ts +0 -2
  94. package/dist/types/server/src/api/routes/system.routes.d.ts +0 -2
  95. package/dist/types/server/src/api/routes/users.routes.d.ts +0 -2
  96. package/dist/types/server/src/api/services/backup.service.d.ts +0 -10
  97. package/dist/types/server/src/api/utils/cert.d.ts +0 -11
  98. package/dist/types/server/src/api/utils/fetch.d.ts +0 -2
  99. package/dist/types/server/src/api/utils/moveFiles.d.ts +0 -1
  100. package/dist/types/server/src/camera/interfaces/audioDetection.d.ts +0 -10
  101. package/dist/types/server/src/camera/interfaces/motionDetection.d.ts +0 -10
  102. package/dist/types/server/src/camera/interfaces/objectDetection.d.ts +0 -10
  103. package/dist/types/server/src/decoder/ffmpeg.d.ts +0 -2
  104. package/dist/types/server/src/main.d.ts +0 -21
  105. package/dist/types/server/src/nats/proxy/index.d.ts +0 -4
  106. package/dist/types/server/src/nats/proxy/pluginsManager.d.ts +0 -12
  107. package/dist/types/server/src/nats/proxy/systemManager.d.ts +0 -8
  108. package/dist/types/server/src/nats/queue.d.ts +0 -17
  109. package/dist/types/server/src/polyglot/node/plugins/proxy/index.d.ts +0 -4
  110. package/dist/types/server/src/polyglot/node/plugins/proxy/pluginsManager.d.ts +0 -39
  111. package/dist/types/server/src/polyglot/node/plugins/proxy/queue.d.ts +0 -20
  112. package/dist/types/server/src/polyglot/node/plugins/proxy/systemManager.d.ts +0 -37
  113. /package/dist/types/server/src/polyglot/node/plugins/{config.d.ts → configService.d.ts} +0 -0
@@ -1,15 +1,15 @@
1
1
  import zod from 'zod';
2
- import type { MultipartFile } from '../types/index.js';
2
+ import type { MultipartFile } from '@fastify/multipart';
3
3
  export declare const ACCEPTED_IMAGE_TYPES: string[];
4
4
  export declare const MAX_IMAGE_FILE_SIZE = 5000000;
5
5
  export declare const userPreferencesCamviewViewsLayoutCameras: zod.ZodObject<{
6
6
  index: zod.ZodNumber;
7
- name: zod.ZodString;
7
+ cameraId: zod.ZodString;
8
8
  }, "strip", zod.ZodTypeAny, {
9
- name: string;
9
+ cameraId: string;
10
10
  index: number;
11
11
  }, {
12
- name: string;
12
+ cameraId: string;
13
13
  index: number;
14
14
  }>;
15
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>]>;
@@ -20,12 +20,12 @@ export declare const userPreferencesCamviewViewsLayout: zod.ZodObject<{
20
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
21
  cameras: zod.ZodArray<zod.ZodObject<{
22
22
  index: zod.ZodNumber;
23
- name: zod.ZodString;
23
+ cameraId: zod.ZodString;
24
24
  }, "strip", zod.ZodTypeAny, {
25
- name: string;
25
+ cameraId: string;
26
26
  index: number;
27
27
  }, {
28
- name: string;
28
+ cameraId: string;
29
29
  index: number;
30
30
  }>, "many">;
31
31
  type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
@@ -33,48 +33,48 @@ export declare const userPreferencesCamviewViewsLayout: zod.ZodObject<{
33
33
  name: string;
34
34
  type: "dnd" | "view";
35
35
  _id: string;
36
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
36
37
  cameras: {
37
- name: string;
38
+ cameraId: string;
38
39
  index: number;
39
40
  }[];
40
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
41
41
  }, {
42
42
  name: string;
43
43
  type: "dnd" | "view";
44
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
44
45
  cameras: {
45
- name: string;
46
+ cameraId: string;
46
47
  index: number;
47
48
  }[];
48
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
49
49
  _id?: string | undefined;
50
50
  }>;
51
- export declare const patchUPreferencesCamviewViewsLayout: zod.ZodOptional<zod.ZodObject<{
51
+ export declare const patchPreferencesCamviewViewsLayout: zod.ZodOptional<zod.ZodObject<{
52
52
  name: zod.ZodOptional<zod.ZodString>;
53
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
54
  cameras: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
55
55
  index: zod.ZodNumber;
56
- name: zod.ZodString;
56
+ cameraId: zod.ZodString;
57
57
  }, "strip", zod.ZodTypeAny, {
58
- name: string;
58
+ cameraId: string;
59
59
  index: number;
60
60
  }, {
61
- name: string;
61
+ cameraId: string;
62
62
  index: number;
63
63
  }>, "many">>;
64
64
  }, "strip", zod.ZodTypeAny, {
65
65
  name?: string | undefined;
66
+ viewSize?: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26 | undefined;
66
67
  cameras?: {
67
- name: string;
68
+ cameraId: string;
68
69
  index: number;
69
70
  }[] | undefined;
70
- viewSize?: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26 | undefined;
71
71
  }, {
72
72
  name?: string | undefined;
73
+ viewSize?: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26 | undefined;
73
74
  cameras?: {
74
- name: string;
75
+ cameraId: string;
75
76
  index: number;
76
77
  }[] | undefined;
77
- viewSize?: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26 | undefined;
78
78
  }>>;
79
79
  export declare const userPreferencesCamview: zod.ZodObject<{
80
80
  views: zod.ZodArray<zod.ZodObject<{
@@ -83,12 +83,12 @@ export declare const userPreferencesCamview: zod.ZodObject<{
83
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
84
  cameras: zod.ZodArray<zod.ZodObject<{
85
85
  index: zod.ZodNumber;
86
- name: zod.ZodString;
86
+ cameraId: zod.ZodString;
87
87
  }, "strip", zod.ZodTypeAny, {
88
- name: string;
88
+ cameraId: string;
89
89
  index: number;
90
90
  }, {
91
- name: string;
91
+ cameraId: string;
92
92
  index: number;
93
93
  }>, "many">;
94
94
  type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
@@ -96,19 +96,19 @@ export declare const userPreferencesCamview: zod.ZodObject<{
96
96
  name: string;
97
97
  type: "dnd" | "view";
98
98
  _id: string;
99
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
99
100
  cameras: {
100
- name: string;
101
+ cameraId: string;
101
102
  index: number;
102
103
  }[];
103
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
104
104
  }, {
105
105
  name: string;
106
106
  type: "dnd" | "view";
107
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
107
108
  cameras: {
108
- name: string;
109
+ cameraId: string;
109
110
  index: number;
110
111
  }[];
111
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
112
112
  _id?: string | undefined;
113
113
  }>, "many">;
114
114
  }, "strip", zod.ZodTypeAny, {
@@ -116,21 +116,122 @@ export declare const userPreferencesCamview: zod.ZodObject<{
116
116
  name: string;
117
117
  type: "dnd" | "view";
118
118
  _id: string;
119
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
119
120
  cameras: {
120
- name: string;
121
+ cameraId: string;
121
122
  index: number;
122
123
  }[];
123
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
124
124
  }[];
125
125
  }, {
126
126
  views: {
127
127
  name: string;
128
128
  type: "dnd" | "view";
129
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
129
130
  cameras: {
130
- name: string;
131
+ cameraId: string;
131
132
  index: number;
132
133
  }[];
133
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 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
+ coords: zod.ZodObject<{
141
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
142
+ points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
143
+ }, "strip", zod.ZodTypeAny, {
144
+ _id: string;
145
+ points: [number, number];
146
+ }, {
147
+ points: [number, number];
148
+ _id?: string | undefined;
149
+ }>;
150
+ }, "strip", zod.ZodTypeAny, {
151
+ cameraId: string;
152
+ _id: string;
153
+ coords: {
154
+ _id: string;
155
+ points: [number, number];
156
+ };
157
+ }, {
158
+ cameraId: string;
159
+ coords: {
160
+ points: [number, number];
161
+ _id?: string | undefined;
162
+ };
163
+ _id?: string | undefined;
164
+ }>;
165
+ export declare const patchPreferencesCameraShortcutLayout: zod.ZodOptional<zod.ZodObject<{
166
+ cameraId: zod.ZodOptional<zod.ZodString>;
167
+ coords: zod.ZodOptional<zod.ZodObject<{
168
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
169
+ points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
170
+ }, "strip", zod.ZodTypeAny, {
171
+ _id: string;
172
+ points: [number, number];
173
+ }, {
174
+ points: [number, number];
175
+ _id?: string | undefined;
176
+ }>>;
177
+ }, "strip", zod.ZodTypeAny, {
178
+ cameraId?: string | undefined;
179
+ coords?: {
180
+ _id: string;
181
+ points: [number, number];
182
+ } | undefined;
183
+ }, {
184
+ cameraId?: string | undefined;
185
+ coords?: {
186
+ points: [number, number];
187
+ _id?: string | undefined;
188
+ } | undefined;
189
+ }>>;
190
+ export declare const userPreferencesCameras: zod.ZodObject<{
191
+ shortcuts: zod.ZodArray<zod.ZodObject<{
192
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
193
+ cameraId: zod.ZodString;
194
+ coords: zod.ZodObject<{
195
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
196
+ points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
197
+ }, "strip", zod.ZodTypeAny, {
198
+ _id: string;
199
+ points: [number, number];
200
+ }, {
201
+ points: [number, number];
202
+ _id?: string | undefined;
203
+ }>;
204
+ }, "strip", zod.ZodTypeAny, {
205
+ cameraId: string;
206
+ _id: string;
207
+ coords: {
208
+ _id: string;
209
+ points: [number, number];
210
+ };
211
+ }, {
212
+ cameraId: string;
213
+ coords: {
214
+ points: [number, number];
215
+ _id?: string | undefined;
216
+ };
217
+ _id?: string | undefined;
218
+ }>, "many">;
219
+ }, "strip", zod.ZodTypeAny, {
220
+ shortcuts: {
221
+ cameraId: string;
222
+ _id: string;
223
+ coords: {
224
+ _id: string;
225
+ points: [number, number];
226
+ };
227
+ }[];
228
+ }, {
229
+ shortcuts: {
230
+ cameraId: string;
231
+ coords: {
232
+ points: [number, number];
233
+ _id?: string | undefined;
234
+ };
134
235
  _id?: string | undefined;
135
236
  }[];
136
237
  }>;
@@ -142,12 +243,12 @@ export declare const userPreferences: zod.ZodObject<{
142
243
  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>]>;
143
244
  cameras: zod.ZodArray<zod.ZodObject<{
144
245
  index: zod.ZodNumber;
145
- name: zod.ZodString;
246
+ cameraId: zod.ZodString;
146
247
  }, "strip", zod.ZodTypeAny, {
147
- name: string;
248
+ cameraId: string;
148
249
  index: number;
149
250
  }, {
150
- name: string;
251
+ cameraId: string;
151
252
  index: number;
152
253
  }>, "many">;
153
254
  type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
@@ -155,19 +256,19 @@ export declare const userPreferences: zod.ZodObject<{
155
256
  name: string;
156
257
  type: "dnd" | "view";
157
258
  _id: string;
259
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
158
260
  cameras: {
159
- name: string;
261
+ cameraId: string;
160
262
  index: number;
161
263
  }[];
162
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
163
264
  }, {
164
265
  name: string;
165
266
  type: "dnd" | "view";
267
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
166
268
  cameras: {
167
- name: string;
269
+ cameraId: string;
168
270
  index: number;
169
271
  }[];
170
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
171
272
  _id?: string | undefined;
172
273
  }>, "many">;
173
274
  }, "strip", zod.ZodTypeAny, {
@@ -175,47 +276,115 @@ export declare const userPreferences: zod.ZodObject<{
175
276
  name: string;
176
277
  type: "dnd" | "view";
177
278
  _id: string;
279
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
178
280
  cameras: {
179
- name: string;
281
+ cameraId: string;
180
282
  index: number;
181
283
  }[];
182
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
183
284
  }[];
184
285
  }, {
185
286
  views: {
186
287
  name: string;
187
288
  type: "dnd" | "view";
289
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
188
290
  cameras: {
189
- name: string;
291
+ cameraId: string;
190
292
  index: number;
191
293
  }[];
192
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
193
294
  _id?: string | undefined;
194
295
  }[];
195
296
  }>;
297
+ cameras: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
298
+ shortcuts: zod.ZodArray<zod.ZodObject<{
299
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
300
+ cameraId: zod.ZodString;
301
+ coords: zod.ZodObject<{
302
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
303
+ points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
304
+ }, "strip", zod.ZodTypeAny, {
305
+ _id: string;
306
+ points: [number, number];
307
+ }, {
308
+ points: [number, number];
309
+ _id?: string | undefined;
310
+ }>;
311
+ }, "strip", zod.ZodTypeAny, {
312
+ cameraId: string;
313
+ _id: string;
314
+ coords: {
315
+ _id: string;
316
+ points: [number, number];
317
+ };
318
+ }, {
319
+ cameraId: string;
320
+ coords: {
321
+ points: [number, number];
322
+ _id?: string | undefined;
323
+ };
324
+ _id?: string | undefined;
325
+ }>, "many">;
326
+ }, "strip", zod.ZodTypeAny, {
327
+ shortcuts: {
328
+ cameraId: string;
329
+ _id: string;
330
+ coords: {
331
+ _id: string;
332
+ points: [number, number];
333
+ };
334
+ }[];
335
+ }, {
336
+ shortcuts: {
337
+ cameraId: string;
338
+ coords: {
339
+ points: [number, number];
340
+ _id?: string | undefined;
341
+ };
342
+ _id?: string | undefined;
343
+ }[];
344
+ }>>;
196
345
  }, "strip", zod.ZodTypeAny, {
346
+ cameras: Record<string, {
347
+ shortcuts: {
348
+ cameraId: string;
349
+ _id: string;
350
+ coords: {
351
+ _id: string;
352
+ points: [number, number];
353
+ };
354
+ }[];
355
+ }>;
197
356
  camview: {
198
357
  views: {
199
358
  name: string;
200
359
  type: "dnd" | "view";
201
360
  _id: string;
361
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
202
362
  cameras: {
203
- name: string;
363
+ cameraId: string;
204
364
  index: number;
205
365
  }[];
206
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
207
366
  }[];
208
367
  };
209
368
  }, {
369
+ cameras: Record<string, {
370
+ shortcuts: {
371
+ cameraId: string;
372
+ coords: {
373
+ points: [number, number];
374
+ _id?: string | undefined;
375
+ };
376
+ _id?: string | undefined;
377
+ }[];
378
+ }>;
210
379
  camview: {
211
380
  views: {
212
381
  name: string;
213
382
  type: "dnd" | "view";
383
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
214
384
  cameras: {
215
- name: string;
385
+ cameraId: string;
216
386
  index: number;
217
387
  }[];
218
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
219
388
  _id?: string | undefined;
220
389
  }[];
221
390
  };
@@ -238,12 +407,12 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
238
407
  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>]>;
239
408
  cameras: zod.ZodArray<zod.ZodObject<{
240
409
  index: zod.ZodNumber;
241
- name: zod.ZodString;
410
+ cameraId: zod.ZodString;
242
411
  }, "strip", zod.ZodTypeAny, {
243
- name: string;
412
+ cameraId: string;
244
413
  index: number;
245
414
  }, {
246
- name: string;
415
+ cameraId: string;
247
416
  index: number;
248
417
  }>, "many">;
249
418
  type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
@@ -251,19 +420,19 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
251
420
  name: string;
252
421
  type: "dnd" | "view";
253
422
  _id: string;
423
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
254
424
  cameras: {
255
- name: string;
425
+ cameraId: string;
256
426
  index: number;
257
427
  }[];
258
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
259
428
  }, {
260
429
  name: string;
261
430
  type: "dnd" | "view";
431
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
262
432
  cameras: {
263
- name: string;
433
+ cameraId: string;
264
434
  index: number;
265
435
  }[];
266
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
267
436
  _id?: string | undefined;
268
437
  }>, "many">;
269
438
  }, "strip", zod.ZodTypeAny, {
@@ -271,143 +440,251 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
271
440
  name: string;
272
441
  type: "dnd" | "view";
273
442
  _id: string;
443
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
274
444
  cameras: {
275
- name: string;
445
+ cameraId: string;
276
446
  index: number;
277
447
  }[];
278
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
279
448
  }[];
280
449
  }, {
281
450
  views: {
282
451
  name: string;
283
452
  type: "dnd" | "view";
453
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
284
454
  cameras: {
285
- name: string;
455
+ cameraId: string;
286
456
  index: number;
287
457
  }[];
288
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
289
458
  _id?: string | undefined;
290
459
  }[];
291
460
  }>;
461
+ cameras: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
462
+ shortcuts: zod.ZodArray<zod.ZodObject<{
463
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
464
+ cameraId: zod.ZodString;
465
+ coords: zod.ZodObject<{
466
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
467
+ points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
468
+ }, "strip", zod.ZodTypeAny, {
469
+ _id: string;
470
+ points: [number, number];
471
+ }, {
472
+ points: [number, number];
473
+ _id?: string | undefined;
474
+ }>;
475
+ }, "strip", zod.ZodTypeAny, {
476
+ cameraId: string;
477
+ _id: string;
478
+ coords: {
479
+ _id: string;
480
+ points: [number, number];
481
+ };
482
+ }, {
483
+ cameraId: string;
484
+ coords: {
485
+ points: [number, number];
486
+ _id?: string | undefined;
487
+ };
488
+ _id?: string | undefined;
489
+ }>, "many">;
490
+ }, "strip", zod.ZodTypeAny, {
491
+ shortcuts: {
492
+ cameraId: string;
493
+ _id: string;
494
+ coords: {
495
+ _id: string;
496
+ points: [number, number];
497
+ };
498
+ }[];
499
+ }, {
500
+ shortcuts: {
501
+ cameraId: string;
502
+ coords: {
503
+ points: [number, number];
504
+ _id?: string | undefined;
505
+ };
506
+ _id?: string | undefined;
507
+ }[];
508
+ }>>;
292
509
  }, "strip", zod.ZodTypeAny, {
510
+ cameras: Record<string, {
511
+ shortcuts: {
512
+ cameraId: string;
513
+ _id: string;
514
+ coords: {
515
+ _id: string;
516
+ points: [number, number];
517
+ };
518
+ }[];
519
+ }>;
293
520
  camview: {
294
521
  views: {
295
522
  name: string;
296
523
  type: "dnd" | "view";
297
524
  _id: string;
525
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
298
526
  cameras: {
299
- name: string;
527
+ cameraId: string;
300
528
  index: number;
301
529
  }[];
302
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
303
530
  }[];
304
531
  };
305
532
  }, {
533
+ cameras: Record<string, {
534
+ shortcuts: {
535
+ cameraId: string;
536
+ coords: {
537
+ points: [number, number];
538
+ _id?: string | undefined;
539
+ };
540
+ _id?: string | undefined;
541
+ }[];
542
+ }>;
306
543
  camview: {
307
544
  views: {
308
545
  name: string;
309
546
  type: "dnd" | "view";
547
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
310
548
  cameras: {
311
- name: string;
549
+ cameraId: string;
312
550
  index: number;
313
551
  }[];
314
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
315
552
  _id?: string | undefined;
316
553
  }[];
317
554
  };
318
555
  }>>;
319
556
  }, "strict", zod.ZodTypeAny, {
320
557
  password: string;
321
- username: string;
322
558
  _id: string;
323
- sessionTimer: number;
559
+ username: string;
560
+ passwordConfirm: string;
324
561
  role: "user" | "admin";
562
+ sessionTimer: number;
325
563
  rememberMe: boolean;
326
564
  oneLogin: boolean;
327
565
  firstLogin: boolean;
328
566
  preferences: {
567
+ cameras: Record<string, {
568
+ shortcuts: {
569
+ cameraId: string;
570
+ _id: string;
571
+ coords: {
572
+ _id: string;
573
+ points: [number, number];
574
+ };
575
+ }[];
576
+ }>;
329
577
  camview: {
330
578
  views: {
331
579
  name: string;
332
580
  type: "dnd" | "view";
333
581
  _id: string;
582
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
334
583
  cameras: {
335
- name: string;
584
+ cameraId: string;
336
585
  index: number;
337
586
  }[];
338
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
339
587
  }[];
340
588
  };
341
589
  };
342
- passwordConfirm: string;
343
590
  }, {
344
591
  password: string;
345
592
  username: string;
346
- role: "user" | "admin";
347
593
  passwordConfirm: string;
594
+ role: "user" | "admin";
348
595
  _id?: string | undefined;
349
596
  sessionTimer?: number | undefined;
350
597
  rememberMe?: boolean | undefined;
351
598
  oneLogin?: boolean | undefined;
352
599
  firstLogin?: boolean | undefined;
353
600
  preferences?: {
601
+ cameras: Record<string, {
602
+ shortcuts: {
603
+ cameraId: string;
604
+ coords: {
605
+ points: [number, number];
606
+ _id?: string | undefined;
607
+ };
608
+ _id?: string | undefined;
609
+ }[];
610
+ }>;
354
611
  camview: {
355
612
  views: {
356
613
  name: string;
357
614
  type: "dnd" | "view";
615
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
358
616
  cameras: {
359
- name: string;
617
+ cameraId: string;
360
618
  index: number;
361
619
  }[];
362
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
363
620
  _id?: string | undefined;
364
621
  }[];
365
622
  };
366
623
  } | undefined;
367
624
  }>, {
368
625
  password: string;
369
- username: string;
370
626
  _id: string;
371
- sessionTimer: number;
627
+ username: string;
628
+ passwordConfirm: string;
372
629
  role: "user" | "admin";
630
+ sessionTimer: number;
373
631
  rememberMe: boolean;
374
632
  oneLogin: boolean;
375
633
  firstLogin: boolean;
376
634
  preferences: {
635
+ cameras: Record<string, {
636
+ shortcuts: {
637
+ cameraId: string;
638
+ _id: string;
639
+ coords: {
640
+ _id: string;
641
+ points: [number, number];
642
+ };
643
+ }[];
644
+ }>;
377
645
  camview: {
378
646
  views: {
379
647
  name: string;
380
648
  type: "dnd" | "view";
381
649
  _id: string;
650
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
382
651
  cameras: {
383
- name: string;
652
+ cameraId: string;
384
653
  index: number;
385
654
  }[];
386
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
387
655
  }[];
388
656
  };
389
657
  };
390
- passwordConfirm: string;
391
658
  }, {
392
659
  password: string;
393
660
  username: string;
394
- role: "user" | "admin";
395
661
  passwordConfirm: string;
662
+ role: "user" | "admin";
396
663
  _id?: string | undefined;
397
664
  sessionTimer?: number | undefined;
398
665
  rememberMe?: boolean | undefined;
399
666
  oneLogin?: boolean | undefined;
400
667
  firstLogin?: boolean | undefined;
401
668
  preferences?: {
669
+ cameras: Record<string, {
670
+ shortcuts: {
671
+ cameraId: string;
672
+ coords: {
673
+ points: [number, number];
674
+ _id?: string | undefined;
675
+ };
676
+ _id?: string | undefined;
677
+ }[];
678
+ }>;
402
679
  camview: {
403
680
  views: {
404
681
  name: string;
405
682
  type: "dnd" | "view";
683
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
406
684
  cameras: {
407
- name: string;
685
+ cameraId: string;
408
686
  index: number;
409
687
  }[];
410
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
411
688
  _id?: string | undefined;
412
689
  }[];
413
690
  };
@@ -443,12 +720,12 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
443
720
  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>]>;
444
721
  cameras: zod.ZodArray<zod.ZodObject<{
445
722
  index: zod.ZodNumber;
446
- name: zod.ZodString;
723
+ cameraId: zod.ZodString;
447
724
  }, "strip", zod.ZodTypeAny, {
448
- name: string;
725
+ cameraId: string;
449
726
  index: number;
450
727
  }, {
451
- name: string;
728
+ cameraId: string;
452
729
  index: number;
453
730
  }>, "many">;
454
731
  type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
@@ -456,19 +733,19 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
456
733
  name: string;
457
734
  type: "dnd" | "view";
458
735
  _id: string;
736
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
459
737
  cameras: {
460
- name: string;
738
+ cameraId: string;
461
739
  index: number;
462
740
  }[];
463
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
464
741
  }, {
465
742
  name: string;
466
743
  type: "dnd" | "view";
744
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
467
745
  cameras: {
468
- name: string;
746
+ cameraId: string;
469
747
  index: number;
470
748
  }[];
471
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
472
749
  _id?: string | undefined;
473
750
  }>, "many">;
474
751
  }, "strip", zod.ZodTypeAny, {
@@ -476,146 +753,256 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
476
753
  name: string;
477
754
  type: "dnd" | "view";
478
755
  _id: string;
756
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
479
757
  cameras: {
480
- name: string;
758
+ cameraId: string;
481
759
  index: number;
482
760
  }[];
483
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
484
761
  }[];
485
762
  }, {
486
763
  views: {
487
764
  name: string;
488
765
  type: "dnd" | "view";
766
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
489
767
  cameras: {
490
- name: string;
768
+ cameraId: string;
491
769
  index: number;
492
770
  }[];
493
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
494
771
  _id?: string | undefined;
495
772
  }[];
496
773
  }>>;
774
+ cameras: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
775
+ shortcuts: zod.ZodArray<zod.ZodObject<{
776
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
777
+ cameraId: zod.ZodString;
778
+ coords: zod.ZodObject<{
779
+ _id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
780
+ points: zod.ZodTuple<[zod.ZodNumber, zod.ZodNumber], null>;
781
+ }, "strip", zod.ZodTypeAny, {
782
+ _id: string;
783
+ points: [number, number];
784
+ }, {
785
+ points: [number, number];
786
+ _id?: string | undefined;
787
+ }>;
788
+ }, "strip", zod.ZodTypeAny, {
789
+ cameraId: string;
790
+ _id: string;
791
+ coords: {
792
+ _id: string;
793
+ points: [number, number];
794
+ };
795
+ }, {
796
+ cameraId: string;
797
+ coords: {
798
+ points: [number, number];
799
+ _id?: string | undefined;
800
+ };
801
+ _id?: string | undefined;
802
+ }>, "many">;
803
+ }, "strip", zod.ZodTypeAny, {
804
+ shortcuts: {
805
+ cameraId: string;
806
+ _id: string;
807
+ coords: {
808
+ _id: string;
809
+ points: [number, number];
810
+ };
811
+ }[];
812
+ }, {
813
+ shortcuts: {
814
+ cameraId: string;
815
+ coords: {
816
+ points: [number, number];
817
+ _id?: string | undefined;
818
+ };
819
+ _id?: string | undefined;
820
+ }[];
821
+ }>>>;
497
822
  }, "strip", zod.ZodTypeAny, {
823
+ cameras?: Record<string, {
824
+ shortcuts: {
825
+ cameraId: string;
826
+ _id: string;
827
+ coords: {
828
+ _id: string;
829
+ points: [number, number];
830
+ };
831
+ }[];
832
+ }> | undefined;
498
833
  camview?: {
499
834
  views: {
500
835
  name: string;
501
836
  type: "dnd" | "view";
502
837
  _id: string;
838
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
503
839
  cameras: {
504
- name: string;
840
+ cameraId: string;
505
841
  index: number;
506
842
  }[];
507
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
508
843
  }[];
509
844
  } | undefined;
510
845
  }, {
846
+ cameras?: Record<string, {
847
+ shortcuts: {
848
+ cameraId: string;
849
+ coords: {
850
+ points: [number, number];
851
+ _id?: string | undefined;
852
+ };
853
+ _id?: string | undefined;
854
+ }[];
855
+ }> | undefined;
511
856
  camview?: {
512
857
  views: {
513
858
  name: string;
514
859
  type: "dnd" | "view";
860
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
515
861
  cameras: {
516
- name: string;
862
+ cameraId: string;
517
863
  index: number;
518
864
  }[];
519
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
520
865
  _id?: string | undefined;
521
866
  }[];
522
867
  } | undefined;
523
868
  }>>;
524
869
  }, "strict", zod.ZodTypeAny, {
525
870
  password?: string | undefined;
526
- sessionTimer?: number | undefined;
871
+ upload?: MultipartFile | File | undefined;
872
+ passwordConfirm?: string | undefined;
527
873
  role?: "user" | "admin" | undefined;
874
+ sessionTimer?: number | undefined;
528
875
  rememberMe?: boolean | undefined;
529
876
  oneLogin?: boolean | undefined;
530
877
  firstLogin?: boolean | undefined;
531
878
  preferences?: {
879
+ cameras?: Record<string, {
880
+ shortcuts: {
881
+ cameraId: string;
882
+ _id: string;
883
+ coords: {
884
+ _id: string;
885
+ points: [number, number];
886
+ };
887
+ }[];
888
+ }> | undefined;
532
889
  camview?: {
533
890
  views: {
534
891
  name: string;
535
892
  type: "dnd" | "view";
536
893
  _id: string;
894
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
537
895
  cameras: {
538
- name: string;
896
+ cameraId: string;
539
897
  index: number;
540
898
  }[];
541
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
542
899
  }[];
543
900
  } | undefined;
544
901
  } | undefined;
545
- passwordConfirm?: string | undefined;
546
- upload?: MultipartFile | File | undefined;
547
902
  }, {
548
903
  password?: string | undefined;
549
- sessionTimer?: number | undefined;
904
+ upload?: MultipartFile | File | undefined;
905
+ passwordConfirm?: string | undefined;
550
906
  role?: "user" | "admin" | undefined;
907
+ sessionTimer?: number | undefined;
551
908
  rememberMe?: boolean | undefined;
552
909
  oneLogin?: boolean | undefined;
553
910
  firstLogin?: boolean | undefined;
554
911
  preferences?: {
912
+ cameras?: Record<string, {
913
+ shortcuts: {
914
+ cameraId: string;
915
+ coords: {
916
+ points: [number, number];
917
+ _id?: string | undefined;
918
+ };
919
+ _id?: string | undefined;
920
+ }[];
921
+ }> | undefined;
555
922
  camview?: {
556
923
  views: {
557
924
  name: string;
558
925
  type: "dnd" | "view";
926
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
559
927
  cameras: {
560
- name: string;
928
+ cameraId: string;
561
929
  index: number;
562
930
  }[];
563
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
564
931
  _id?: string | undefined;
565
932
  }[];
566
933
  } | undefined;
567
934
  } | undefined;
568
- passwordConfirm?: string | undefined;
569
- upload?: MultipartFile | File | undefined;
570
935
  }>, {
571
936
  password?: string | undefined;
572
- sessionTimer?: number | undefined;
937
+ upload?: MultipartFile | File | undefined;
938
+ passwordConfirm?: string | undefined;
573
939
  role?: "user" | "admin" | undefined;
940
+ sessionTimer?: number | undefined;
574
941
  rememberMe?: boolean | undefined;
575
942
  oneLogin?: boolean | undefined;
576
943
  firstLogin?: boolean | undefined;
577
944
  preferences?: {
945
+ cameras?: Record<string, {
946
+ shortcuts: {
947
+ cameraId: string;
948
+ _id: string;
949
+ coords: {
950
+ _id: string;
951
+ points: [number, number];
952
+ };
953
+ }[];
954
+ }> | undefined;
578
955
  camview?: {
579
956
  views: {
580
957
  name: string;
581
958
  type: "dnd" | "view";
582
959
  _id: string;
960
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
583
961
  cameras: {
584
- name: string;
962
+ cameraId: string;
585
963
  index: number;
586
964
  }[];
587
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
588
965
  }[];
589
966
  } | undefined;
590
967
  } | undefined;
591
- passwordConfirm?: string | undefined;
592
- upload?: MultipartFile | File | undefined;
593
968
  }, {
594
969
  password?: string | undefined;
595
- sessionTimer?: number | undefined;
970
+ upload?: MultipartFile | File | undefined;
971
+ passwordConfirm?: string | undefined;
596
972
  role?: "user" | "admin" | undefined;
973
+ sessionTimer?: number | undefined;
597
974
  rememberMe?: boolean | undefined;
598
975
  oneLogin?: boolean | undefined;
599
976
  firstLogin?: boolean | undefined;
600
977
  preferences?: {
978
+ cameras?: Record<string, {
979
+ shortcuts: {
980
+ cameraId: string;
981
+ coords: {
982
+ points: [number, number];
983
+ _id?: string | undefined;
984
+ };
985
+ _id?: string | undefined;
986
+ }[];
987
+ }> | undefined;
601
988
  camview?: {
602
989
  views: {
603
990
  name: string;
604
991
  type: "dnd" | "view";
992
+ viewSize: 1 | 4 | 6 | 7 | 20 | 12 | 10 | 9 | 13 | 15 | 16 | 26;
605
993
  cameras: {
606
- name: string;
994
+ cameraId: string;
607
995
  index: number;
608
996
  }[];
609
- viewSize: 1 | 4 | 6 | 7 | 10 | 20 | 9 | 12 | 13 | 15 | 16 | 26;
610
997
  _id?: string | undefined;
611
998
  }[];
612
999
  } | undefined;
613
1000
  } | undefined;
614
- passwordConfirm?: string | undefined;
615
- upload?: MultipartFile | File | undefined;
616
1001
  }>;
617
1002
  export type CreateUserInput = zod.TypeOf<typeof createUserSchema>;
618
1003
  export type LoginUserInput = zod.TypeOf<typeof loginUserSchema>;
619
1004
  export type PatchUserInput = zod.TypeOf<typeof patchUserSchema>;
620
1005
  export type CreateViewInput = zod.TypeOf<typeof userPreferencesCamviewViewsLayout>;
621
- export type PatchViewInput = zod.TypeOf<typeof patchUPreferencesCamviewViewsLayout>;
1006
+ export type PatchViewInput = zod.TypeOf<typeof patchPreferencesCamviewViewsLayout>;
1007
+ export type CreateShortcutInput = zod.TypeOf<typeof userPreferencesCameraShortcutLayout>;
1008
+ export type PatchShortcutInput = zod.TypeOf<typeof patchPreferencesCameraShortcutLayout>;