@awarevue/api-types 2.0.13 → 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} +17 -19
- 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 -1336
- 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 +16 -0
- package/dist/primitives.js +13 -1
- package/dist/{agent-communication/queries.d.ts → queries/all.d.ts} +12 -10
- 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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cameraEventSchemasByKind = exports.sSceneEnded = exports.sSceneUpdated = exports.sSceneCreated = exports.sSceneData = exports.sObjectDetectionEnded = exports.sObjectDetectionUpdated = exports.sObjectDetectionStarted = exports.sObjectDetectionData = exports.sObjectLocator = exports.sBoxLocator = exports.sCameraPtzPresetSaved = void 0;
|
|
4
|
+
const primitives_1 = require("../primitives");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
// EVENTS
|
|
7
|
+
exports.sCameraPtzPresetSaved = zod_1.z.object({
|
|
8
|
+
kind: zod_1.z.literal('ptz-preset-saved'),
|
|
9
|
+
presetId: zod_1.z.string().nonempty(),
|
|
10
|
+
presetInfo: primitives_1.sCameraPresetInfo,
|
|
11
|
+
assignedRef: zod_1.z.string().nullable(),
|
|
12
|
+
});
|
|
13
|
+
exports.sBoxLocator = zod_1.z.object({
|
|
14
|
+
locatorKind: zod_1.z.literal('box'),
|
|
15
|
+
x1: zod_1.z.number(),
|
|
16
|
+
y1: zod_1.z.number(),
|
|
17
|
+
x2: zod_1.z.number(),
|
|
18
|
+
y2: zod_1.z.number(),
|
|
19
|
+
});
|
|
20
|
+
exports.sObjectLocator = exports.sBoxLocator;
|
|
21
|
+
exports.sObjectDetectionData = zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
objectKind: zod_1.z.string().nullable(),
|
|
24
|
+
probability: zod_1.z.number(),
|
|
25
|
+
identifiedObjectId: zod_1.z.string().nullable(),
|
|
26
|
+
frameTime: zod_1.z.number(),
|
|
27
|
+
startTime: zod_1.z.number(),
|
|
28
|
+
endTime: zod_1.z.number().nullable(),
|
|
29
|
+
})
|
|
30
|
+
.and(exports.sObjectLocator);
|
|
31
|
+
exports.sObjectDetectionStarted = zod_1.z
|
|
32
|
+
.object({
|
|
33
|
+
kind: zod_1.z.literal('object-detection-started'),
|
|
34
|
+
providerAssignedRef: zod_1.z.string().nonempty(),
|
|
35
|
+
detectionProvider: zod_1.z.string().nonempty(),
|
|
36
|
+
})
|
|
37
|
+
.and(exports.sObjectDetectionData);
|
|
38
|
+
exports.sObjectDetectionUpdated = zod_1.z
|
|
39
|
+
.object({
|
|
40
|
+
kind: zod_1.z.literal('object-detection-updated'),
|
|
41
|
+
providerAssignedRef: zod_1.z.string().nonempty(),
|
|
42
|
+
detectionProvider: zod_1.z.string().nonempty(),
|
|
43
|
+
})
|
|
44
|
+
.and(exports.sObjectDetectionData);
|
|
45
|
+
exports.sObjectDetectionEnded = zod_1.z
|
|
46
|
+
.object({
|
|
47
|
+
kind: zod_1.z.literal('object-detection-ended'),
|
|
48
|
+
providerAssignedRef: zod_1.z.string().nonempty(),
|
|
49
|
+
detectionProvider: zod_1.z.string().nonempty(),
|
|
50
|
+
})
|
|
51
|
+
.and(exports.sObjectDetectionData);
|
|
52
|
+
exports.sSceneData = zod_1.z.object({
|
|
53
|
+
detections: zod_1.z.array(zod_1.z.string()),
|
|
54
|
+
clipUrl: zod_1.z.string().optional(),
|
|
55
|
+
startTime: zod_1.z.number(),
|
|
56
|
+
endTime: zod_1.z.number().nullable(),
|
|
57
|
+
});
|
|
58
|
+
exports.sSceneCreated = zod_1.z
|
|
59
|
+
.object({
|
|
60
|
+
kind: zod_1.z.literal('scene-created'),
|
|
61
|
+
providerAssignedRef: zod_1.z.string().nonempty(),
|
|
62
|
+
detectionProvider: zod_1.z.string().nonempty(),
|
|
63
|
+
})
|
|
64
|
+
.and(exports.sSceneData);
|
|
65
|
+
exports.sSceneUpdated = zod_1.z
|
|
66
|
+
.object({
|
|
67
|
+
kind: zod_1.z.literal('scene-updated'),
|
|
68
|
+
providerAssignedRef: zod_1.z.string().nonempty(),
|
|
69
|
+
detectionProvider: zod_1.z.string().nonempty(),
|
|
70
|
+
})
|
|
71
|
+
.and(exports.sSceneData);
|
|
72
|
+
exports.sSceneEnded = zod_1.z
|
|
73
|
+
.object({
|
|
74
|
+
kind: zod_1.z.literal('scene-ended'),
|
|
75
|
+
providerAssignedRef: zod_1.z.string().nonempty(),
|
|
76
|
+
detectionProvider: zod_1.z.string().nonempty(),
|
|
77
|
+
})
|
|
78
|
+
.and(exports.sSceneData);
|
|
79
|
+
exports.cameraEventSchemasByKind = {
|
|
80
|
+
'ptz-preset-saved': exports.sCameraPtzPresetSaved,
|
|
81
|
+
'object-detection-started': exports.sObjectDetectionStarted,
|
|
82
|
+
'object-detection-updated': exports.sObjectDetectionUpdated,
|
|
83
|
+
'object-detection-ended': exports.sObjectDetectionEnded,
|
|
84
|
+
'scene-created': exports.sSceneCreated,
|
|
85
|
+
'scene-updated': exports.sSceneUpdated,
|
|
86
|
+
'scene-ended': exports.sSceneEnded,
|
|
87
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sDisplayUnitOfflineEvent: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"display-unit-offline">;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
kind: "display-unit-offline";
|
|
6
|
+
}, {
|
|
7
|
+
kind: "display-unit-offline";
|
|
8
|
+
}>;
|
|
9
|
+
export type DisplayUnitOfflineEvent = z.infer<typeof sDisplayUnitOfflineEvent>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sDisplayUnitOfflineEvent = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// EVENTS
|
|
6
|
+
exports.sDisplayUnitOfflineEvent = zod_1.z.object({
|
|
7
|
+
kind: zod_1.z.literal('display-unit-offline'),
|
|
8
|
+
});
|
|
9
|
+
//Could report on other events in the future like bad streams, high cpu usage, etc.
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sDoorAccessEvent: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"door-access">;
|
|
4
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
token: z.ZodNullable<z.ZodString>;
|
|
6
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin", "fingerprint"]>>;
|
|
7
|
+
allowed: z.ZodBoolean;
|
|
8
|
+
doorExit: z.ZodBoolean;
|
|
9
|
+
description: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
description: string;
|
|
12
|
+
kind: "door-access";
|
|
13
|
+
token: string | null;
|
|
14
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
15
|
+
allowed: boolean;
|
|
16
|
+
doorExit: boolean;
|
|
17
|
+
personId?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
description: string;
|
|
20
|
+
kind: "door-access";
|
|
21
|
+
token: string | null;
|
|
22
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
23
|
+
allowed: boolean;
|
|
24
|
+
doorExit: boolean;
|
|
25
|
+
personId?: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const sDoorOpened: z.ZodObject<{
|
|
28
|
+
kind: z.ZodLiteral<"door-opened">;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
kind: "door-opened";
|
|
31
|
+
}, {
|
|
32
|
+
kind: "door-opened";
|
|
33
|
+
}>;
|
|
34
|
+
export declare const sDoorClosed: z.ZodObject<{
|
|
35
|
+
kind: z.ZodLiteral<"door-closed">;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
kind: "door-closed";
|
|
38
|
+
}, {
|
|
39
|
+
kind: "door-closed";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const sDoorForceEvent: z.ZodObject<{
|
|
42
|
+
kind: z.ZodLiteral<"door-force">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
kind: "door-force";
|
|
45
|
+
}, {
|
|
46
|
+
kind: "door-force";
|
|
47
|
+
}>;
|
|
48
|
+
export declare const sDoorTamperEvent: z.ZodObject<{
|
|
49
|
+
kind: z.ZodLiteral<"door-tamper">;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
kind: "door-tamper";
|
|
52
|
+
}, {
|
|
53
|
+
kind: "door-tamper";
|
|
54
|
+
}>;
|
|
55
|
+
export declare const sDoorLeftOpenEvent: z.ZodObject<{
|
|
56
|
+
kind: z.ZodLiteral<"door-left-open">;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
kind: "door-left-open";
|
|
59
|
+
}, {
|
|
60
|
+
kind: "door-left-open";
|
|
61
|
+
}>;
|
|
62
|
+
export declare const sDoorRelockEvent: z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"door-relock">;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
kind: "door-relock";
|
|
66
|
+
}, {
|
|
67
|
+
kind: "door-relock";
|
|
68
|
+
}>;
|
|
69
|
+
export declare const sDoorMainsFailedEvent: z.ZodObject<{
|
|
70
|
+
kind: z.ZodLiteral<"door-mains-failed">;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
kind: "door-mains-failed";
|
|
73
|
+
}, {
|
|
74
|
+
kind: "door-mains-failed";
|
|
75
|
+
}>;
|
|
76
|
+
export declare const sDoorAcuNotRespondingEvent: z.ZodObject<{
|
|
77
|
+
kind: z.ZodLiteral<"door-acu-not-responding">;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
kind: "door-acu-not-responding";
|
|
80
|
+
}, {
|
|
81
|
+
kind: "door-acu-not-responding";
|
|
82
|
+
}>;
|
|
83
|
+
export declare const sDoorMainsRestoredEvent: z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"door-mains-restored">;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
kind: "door-mains-restored";
|
|
87
|
+
}, {
|
|
88
|
+
kind: "door-mains-restored";
|
|
89
|
+
}>;
|
|
90
|
+
export declare const sDoorAcuOnlineEvent: z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"door-acu-online">;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
kind: "door-acu-online";
|
|
94
|
+
}, {
|
|
95
|
+
kind: "door-acu-online";
|
|
96
|
+
}>;
|
|
97
|
+
export declare const sDoorTamperRestoredEvent: z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"door-tamper-restored">;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
kind: "door-tamper-restored";
|
|
101
|
+
}, {
|
|
102
|
+
kind: "door-tamper-restored";
|
|
103
|
+
}>;
|
|
104
|
+
export declare const doorEventSchemaByKind: {
|
|
105
|
+
readonly 'door-access': z.ZodObject<{
|
|
106
|
+
kind: z.ZodLiteral<"door-access">;
|
|
107
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
token: z.ZodNullable<z.ZodString>;
|
|
109
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin", "fingerprint"]>>;
|
|
110
|
+
allowed: z.ZodBoolean;
|
|
111
|
+
doorExit: z.ZodBoolean;
|
|
112
|
+
description: z.ZodString;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
description: string;
|
|
115
|
+
kind: "door-access";
|
|
116
|
+
token: string | null;
|
|
117
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
118
|
+
allowed: boolean;
|
|
119
|
+
doorExit: boolean;
|
|
120
|
+
personId?: string | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
description: string;
|
|
123
|
+
kind: "door-access";
|
|
124
|
+
token: string | null;
|
|
125
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
126
|
+
allowed: boolean;
|
|
127
|
+
doorExit: boolean;
|
|
128
|
+
personId?: string | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
readonly 'door-opened': z.ZodObject<{
|
|
131
|
+
kind: z.ZodLiteral<"door-opened">;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
kind: "door-opened";
|
|
134
|
+
}, {
|
|
135
|
+
kind: "door-opened";
|
|
136
|
+
}>;
|
|
137
|
+
readonly 'door-closed': z.ZodObject<{
|
|
138
|
+
kind: z.ZodLiteral<"door-closed">;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
kind: "door-closed";
|
|
141
|
+
}, {
|
|
142
|
+
kind: "door-closed";
|
|
143
|
+
}>;
|
|
144
|
+
readonly 'door-force': z.ZodObject<{
|
|
145
|
+
kind: z.ZodLiteral<"door-force">;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
kind: "door-force";
|
|
148
|
+
}, {
|
|
149
|
+
kind: "door-force";
|
|
150
|
+
}>;
|
|
151
|
+
readonly 'door-tamper': z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"door-tamper">;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
kind: "door-tamper";
|
|
155
|
+
}, {
|
|
156
|
+
kind: "door-tamper";
|
|
157
|
+
}>;
|
|
158
|
+
readonly 'door-left-open': z.ZodObject<{
|
|
159
|
+
kind: z.ZodLiteral<"door-left-open">;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
kind: "door-left-open";
|
|
162
|
+
}, {
|
|
163
|
+
kind: "door-left-open";
|
|
164
|
+
}>;
|
|
165
|
+
readonly 'door-relock': z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"door-relock">;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
kind: "door-relock";
|
|
169
|
+
}, {
|
|
170
|
+
kind: "door-relock";
|
|
171
|
+
}>;
|
|
172
|
+
readonly 'door-mains-failed': z.ZodObject<{
|
|
173
|
+
kind: z.ZodLiteral<"door-mains-failed">;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
kind: "door-mains-failed";
|
|
176
|
+
}, {
|
|
177
|
+
kind: "door-mains-failed";
|
|
178
|
+
}>;
|
|
179
|
+
readonly 'door-acu-not-responding': z.ZodObject<{
|
|
180
|
+
kind: z.ZodLiteral<"door-acu-not-responding">;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
kind: "door-acu-not-responding";
|
|
183
|
+
}, {
|
|
184
|
+
kind: "door-acu-not-responding";
|
|
185
|
+
}>;
|
|
186
|
+
readonly 'door-mains-restored': z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"door-mains-restored">;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
kind: "door-mains-restored";
|
|
190
|
+
}, {
|
|
191
|
+
kind: "door-mains-restored";
|
|
192
|
+
}>;
|
|
193
|
+
readonly 'door-acu-online': z.ZodObject<{
|
|
194
|
+
kind: z.ZodLiteral<"door-acu-online">;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
kind: "door-acu-online";
|
|
197
|
+
}, {
|
|
198
|
+
kind: "door-acu-online";
|
|
199
|
+
}>;
|
|
200
|
+
readonly 'door-tamper-restored': z.ZodObject<{
|
|
201
|
+
kind: z.ZodLiteral<"door-tamper-restored">;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
kind: "door-tamper-restored";
|
|
204
|
+
}, {
|
|
205
|
+
kind: "door-tamper-restored";
|
|
206
|
+
}>;
|
|
207
|
+
};
|
|
208
|
+
export type DoorAccessEvent = z.infer<typeof sDoorAccessEvent>;
|
|
209
|
+
export type DoorOpenedEvent = z.infer<typeof sDoorOpened>;
|
|
210
|
+
export type DoorClosedEvent = z.infer<typeof sDoorClosed>;
|
|
211
|
+
export type DoorForceEvent = z.infer<typeof sDoorForceEvent>;
|
|
212
|
+
export type DoorTamperEvent = z.infer<typeof sDoorTamperEvent>;
|
|
213
|
+
export type DoorLeftOpenEvent = z.infer<typeof sDoorLeftOpenEvent>;
|
|
214
|
+
export type DoorRelockEvent = z.infer<typeof sDoorRelockEvent>;
|
|
215
|
+
export type DoorMainsFailedEvent = z.infer<typeof sDoorMainsFailedEvent>;
|
|
216
|
+
export type DoorAcuNotRespondingEvent = z.infer<typeof sDoorAcuNotRespondingEvent>;
|
|
217
|
+
export type DoorMainsRestoredEvent = z.infer<typeof sDoorMainsRestoredEvent>;
|
|
218
|
+
export type DoorAcuOnlineEvent = z.infer<typeof sDoorAcuOnlineEvent>;
|
|
219
|
+
export type DoorTamperRestoredEvent = z.infer<typeof sDoorTamperRestoredEvent>;
|
|
220
|
+
export type DoorEvent = DoorAccessEvent | DoorOpenedEvent | DoorClosedEvent | DoorForceEvent | DoorTamperEvent | DoorLeftOpenEvent | DoorRelockEvent | DoorMainsFailedEvent | DoorAcuNotRespondingEvent | DoorMainsRestoredEvent | DoorAcuOnlineEvent | DoorTamperRestoredEvent;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.doorEventSchemaByKind = exports.sDoorTamperRestoredEvent = exports.sDoorAcuOnlineEvent = exports.sDoorMainsRestoredEvent = exports.sDoorAcuNotRespondingEvent = exports.sDoorMainsFailedEvent = exports.sDoorRelockEvent = exports.sDoorLeftOpenEvent = exports.sDoorTamperEvent = exports.sDoorForceEvent = exports.sDoorClosed = exports.sDoorOpened = exports.sDoorAccessEvent = void 0;
|
|
4
|
+
const access_control_1 = require("../access-control");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
// EVENTS
|
|
7
|
+
exports.sDoorAccessEvent = zod_1.z.object({
|
|
8
|
+
kind: zod_1.z.literal('door-access'),
|
|
9
|
+
personId: zod_1.z.string().optional(),
|
|
10
|
+
token: zod_1.z.string().nullable(),
|
|
11
|
+
tokenType: access_control_1.sCredentialType.nullable(),
|
|
12
|
+
allowed: zod_1.z.boolean(),
|
|
13
|
+
doorExit: zod_1.z.boolean(),
|
|
14
|
+
description: zod_1.z.string(),
|
|
15
|
+
});
|
|
16
|
+
exports.sDoorOpened = zod_1.z.object({
|
|
17
|
+
kind: zod_1.z.literal('door-opened'),
|
|
18
|
+
});
|
|
19
|
+
exports.sDoorClosed = zod_1.z.object({
|
|
20
|
+
kind: zod_1.z.literal('door-closed'),
|
|
21
|
+
});
|
|
22
|
+
exports.sDoorForceEvent = zod_1.z.object({
|
|
23
|
+
kind: zod_1.z.literal('door-force'),
|
|
24
|
+
});
|
|
25
|
+
exports.sDoorTamperEvent = zod_1.z.object({
|
|
26
|
+
kind: zod_1.z.literal('door-tamper'),
|
|
27
|
+
});
|
|
28
|
+
exports.sDoorLeftOpenEvent = zod_1.z.object({
|
|
29
|
+
kind: zod_1.z.literal('door-left-open'),
|
|
30
|
+
});
|
|
31
|
+
exports.sDoorRelockEvent = zod_1.z.object({
|
|
32
|
+
kind: zod_1.z.literal('door-relock'),
|
|
33
|
+
});
|
|
34
|
+
exports.sDoorMainsFailedEvent = zod_1.z.object({
|
|
35
|
+
kind: zod_1.z.literal('door-mains-failed'),
|
|
36
|
+
});
|
|
37
|
+
exports.sDoorAcuNotRespondingEvent = zod_1.z.object({
|
|
38
|
+
kind: zod_1.z.literal('door-acu-not-responding'),
|
|
39
|
+
});
|
|
40
|
+
exports.sDoorMainsRestoredEvent = zod_1.z.object({
|
|
41
|
+
kind: zod_1.z.literal('door-mains-restored'),
|
|
42
|
+
});
|
|
43
|
+
exports.sDoorAcuOnlineEvent = zod_1.z.object({
|
|
44
|
+
kind: zod_1.z.literal('door-acu-online'),
|
|
45
|
+
});
|
|
46
|
+
exports.sDoorTamperRestoredEvent = zod_1.z.object({
|
|
47
|
+
kind: zod_1.z.literal('door-tamper-restored'),
|
|
48
|
+
});
|
|
49
|
+
exports.doorEventSchemaByKind = {
|
|
50
|
+
'door-access': exports.sDoorAccessEvent,
|
|
51
|
+
'door-opened': exports.sDoorOpened,
|
|
52
|
+
'door-closed': exports.sDoorClosed,
|
|
53
|
+
'door-force': exports.sDoorForceEvent,
|
|
54
|
+
'door-tamper': exports.sDoorTamperEvent,
|
|
55
|
+
'door-left-open': exports.sDoorLeftOpenEvent,
|
|
56
|
+
'door-relock': exports.sDoorRelockEvent,
|
|
57
|
+
'door-mains-failed': exports.sDoorMainsFailedEvent,
|
|
58
|
+
'door-acu-not-responding': exports.sDoorAcuNotRespondingEvent,
|
|
59
|
+
'door-mains-restored': exports.sDoorMainsRestoredEvent,
|
|
60
|
+
'door-acu-online': exports.sDoorAcuOnlineEvent,
|
|
61
|
+
'door-tamper-restored': exports.sDoorTamperRestoredEvent,
|
|
62
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './camera';
|
|
2
|
+
export * from './door';
|
|
3
|
+
export * from './io-board';
|
|
4
|
+
export * from './intercom-terminal';
|
|
5
|
+
export * from './panic-button';
|
|
6
|
+
export * from './server';
|
|
7
|
+
export * from './reader';
|
|
8
|
+
export * from './alarm';
|
|
9
|
+
export * from './presence-tracker';
|
|
10
|
+
export * from './display';
|
|
11
|
+
export * from './nvr-exporter';
|
|
12
|
+
export * from './all';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./camera"), exports);
|
|
18
|
+
__exportStar(require("./door"), exports);
|
|
19
|
+
__exportStar(require("./io-board"), exports);
|
|
20
|
+
__exportStar(require("./intercom-terminal"), exports);
|
|
21
|
+
__exportStar(require("./panic-button"), exports);
|
|
22
|
+
__exportStar(require("./server"), exports);
|
|
23
|
+
__exportStar(require("./reader"), exports);
|
|
24
|
+
__exportStar(require("./alarm"), exports);
|
|
25
|
+
__exportStar(require("./presence-tracker"), exports);
|
|
26
|
+
__exportStar(require("./display"), exports);
|
|
27
|
+
__exportStar(require("./nvr-exporter"), exports);
|
|
28
|
+
__exportStar(require("./all"), exports);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sCallStateChanged: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"call-state-changed">;
|
|
4
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
callId: z.ZodString;
|
|
6
|
+
state: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
7
|
+
peer: z.ZodOptional<z.ZodString>;
|
|
8
|
+
sipAccount: z.ZodOptional<z.ZodString>;
|
|
9
|
+
sipCallId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
direction: z.ZodEnum<["incoming", "outgoing"]>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
13
|
+
direction: "incoming" | "outgoing";
|
|
14
|
+
kind: "call-state-changed";
|
|
15
|
+
callId: string;
|
|
16
|
+
peer?: string | undefined;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
sipAccount?: string | undefined;
|
|
19
|
+
sipCallId?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
22
|
+
direction: "incoming" | "outgoing";
|
|
23
|
+
kind: "call-state-changed";
|
|
24
|
+
callId: string;
|
|
25
|
+
peer?: string | undefined;
|
|
26
|
+
userId?: string | undefined;
|
|
27
|
+
sipAccount?: string | undefined;
|
|
28
|
+
sipCallId?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const intercomTerminalEventSchemaByKind: {
|
|
31
|
+
'call-state-changed': z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"call-state-changed">;
|
|
33
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
callId: z.ZodString;
|
|
35
|
+
state: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
36
|
+
peer: z.ZodOptional<z.ZodString>;
|
|
37
|
+
sipAccount: z.ZodOptional<z.ZodString>;
|
|
38
|
+
sipCallId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
direction: z.ZodEnum<["incoming", "outgoing"]>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
42
|
+
direction: "incoming" | "outgoing";
|
|
43
|
+
kind: "call-state-changed";
|
|
44
|
+
callId: string;
|
|
45
|
+
peer?: string | undefined;
|
|
46
|
+
userId?: string | undefined;
|
|
47
|
+
sipAccount?: string | undefined;
|
|
48
|
+
sipCallId?: string | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
state: "connected" | "connecting" | "ringing" | "terminated";
|
|
51
|
+
direction: "incoming" | "outgoing";
|
|
52
|
+
kind: "call-state-changed";
|
|
53
|
+
callId: string;
|
|
54
|
+
peer?: string | undefined;
|
|
55
|
+
userId?: string | undefined;
|
|
56
|
+
sipAccount?: string | undefined;
|
|
57
|
+
sipCallId?: string | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
};
|
|
60
|
+
export type CallStateChangedEvent = z.infer<typeof sCallStateChanged>;
|
|
61
|
+
export type IntercomTerminalEvent = CallStateChangedEvent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.intercomTerminalEventSchemaByKind = exports.sCallStateChanged = void 0;
|
|
4
|
+
const primitives_1 = require("../primitives");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
// EVENTS
|
|
7
|
+
exports.sCallStateChanged = zod_1.z.object({
|
|
8
|
+
kind: zod_1.z.literal('call-state-changed'),
|
|
9
|
+
userId: zod_1.z.string().optional(),
|
|
10
|
+
callId: zod_1.z.string().nonempty(),
|
|
11
|
+
state: primitives_1.sCallState,
|
|
12
|
+
peer: zod_1.z.string().optional(),
|
|
13
|
+
sipAccount: zod_1.z.string().optional(),
|
|
14
|
+
sipCallId: zod_1.z.string().optional(),
|
|
15
|
+
direction: primitives_1.sCallDirection,
|
|
16
|
+
});
|
|
17
|
+
exports.intercomTerminalEventSchemaByKind = {
|
|
18
|
+
'call-state-changed': exports.sCallStateChanged,
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sIoBoardInputChangedEvent: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"io-board-input-changed">;
|
|
4
|
+
inputName: z.ZodString;
|
|
5
|
+
value: z.ZodBoolean;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
value: boolean;
|
|
8
|
+
kind: "io-board-input-changed";
|
|
9
|
+
inputName: string;
|
|
10
|
+
}, {
|
|
11
|
+
value: boolean;
|
|
12
|
+
kind: "io-board-input-changed";
|
|
13
|
+
inputName: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const ioBoardEventSchemaByKind: {
|
|
16
|
+
readonly 'io-board-input-changed': z.ZodObject<{
|
|
17
|
+
kind: z.ZodLiteral<"io-board-input-changed">;
|
|
18
|
+
inputName: z.ZodString;
|
|
19
|
+
value: z.ZodBoolean;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
value: boolean;
|
|
22
|
+
kind: "io-board-input-changed";
|
|
23
|
+
inputName: string;
|
|
24
|
+
}, {
|
|
25
|
+
value: boolean;
|
|
26
|
+
kind: "io-board-input-changed";
|
|
27
|
+
inputName: string;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export type IoBoardInputChangedEvent = z.infer<typeof sIoBoardInputChangedEvent>;
|
|
31
|
+
export type IoBoardEvent = IoBoardInputChangedEvent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ioBoardEventSchemaByKind = exports.sIoBoardInputChangedEvent = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// EVENTS
|
|
6
|
+
exports.sIoBoardInputChangedEvent = zod_1.z.object({
|
|
7
|
+
kind: zod_1.z.literal('io-board-input-changed'),
|
|
8
|
+
inputName: zod_1.z.string().nonempty(),
|
|
9
|
+
value: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
exports.ioBoardEventSchemaByKind = {
|
|
12
|
+
'io-board-input-changed': exports.sIoBoardInputChangedEvent,
|
|
13
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sExportStarted: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"nvr-export-started">;
|
|
4
|
+
exportId: z.ZodString;
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
kind: "nvr-export-started";
|
|
8
|
+
requestId: string;
|
|
9
|
+
exportId: string;
|
|
10
|
+
}, {
|
|
11
|
+
kind: "nvr-export-started";
|
|
12
|
+
requestId: string;
|
|
13
|
+
exportId: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type ExportStarted = z.infer<typeof sExportStarted>;
|
|
16
|
+
export declare const sExportDeleted: z.ZodObject<{
|
|
17
|
+
kind: z.ZodLiteral<"nvr-export-deleted">;
|
|
18
|
+
exportId: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
kind: "nvr-export-deleted";
|
|
21
|
+
exportId: string;
|
|
22
|
+
}, {
|
|
23
|
+
kind: "nvr-export-deleted";
|
|
24
|
+
exportId: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type ExportDeleted = z.infer<typeof sExportDeleted>;
|
|
27
|
+
export type NvrExporterEvent = ExportStarted | ExportDeleted;
|
|
28
|
+
export declare const nvrExporterEventSchemasByKind: {
|
|
29
|
+
readonly 'nvr-export-started': z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"nvr-export-started">;
|
|
31
|
+
exportId: z.ZodString;
|
|
32
|
+
requestId: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
kind: "nvr-export-started";
|
|
35
|
+
requestId: string;
|
|
36
|
+
exportId: string;
|
|
37
|
+
}, {
|
|
38
|
+
kind: "nvr-export-started";
|
|
39
|
+
requestId: string;
|
|
40
|
+
exportId: string;
|
|
41
|
+
}>;
|
|
42
|
+
readonly 'nvr-export-deleted': z.ZodObject<{
|
|
43
|
+
kind: z.ZodLiteral<"nvr-export-deleted">;
|
|
44
|
+
exportId: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
kind: "nvr-export-deleted";
|
|
47
|
+
exportId: string;
|
|
48
|
+
}, {
|
|
49
|
+
kind: "nvr-export-deleted";
|
|
50
|
+
exportId: string;
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nvrExporterEventSchemasByKind = exports.sExportDeleted = exports.sExportStarted = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// EVENTS
|
|
6
|
+
exports.sExportStarted = zod_1.z.object({
|
|
7
|
+
kind: zod_1.z.literal('nvr-export-started'),
|
|
8
|
+
exportId: zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.nonempty()
|
|
11
|
+
.describe('The ID of the export, will be used to reference the export in future commands and queries'),
|
|
12
|
+
requestId: zod_1.z.string().nonempty(),
|
|
13
|
+
});
|
|
14
|
+
exports.sExportDeleted = zod_1.z.object({
|
|
15
|
+
kind: zod_1.z.literal('nvr-export-deleted'),
|
|
16
|
+
exportId: zod_1.z.string().nonempty(),
|
|
17
|
+
});
|
|
18
|
+
exports.nvrExporterEventSchemasByKind = {
|
|
19
|
+
'nvr-export-started': exports.sExportStarted,
|
|
20
|
+
'nvr-export-deleted': exports.sExportDeleted,
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sPanicButtonPressedEvent: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"panic-button-pressed">;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
kind: "panic-button-pressed";
|
|
6
|
+
}, {
|
|
7
|
+
kind: "panic-button-pressed";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const panicButtonEventSchemaByKind: {
|
|
10
|
+
readonly 'panic-button-pressed': z.ZodObject<{
|
|
11
|
+
kind: z.ZodLiteral<"panic-button-pressed">;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
kind: "panic-button-pressed";
|
|
14
|
+
}, {
|
|
15
|
+
kind: "panic-button-pressed";
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
export type PanicButtonPressedEvent = z.infer<typeof sPanicButtonPressedEvent>;
|
|
19
|
+
export type PanicButtonEvent = PanicButtonPressedEvent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.panicButtonEventSchemaByKind = exports.sPanicButtonPressedEvent = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// EVENTS
|
|
6
|
+
exports.sPanicButtonPressedEvent = zod_1.z.object({
|
|
7
|
+
kind: zod_1.z.literal('panic-button-pressed'),
|
|
8
|
+
});
|
|
9
|
+
exports.panicButtonEventSchemaByKind = {
|
|
10
|
+
'panic-button-pressed': exports.sPanicButtonPressedEvent,
|
|
11
|
+
};
|