@awarevue/api-types 1.0.108 → 1.0.109
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.
- package/dist/access-control/person-presence.d.ts +4 -4
- package/dist/agent-communication/protocol.d.ts +49 -28
- package/dist/agent-communication/queries.d.ts +6 -6
- package/dist/bookmarks.d.ts +10 -10
- package/dist/device/alarm.d.ts +317 -54
- package/dist/device/alarm.js +59 -1
- package/dist/device/any-device.d.ts +39 -0
- package/dist/device/camera-lift.d.ts +44 -8
- package/dist/device/camera-lift.js +14 -1
- package/dist/device/camera.d.ts +449 -40
- package/dist/device/camera.js +89 -1
- package/dist/device/display.d.ts +416 -9
- package/dist/device/display.js +34 -1
- package/dist/device/door.d.ts +102 -17
- package/dist/device/door.js +30 -2
- package/dist/device/intercom-terminal.d.ts +2 -2
- package/dist/device/io-board.d.ts +49 -3
- package/dist/device/io-board.js +12 -1
- package/dist/device/pbx.d.ts +69 -5
- package/dist/device/pbx.js +14 -1
- package/dist/device/presence-tracker.d.ts +164 -21
- package/dist/device/presence-tracker.js +32 -3
- package/dist/device/server.d.ts +44 -7
- package/dist/device/server.js +13 -1
- package/dist/device-command.d.ts +741 -0
- package/dist/device-command.js +19 -1
- package/dist/device-event.d.ts +20 -20
- package/dist/device-import.d.ts +76 -0
- package/dist/macros.d.ts +14 -14
- package/dist/messages/device-communication.d.ts +10 -10
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +9 -0
- package/dist/primitives.js +13 -0
- package/package.json +1 -1
|
@@ -2,15 +2,51 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const CAMERA_LIFT: "camera-lift";
|
|
3
3
|
export declare const sCameraLiftSpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4
4
|
export type CameraLiftSpecs = z.infer<typeof sCameraLiftSpecs>;
|
|
5
|
-
export
|
|
6
|
-
command:
|
|
7
|
-
params:
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
command:
|
|
11
|
-
|
|
12
|
-
}
|
|
5
|
+
export declare const sCameraLiftRaiseCommand: z.ZodObject<{
|
|
6
|
+
command: z.ZodLiteral<"camera-lift.raise">;
|
|
7
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
params: {};
|
|
10
|
+
command: "camera-lift.raise";
|
|
11
|
+
}, {
|
|
12
|
+
params: {};
|
|
13
|
+
command: "camera-lift.raise";
|
|
14
|
+
}>;
|
|
15
|
+
export type CameraLiftRaiseCommand = z.infer<typeof sCameraLiftRaiseCommand>;
|
|
16
|
+
export declare const sCameraLiftLowerCommand: z.ZodObject<{
|
|
17
|
+
command: z.ZodLiteral<"camera-lift.lower">;
|
|
18
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
params: {};
|
|
21
|
+
command: "camera-lift.lower";
|
|
22
|
+
}, {
|
|
23
|
+
params: {};
|
|
24
|
+
command: "camera-lift.lower";
|
|
25
|
+
}>;
|
|
26
|
+
export type CameraLiftLowerCommand = z.infer<typeof sCameraLiftLowerCommand>;
|
|
13
27
|
export type CameraLiftCommand = CameraLiftRaiseCommand | CameraLiftLowerCommand;
|
|
28
|
+
export declare const cameraLiftCommands: {
|
|
29
|
+
readonly 'camera-lift.raise': z.ZodObject<{
|
|
30
|
+
command: z.ZodLiteral<"camera-lift.raise">;
|
|
31
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
params: {};
|
|
34
|
+
command: "camera-lift.raise";
|
|
35
|
+
}, {
|
|
36
|
+
params: {};
|
|
37
|
+
command: "camera-lift.raise";
|
|
38
|
+
}>;
|
|
39
|
+
readonly 'camera-lift.lower': z.ZodObject<{
|
|
40
|
+
command: z.ZodLiteral<"camera-lift.lower">;
|
|
41
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
params: {};
|
|
44
|
+
command: "camera-lift.lower";
|
|
45
|
+
}, {
|
|
46
|
+
params: {};
|
|
47
|
+
command: "camera-lift.lower";
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
14
50
|
export interface CameraLiftStateDto {
|
|
15
51
|
raised: boolean;
|
|
16
52
|
connected: boolean;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sCameraLiftSpecs = exports.CAMERA_LIFT = void 0;
|
|
3
|
+
exports.cameraLiftCommands = exports.sCameraLiftLowerCommand = exports.sCameraLiftRaiseCommand = exports.sCameraLiftSpecs = exports.CAMERA_LIFT = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.CAMERA_LIFT = 'camera-lift';
|
|
6
6
|
// SPECS
|
|
7
7
|
exports.sCameraLiftSpecs = zod_1.z.object({});
|
|
8
|
+
// COMMANDS
|
|
9
|
+
exports.sCameraLiftRaiseCommand = zod_1.z.object({
|
|
10
|
+
command: zod_1.z.literal('camera-lift.raise'),
|
|
11
|
+
params: zod_1.z.object({}),
|
|
12
|
+
});
|
|
13
|
+
exports.sCameraLiftLowerCommand = zod_1.z.object({
|
|
14
|
+
command: zod_1.z.literal('camera-lift.lower'),
|
|
15
|
+
params: zod_1.z.object({}),
|
|
16
|
+
});
|
|
17
|
+
exports.cameraLiftCommands = {
|
|
18
|
+
'camera-lift.raise': exports.sCameraLiftRaiseCommand,
|
|
19
|
+
'camera-lift.lower': exports.sCameraLiftLowerCommand,
|
|
20
|
+
};
|
package/dist/device/camera.d.ts
CHANGED
|
@@ -105,68 +105,477 @@ export declare const sCameraPresetInfo: z.ZodObject<{
|
|
|
105
105
|
values?: unknown;
|
|
106
106
|
}>;
|
|
107
107
|
export type CameraPresetInfo = z.infer<typeof sCameraPresetInfo>;
|
|
108
|
-
export
|
|
109
|
-
command:
|
|
108
|
+
export declare const sCameraPresetSaveCommand: z.ZodObject<{
|
|
109
|
+
command: z.ZodLiteral<"camera.preset-save">;
|
|
110
|
+
params: z.ZodObject<{
|
|
111
|
+
presetId: z.ZodString;
|
|
112
|
+
presetInfo: z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
isDefault: z.ZodBoolean;
|
|
115
|
+
values: z.ZodUnknown;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
name: string;
|
|
118
|
+
isDefault: boolean;
|
|
119
|
+
values?: unknown;
|
|
120
|
+
}, {
|
|
121
|
+
name: string;
|
|
122
|
+
isDefault: boolean;
|
|
123
|
+
values?: unknown;
|
|
124
|
+
}>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
presetId: string;
|
|
127
|
+
presetInfo: {
|
|
128
|
+
name: string;
|
|
129
|
+
isDefault: boolean;
|
|
130
|
+
values?: unknown;
|
|
131
|
+
};
|
|
132
|
+
}, {
|
|
133
|
+
presetId: string;
|
|
134
|
+
presetInfo: {
|
|
135
|
+
name: string;
|
|
136
|
+
isDefault: boolean;
|
|
137
|
+
values?: unknown;
|
|
138
|
+
};
|
|
139
|
+
}>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
141
|
params: {
|
|
111
142
|
presetId: string;
|
|
112
|
-
presetInfo:
|
|
143
|
+
presetInfo: {
|
|
144
|
+
name: string;
|
|
145
|
+
isDefault: boolean;
|
|
146
|
+
values?: unknown;
|
|
147
|
+
};
|
|
113
148
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
command: 'camera.preset-activate';
|
|
149
|
+
command: "camera.preset-save";
|
|
150
|
+
}, {
|
|
117
151
|
params: {
|
|
118
152
|
presetId: string;
|
|
153
|
+
presetInfo: {
|
|
154
|
+
name: string;
|
|
155
|
+
isDefault: boolean;
|
|
156
|
+
values?: unknown;
|
|
157
|
+
};
|
|
119
158
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
159
|
+
command: "camera.preset-save";
|
|
160
|
+
}>;
|
|
161
|
+
export type CameraPresetSaveCommand = z.infer<typeof sCameraPresetSaveCommand>;
|
|
162
|
+
export declare const sCameraPresetActivateCommand: z.ZodObject<{
|
|
163
|
+
command: z.ZodLiteral<"camera.preset-activate">;
|
|
164
|
+
params: z.ZodObject<{
|
|
165
|
+
presetId: z.ZodString;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
presetId: string;
|
|
168
|
+
}, {
|
|
169
|
+
presetId: string;
|
|
170
|
+
}>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
params: {
|
|
173
|
+
presetId: string;
|
|
174
|
+
};
|
|
175
|
+
command: "camera.preset-activate";
|
|
176
|
+
}, {
|
|
177
|
+
params: {
|
|
178
|
+
presetId: string;
|
|
179
|
+
};
|
|
180
|
+
command: "camera.preset-activate";
|
|
181
|
+
}>;
|
|
182
|
+
export type CameraPresetActivateCommand = z.infer<typeof sCameraPresetActivateCommand>;
|
|
183
|
+
export declare const sCameraPresetDeleteCommand: z.ZodObject<{
|
|
184
|
+
command: z.ZodLiteral<"camera.preset-delete">;
|
|
185
|
+
params: z.ZodObject<{
|
|
186
|
+
presetId: z.ZodString;
|
|
187
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
presetId: string;
|
|
190
|
+
assignedRef: string | null;
|
|
191
|
+
}, {
|
|
192
|
+
presetId: string;
|
|
193
|
+
assignedRef: string | null;
|
|
194
|
+
}>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
196
|
params: {
|
|
124
197
|
presetId: string;
|
|
125
198
|
assignedRef: string | null;
|
|
126
199
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
command: 'camera.ptz-set';
|
|
200
|
+
command: "camera.preset-delete";
|
|
201
|
+
}, {
|
|
130
202
|
params: {
|
|
203
|
+
presetId: string;
|
|
204
|
+
assignedRef: string | null;
|
|
205
|
+
};
|
|
206
|
+
command: "camera.preset-delete";
|
|
207
|
+
}>;
|
|
208
|
+
export type CameraPresetDeleteCommand = z.infer<typeof sCameraPresetDeleteCommand>;
|
|
209
|
+
export declare const sCameraPtzSetCommand: z.ZodObject<{
|
|
210
|
+
command: z.ZodLiteral<"camera.ptz-set">;
|
|
211
|
+
params: z.ZodObject<{
|
|
212
|
+
pan: z.ZodNumber;
|
|
213
|
+
tilt: z.ZodNumber;
|
|
214
|
+
zoom: z.ZodNumber;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
216
|
pan: number;
|
|
217
|
+
zoom: number;
|
|
132
218
|
tilt: number;
|
|
219
|
+
}, {
|
|
220
|
+
pan: number;
|
|
221
|
+
zoom: number;
|
|
222
|
+
tilt: number;
|
|
223
|
+
}>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
params: {
|
|
226
|
+
pan: number;
|
|
133
227
|
zoom: number;
|
|
228
|
+
tilt: number;
|
|
134
229
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
command: 'camera.ptz-move';
|
|
230
|
+
command: "camera.ptz-set";
|
|
231
|
+
}, {
|
|
138
232
|
params: {
|
|
139
|
-
|
|
233
|
+
pan: number;
|
|
234
|
+
zoom: number;
|
|
235
|
+
tilt: number;
|
|
140
236
|
};
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
237
|
+
command: "camera.ptz-set";
|
|
238
|
+
}>;
|
|
239
|
+
export type CameraPtzSetCommand = z.infer<typeof sCameraPtzSetCommand>;
|
|
240
|
+
export declare const sPtzDirection: z.ZodEnum<["Up", "Down", "Left", "Right", "ZoomIn", "ZoomOut", "UpLeft", "UpRight", "DownLeft", "DownRight"]>;
|
|
241
|
+
export type PtzDirection = z.infer<typeof sPtzDirection>;
|
|
242
|
+
export declare const sCameraPtzMoveCommand: z.ZodObject<{
|
|
243
|
+
command: z.ZodLiteral<"camera.ptz-move">;
|
|
244
|
+
params: z.ZodObject<{
|
|
245
|
+
direction: z.ZodEnum<["Up", "Down", "Left", "Right", "ZoomIn", "ZoomOut", "UpLeft", "UpRight", "DownLeft", "DownRight"]>;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
248
|
+
}, {
|
|
249
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
250
|
+
}>;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
252
|
params: {
|
|
253
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
254
|
+
};
|
|
255
|
+
command: "camera.ptz-move";
|
|
256
|
+
}, {
|
|
257
|
+
params: {
|
|
258
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
259
|
+
};
|
|
260
|
+
command: "camera.ptz-move";
|
|
261
|
+
}>;
|
|
262
|
+
export type CameraPtzMoveCommand = z.infer<typeof sCameraPtzMoveCommand>;
|
|
263
|
+
export declare const sCameraPtzBeginMoveCommand: z.ZodObject<{
|
|
264
|
+
command: z.ZodLiteral<"camera.ptz-begin-move">;
|
|
265
|
+
params: z.ZodObject<{
|
|
266
|
+
pan: z.ZodNumber;
|
|
267
|
+
tilt: z.ZodNumber;
|
|
268
|
+
zoom: z.ZodNumber;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
270
|
pan: number;
|
|
271
|
+
zoom: number;
|
|
146
272
|
tilt: number;
|
|
273
|
+
}, {
|
|
274
|
+
pan: number;
|
|
147
275
|
zoom: number;
|
|
276
|
+
tilt: number;
|
|
277
|
+
}>;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
params: {
|
|
280
|
+
pan: number;
|
|
281
|
+
zoom: number;
|
|
282
|
+
tilt: number;
|
|
148
283
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
export
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
command:
|
|
168
|
-
|
|
169
|
-
|
|
284
|
+
command: "camera.ptz-begin-move";
|
|
285
|
+
}, {
|
|
286
|
+
params: {
|
|
287
|
+
pan: number;
|
|
288
|
+
zoom: number;
|
|
289
|
+
tilt: number;
|
|
290
|
+
};
|
|
291
|
+
command: "camera.ptz-begin-move";
|
|
292
|
+
}>;
|
|
293
|
+
export type CameraPtzBeginMoveCommand = z.infer<typeof sCameraPtzBeginMoveCommand>;
|
|
294
|
+
export declare const sCameraPtzEndMoveCommand: z.ZodObject<{
|
|
295
|
+
command: z.ZodLiteral<"camera.ptz-end-move">;
|
|
296
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
params: {};
|
|
299
|
+
command: "camera.ptz-end-move";
|
|
300
|
+
}, {
|
|
301
|
+
params: {};
|
|
302
|
+
command: "camera.ptz-end-move";
|
|
303
|
+
}>;
|
|
304
|
+
export type CameraPtzEndMoveCommand = z.infer<typeof sCameraPtzEndMoveCommand>;
|
|
305
|
+
export declare const sCameraEnableCommand: z.ZodObject<{
|
|
306
|
+
command: z.ZodLiteral<"camera.enable">;
|
|
307
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
params: {};
|
|
310
|
+
command: "camera.enable";
|
|
311
|
+
}, {
|
|
312
|
+
params: {};
|
|
313
|
+
command: "camera.enable";
|
|
314
|
+
}>;
|
|
315
|
+
export type CameraEnableCommand = z.infer<typeof sCameraEnableCommand>;
|
|
316
|
+
export declare const sCameraDisableCommand: z.ZodObject<{
|
|
317
|
+
command: z.ZodLiteral<"camera.disable">;
|
|
318
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
params: {};
|
|
321
|
+
command: "camera.disable";
|
|
322
|
+
}, {
|
|
323
|
+
params: {};
|
|
324
|
+
command: "camera.disable";
|
|
325
|
+
}>;
|
|
326
|
+
export type CameraDisableCommand = z.infer<typeof sCameraDisableCommand>;
|
|
327
|
+
export declare const sCameraEnableDetectionCommand: z.ZodObject<{
|
|
328
|
+
command: z.ZodLiteral<"camera.enable-detection">;
|
|
329
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
params: {};
|
|
332
|
+
command: "camera.enable-detection";
|
|
333
|
+
}, {
|
|
334
|
+
params: {};
|
|
335
|
+
command: "camera.enable-detection";
|
|
336
|
+
}>;
|
|
337
|
+
export type CameraEnableDetectionCommand = z.infer<typeof sCameraEnableDetectionCommand>;
|
|
338
|
+
export declare const sCameraDisableDetectionCommand: z.ZodObject<{
|
|
339
|
+
command: z.ZodLiteral<"camera.disable-detection">;
|
|
340
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
params: {};
|
|
343
|
+
command: "camera.disable-detection";
|
|
344
|
+
}, {
|
|
345
|
+
params: {};
|
|
346
|
+
command: "camera.disable-detection";
|
|
347
|
+
}>;
|
|
348
|
+
export type CameraDisableDetectionCommand = z.infer<typeof sCameraDisableDetectionCommand>;
|
|
349
|
+
export declare const cameraCommands: {
|
|
350
|
+
readonly 'camera.ptz-set': z.ZodObject<{
|
|
351
|
+
command: z.ZodLiteral<"camera.ptz-set">;
|
|
352
|
+
params: z.ZodObject<{
|
|
353
|
+
pan: z.ZodNumber;
|
|
354
|
+
tilt: z.ZodNumber;
|
|
355
|
+
zoom: z.ZodNumber;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
pan: number;
|
|
358
|
+
zoom: number;
|
|
359
|
+
tilt: number;
|
|
360
|
+
}, {
|
|
361
|
+
pan: number;
|
|
362
|
+
zoom: number;
|
|
363
|
+
tilt: number;
|
|
364
|
+
}>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
params: {
|
|
367
|
+
pan: number;
|
|
368
|
+
zoom: number;
|
|
369
|
+
tilt: number;
|
|
370
|
+
};
|
|
371
|
+
command: "camera.ptz-set";
|
|
372
|
+
}, {
|
|
373
|
+
params: {
|
|
374
|
+
pan: number;
|
|
375
|
+
zoom: number;
|
|
376
|
+
tilt: number;
|
|
377
|
+
};
|
|
378
|
+
command: "camera.ptz-set";
|
|
379
|
+
}>;
|
|
380
|
+
readonly 'camera.ptz-move': z.ZodObject<{
|
|
381
|
+
command: z.ZodLiteral<"camera.ptz-move">;
|
|
382
|
+
params: z.ZodObject<{
|
|
383
|
+
direction: z.ZodEnum<["Up", "Down", "Left", "Right", "ZoomIn", "ZoomOut", "UpLeft", "UpRight", "DownLeft", "DownRight"]>;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
386
|
+
}, {
|
|
387
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
388
|
+
}>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
params: {
|
|
391
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
392
|
+
};
|
|
393
|
+
command: "camera.ptz-move";
|
|
394
|
+
}, {
|
|
395
|
+
params: {
|
|
396
|
+
direction: "Up" | "Down" | "Left" | "Right" | "ZoomIn" | "ZoomOut" | "UpLeft" | "UpRight" | "DownLeft" | "DownRight";
|
|
397
|
+
};
|
|
398
|
+
command: "camera.ptz-move";
|
|
399
|
+
}>;
|
|
400
|
+
readonly 'camera.enable': z.ZodObject<{
|
|
401
|
+
command: z.ZodLiteral<"camera.enable">;
|
|
402
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
403
|
+
}, "strip", z.ZodTypeAny, {
|
|
404
|
+
params: {};
|
|
405
|
+
command: "camera.enable";
|
|
406
|
+
}, {
|
|
407
|
+
params: {};
|
|
408
|
+
command: "camera.enable";
|
|
409
|
+
}>;
|
|
410
|
+
readonly 'camera.disable': z.ZodObject<{
|
|
411
|
+
command: z.ZodLiteral<"camera.disable">;
|
|
412
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
params: {};
|
|
415
|
+
command: "camera.disable";
|
|
416
|
+
}, {
|
|
417
|
+
params: {};
|
|
418
|
+
command: "camera.disable";
|
|
419
|
+
}>;
|
|
420
|
+
readonly 'camera.preset-save': z.ZodObject<{
|
|
421
|
+
command: z.ZodLiteral<"camera.preset-save">;
|
|
422
|
+
params: z.ZodObject<{
|
|
423
|
+
presetId: z.ZodString;
|
|
424
|
+
presetInfo: z.ZodObject<{
|
|
425
|
+
name: z.ZodString;
|
|
426
|
+
isDefault: z.ZodBoolean;
|
|
427
|
+
values: z.ZodUnknown;
|
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
name: string;
|
|
430
|
+
isDefault: boolean;
|
|
431
|
+
values?: unknown;
|
|
432
|
+
}, {
|
|
433
|
+
name: string;
|
|
434
|
+
isDefault: boolean;
|
|
435
|
+
values?: unknown;
|
|
436
|
+
}>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
presetId: string;
|
|
439
|
+
presetInfo: {
|
|
440
|
+
name: string;
|
|
441
|
+
isDefault: boolean;
|
|
442
|
+
values?: unknown;
|
|
443
|
+
};
|
|
444
|
+
}, {
|
|
445
|
+
presetId: string;
|
|
446
|
+
presetInfo: {
|
|
447
|
+
name: string;
|
|
448
|
+
isDefault: boolean;
|
|
449
|
+
values?: unknown;
|
|
450
|
+
};
|
|
451
|
+
}>;
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
453
|
+
params: {
|
|
454
|
+
presetId: string;
|
|
455
|
+
presetInfo: {
|
|
456
|
+
name: string;
|
|
457
|
+
isDefault: boolean;
|
|
458
|
+
values?: unknown;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
command: "camera.preset-save";
|
|
462
|
+
}, {
|
|
463
|
+
params: {
|
|
464
|
+
presetId: string;
|
|
465
|
+
presetInfo: {
|
|
466
|
+
name: string;
|
|
467
|
+
isDefault: boolean;
|
|
468
|
+
values?: unknown;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
command: "camera.preset-save";
|
|
472
|
+
}>;
|
|
473
|
+
readonly 'camera.preset-activate': z.ZodObject<{
|
|
474
|
+
command: z.ZodLiteral<"camera.preset-activate">;
|
|
475
|
+
params: z.ZodObject<{
|
|
476
|
+
presetId: z.ZodString;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
presetId: string;
|
|
479
|
+
}, {
|
|
480
|
+
presetId: string;
|
|
481
|
+
}>;
|
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
params: {
|
|
484
|
+
presetId: string;
|
|
485
|
+
};
|
|
486
|
+
command: "camera.preset-activate";
|
|
487
|
+
}, {
|
|
488
|
+
params: {
|
|
489
|
+
presetId: string;
|
|
490
|
+
};
|
|
491
|
+
command: "camera.preset-activate";
|
|
492
|
+
}>;
|
|
493
|
+
readonly 'camera.preset-delete': z.ZodObject<{
|
|
494
|
+
command: z.ZodLiteral<"camera.preset-delete">;
|
|
495
|
+
params: z.ZodObject<{
|
|
496
|
+
presetId: z.ZodString;
|
|
497
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
presetId: string;
|
|
500
|
+
assignedRef: string | null;
|
|
501
|
+
}, {
|
|
502
|
+
presetId: string;
|
|
503
|
+
assignedRef: string | null;
|
|
504
|
+
}>;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
params: {
|
|
507
|
+
presetId: string;
|
|
508
|
+
assignedRef: string | null;
|
|
509
|
+
};
|
|
510
|
+
command: "camera.preset-delete";
|
|
511
|
+
}, {
|
|
512
|
+
params: {
|
|
513
|
+
presetId: string;
|
|
514
|
+
assignedRef: string | null;
|
|
515
|
+
};
|
|
516
|
+
command: "camera.preset-delete";
|
|
517
|
+
}>;
|
|
518
|
+
readonly 'camera.ptz-begin-move': z.ZodObject<{
|
|
519
|
+
command: z.ZodLiteral<"camera.ptz-begin-move">;
|
|
520
|
+
params: z.ZodObject<{
|
|
521
|
+
pan: z.ZodNumber;
|
|
522
|
+
tilt: z.ZodNumber;
|
|
523
|
+
zoom: z.ZodNumber;
|
|
524
|
+
}, "strip", z.ZodTypeAny, {
|
|
525
|
+
pan: number;
|
|
526
|
+
zoom: number;
|
|
527
|
+
tilt: number;
|
|
528
|
+
}, {
|
|
529
|
+
pan: number;
|
|
530
|
+
zoom: number;
|
|
531
|
+
tilt: number;
|
|
532
|
+
}>;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
params: {
|
|
535
|
+
pan: number;
|
|
536
|
+
zoom: number;
|
|
537
|
+
tilt: number;
|
|
538
|
+
};
|
|
539
|
+
command: "camera.ptz-begin-move";
|
|
540
|
+
}, {
|
|
541
|
+
params: {
|
|
542
|
+
pan: number;
|
|
543
|
+
zoom: number;
|
|
544
|
+
tilt: number;
|
|
545
|
+
};
|
|
546
|
+
command: "camera.ptz-begin-move";
|
|
547
|
+
}>;
|
|
548
|
+
readonly 'camera.ptz-end-move': z.ZodObject<{
|
|
549
|
+
command: z.ZodLiteral<"camera.ptz-end-move">;
|
|
550
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
params: {};
|
|
553
|
+
command: "camera.ptz-end-move";
|
|
554
|
+
}, {
|
|
555
|
+
params: {};
|
|
556
|
+
command: "camera.ptz-end-move";
|
|
557
|
+
}>;
|
|
558
|
+
readonly 'camera.enable-detection': z.ZodObject<{
|
|
559
|
+
command: z.ZodLiteral<"camera.enable-detection">;
|
|
560
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
params: {};
|
|
563
|
+
command: "camera.enable-detection";
|
|
564
|
+
}, {
|
|
565
|
+
params: {};
|
|
566
|
+
command: "camera.enable-detection";
|
|
567
|
+
}>;
|
|
568
|
+
readonly 'camera.disable-detection': z.ZodObject<{
|
|
569
|
+
command: z.ZodLiteral<"camera.disable-detection">;
|
|
570
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
571
|
+
}, "strip", z.ZodTypeAny, {
|
|
572
|
+
params: {};
|
|
573
|
+
command: "camera.disable-detection";
|
|
574
|
+
}, {
|
|
575
|
+
params: {};
|
|
576
|
+
command: "camera.disable-detection";
|
|
577
|
+
}>;
|
|
578
|
+
};
|
|
170
579
|
export type CameraCommand = CameraPtzSetCommand | CameraPtzMoveCommand | CameraEnableCommand | CameraDisableCommand | CameraPresetSaveCommand | CameraPresetActivateCommand | CameraPresetDeleteCommand | CameraPtzBeginMoveCommand | CameraPtzEndMoveCommand | CameraEnableDetectionCommand | CameraDisableDetectionCommand;
|
|
171
580
|
export interface CameraStateDto {
|
|
172
581
|
pan: number;
|