@awarevue/api-types 2.0.82 → 2.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.
- package/dist/alarm-automation.d.ts +21 -37
- package/dist/api/agent-protocol/protocol.d.ts +1473 -10468
- package/dist/api/agent-protocol/protocol.js +16 -12
- package/dist/api/commands/alarm.d.ts +40 -248
- package/dist/api/commands/all.d.ts +393 -4642
- package/dist/api/commands/camera-lift.d.ts +8 -32
- package/dist/api/commands/camera.d.ts +82 -373
- package/dist/api/commands/display.d.ts +21 -373
- package/dist/api/commands/door.d.ts +16 -64
- package/dist/api/commands/io-board.d.ts +4 -40
- package/dist/api/commands/nvr-exporter.d.ts +104 -1380
- package/dist/api/commands/nvr-recorder.d.ts +400 -5288
- package/dist/api/commands/pbx.d.ts +4 -56
- package/dist/api/commands/presence-tracker.d.ts +12 -128
- package/dist/api/commands/server.d.ts +114 -1382
- package/dist/api/commands/server.js +1 -1
- package/dist/api/error.d.ts +77 -443
- package/dist/api/error.js +1 -1
- package/dist/api/events/alarm.d.ts +20 -148
- package/dist/api/events/all.d.ts +74 -526
- package/dist/api/events/all.js +1 -1
- package/dist/api/events/camera.d.ts +46 -470
- package/dist/api/events/display.d.ts +1 -5
- package/dist/api/events/door.d.ts +34 -146
- package/dist/api/events/intercom-terminal.d.ts +22 -42
- package/dist/api/events/io-board.d.ts +2 -18
- package/dist/api/events/nvr-exporter.d.ts +4 -32
- package/dist/api/events/panic-button.d.ts +2 -10
- package/dist/api/events/presence-tracker.d.ts +4 -88
- package/dist/api/events/reader.d.ts +2 -22
- package/dist/api/events/server.d.ts +6 -34
- package/dist/api/mqtt/payloads.d.ts +4 -26
- package/dist/api/queries/all.d.ts +188 -1622
- package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
- package/dist/api/queries/nvr-exporter.d.ts +9 -73
- package/dist/api/queries/nvr-recorder.d.ts +300 -2828
- package/dist/api/rest/access-rule.d.ts +10 -86
- package/dist/api/rest/agreement.d.ts +3 -18
- package/dist/api/rest/api-keys.d.ts +3 -17
- package/dist/api/rest/app.d.ts +3 -51
- package/dist/api/rest/auth.d.ts +3 -19
- package/dist/api/rest/automation.d.ts +11 -236
- package/dist/api/rest/bookmarks.d.ts +8 -56
- package/dist/api/rest/camera.d.ts +12 -70
- package/dist/api/rest/cast.d.ts +1 -7
- package/dist/api/rest/custom-field.d.ts +21 -24
- package/dist/api/rest/device-group.d.ts +8 -32
- package/dist/api/rest/device.d.ts +104 -176
- package/dist/api/rest/io-device.d.ts +7 -75
- package/dist/api/rest/io-device.js +2 -2
- package/dist/api/rest/layout.d.ts +4 -102
- package/dist/api/rest/macros.d.ts +6 -82
- package/dist/api/rest/media.d.ts +17 -141
- package/dist/api/rest/notifications.d.ts +7 -15
- package/dist/api/rest/person-agreement.d.ts +1 -9
- package/dist/api/rest/person-presence.d.ts +8 -50
- package/dist/api/rest/person-type.d.ts +6 -39
- package/dist/api/rest/person.d.ts +18 -96
- package/dist/api/rest/query.d.ts +5 -15
- package/dist/api/rest/schedule.d.ts +78 -216
- package/dist/api/rest/security-level.d.ts +6 -43
- package/dist/api/rest/template.d.ts +10 -20
- package/dist/api/rest/token-conversion.d.ts +11 -28
- package/dist/api/rest/user.d.ts +15 -97
- package/dist/api/rest/view.d.ts +24 -496
- package/dist/api/rest/webrtc-playback.d.ts +3 -25
- package/dist/api/rest/zone.d.ts +5 -21
- package/dist/api/ws/device-communication.d.ts +10 -62
- package/dist/api/ws/notifications.d.ts +7 -33
- package/dist/api/ws/progress.d.ts +10 -72
- package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
- package/dist/objects/access-rule.d.ts +12 -132
- package/dist/objects/access-rule.js +1 -1
- package/dist/objects/agent-metadata.d.ts +38 -146
- package/dist/objects/agent-metadata.js +1 -1
- package/dist/objects/agreement.d.ts +1 -13
- package/dist/objects/all.d.ts +20 -1
- package/dist/objects/api-key.d.ts +1 -13
- package/dist/objects/automation-rule.d.ts +9 -168
- package/dist/objects/automation-rule.js +2 -2
- package/dist/objects/bookmark.d.ts +3 -33
- package/dist/objects/bookmark.js +1 -1
- package/dist/objects/credential.d.ts +13 -13
- package/dist/objects/credential.js +1 -1
- package/dist/objects/custom-field.d.ts +19 -15
- package/dist/objects/device/alarm.d.ts +1 -1
- package/dist/objects/device/any-device.d.ts +1333 -4451
- package/dist/objects/device/camera-lift.d.ts +1 -1
- package/dist/objects/device/camera.d.ts +29 -125
- package/dist/objects/device/camera.js +1 -1
- package/dist/objects/device/device-import.d.ts +307 -1735
- package/dist/objects/device/device-relation.d.ts +70 -58
- package/dist/objects/device/display.d.ts +1 -1
- package/dist/objects/device/door.d.ts +9 -14
- package/dist/objects/device/intercom-terminal.d.ts +10 -59
- package/dist/objects/device/io-board.d.ts +3 -9
- package/dist/objects/device/motion-sensor.d.ts +1 -1
- package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
- package/dist/objects/device/nvr-exporter.d.ts +3 -9
- package/dist/objects/device/nvr-recorder.d.ts +16 -68
- package/dist/objects/device/panic-button.d.ts +1 -1
- package/dist/objects/device/pbx.d.ts +1 -5
- package/dist/objects/device/system.d.ts +1 -1
- package/dist/objects/device/system.js +1 -1
- package/dist/objects/device-group.d.ts +2 -16
- package/dist/objects/layout.d.ts +3 -75
- package/dist/objects/macro.d.ts +3 -59
- package/dist/objects/macro.js +2 -2
- package/dist/objects/notification.d.ts +6 -24
- package/dist/objects/notification.js +1 -1
- package/dist/objects/person-agreement.d.ts +1 -13
- package/dist/objects/person-presence.d.ts +11 -165
- package/dist/objects/person-type.d.ts +2 -22
- package/dist/objects/person.d.ts +21 -153
- package/dist/objects/person.js +3 -3
- package/dist/objects/role.d.ts +3 -15
- package/dist/objects/schedule.d.ts +152 -314
- package/dist/objects/schedule.js +1 -1
- package/dist/objects/security-level.d.ts +1 -21
- package/dist/objects/template.d.ts +9 -13
- package/dist/objects/token-conversion.d.ts +8 -18
- package/dist/objects/user.d.ts +2 -20
- package/dist/objects/view.d.ts +52 -682
- package/dist/objects/world-object.d.ts +1 -7
- package/dist/objects/zone.d.ts +5 -29
- package/dist/objects/zone.js +1 -1
- package/dist/package.json +3 -3
- package/dist/permissions.d.ts +1 -1
- package/dist/primitives.d.ts +113 -551
- package/dist/primitives.js +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const sDisplayUnitOfflineEvent: z.ZodObject<{
|
|
3
3
|
kind: z.ZodLiteral<"display-unit-offline">;
|
|
4
|
-
},
|
|
5
|
-
kind: "display-unit-offline";
|
|
6
|
-
}, {
|
|
7
|
-
kind: "display-unit-offline";
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export type DisplayUnitOfflineEvent = z.infer<typeof sDisplayUnitOfflineEvent>;
|
|
@@ -3,207 +3,95 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
3
3
|
kind: z.ZodLiteral<"door-access">;
|
|
4
4
|
personId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
token: z.ZodNullable<z.ZodString>;
|
|
6
|
-
tokenType: z.ZodNullable<z.ZodEnum<
|
|
6
|
+
tokenType: z.ZodNullable<z.ZodEnum<{
|
|
7
|
+
card: "card";
|
|
8
|
+
pin: "pin";
|
|
9
|
+
fingerprint: "fingerprint";
|
|
10
|
+
}>>;
|
|
7
11
|
allowed: z.ZodBoolean;
|
|
8
12
|
doorExit: z.ZodBoolean;
|
|
9
13
|
description: z.ZodString;
|
|
10
|
-
},
|
|
11
|
-
kind: "door-access";
|
|
12
|
-
description: string;
|
|
13
|
-
token: string | null;
|
|
14
|
-
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
15
|
-
allowed: boolean;
|
|
16
|
-
doorExit: boolean;
|
|
17
|
-
personId?: string | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
kind: "door-access";
|
|
20
|
-
description: string;
|
|
21
|
-
token: string | null;
|
|
22
|
-
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
23
|
-
allowed: boolean;
|
|
24
|
-
doorExit: boolean;
|
|
25
|
-
personId?: string | undefined;
|
|
26
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
27
15
|
export declare const sDoorOpened: z.ZodObject<{
|
|
28
16
|
kind: z.ZodLiteral<"door-opened">;
|
|
29
|
-
},
|
|
30
|
-
kind: "door-opened";
|
|
31
|
-
}, {
|
|
32
|
-
kind: "door-opened";
|
|
33
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
34
18
|
export declare const sDoorClosed: z.ZodObject<{
|
|
35
19
|
kind: z.ZodLiteral<"door-closed">;
|
|
36
|
-
},
|
|
37
|
-
kind: "door-closed";
|
|
38
|
-
}, {
|
|
39
|
-
kind: "door-closed";
|
|
40
|
-
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
41
21
|
export declare const sDoorForceEvent: z.ZodObject<{
|
|
42
22
|
kind: z.ZodLiteral<"door-force">;
|
|
43
|
-
},
|
|
44
|
-
kind: "door-force";
|
|
45
|
-
}, {
|
|
46
|
-
kind: "door-force";
|
|
47
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
48
24
|
export declare const sDoorTamperEvent: z.ZodObject<{
|
|
49
25
|
kind: z.ZodLiteral<"door-tamper">;
|
|
50
|
-
},
|
|
51
|
-
kind: "door-tamper";
|
|
52
|
-
}, {
|
|
53
|
-
kind: "door-tamper";
|
|
54
|
-
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
55
27
|
export declare const sDoorLeftOpenEvent: z.ZodObject<{
|
|
56
28
|
kind: z.ZodLiteral<"door-left-open">;
|
|
57
|
-
},
|
|
58
|
-
kind: "door-left-open";
|
|
59
|
-
}, {
|
|
60
|
-
kind: "door-left-open";
|
|
61
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
62
30
|
export declare const sDoorRelockEvent: z.ZodObject<{
|
|
63
31
|
kind: z.ZodLiteral<"door-relock">;
|
|
64
|
-
},
|
|
65
|
-
kind: "door-relock";
|
|
66
|
-
}, {
|
|
67
|
-
kind: "door-relock";
|
|
68
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
69
33
|
export declare const sDoorMainsFailedEvent: z.ZodObject<{
|
|
70
34
|
kind: z.ZodLiteral<"door-mains-failed">;
|
|
71
|
-
},
|
|
72
|
-
kind: "door-mains-failed";
|
|
73
|
-
}, {
|
|
74
|
-
kind: "door-mains-failed";
|
|
75
|
-
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
76
36
|
export declare const sDoorAcuNotRespondingEvent: z.ZodObject<{
|
|
77
37
|
kind: z.ZodLiteral<"door-acu-not-responding">;
|
|
78
|
-
},
|
|
79
|
-
kind: "door-acu-not-responding";
|
|
80
|
-
}, {
|
|
81
|
-
kind: "door-acu-not-responding";
|
|
82
|
-
}>;
|
|
38
|
+
}, z.core.$strip>;
|
|
83
39
|
export declare const sDoorMainsRestoredEvent: z.ZodObject<{
|
|
84
40
|
kind: z.ZodLiteral<"door-mains-restored">;
|
|
85
|
-
},
|
|
86
|
-
kind: "door-mains-restored";
|
|
87
|
-
}, {
|
|
88
|
-
kind: "door-mains-restored";
|
|
89
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
90
42
|
export declare const sDoorAcuOnlineEvent: z.ZodObject<{
|
|
91
43
|
kind: z.ZodLiteral<"door-acu-online">;
|
|
92
|
-
},
|
|
93
|
-
kind: "door-acu-online";
|
|
94
|
-
}, {
|
|
95
|
-
kind: "door-acu-online";
|
|
96
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
97
45
|
export declare const sDoorTamperRestoredEvent: z.ZodObject<{
|
|
98
46
|
kind: z.ZodLiteral<"door-tamper-restored">;
|
|
99
|
-
},
|
|
100
|
-
kind: "door-tamper-restored";
|
|
101
|
-
}, {
|
|
102
|
-
kind: "door-tamper-restored";
|
|
103
|
-
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
104
48
|
export declare const doorEventSchemaByKind: {
|
|
105
49
|
readonly 'door-access': z.ZodObject<{
|
|
106
50
|
kind: z.ZodLiteral<"door-access">;
|
|
107
51
|
personId: z.ZodOptional<z.ZodString>;
|
|
108
52
|
token: z.ZodNullable<z.ZodString>;
|
|
109
|
-
tokenType: z.ZodNullable<z.ZodEnum<
|
|
53
|
+
tokenType: z.ZodNullable<z.ZodEnum<{
|
|
54
|
+
card: "card";
|
|
55
|
+
pin: "pin";
|
|
56
|
+
fingerprint: "fingerprint";
|
|
57
|
+
}>>;
|
|
110
58
|
allowed: z.ZodBoolean;
|
|
111
59
|
doorExit: z.ZodBoolean;
|
|
112
60
|
description: z.ZodString;
|
|
113
|
-
},
|
|
114
|
-
kind: "door-access";
|
|
115
|
-
description: string;
|
|
116
|
-
token: string | null;
|
|
117
|
-
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
118
|
-
allowed: boolean;
|
|
119
|
-
doorExit: boolean;
|
|
120
|
-
personId?: string | undefined;
|
|
121
|
-
}, {
|
|
122
|
-
kind: "door-access";
|
|
123
|
-
description: string;
|
|
124
|
-
token: string | null;
|
|
125
|
-
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
126
|
-
allowed: boolean;
|
|
127
|
-
doorExit: boolean;
|
|
128
|
-
personId?: string | undefined;
|
|
129
|
-
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
130
62
|
readonly 'door-opened': z.ZodObject<{
|
|
131
63
|
kind: z.ZodLiteral<"door-opened">;
|
|
132
|
-
},
|
|
133
|
-
kind: "door-opened";
|
|
134
|
-
}, {
|
|
135
|
-
kind: "door-opened";
|
|
136
|
-
}>;
|
|
64
|
+
}, z.core.$strip>;
|
|
137
65
|
readonly 'door-closed': z.ZodObject<{
|
|
138
66
|
kind: z.ZodLiteral<"door-closed">;
|
|
139
|
-
},
|
|
140
|
-
kind: "door-closed";
|
|
141
|
-
}, {
|
|
142
|
-
kind: "door-closed";
|
|
143
|
-
}>;
|
|
67
|
+
}, z.core.$strip>;
|
|
144
68
|
readonly 'door-force': z.ZodObject<{
|
|
145
69
|
kind: z.ZodLiteral<"door-force">;
|
|
146
|
-
},
|
|
147
|
-
kind: "door-force";
|
|
148
|
-
}, {
|
|
149
|
-
kind: "door-force";
|
|
150
|
-
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
151
71
|
readonly 'door-tamper': z.ZodObject<{
|
|
152
72
|
kind: z.ZodLiteral<"door-tamper">;
|
|
153
|
-
},
|
|
154
|
-
kind: "door-tamper";
|
|
155
|
-
}, {
|
|
156
|
-
kind: "door-tamper";
|
|
157
|
-
}>;
|
|
73
|
+
}, z.core.$strip>;
|
|
158
74
|
readonly 'door-left-open': z.ZodObject<{
|
|
159
75
|
kind: z.ZodLiteral<"door-left-open">;
|
|
160
|
-
},
|
|
161
|
-
kind: "door-left-open";
|
|
162
|
-
}, {
|
|
163
|
-
kind: "door-left-open";
|
|
164
|
-
}>;
|
|
76
|
+
}, z.core.$strip>;
|
|
165
77
|
readonly 'door-relock': z.ZodObject<{
|
|
166
78
|
kind: z.ZodLiteral<"door-relock">;
|
|
167
|
-
},
|
|
168
|
-
kind: "door-relock";
|
|
169
|
-
}, {
|
|
170
|
-
kind: "door-relock";
|
|
171
|
-
}>;
|
|
79
|
+
}, z.core.$strip>;
|
|
172
80
|
readonly 'door-mains-failed': z.ZodObject<{
|
|
173
81
|
kind: z.ZodLiteral<"door-mains-failed">;
|
|
174
|
-
},
|
|
175
|
-
kind: "door-mains-failed";
|
|
176
|
-
}, {
|
|
177
|
-
kind: "door-mains-failed";
|
|
178
|
-
}>;
|
|
82
|
+
}, z.core.$strip>;
|
|
179
83
|
readonly 'door-acu-not-responding': z.ZodObject<{
|
|
180
84
|
kind: z.ZodLiteral<"door-acu-not-responding">;
|
|
181
|
-
},
|
|
182
|
-
kind: "door-acu-not-responding";
|
|
183
|
-
}, {
|
|
184
|
-
kind: "door-acu-not-responding";
|
|
185
|
-
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
186
86
|
readonly 'door-mains-restored': z.ZodObject<{
|
|
187
87
|
kind: z.ZodLiteral<"door-mains-restored">;
|
|
188
|
-
},
|
|
189
|
-
kind: "door-mains-restored";
|
|
190
|
-
}, {
|
|
191
|
-
kind: "door-mains-restored";
|
|
192
|
-
}>;
|
|
88
|
+
}, z.core.$strip>;
|
|
193
89
|
readonly 'door-acu-online': z.ZodObject<{
|
|
194
90
|
kind: z.ZodLiteral<"door-acu-online">;
|
|
195
|
-
},
|
|
196
|
-
kind: "door-acu-online";
|
|
197
|
-
}, {
|
|
198
|
-
kind: "door-acu-online";
|
|
199
|
-
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
200
92
|
readonly 'door-tamper-restored': z.ZodObject<{
|
|
201
93
|
kind: z.ZodLiteral<"door-tamper-restored">;
|
|
202
|
-
},
|
|
203
|
-
kind: "door-tamper-restored";
|
|
204
|
-
}, {
|
|
205
|
-
kind: "door-tamper-restored";
|
|
206
|
-
}>;
|
|
94
|
+
}, z.core.$strip>;
|
|
207
95
|
};
|
|
208
96
|
export type DoorAccessEvent = z.infer<typeof sDoorAccessEvent>;
|
|
209
97
|
export type DoorOpenedEvent = z.infer<typeof sDoorOpened>;
|
|
@@ -3,59 +3,39 @@ export declare const sCallStateChanged: z.ZodObject<{
|
|
|
3
3
|
kind: z.ZodLiteral<"call-state-changed">;
|
|
4
4
|
userId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
callId: z.ZodString;
|
|
6
|
-
state: z.ZodEnum<
|
|
6
|
+
state: z.ZodEnum<{
|
|
7
|
+
connecting: "connecting";
|
|
8
|
+
connected: "connected";
|
|
9
|
+
ringing: "ringing";
|
|
10
|
+
terminated: "terminated";
|
|
11
|
+
}>;
|
|
7
12
|
peer: z.ZodOptional<z.ZodString>;
|
|
8
13
|
sipAccount: z.ZodOptional<z.ZodString>;
|
|
9
14
|
sipCallId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
direction: z.ZodEnum<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
direction: "incoming" | "outgoing";
|
|
16
|
-
peer?: string | undefined;
|
|
17
|
-
userId?: string | undefined;
|
|
18
|
-
sipAccount?: string | undefined;
|
|
19
|
-
sipCallId?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
kind: "call-state-changed";
|
|
22
|
-
callId: string;
|
|
23
|
-
state: "connecting" | "connected" | "ringing" | "terminated";
|
|
24
|
-
direction: "incoming" | "outgoing";
|
|
25
|
-
peer?: string | undefined;
|
|
26
|
-
userId?: string | undefined;
|
|
27
|
-
sipAccount?: string | undefined;
|
|
28
|
-
sipCallId?: string | undefined;
|
|
29
|
-
}>;
|
|
15
|
+
direction: z.ZodEnum<{
|
|
16
|
+
incoming: "incoming";
|
|
17
|
+
outgoing: "outgoing";
|
|
18
|
+
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
30
20
|
export declare const intercomTerminalEventSchemaByKind: {
|
|
31
21
|
'call-state-changed': z.ZodObject<{
|
|
32
22
|
kind: z.ZodLiteral<"call-state-changed">;
|
|
33
23
|
userId: z.ZodOptional<z.ZodString>;
|
|
34
24
|
callId: z.ZodString;
|
|
35
|
-
state: z.ZodEnum<
|
|
25
|
+
state: z.ZodEnum<{
|
|
26
|
+
connecting: "connecting";
|
|
27
|
+
connected: "connected";
|
|
28
|
+
ringing: "ringing";
|
|
29
|
+
terminated: "terminated";
|
|
30
|
+
}>;
|
|
36
31
|
peer: z.ZodOptional<z.ZodString>;
|
|
37
32
|
sipAccount: z.ZodOptional<z.ZodString>;
|
|
38
33
|
sipCallId: z.ZodOptional<z.ZodString>;
|
|
39
|
-
direction: z.ZodEnum<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
direction: "incoming" | "outgoing";
|
|
45
|
-
peer?: string | undefined;
|
|
46
|
-
userId?: string | undefined;
|
|
47
|
-
sipAccount?: string | undefined;
|
|
48
|
-
sipCallId?: string | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
kind: "call-state-changed";
|
|
51
|
-
callId: string;
|
|
52
|
-
state: "connecting" | "connected" | "ringing" | "terminated";
|
|
53
|
-
direction: "incoming" | "outgoing";
|
|
54
|
-
peer?: string | undefined;
|
|
55
|
-
userId?: string | undefined;
|
|
56
|
-
sipAccount?: string | undefined;
|
|
57
|
-
sipCallId?: string | undefined;
|
|
58
|
-
}>;
|
|
34
|
+
direction: z.ZodEnum<{
|
|
35
|
+
incoming: "incoming";
|
|
36
|
+
outgoing: "outgoing";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strip>;
|
|
59
39
|
};
|
|
60
40
|
export type CallStateChangedEvent = z.infer<typeof sCallStateChanged>;
|
|
61
41
|
export type IntercomTerminalEvent = CallStateChangedEvent;
|
|
@@ -3,29 +3,13 @@ export declare const sIoBoardInputChangedEvent: z.ZodObject<{
|
|
|
3
3
|
kind: z.ZodLiteral<"io-board-input-changed">;
|
|
4
4
|
inputName: z.ZodString;
|
|
5
5
|
value: z.ZodBoolean;
|
|
6
|
-
},
|
|
7
|
-
kind: "io-board-input-changed";
|
|
8
|
-
value: boolean;
|
|
9
|
-
inputName: string;
|
|
10
|
-
}, {
|
|
11
|
-
kind: "io-board-input-changed";
|
|
12
|
-
value: boolean;
|
|
13
|
-
inputName: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export declare const ioBoardEventSchemaByKind: {
|
|
16
8
|
readonly 'io-board-input-changed': z.ZodObject<{
|
|
17
9
|
kind: z.ZodLiteral<"io-board-input-changed">;
|
|
18
10
|
inputName: z.ZodString;
|
|
19
11
|
value: z.ZodBoolean;
|
|
20
|
-
},
|
|
21
|
-
kind: "io-board-input-changed";
|
|
22
|
-
value: boolean;
|
|
23
|
-
inputName: string;
|
|
24
|
-
}, {
|
|
25
|
-
kind: "io-board-input-changed";
|
|
26
|
-
value: boolean;
|
|
27
|
-
inputName: string;
|
|
28
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
29
13
|
};
|
|
30
14
|
export type IoBoardInputChangedEvent = z.infer<typeof sIoBoardInputChangedEvent>;
|
|
31
15
|
export type IoBoardEvent = IoBoardInputChangedEvent;
|
|
@@ -3,26 +3,12 @@ export declare const sExportStarted: z.ZodObject<{
|
|
|
3
3
|
kind: z.ZodLiteral<"nvr-export-started">;
|
|
4
4
|
exportId: z.ZodString;
|
|
5
5
|
requestId: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
kind: "nvr-export-started";
|
|
8
|
-
exportId: string;
|
|
9
|
-
requestId: string;
|
|
10
|
-
}, {
|
|
11
|
-
kind: "nvr-export-started";
|
|
12
|
-
exportId: string;
|
|
13
|
-
requestId: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type ExportStarted = z.infer<typeof sExportStarted>;
|
|
16
8
|
export declare const sExportDeleted: z.ZodObject<{
|
|
17
9
|
kind: z.ZodLiteral<"nvr-export-deleted">;
|
|
18
10
|
exportId: z.ZodString;
|
|
19
|
-
},
|
|
20
|
-
kind: "nvr-export-deleted";
|
|
21
|
-
exportId: string;
|
|
22
|
-
}, {
|
|
23
|
-
kind: "nvr-export-deleted";
|
|
24
|
-
exportId: string;
|
|
25
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
26
12
|
export type ExportDeleted = z.infer<typeof sExportDeleted>;
|
|
27
13
|
export type NvrExporterEvent = ExportStarted | ExportDeleted;
|
|
28
14
|
export declare const nvrExporterEventSchemasByKind: {
|
|
@@ -30,23 +16,9 @@ export declare const nvrExporterEventSchemasByKind: {
|
|
|
30
16
|
kind: z.ZodLiteral<"nvr-export-started">;
|
|
31
17
|
exportId: z.ZodString;
|
|
32
18
|
requestId: z.ZodString;
|
|
33
|
-
},
|
|
34
|
-
kind: "nvr-export-started";
|
|
35
|
-
exportId: string;
|
|
36
|
-
requestId: string;
|
|
37
|
-
}, {
|
|
38
|
-
kind: "nvr-export-started";
|
|
39
|
-
exportId: string;
|
|
40
|
-
requestId: string;
|
|
41
|
-
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
42
20
|
readonly 'nvr-export-deleted': z.ZodObject<{
|
|
43
21
|
kind: z.ZodLiteral<"nvr-export-deleted">;
|
|
44
22
|
exportId: z.ZodString;
|
|
45
|
-
},
|
|
46
|
-
kind: "nvr-export-deleted";
|
|
47
|
-
exportId: string;
|
|
48
|
-
}, {
|
|
49
|
-
kind: "nvr-export-deleted";
|
|
50
|
-
exportId: string;
|
|
51
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
52
24
|
};
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const sPanicButtonPressedEvent: z.ZodObject<{
|
|
3
3
|
kind: z.ZodLiteral<"panic-button-pressed">;
|
|
4
|
-
},
|
|
5
|
-
kind: "panic-button-pressed";
|
|
6
|
-
}, {
|
|
7
|
-
kind: "panic-button-pressed";
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export declare const panicButtonEventSchemaByKind: {
|
|
10
6
|
readonly 'panic-button-pressed': z.ZodObject<{
|
|
11
7
|
kind: z.ZodLiteral<"panic-button-pressed">;
|
|
12
|
-
},
|
|
13
|
-
kind: "panic-button-pressed";
|
|
14
|
-
}, {
|
|
15
|
-
kind: "panic-button-pressed";
|
|
16
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
17
9
|
};
|
|
18
10
|
export type PanicButtonPressedEvent = z.infer<typeof sPanicButtonPressedEvent>;
|
|
19
11
|
export type PanicButtonEvent = PanicButtonPressedEvent;
|
|
@@ -9,27 +9,7 @@ export declare const sPersonIn: z.ZodObject<{
|
|
|
9
9
|
personPosition: z.ZodNullable<z.ZodString>;
|
|
10
10
|
zoneId: z.ZodNullable<z.ZodString>;
|
|
11
11
|
securityChecked: z.ZodBoolean;
|
|
12
|
-
},
|
|
13
|
-
kind: "person-in";
|
|
14
|
-
personId: string;
|
|
15
|
-
securityChecked: boolean;
|
|
16
|
-
personType: string;
|
|
17
|
-
personFirstName: string;
|
|
18
|
-
personLastName: string;
|
|
19
|
-
personAvatarId: string | null;
|
|
20
|
-
personPosition: string | null;
|
|
21
|
-
zoneId: string | null;
|
|
22
|
-
}, {
|
|
23
|
-
kind: "person-in";
|
|
24
|
-
personId: string;
|
|
25
|
-
securityChecked: boolean;
|
|
26
|
-
personType: string;
|
|
27
|
-
personFirstName: string;
|
|
28
|
-
personLastName: string;
|
|
29
|
-
personAvatarId: string | null;
|
|
30
|
-
personPosition: string | null;
|
|
31
|
-
zoneId: string | null;
|
|
32
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
33
13
|
export declare const sPersonOut: z.ZodObject<{
|
|
34
14
|
kind: z.ZodLiteral<"person-out">;
|
|
35
15
|
personId: z.ZodString;
|
|
@@ -41,29 +21,7 @@ export declare const sPersonOut: z.ZodObject<{
|
|
|
41
21
|
isLeave: z.ZodBoolean;
|
|
42
22
|
zoneId: z.ZodNullable<z.ZodString>;
|
|
43
23
|
securityChecked: z.ZodBoolean;
|
|
44
|
-
},
|
|
45
|
-
kind: "person-out";
|
|
46
|
-
personId: string;
|
|
47
|
-
securityChecked: boolean;
|
|
48
|
-
isLeave: boolean;
|
|
49
|
-
personType: string;
|
|
50
|
-
personFirstName: string;
|
|
51
|
-
personLastName: string;
|
|
52
|
-
personAvatarId: string | null;
|
|
53
|
-
personPosition: string | null;
|
|
54
|
-
zoneId: string | null;
|
|
55
|
-
}, {
|
|
56
|
-
kind: "person-out";
|
|
57
|
-
personId: string;
|
|
58
|
-
securityChecked: boolean;
|
|
59
|
-
isLeave: boolean;
|
|
60
|
-
personType: string;
|
|
61
|
-
personFirstName: string;
|
|
62
|
-
personLastName: string;
|
|
63
|
-
personAvatarId: string | null;
|
|
64
|
-
personPosition: string | null;
|
|
65
|
-
zoneId: string | null;
|
|
66
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
67
25
|
export declare const presenceTrackerEventSchemaByKind: {
|
|
68
26
|
readonly 'person-in': z.ZodObject<{
|
|
69
27
|
kind: z.ZodLiteral<"person-in">;
|
|
@@ -75,27 +33,7 @@ export declare const presenceTrackerEventSchemaByKind: {
|
|
|
75
33
|
personPosition: z.ZodNullable<z.ZodString>;
|
|
76
34
|
zoneId: z.ZodNullable<z.ZodString>;
|
|
77
35
|
securityChecked: z.ZodBoolean;
|
|
78
|
-
},
|
|
79
|
-
kind: "person-in";
|
|
80
|
-
personId: string;
|
|
81
|
-
securityChecked: boolean;
|
|
82
|
-
personType: string;
|
|
83
|
-
personFirstName: string;
|
|
84
|
-
personLastName: string;
|
|
85
|
-
personAvatarId: string | null;
|
|
86
|
-
personPosition: string | null;
|
|
87
|
-
zoneId: string | null;
|
|
88
|
-
}, {
|
|
89
|
-
kind: "person-in";
|
|
90
|
-
personId: string;
|
|
91
|
-
securityChecked: boolean;
|
|
92
|
-
personType: string;
|
|
93
|
-
personFirstName: string;
|
|
94
|
-
personLastName: string;
|
|
95
|
-
personAvatarId: string | null;
|
|
96
|
-
personPosition: string | null;
|
|
97
|
-
zoneId: string | null;
|
|
98
|
-
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
99
37
|
readonly 'person-out': z.ZodObject<{
|
|
100
38
|
kind: z.ZodLiteral<"person-out">;
|
|
101
39
|
personId: z.ZodString;
|
|
@@ -107,29 +45,7 @@ export declare const presenceTrackerEventSchemaByKind: {
|
|
|
107
45
|
isLeave: z.ZodBoolean;
|
|
108
46
|
zoneId: z.ZodNullable<z.ZodString>;
|
|
109
47
|
securityChecked: z.ZodBoolean;
|
|
110
|
-
},
|
|
111
|
-
kind: "person-out";
|
|
112
|
-
personId: string;
|
|
113
|
-
securityChecked: boolean;
|
|
114
|
-
isLeave: boolean;
|
|
115
|
-
personType: string;
|
|
116
|
-
personFirstName: string;
|
|
117
|
-
personLastName: string;
|
|
118
|
-
personAvatarId: string | null;
|
|
119
|
-
personPosition: string | null;
|
|
120
|
-
zoneId: string | null;
|
|
121
|
-
}, {
|
|
122
|
-
kind: "person-out";
|
|
123
|
-
personId: string;
|
|
124
|
-
securityChecked: boolean;
|
|
125
|
-
isLeave: boolean;
|
|
126
|
-
personType: string;
|
|
127
|
-
personFirstName: string;
|
|
128
|
-
personLastName: string;
|
|
129
|
-
personAvatarId: string | null;
|
|
130
|
-
personPosition: string | null;
|
|
131
|
-
zoneId: string | null;
|
|
132
|
-
}>;
|
|
48
|
+
}, z.core.$strip>;
|
|
133
49
|
};
|
|
134
50
|
export type PersonIn = z.infer<typeof sPersonIn>;
|
|
135
51
|
export type PersonOut = z.infer<typeof sPersonOut>;
|
|
@@ -4,17 +4,7 @@ export declare const sTokenAuthorized: z.ZodObject<{
|
|
|
4
4
|
token: z.ZodNullable<z.ZodString>;
|
|
5
5
|
personId: z.ZodOptional<z.ZodString>;
|
|
6
6
|
allowed: z.ZodBoolean;
|
|
7
|
-
},
|
|
8
|
-
kind: "reader-auth";
|
|
9
|
-
token: string | null;
|
|
10
|
-
allowed: boolean;
|
|
11
|
-
personId?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
kind: "reader-auth";
|
|
14
|
-
token: string | null;
|
|
15
|
-
allowed: boolean;
|
|
16
|
-
personId?: string | undefined;
|
|
17
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
18
8
|
export type TokenAuthorized = z.infer<typeof sTokenAuthorized>;
|
|
19
9
|
export declare const readerEventSchemaByKind: {
|
|
20
10
|
readonly 'reader-auth': z.ZodObject<{
|
|
@@ -22,16 +12,6 @@ export declare const readerEventSchemaByKind: {
|
|
|
22
12
|
token: z.ZodNullable<z.ZodString>;
|
|
23
13
|
personId: z.ZodOptional<z.ZodString>;
|
|
24
14
|
allowed: z.ZodBoolean;
|
|
25
|
-
},
|
|
26
|
-
kind: "reader-auth";
|
|
27
|
-
token: string | null;
|
|
28
|
-
allowed: boolean;
|
|
29
|
-
personId?: string | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
kind: "reader-auth";
|
|
32
|
-
token: string | null;
|
|
33
|
-
allowed: boolean;
|
|
34
|
-
personId?: string | undefined;
|
|
35
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
36
16
|
};
|
|
37
17
|
export type ReaderEvent = TokenAuthorized;
|
|
@@ -3,29 +3,13 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const sAgentStarted: z.ZodObject<{
|
|
4
4
|
kind: z.ZodLiteral<"agent-started">;
|
|
5
5
|
agent: z.ZodString;
|
|
6
|
-
providers: z.ZodArray<z.ZodString
|
|
7
|
-
},
|
|
8
|
-
kind: "agent-started";
|
|
9
|
-
agent: string;
|
|
10
|
-
providers: string[];
|
|
11
|
-
}, {
|
|
12
|
-
kind: "agent-started";
|
|
13
|
-
agent: string;
|
|
14
|
-
providers: string[];
|
|
15
|
-
}>;
|
|
6
|
+
providers: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
16
8
|
export declare const sAgentStopped: z.ZodObject<{
|
|
17
9
|
kind: z.ZodLiteral<"agent-stopped">;
|
|
18
10
|
agent: z.ZodString;
|
|
19
|
-
providers: z.ZodArray<z.ZodString
|
|
20
|
-
},
|
|
21
|
-
kind: "agent-stopped";
|
|
22
|
-
agent: string;
|
|
23
|
-
providers: string[];
|
|
24
|
-
}, {
|
|
25
|
-
kind: "agent-stopped";
|
|
26
|
-
agent: string;
|
|
27
|
-
providers: string[];
|
|
28
|
-
}>;
|
|
11
|
+
providers: z.ZodArray<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
29
13
|
export type AgentStarted = z.infer<typeof sAgentStarted>;
|
|
30
14
|
export type AgentStopped = z.infer<typeof sAgentStopped>;
|
|
31
15
|
export type ObjectCreated = {
|
|
@@ -65,23 +49,11 @@ export type ObjectDeleted = {
|
|
|
65
49
|
export declare const sUserLoggedIn: z.ZodObject<{
|
|
66
50
|
kind: z.ZodLiteral<"user-logged-in">;
|
|
67
51
|
userId: z.ZodString;
|
|
68
|
-
},
|
|
69
|
-
kind: "user-logged-in";
|
|
70
|
-
userId: string;
|
|
71
|
-
}, {
|
|
72
|
-
kind: "user-logged-in";
|
|
73
|
-
userId: string;
|
|
74
|
-
}>;
|
|
52
|
+
}, z.core.$strip>;
|
|
75
53
|
export declare const sUserLoggedOut: z.ZodObject<{
|
|
76
54
|
kind: z.ZodLiteral<"user-logged-out">;
|
|
77
55
|
userId: z.ZodString;
|
|
78
|
-
},
|
|
79
|
-
kind: "user-logged-out";
|
|
80
|
-
userId: string;
|
|
81
|
-
}, {
|
|
82
|
-
kind: "user-logged-out";
|
|
83
|
-
userId: string;
|
|
84
|
-
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
85
57
|
export type UserLoggedIn = z.infer<typeof sUserLoggedIn>;
|
|
86
58
|
export type UserLoggedOut = z.infer<typeof sUserLoggedOut>;
|
|
87
59
|
export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped | UserLoggedIn | UserLoggedOut;
|