@awarevue/api-types 2.0.12 → 2.0.14
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/access-rule.d.ts +6 -6
- package/dist/access-control/person.d.ts +6 -6
- package/dist/access-control/schedule.d.ts +2 -2
- package/dist/access-control/zone.d.ts +4 -4
- package/dist/agent-communication/index.d.ts +0 -1
- package/dist/agent-communication/index.js +0 -1
- package/dist/agent-communication/protocol.d.ts +170 -170
- package/dist/alarm-automation.d.ts +1 -1
- package/dist/api/alarm.d.ts +1 -1
- package/dist/api/media.d.ts +8 -8
- package/dist/bookmarks.d.ts +2 -2
- package/dist/cast.d.ts +2 -2
- package/dist/commands/alarm.d.ts +312 -0
- package/dist/commands/alarm.js +62 -0
- package/dist/{device-command.d.ts → commands/all.d.ts} +23 -25
- package/dist/{device-command.js → commands/all.js} +9 -9
- package/dist/commands/camera-lift.d.ts +46 -0
- package/dist/commands/camera-lift.js +17 -0
- package/dist/commands/camera.d.ts +478 -0
- package/dist/commands/camera.js +97 -0
- package/dist/commands/display.d.ts +431 -0
- package/dist/commands/display.js +37 -0
- package/dist/commands/door.d.ts +88 -0
- package/dist/commands/door.js +27 -0
- package/dist/commands/index.d.ts +12 -0
- package/dist/commands/index.js +28 -0
- package/dist/commands/intercom-terminal.d.ts +40 -0
- package/dist/{device/reader/commands.js → commands/intercom-terminal.js} +1 -0
- package/dist/commands/io-board.d.ts +55 -0
- package/dist/commands/io-board.js +15 -0
- package/dist/commands/nvr-exporter.d.ts +1262 -0
- package/dist/commands/nvr-exporter.js +26 -0
- package/dist/commands/pbx.d.ts +75 -0
- package/dist/commands/pbx.js +17 -0
- package/dist/commands/presence-tracker.d.ts +167 -0
- package/dist/commands/presence-tracker.js +33 -0
- package/dist/commands/server.d.ts +1272 -0
- package/dist/commands/server.js +27 -0
- package/dist/device/alarm.d.ts +0 -530
- package/dist/device/alarm.js +1 -110
- package/dist/device/any-device.d.ts +88 -88
- package/dist/device/camera-lift.d.ts +0 -45
- package/dist/device/camera-lift.js +1 -14
- package/dist/device/camera.d.ts +0 -1248
- package/dist/device/camera.js +1 -204
- package/dist/device/device-gateway.d.ts +0 -2
- package/dist/device/device-gateway.js +1 -0
- package/dist/device/display.d.ts +0 -438
- package/dist/device/display.js +1 -39
- package/dist/device/door.d.ts +0 -306
- package/dist/device/door.js +1 -82
- package/dist/device/index.d.ts +1 -1
- package/dist/device/index.js +1 -1
- package/dist/device/intercom-operator.js +0 -1
- package/dist/device/intercom-terminal.d.ts +0 -101
- package/dist/device/intercom-terminal.js +3 -55
- package/dist/device/io-board.d.ts +0 -84
- package/dist/device/io-board.js +1 -21
- package/dist/device/motion-sensor.js +0 -1
- package/dist/device/nvr-analytics-server.d.ts +0 -295
- package/dist/device/nvr-analytics-server.js +1 -65
- package/dist/device/nvr-exporter.d.ts +0 -1436
- package/dist/device/nvr-exporter.js +1 -72
- package/dist/device/nvr-recorder.d.ts +0 -2633
- package/dist/device/nvr-recorder.js +1 -39
- package/dist/device/panic-button.d.ts +0 -18
- package/dist/device/panic-button.js +1 -8
- package/dist/device/pbx.d.ts +0 -74
- package/dist/device/pbx.js +1 -16
- package/dist/device/presence-tracker.d.ts +0 -302
- package/dist/device/presence-tracker.js +1 -59
- package/dist/device/server.d.ts +0 -200
- package/dist/device/server.js +1 -37
- package/dist/device/system.d.ts +0 -42
- package/dist/device/system.js +1 -13
- package/dist/device-event.d.ts +1 -721
- package/dist/device-event.js +0 -110
- package/dist/device-group.d.ts +2 -2
- package/dist/device-import.d.ts +8 -8
- package/dist/events/alarm.d.ts +220 -0
- package/dist/events/alarm.js +55 -0
- package/dist/events/all.d.ts +700 -0
- package/dist/events/all.js +109 -0
- package/dist/events/camera.d.ts +661 -0
- package/dist/events/camera.js +87 -0
- package/dist/events/display.d.ts +9 -0
- package/dist/events/display.js +9 -0
- package/dist/events/door.d.ts +220 -0
- package/dist/events/door.js +62 -0
- package/dist/events/index.d.ts +12 -0
- package/dist/events/index.js +28 -0
- package/dist/events/intercom-terminal.d.ts +61 -0
- package/dist/events/intercom-terminal.js +19 -0
- package/dist/events/io-board.d.ts +31 -0
- package/dist/events/io-board.js +13 -0
- package/dist/events/nvr-exporter.d.ts +52 -0
- package/dist/events/nvr-exporter.js +21 -0
- package/dist/events/panic-button.d.ts +19 -0
- package/dist/events/panic-button.js +11 -0
- package/dist/events/presence-tracker.d.ts +136 -0
- package/dist/events/presence-tracker.js +33 -0
- package/dist/events/server.d.ts +65 -0
- package/dist/events/server.js +15 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/layout.d.ts +8 -8
- package/dist/macros.d.ts +14 -14
- package/dist/messages/device-communication.d.ts +2 -2
- package/dist/messages/notifications.d.ts +2 -2
- package/dist/messages/web-rtc-signaling.d.ts +10 -10
- package/dist/notifications.d.ts +4 -4
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +20 -2
- package/dist/primitives.js +19 -3
- package/dist/{agent-communication/queries.d.ts → queries/all.d.ts} +24 -22
- package/dist/queries/all.js +21 -0
- package/dist/queries/camera.d.ts +98 -0
- package/dist/queries/camera.js +27 -0
- package/dist/queries/index.d.ts +5 -0
- package/dist/{device/reader → queries}/index.js +5 -3
- package/dist/queries/nvr-analytics-server.d.ts +296 -0
- package/dist/queries/nvr-analytics-server.js +68 -0
- package/dist/queries/nvr-exporter.d.ts +125 -0
- package/dist/queries/nvr-exporter.js +36 -0
- package/dist/queries/nvr-recorder.d.ts +2634 -0
- package/dist/queries/nvr-recorder.js +42 -0
- package/dist/user.d.ts +4 -4
- package/package.json +1 -1
- package/dist/agent-communication/queries.js +0 -19
- package/dist/device/reader/commands.d.ts +0 -1
- package/dist/device/reader/index.d.ts +0 -3
- /package/dist/device/{reader/specs.d.ts → reader.d.ts} +0 -0
- /package/dist/device/{reader/specs.js → reader.js} +0 -0
- /package/dist/{device/reader/events.d.ts → events/reader.d.ts} +0 -0
- /package/dist/{device/reader/events.js → events/reader.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { DeviceEvent } from './
|
|
2
|
+
import { DeviceEvent } from './events';
|
|
3
3
|
import { DeviceType } from './device';
|
|
4
4
|
import { AutomationRuleBody } from './automation';
|
|
5
5
|
export declare const sAlarmBehavior: z.ZodEnum<["ignore", "trigger-always", "trigger-when-armed"]>;
|
package/dist/api/alarm.d.ts
CHANGED
package/dist/api/media.d.ts
CHANGED
|
@@ -103,11 +103,11 @@ export declare const sGetScenePreviewClipRequest: z.ZodObject<{
|
|
|
103
103
|
deviceId: z.ZodString;
|
|
104
104
|
providerAssignedRef: z.ZodString;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
providerAssignedRef: string;
|
|
107
106
|
deviceId: string;
|
|
108
|
-
}, {
|
|
109
107
|
providerAssignedRef: string;
|
|
108
|
+
}, {
|
|
110
109
|
deviceId: string;
|
|
110
|
+
providerAssignedRef: string;
|
|
111
111
|
}>;
|
|
112
112
|
export declare const sGetObjectSnapshotRequest: z.ZodObject<{
|
|
113
113
|
deviceId: z.ZodString;
|
|
@@ -117,15 +117,15 @@ export declare const sGetObjectSnapshotRequest: z.ZodObject<{
|
|
|
117
117
|
height: z.ZodOptional<z.ZodNumber>;
|
|
118
118
|
quality: z.ZodOptional<z.ZodNumber>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
providerAssignedRef: string;
|
|
121
120
|
deviceId: string;
|
|
121
|
+
providerAssignedRef: string;
|
|
122
122
|
crop: boolean;
|
|
123
123
|
boxes: boolean;
|
|
124
124
|
height?: number | undefined;
|
|
125
125
|
quality?: number | undefined;
|
|
126
126
|
}, {
|
|
127
|
-
providerAssignedRef: string;
|
|
128
127
|
deviceId: string;
|
|
128
|
+
providerAssignedRef: string;
|
|
129
129
|
crop: boolean;
|
|
130
130
|
boxes: boolean;
|
|
131
131
|
height?: number | undefined;
|
|
@@ -135,11 +135,11 @@ export declare const sGetObjectThumbnailRequest: z.ZodObject<{
|
|
|
135
135
|
deviceId: z.ZodString;
|
|
136
136
|
providerAssignedRef: z.ZodString;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
providerAssignedRef: string;
|
|
139
138
|
deviceId: string;
|
|
140
|
-
}, {
|
|
141
139
|
providerAssignedRef: string;
|
|
140
|
+
}, {
|
|
142
141
|
deviceId: string;
|
|
142
|
+
providerAssignedRef: string;
|
|
143
143
|
}>;
|
|
144
144
|
export declare const sSortOptions: z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">]>;
|
|
145
145
|
export declare const sMediaSearchQueryDto: z.ZodObject<{
|
|
@@ -155,18 +155,18 @@ export declare const sMediaSearchQueryDto: z.ZodObject<{
|
|
|
155
155
|
label?: string[] | undefined;
|
|
156
156
|
q?: string | undefined;
|
|
157
157
|
deviceId?: string[] | undefined;
|
|
158
|
-
limit?: number | undefined;
|
|
159
158
|
timeFrom?: number | undefined;
|
|
160
159
|
timeTo?: number | undefined;
|
|
160
|
+
limit?: number | undefined;
|
|
161
161
|
similarTo?: string | undefined;
|
|
162
162
|
sortBy?: "time_asc" | "time_desc" | undefined;
|
|
163
163
|
}, {
|
|
164
164
|
label?: string[] | undefined;
|
|
165
165
|
q?: string | undefined;
|
|
166
166
|
deviceId?: string[] | undefined;
|
|
167
|
-
limit?: number | undefined;
|
|
168
167
|
timeFrom?: number | undefined;
|
|
169
168
|
timeTo?: number | undefined;
|
|
169
|
+
limit?: number | undefined;
|
|
170
170
|
similarTo?: string | undefined;
|
|
171
171
|
sortBy?: "time_asc" | "time_desc" | undefined;
|
|
172
172
|
}>;
|
package/dist/bookmarks.d.ts
CHANGED
|
@@ -114,14 +114,14 @@ export declare const sBookmarkSearchCriteria: z.ZodObject<{
|
|
|
114
114
|
timeTo: z.ZodNumber;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
deviceId: string[];
|
|
117
|
+
createdBy: string[];
|
|
117
118
|
timeFrom: number;
|
|
118
119
|
timeTo: number;
|
|
119
|
-
createdBy: string[];
|
|
120
120
|
}, {
|
|
121
121
|
deviceId: string[];
|
|
122
|
+
createdBy: string[];
|
|
122
123
|
timeFrom: number;
|
|
123
124
|
timeTo: number;
|
|
124
|
-
createdBy: string[];
|
|
125
125
|
}>;
|
|
126
126
|
export type BookmarkProps = z.infer<typeof sBookmarkProps>;
|
|
127
127
|
export type CreateBookmarkRq = z.infer<typeof sCreateBookmarkRq>;
|
package/dist/cast.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export declare const sCastCamerasRequest: z.ZodArray<z.ZodObject<{
|
|
|
3
3
|
cameraId: z.ZodString;
|
|
4
4
|
streamId: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
streamId: string;
|
|
7
6
|
cameraId: string;
|
|
8
|
-
}, {
|
|
9
7
|
streamId: string;
|
|
8
|
+
}, {
|
|
10
9
|
cameraId: string;
|
|
10
|
+
streamId: string;
|
|
11
11
|
}>, "many">;
|
|
12
12
|
export type CastCamerasRequest = z.infer<typeof sCastCamerasRequest>;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sArmCommand: z.ZodObject<{
|
|
3
|
+
command: z.ZodLiteral<"alarm.arm">;
|
|
4
|
+
params: z.ZodObject<{
|
|
5
|
+
deviceId: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
deviceId: string;
|
|
8
|
+
}, {
|
|
9
|
+
deviceId: string;
|
|
10
|
+
}>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
params: {
|
|
13
|
+
deviceId: string;
|
|
14
|
+
};
|
|
15
|
+
command: "alarm.arm";
|
|
16
|
+
}, {
|
|
17
|
+
params: {
|
|
18
|
+
deviceId: string;
|
|
19
|
+
};
|
|
20
|
+
command: "alarm.arm";
|
|
21
|
+
}>;
|
|
22
|
+
export type ArmCommand = z.infer<typeof sArmCommand>;
|
|
23
|
+
export declare const sDisarmCommand: z.ZodObject<{
|
|
24
|
+
command: z.ZodLiteral<"alarm.disarm">;
|
|
25
|
+
params: z.ZodObject<{
|
|
26
|
+
deviceId: z.ZodString;
|
|
27
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
deviceId: string;
|
|
30
|
+
duration?: number | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
deviceId: string;
|
|
33
|
+
duration?: number | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
params: {
|
|
37
|
+
deviceId: string;
|
|
38
|
+
duration?: number | undefined;
|
|
39
|
+
};
|
|
40
|
+
command: "alarm.disarm";
|
|
41
|
+
}, {
|
|
42
|
+
params: {
|
|
43
|
+
deviceId: string;
|
|
44
|
+
duration?: number | undefined;
|
|
45
|
+
};
|
|
46
|
+
command: "alarm.disarm";
|
|
47
|
+
}>;
|
|
48
|
+
export type DisarmCommand = z.infer<typeof sDisarmCommand>;
|
|
49
|
+
export declare const sBypassCommand: z.ZodObject<{
|
|
50
|
+
command: z.ZodLiteral<"alarm.bypass">;
|
|
51
|
+
params: z.ZodObject<{
|
|
52
|
+
deviceId: z.ZodString;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
deviceId: string;
|
|
55
|
+
}, {
|
|
56
|
+
deviceId: string;
|
|
57
|
+
}>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
params: {
|
|
60
|
+
deviceId: string;
|
|
61
|
+
};
|
|
62
|
+
command: "alarm.bypass";
|
|
63
|
+
}, {
|
|
64
|
+
params: {
|
|
65
|
+
deviceId: string;
|
|
66
|
+
};
|
|
67
|
+
command: "alarm.bypass";
|
|
68
|
+
}>;
|
|
69
|
+
export type BypassCommand = z.infer<typeof sBypassCommand>;
|
|
70
|
+
export declare const sUnbypassCommand: z.ZodObject<{
|
|
71
|
+
command: z.ZodLiteral<"alarm.unbypass">;
|
|
72
|
+
params: z.ZodObject<{
|
|
73
|
+
deviceId: z.ZodString;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
deviceId: string;
|
|
76
|
+
}, {
|
|
77
|
+
deviceId: string;
|
|
78
|
+
}>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
params: {
|
|
81
|
+
deviceId: string;
|
|
82
|
+
};
|
|
83
|
+
command: "alarm.unbypass";
|
|
84
|
+
}, {
|
|
85
|
+
params: {
|
|
86
|
+
deviceId: string;
|
|
87
|
+
};
|
|
88
|
+
command: "alarm.unbypass";
|
|
89
|
+
}>;
|
|
90
|
+
export type UnbypassCommand = z.infer<typeof sUnbypassCommand>;
|
|
91
|
+
export declare const sArmAllCommand: z.ZodObject<{
|
|
92
|
+
command: z.ZodLiteral<"alarm.arm-all">;
|
|
93
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
params: {};
|
|
96
|
+
command: "alarm.arm-all";
|
|
97
|
+
}, {
|
|
98
|
+
params: {};
|
|
99
|
+
command: "alarm.arm-all";
|
|
100
|
+
}>;
|
|
101
|
+
export type ArmAllCommand = z.infer<typeof sArmAllCommand>;
|
|
102
|
+
export declare const sDisarmAllCommand: z.ZodObject<{
|
|
103
|
+
command: z.ZodLiteral<"alarm.disarm-all">;
|
|
104
|
+
params: z.ZodObject<{
|
|
105
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
duration?: number | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
duration?: number | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
params: {
|
|
113
|
+
duration?: number | undefined;
|
|
114
|
+
};
|
|
115
|
+
command: "alarm.disarm-all";
|
|
116
|
+
}, {
|
|
117
|
+
params: {
|
|
118
|
+
duration?: number | undefined;
|
|
119
|
+
};
|
|
120
|
+
command: "alarm.disarm-all";
|
|
121
|
+
}>;
|
|
122
|
+
export type DisarmAllCommand = z.infer<typeof sDisarmAllCommand>;
|
|
123
|
+
export declare const sAcknowledgeCommand: z.ZodObject<{
|
|
124
|
+
command: z.ZodLiteral<"alarm.acknowledge">;
|
|
125
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
params: {};
|
|
128
|
+
command: "alarm.acknowledge";
|
|
129
|
+
}, {
|
|
130
|
+
params: {};
|
|
131
|
+
command: "alarm.acknowledge";
|
|
132
|
+
}>;
|
|
133
|
+
export type AcknowledgeCommand = z.infer<typeof sAcknowledgeCommand>;
|
|
134
|
+
export declare const sSetTriggerCommand: z.ZodObject<{
|
|
135
|
+
command: z.ZodLiteral<"alarm.set-trigger">;
|
|
136
|
+
params: z.ZodObject<{
|
|
137
|
+
event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
138
|
+
onlyIfArmed: z.ZodBoolean;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
event: Record<string, unknown>;
|
|
141
|
+
onlyIfArmed: boolean;
|
|
142
|
+
}, {
|
|
143
|
+
event: Record<string, unknown>;
|
|
144
|
+
onlyIfArmed: boolean;
|
|
145
|
+
}>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
params: {
|
|
148
|
+
event: Record<string, unknown>;
|
|
149
|
+
onlyIfArmed: boolean;
|
|
150
|
+
};
|
|
151
|
+
command: "alarm.set-trigger";
|
|
152
|
+
}, {
|
|
153
|
+
params: {
|
|
154
|
+
event: Record<string, unknown>;
|
|
155
|
+
onlyIfArmed: boolean;
|
|
156
|
+
};
|
|
157
|
+
command: "alarm.set-trigger";
|
|
158
|
+
}>;
|
|
159
|
+
export type SetTriggerCommand = z.infer<typeof sSetTriggerCommand>;
|
|
160
|
+
export type AlarmCommand = ArmCommand | DisarmCommand | ArmAllCommand | DisarmAllCommand | AcknowledgeCommand | SetTriggerCommand | BypassCommand | UnbypassCommand;
|
|
161
|
+
export declare const alarmCommandSchemas: {
|
|
162
|
+
readonly 'alarm.arm': z.ZodObject<{
|
|
163
|
+
command: z.ZodLiteral<"alarm.arm">;
|
|
164
|
+
params: z.ZodObject<{
|
|
165
|
+
deviceId: z.ZodString;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
deviceId: string;
|
|
168
|
+
}, {
|
|
169
|
+
deviceId: string;
|
|
170
|
+
}>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
params: {
|
|
173
|
+
deviceId: string;
|
|
174
|
+
};
|
|
175
|
+
command: "alarm.arm";
|
|
176
|
+
}, {
|
|
177
|
+
params: {
|
|
178
|
+
deviceId: string;
|
|
179
|
+
};
|
|
180
|
+
command: "alarm.arm";
|
|
181
|
+
}>;
|
|
182
|
+
readonly 'alarm.disarm': z.ZodObject<{
|
|
183
|
+
command: z.ZodLiteral<"alarm.disarm">;
|
|
184
|
+
params: z.ZodObject<{
|
|
185
|
+
deviceId: z.ZodString;
|
|
186
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
deviceId: string;
|
|
189
|
+
duration?: number | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
deviceId: string;
|
|
192
|
+
duration?: number | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
params: {
|
|
196
|
+
deviceId: string;
|
|
197
|
+
duration?: number | undefined;
|
|
198
|
+
};
|
|
199
|
+
command: "alarm.disarm";
|
|
200
|
+
}, {
|
|
201
|
+
params: {
|
|
202
|
+
deviceId: string;
|
|
203
|
+
duration?: number | undefined;
|
|
204
|
+
};
|
|
205
|
+
command: "alarm.disarm";
|
|
206
|
+
}>;
|
|
207
|
+
readonly 'alarm.arm-all': z.ZodObject<{
|
|
208
|
+
command: z.ZodLiteral<"alarm.arm-all">;
|
|
209
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
params: {};
|
|
212
|
+
command: "alarm.arm-all";
|
|
213
|
+
}, {
|
|
214
|
+
params: {};
|
|
215
|
+
command: "alarm.arm-all";
|
|
216
|
+
}>;
|
|
217
|
+
readonly 'alarm.disarm-all': z.ZodObject<{
|
|
218
|
+
command: z.ZodLiteral<"alarm.disarm-all">;
|
|
219
|
+
params: z.ZodObject<{
|
|
220
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
duration?: number | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
duration?: number | undefined;
|
|
225
|
+
}>;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
params: {
|
|
228
|
+
duration?: number | undefined;
|
|
229
|
+
};
|
|
230
|
+
command: "alarm.disarm-all";
|
|
231
|
+
}, {
|
|
232
|
+
params: {
|
|
233
|
+
duration?: number | undefined;
|
|
234
|
+
};
|
|
235
|
+
command: "alarm.disarm-all";
|
|
236
|
+
}>;
|
|
237
|
+
readonly 'alarm.acknowledge': z.ZodObject<{
|
|
238
|
+
command: z.ZodLiteral<"alarm.acknowledge">;
|
|
239
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
params: {};
|
|
242
|
+
command: "alarm.acknowledge";
|
|
243
|
+
}, {
|
|
244
|
+
params: {};
|
|
245
|
+
command: "alarm.acknowledge";
|
|
246
|
+
}>;
|
|
247
|
+
readonly 'alarm.set-trigger': z.ZodObject<{
|
|
248
|
+
command: z.ZodLiteral<"alarm.set-trigger">;
|
|
249
|
+
params: z.ZodObject<{
|
|
250
|
+
event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
251
|
+
onlyIfArmed: z.ZodBoolean;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
event: Record<string, unknown>;
|
|
254
|
+
onlyIfArmed: boolean;
|
|
255
|
+
}, {
|
|
256
|
+
event: Record<string, unknown>;
|
|
257
|
+
onlyIfArmed: boolean;
|
|
258
|
+
}>;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
params: {
|
|
261
|
+
event: Record<string, unknown>;
|
|
262
|
+
onlyIfArmed: boolean;
|
|
263
|
+
};
|
|
264
|
+
command: "alarm.set-trigger";
|
|
265
|
+
}, {
|
|
266
|
+
params: {
|
|
267
|
+
event: Record<string, unknown>;
|
|
268
|
+
onlyIfArmed: boolean;
|
|
269
|
+
};
|
|
270
|
+
command: "alarm.set-trigger";
|
|
271
|
+
}>;
|
|
272
|
+
readonly 'alarm.bypass': z.ZodObject<{
|
|
273
|
+
command: z.ZodLiteral<"alarm.bypass">;
|
|
274
|
+
params: z.ZodObject<{
|
|
275
|
+
deviceId: z.ZodString;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
deviceId: string;
|
|
278
|
+
}, {
|
|
279
|
+
deviceId: string;
|
|
280
|
+
}>;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
params: {
|
|
283
|
+
deviceId: string;
|
|
284
|
+
};
|
|
285
|
+
command: "alarm.bypass";
|
|
286
|
+
}, {
|
|
287
|
+
params: {
|
|
288
|
+
deviceId: string;
|
|
289
|
+
};
|
|
290
|
+
command: "alarm.bypass";
|
|
291
|
+
}>;
|
|
292
|
+
readonly 'alarm.unbypass': z.ZodObject<{
|
|
293
|
+
command: z.ZodLiteral<"alarm.unbypass">;
|
|
294
|
+
params: z.ZodObject<{
|
|
295
|
+
deviceId: z.ZodString;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
deviceId: string;
|
|
298
|
+
}, {
|
|
299
|
+
deviceId: string;
|
|
300
|
+
}>;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
params: {
|
|
303
|
+
deviceId: string;
|
|
304
|
+
};
|
|
305
|
+
command: "alarm.unbypass";
|
|
306
|
+
}, {
|
|
307
|
+
params: {
|
|
308
|
+
deviceId: string;
|
|
309
|
+
};
|
|
310
|
+
command: "alarm.unbypass";
|
|
311
|
+
}>;
|
|
312
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.alarmCommandSchemas = exports.sSetTriggerCommand = exports.sAcknowledgeCommand = exports.sDisarmAllCommand = exports.sArmAllCommand = exports.sUnbypassCommand = exports.sBypassCommand = exports.sDisarmCommand = exports.sArmCommand = void 0;
|
|
4
|
+
const primitives_1 = require("../primitives");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
// COMMANDS
|
|
7
|
+
exports.sArmCommand = zod_1.z.object({
|
|
8
|
+
command: zod_1.z.literal('alarm.arm'),
|
|
9
|
+
params: zod_1.z.object({
|
|
10
|
+
deviceId: primitives_1.sDeviceId,
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
13
|
+
exports.sDisarmCommand = zod_1.z.object({
|
|
14
|
+
command: zod_1.z.literal('alarm.disarm'),
|
|
15
|
+
params: zod_1.z.object({
|
|
16
|
+
deviceId: primitives_1.sDeviceId,
|
|
17
|
+
duration: primitives_1.sDuration.optional().describe('Duration in milliseconds'),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
exports.sBypassCommand = zod_1.z.object({
|
|
21
|
+
command: zod_1.z.literal('alarm.bypass'),
|
|
22
|
+
params: zod_1.z.object({
|
|
23
|
+
deviceId: primitives_1.sDeviceId,
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
exports.sUnbypassCommand = zod_1.z.object({
|
|
27
|
+
command: zod_1.z.literal('alarm.unbypass'),
|
|
28
|
+
params: zod_1.z.object({
|
|
29
|
+
deviceId: primitives_1.sDeviceId,
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
32
|
+
exports.sArmAllCommand = zod_1.z.object({
|
|
33
|
+
command: zod_1.z.literal('alarm.arm-all'),
|
|
34
|
+
params: zod_1.z.object({}),
|
|
35
|
+
});
|
|
36
|
+
exports.sDisarmAllCommand = zod_1.z.object({
|
|
37
|
+
command: zod_1.z.literal('alarm.disarm-all'),
|
|
38
|
+
params: zod_1.z.object({
|
|
39
|
+
duration: primitives_1.sDuration.optional().describe('Duration in milliseconds'),
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
42
|
+
exports.sAcknowledgeCommand = zod_1.z.object({
|
|
43
|
+
command: zod_1.z.literal('alarm.acknowledge'),
|
|
44
|
+
params: zod_1.z.object({}),
|
|
45
|
+
});
|
|
46
|
+
exports.sSetTriggerCommand = zod_1.z.object({
|
|
47
|
+
command: zod_1.z.literal('alarm.set-trigger'),
|
|
48
|
+
params: zod_1.z.object({
|
|
49
|
+
event: primitives_1.sDeviceEvent,
|
|
50
|
+
onlyIfArmed: zod_1.z.boolean().describe('Set only if the device is armed'),
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
exports.alarmCommandSchemas = {
|
|
54
|
+
'alarm.arm': exports.sArmCommand,
|
|
55
|
+
'alarm.disarm': exports.sDisarmCommand,
|
|
56
|
+
'alarm.arm-all': exports.sArmAllCommand,
|
|
57
|
+
'alarm.disarm-all': exports.sDisarmAllCommand,
|
|
58
|
+
'alarm.acknowledge': exports.sAcknowledgeCommand,
|
|
59
|
+
'alarm.set-trigger': exports.sSetTriggerCommand,
|
|
60
|
+
'alarm.bypass': exports.sBypassCommand,
|
|
61
|
+
'alarm.unbypass': exports.sUnbypassCommand,
|
|
62
|
+
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { AlarmCommand } from './
|
|
2
|
-
import { CameraCommand } from './
|
|
3
|
-
import { CameraLiftCommand } from './
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import { PermissionId } from './permissions';
|
|
15
|
-
export type AnyDeviceCommand = ServerCommand | DeviceGatewayCommand | CameraCommand | DoorCommand | ReaderCommand | IoBoardCommand | CameraLiftCommand | AlarmCommand | IntercomTerminalCommand | PbxCommand | PresenceTrackerCommand | DisplayCommand | NvrExporterCommand;
|
|
1
|
+
import { AlarmCommand } from './alarm';
|
|
2
|
+
import { CameraCommand } from './camera';
|
|
3
|
+
import { CameraLiftCommand } from './camera-lift';
|
|
4
|
+
import { DisplayCommand } from './display';
|
|
5
|
+
import { DoorCommand } from './door';
|
|
6
|
+
import { IntercomTerminalCommand } from './intercom-terminal';
|
|
7
|
+
import { IoBoardCommand } from './io-board';
|
|
8
|
+
import { NvrExporterCommand } from './nvr-exporter';
|
|
9
|
+
import { PbxCommand } from './pbx';
|
|
10
|
+
import { PresenceTrackerCommand } from './presence-tracker';
|
|
11
|
+
import { ServerCommand } from './server';
|
|
12
|
+
import { PermissionId } from '../permissions';
|
|
13
|
+
export type AnyDeviceCommand = ServerCommand | CameraCommand | DoorCommand | IoBoardCommand | CameraLiftCommand | AlarmCommand | IntercomTerminalCommand | PbxCommand | PresenceTrackerCommand | DisplayCommand | NvrExporterCommand;
|
|
16
14
|
export type CommandRun<TCommand extends AnyDeviceCommand = AnyDeviceCommand> = {
|
|
17
15
|
timestamp: number;
|
|
18
16
|
requestId: string;
|
|
@@ -24,7 +22,7 @@ export declare const commandSchemas: {
|
|
|
24
22
|
command: import("zod").ZodLiteral<"nvr-exporter.start-export">;
|
|
25
23
|
params: import("zod").ZodObject<{
|
|
26
24
|
requestId: import("zod").ZodString;
|
|
27
|
-
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
25
|
+
device: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
28
26
|
name: import("zod").ZodString;
|
|
29
27
|
foreignRef: import("zod").ZodString;
|
|
30
28
|
provider: import("zod").ZodString;
|
|
@@ -276,14 +274,14 @@ export declare const commandSchemas: {
|
|
|
276
274
|
type: "system";
|
|
277
275
|
}, {
|
|
278
276
|
type: "system";
|
|
279
|
-
}>]>>]>;
|
|
277
|
+
}>]>>]>, import("zod").ZodTuple<[import("zod").ZodString, import("zod").ZodString], null>]>;
|
|
280
278
|
timeFrom: import("zod").ZodNumber;
|
|
281
279
|
timeTo: import("zod").ZodNumber;
|
|
282
280
|
name: import("zod").ZodString;
|
|
283
281
|
}, "strip", import("zod").ZodTypeAny, {
|
|
284
282
|
name: string;
|
|
285
283
|
requestId: string;
|
|
286
|
-
device: string | ({
|
|
284
|
+
device: string | [string, string] | ({
|
|
287
285
|
name: string;
|
|
288
286
|
foreignRef: string;
|
|
289
287
|
provider: string;
|
|
@@ -368,7 +366,7 @@ export declare const commandSchemas: {
|
|
|
368
366
|
}, {
|
|
369
367
|
name: string;
|
|
370
368
|
requestId: string;
|
|
371
|
-
device: string | ({
|
|
369
|
+
device: string | [string, string] | ({
|
|
372
370
|
name: string;
|
|
373
371
|
foreignRef: string;
|
|
374
372
|
provider: string;
|
|
@@ -455,7 +453,7 @@ export declare const commandSchemas: {
|
|
|
455
453
|
params: {
|
|
456
454
|
name: string;
|
|
457
455
|
requestId: string;
|
|
458
|
-
device: string | ({
|
|
456
|
+
device: string | [string, string] | ({
|
|
459
457
|
name: string;
|
|
460
458
|
foreignRef: string;
|
|
461
459
|
provider: string;
|
|
@@ -543,7 +541,7 @@ export declare const commandSchemas: {
|
|
|
543
541
|
params: {
|
|
544
542
|
name: string;
|
|
545
543
|
requestId: string;
|
|
546
|
-
device: string | ({
|
|
544
|
+
device: string | [string, string] | ({
|
|
547
545
|
name: string;
|
|
548
546
|
foreignRef: string;
|
|
549
547
|
provider: string;
|
|
@@ -1158,22 +1156,22 @@ export declare const commandSchemas: {
|
|
|
1158
1156
|
presetId: import("zod").ZodString;
|
|
1159
1157
|
assignedRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1160
1158
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1161
|
-
presetId: string;
|
|
1162
1159
|
assignedRef: string | null;
|
|
1163
|
-
}, {
|
|
1164
1160
|
presetId: string;
|
|
1161
|
+
}, {
|
|
1165
1162
|
assignedRef: string | null;
|
|
1163
|
+
presetId: string;
|
|
1166
1164
|
}>;
|
|
1167
1165
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1168
1166
|
params: {
|
|
1169
|
-
presetId: string;
|
|
1170
1167
|
assignedRef: string | null;
|
|
1168
|
+
presetId: string;
|
|
1171
1169
|
};
|
|
1172
1170
|
command: "camera.preset-delete";
|
|
1173
1171
|
}, {
|
|
1174
1172
|
params: {
|
|
1175
|
-
presetId: string;
|
|
1176
1173
|
assignedRef: string | null;
|
|
1174
|
+
presetId: string;
|
|
1177
1175
|
};
|
|
1178
1176
|
command: "camera.preset-delete";
|
|
1179
1177
|
}>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.commandDescriptions = exports.commandSchemas = void 0;
|
|
4
|
-
const alarm_1 = require("./
|
|
5
|
-
const camera_1 = require("./
|
|
6
|
-
const camera_lift_1 = require("./
|
|
7
|
-
const display_1 = require("./
|
|
8
|
-
const door_1 = require("./
|
|
9
|
-
const io_board_1 = require("./
|
|
10
|
-
const nvr_exporter_1 = require("./
|
|
11
|
-
const pbx_1 = require("./
|
|
12
|
-
const presence_tracker_1 = require("./
|
|
4
|
+
const alarm_1 = require("./alarm");
|
|
5
|
+
const camera_1 = require("./camera");
|
|
6
|
+
const camera_lift_1 = require("./camera-lift");
|
|
7
|
+
const display_1 = require("./display");
|
|
8
|
+
const door_1 = require("./door");
|
|
9
|
+
const io_board_1 = require("./io-board");
|
|
10
|
+
const nvr_exporter_1 = require("./nvr-exporter");
|
|
11
|
+
const pbx_1 = require("./pbx");
|
|
12
|
+
const presence_tracker_1 = require("./presence-tracker");
|
|
13
13
|
exports.commandSchemas = {
|
|
14
14
|
...alarm_1.alarmCommandSchemas,
|
|
15
15
|
...camera_1.cameraCommands,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sCameraLiftRaiseCommand: z.ZodObject<{
|
|
3
|
+
command: z.ZodLiteral<"camera-lift.raise">;
|
|
4
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
params: {};
|
|
7
|
+
command: "camera-lift.raise";
|
|
8
|
+
}, {
|
|
9
|
+
params: {};
|
|
10
|
+
command: "camera-lift.raise";
|
|
11
|
+
}>;
|
|
12
|
+
export type CameraLiftRaiseCommand = z.infer<typeof sCameraLiftRaiseCommand>;
|
|
13
|
+
export declare const sCameraLiftLowerCommand: z.ZodObject<{
|
|
14
|
+
command: z.ZodLiteral<"camera-lift.lower">;
|
|
15
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
params: {};
|
|
18
|
+
command: "camera-lift.lower";
|
|
19
|
+
}, {
|
|
20
|
+
params: {};
|
|
21
|
+
command: "camera-lift.lower";
|
|
22
|
+
}>;
|
|
23
|
+
export type CameraLiftLowerCommand = z.infer<typeof sCameraLiftLowerCommand>;
|
|
24
|
+
export type CameraLiftCommand = CameraLiftRaiseCommand | CameraLiftLowerCommand;
|
|
25
|
+
export declare const cameraLiftCommands: {
|
|
26
|
+
readonly 'camera-lift.raise': z.ZodObject<{
|
|
27
|
+
command: z.ZodLiteral<"camera-lift.raise">;
|
|
28
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
params: {};
|
|
31
|
+
command: "camera-lift.raise";
|
|
32
|
+
}, {
|
|
33
|
+
params: {};
|
|
34
|
+
command: "camera-lift.raise";
|
|
35
|
+
}>;
|
|
36
|
+
readonly 'camera-lift.lower': z.ZodObject<{
|
|
37
|
+
command: z.ZodLiteral<"camera-lift.lower">;
|
|
38
|
+
params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
params: {};
|
|
41
|
+
command: "camera-lift.lower";
|
|
42
|
+
}, {
|
|
43
|
+
params: {};
|
|
44
|
+
command: "camera-lift.lower";
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cameraLiftCommands = exports.sCameraLiftLowerCommand = exports.sCameraLiftRaiseCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// COMMANDS
|
|
6
|
+
exports.sCameraLiftRaiseCommand = zod_1.z.object({
|
|
7
|
+
command: zod_1.z.literal('camera-lift.raise'),
|
|
8
|
+
params: zod_1.z.object({}),
|
|
9
|
+
});
|
|
10
|
+
exports.sCameraLiftLowerCommand = zod_1.z.object({
|
|
11
|
+
command: zod_1.z.literal('camera-lift.lower'),
|
|
12
|
+
params: zod_1.z.object({}),
|
|
13
|
+
});
|
|
14
|
+
exports.cameraLiftCommands = {
|
|
15
|
+
'camera-lift.raise': exports.sCameraLiftRaiseCommand,
|
|
16
|
+
'camera-lift.lower': exports.sCameraLiftLowerCommand,
|
|
17
|
+
};
|