@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
package/dist/device/server.d.ts
CHANGED
|
@@ -1,143 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { ModuleConfig, ModuleConfigMetadata } from '../module-config';
|
|
3
2
|
import { AccessControlCapabilityReport } from '../agent-communication';
|
|
4
|
-
import { ObjectKinds } from '../objects';
|
|
5
3
|
export declare const SERVER = "server";
|
|
6
|
-
export declare const sRunMacroCommand: z.ZodObject<{
|
|
7
|
-
command: z.ZodLiteral<"server.run-macro">;
|
|
8
|
-
params: z.ZodObject<{
|
|
9
|
-
macroId: z.ZodString;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
macroId: string;
|
|
12
|
-
}, {
|
|
13
|
-
macroId: string;
|
|
14
|
-
}>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
params: {
|
|
17
|
-
macroId: string;
|
|
18
|
-
};
|
|
19
|
-
command: "server.run-macro";
|
|
20
|
-
}, {
|
|
21
|
-
params: {
|
|
22
|
-
macroId: string;
|
|
23
|
-
};
|
|
24
|
-
command: "server.run-macro";
|
|
25
|
-
}>;
|
|
26
|
-
export declare const sNotify: z.ZodObject<{
|
|
27
|
-
command: z.ZodLiteral<"server.notify">;
|
|
28
|
-
params: z.ZodObject<{
|
|
29
|
-
source: z.ZodString;
|
|
30
|
-
message: z.ZodString;
|
|
31
|
-
severity: z.ZodEnum<["info", "warning", "critical"]>;
|
|
32
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
33
|
-
notificationRef: z.ZodNullable<z.ZodString>;
|
|
34
|
-
recipientId: z.ZodNullable<z.ZodString>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
message: string;
|
|
37
|
-
source: string;
|
|
38
|
-
metadata: Record<string, unknown>;
|
|
39
|
-
notificationRef: string | null;
|
|
40
|
-
severity: "info" | "warning" | "critical";
|
|
41
|
-
recipientId: string | null;
|
|
42
|
-
}, {
|
|
43
|
-
message: string;
|
|
44
|
-
source: string;
|
|
45
|
-
metadata: Record<string, unknown>;
|
|
46
|
-
notificationRef: string | null;
|
|
47
|
-
severity: "info" | "warning" | "critical";
|
|
48
|
-
recipientId: string | null;
|
|
49
|
-
}>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
params: {
|
|
52
|
-
message: string;
|
|
53
|
-
source: string;
|
|
54
|
-
metadata: Record<string, unknown>;
|
|
55
|
-
notificationRef: string | null;
|
|
56
|
-
severity: "info" | "warning" | "critical";
|
|
57
|
-
recipientId: string | null;
|
|
58
|
-
};
|
|
59
|
-
command: "server.notify";
|
|
60
|
-
}, {
|
|
61
|
-
params: {
|
|
62
|
-
message: string;
|
|
63
|
-
source: string;
|
|
64
|
-
metadata: Record<string, unknown>;
|
|
65
|
-
notificationRef: string | null;
|
|
66
|
-
severity: "info" | "warning" | "critical";
|
|
67
|
-
recipientId: string | null;
|
|
68
|
-
};
|
|
69
|
-
command: "server.notify";
|
|
70
|
-
}>;
|
|
71
|
-
export type RunMacro = z.infer<typeof sRunMacroCommand>;
|
|
72
|
-
export type Notify = z.infer<typeof sNotify>;
|
|
73
|
-
export declare const serverCommands: {
|
|
74
|
-
readonly 'server.run-macro': z.ZodObject<{
|
|
75
|
-
command: z.ZodLiteral<"server.run-macro">;
|
|
76
|
-
params: z.ZodObject<{
|
|
77
|
-
macroId: z.ZodString;
|
|
78
|
-
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
macroId: string;
|
|
80
|
-
}, {
|
|
81
|
-
macroId: string;
|
|
82
|
-
}>;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
params: {
|
|
85
|
-
macroId: string;
|
|
86
|
-
};
|
|
87
|
-
command: "server.run-macro";
|
|
88
|
-
}, {
|
|
89
|
-
params: {
|
|
90
|
-
macroId: string;
|
|
91
|
-
};
|
|
92
|
-
command: "server.run-macro";
|
|
93
|
-
}>;
|
|
94
|
-
readonly 'server.notify': z.ZodObject<{
|
|
95
|
-
command: z.ZodLiteral<"server.notify">;
|
|
96
|
-
params: z.ZodObject<{
|
|
97
|
-
source: z.ZodString;
|
|
98
|
-
message: z.ZodString;
|
|
99
|
-
severity: z.ZodEnum<["info", "warning", "critical"]>;
|
|
100
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
101
|
-
notificationRef: z.ZodNullable<z.ZodString>;
|
|
102
|
-
recipientId: z.ZodNullable<z.ZodString>;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
message: string;
|
|
105
|
-
source: string;
|
|
106
|
-
metadata: Record<string, unknown>;
|
|
107
|
-
notificationRef: string | null;
|
|
108
|
-
severity: "info" | "warning" | "critical";
|
|
109
|
-
recipientId: string | null;
|
|
110
|
-
}, {
|
|
111
|
-
message: string;
|
|
112
|
-
source: string;
|
|
113
|
-
metadata: Record<string, unknown>;
|
|
114
|
-
notificationRef: string | null;
|
|
115
|
-
severity: "info" | "warning" | "critical";
|
|
116
|
-
recipientId: string | null;
|
|
117
|
-
}>;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
params: {
|
|
120
|
-
message: string;
|
|
121
|
-
source: string;
|
|
122
|
-
metadata: Record<string, unknown>;
|
|
123
|
-
notificationRef: string | null;
|
|
124
|
-
severity: "info" | "warning" | "critical";
|
|
125
|
-
recipientId: string | null;
|
|
126
|
-
};
|
|
127
|
-
command: "server.notify";
|
|
128
|
-
}, {
|
|
129
|
-
params: {
|
|
130
|
-
message: string;
|
|
131
|
-
source: string;
|
|
132
|
-
metadata: Record<string, unknown>;
|
|
133
|
-
notificationRef: string | null;
|
|
134
|
-
severity: "info" | "warning" | "critical";
|
|
135
|
-
recipientId: string | null;
|
|
136
|
-
};
|
|
137
|
-
command: "server.notify";
|
|
138
|
-
}>;
|
|
139
|
-
};
|
|
140
|
-
export type ServerCommand = RunMacro | Notify;
|
|
141
4
|
export type AccessControlProviderState = AccessControlCapabilityReport & {
|
|
142
5
|
syncInProgress: boolean;
|
|
143
6
|
lastSyncError: string | null;
|
|
@@ -153,66 +16,3 @@ export type ServerState = {
|
|
|
153
16
|
accessControlProviders: Record<string, AccessControlProviderState>;
|
|
154
17
|
citadelMode: boolean;
|
|
155
18
|
};
|
|
156
|
-
export declare const sAgentStarted: z.ZodObject<{
|
|
157
|
-
kind: z.ZodLiteral<"agent-started">;
|
|
158
|
-
agent: z.ZodString;
|
|
159
|
-
providers: z.ZodArray<z.ZodString, "many">;
|
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
kind: "agent-started";
|
|
162
|
-
providers: string[];
|
|
163
|
-
agent: string;
|
|
164
|
-
}, {
|
|
165
|
-
kind: "agent-started";
|
|
166
|
-
providers: string[];
|
|
167
|
-
agent: string;
|
|
168
|
-
}>;
|
|
169
|
-
export declare const sAgentStopped: z.ZodObject<{
|
|
170
|
-
kind: z.ZodLiteral<"agent-stopped">;
|
|
171
|
-
agent: z.ZodString;
|
|
172
|
-
providers: z.ZodArray<z.ZodString, "many">;
|
|
173
|
-
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
kind: "agent-stopped";
|
|
175
|
-
providers: string[];
|
|
176
|
-
agent: string;
|
|
177
|
-
}, {
|
|
178
|
-
kind: "agent-stopped";
|
|
179
|
-
providers: string[];
|
|
180
|
-
agent: string;
|
|
181
|
-
}>;
|
|
182
|
-
export type AgentStarted = z.infer<typeof sAgentStarted>;
|
|
183
|
-
export type AgentStopped = z.infer<typeof sAgentStopped>;
|
|
184
|
-
export type ObjectCreated = {
|
|
185
|
-
[K in keyof ObjectKinds]: {
|
|
186
|
-
originator: string;
|
|
187
|
-
objectVersion: number;
|
|
188
|
-
objectKind: K;
|
|
189
|
-
data: ObjectKinds[K];
|
|
190
|
-
objectId: string;
|
|
191
|
-
kind: 'object-created';
|
|
192
|
-
userId?: string;
|
|
193
|
-
};
|
|
194
|
-
}[keyof ObjectKinds];
|
|
195
|
-
export type ObjectUpdated = {
|
|
196
|
-
[K in keyof ObjectKinds]: {
|
|
197
|
-
originator: string;
|
|
198
|
-
objectVersion: number;
|
|
199
|
-
objectKind: K;
|
|
200
|
-
original: ObjectKinds[K];
|
|
201
|
-
changes: Partial<ObjectKinds[K]>;
|
|
202
|
-
objectId: string;
|
|
203
|
-
kind: 'object-updated';
|
|
204
|
-
userId?: string;
|
|
205
|
-
};
|
|
206
|
-
}[keyof ObjectKinds];
|
|
207
|
-
export type ObjectDeleted = {
|
|
208
|
-
[K in keyof ObjectKinds]: {
|
|
209
|
-
originator: string;
|
|
210
|
-
objectVersion: number;
|
|
211
|
-
objectKind: K;
|
|
212
|
-
data: ObjectKinds[K];
|
|
213
|
-
objectId: string;
|
|
214
|
-
kind: 'object-deleted';
|
|
215
|
-
userId?: string;
|
|
216
|
-
};
|
|
217
|
-
}[keyof ObjectKinds];
|
|
218
|
-
export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped;
|
package/dist/device/server.js
CHANGED
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const primitives_1 = require("../primitives");
|
|
3
|
+
exports.SERVER = void 0;
|
|
6
4
|
exports.SERVER = 'server';
|
|
7
|
-
// SPECS
|
|
8
|
-
// COMMANDS
|
|
9
|
-
exports.sRunMacroCommand = zod_1.z.object({
|
|
10
|
-
command: zod_1.z.literal('server.run-macro'),
|
|
11
|
-
params: zod_1.z.object({
|
|
12
|
-
macroId: primitives_1.sMacroId,
|
|
13
|
-
}),
|
|
14
|
-
});
|
|
15
|
-
exports.sNotify = zod_1.z.object({
|
|
16
|
-
command: zod_1.z.literal('server.notify'),
|
|
17
|
-
params: zod_1.z.object({
|
|
18
|
-
source: primitives_1.sDeviceId,
|
|
19
|
-
message: zod_1.z.string().nonempty(),
|
|
20
|
-
severity: primitives_1.sNotificationSeverity,
|
|
21
|
-
metadata: zod_1.z.record(zod_1.z.unknown()),
|
|
22
|
-
notificationRef: zod_1.z.string().nonempty().nullable(),
|
|
23
|
-
recipientId: zod_1.z.string().nonempty().nullable(),
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
|
-
exports.serverCommands = {
|
|
27
|
-
'server.run-macro': exports.sRunMacroCommand,
|
|
28
|
-
'server.notify': exports.sNotify,
|
|
29
|
-
};
|
|
30
|
-
// EVENTS
|
|
31
|
-
exports.sAgentStarted = zod_1.z.object({
|
|
32
|
-
kind: zod_1.z.literal('agent-started'),
|
|
33
|
-
agent: zod_1.z.string(),
|
|
34
|
-
providers: zod_1.z.array(zod_1.z.string()),
|
|
35
|
-
});
|
|
36
|
-
exports.sAgentStopped = zod_1.z.object({
|
|
37
|
-
kind: zod_1.z.literal('agent-stopped'),
|
|
38
|
-
agent: zod_1.z.string(),
|
|
39
|
-
providers: zod_1.z.array(zod_1.z.string()),
|
|
40
|
-
});
|
package/dist/device/system.d.ts
CHANGED
|
@@ -4,45 +4,3 @@ export declare const sSystemDeviceSpecs: z.ZodObject<{}, "strip", z.ZodTypeAny,
|
|
|
4
4
|
export type SystemDeviceSpecs = z.infer<typeof sSystemDeviceSpecs>;
|
|
5
5
|
export declare const sSystemDeviceStateDto: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
6
|
export type SystemDeviceStateDto = z.infer<typeof sSystemDeviceStateDto>;
|
|
7
|
-
export declare const sNotificationCreated: z.ZodObject<{
|
|
8
|
-
kind: z.ZodLiteral<"notification-created">;
|
|
9
|
-
notificationRef: z.ZodOptional<z.ZodString>;
|
|
10
|
-
severity: z.ZodEnum<["info", "warning", "critical"]>;
|
|
11
|
-
message: z.ZodString;
|
|
12
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
message: string;
|
|
15
|
-
kind: "notification-created";
|
|
16
|
-
severity: "info" | "warning" | "critical";
|
|
17
|
-
metadata?: Record<string, unknown> | undefined;
|
|
18
|
-
notificationRef?: string | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
message: string;
|
|
21
|
-
kind: "notification-created";
|
|
22
|
-
severity: "info" | "warning" | "critical";
|
|
23
|
-
metadata?: Record<string, unknown> | undefined;
|
|
24
|
-
notificationRef?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const systemDeviceEventSchemasByKind: {
|
|
27
|
-
readonly 'notification-created': z.ZodObject<{
|
|
28
|
-
kind: z.ZodLiteral<"notification-created">;
|
|
29
|
-
notificationRef: z.ZodOptional<z.ZodString>;
|
|
30
|
-
severity: z.ZodEnum<["info", "warning", "critical"]>;
|
|
31
|
-
message: z.ZodString;
|
|
32
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
message: string;
|
|
35
|
-
kind: "notification-created";
|
|
36
|
-
severity: "info" | "warning" | "critical";
|
|
37
|
-
metadata?: Record<string, unknown> | undefined;
|
|
38
|
-
notificationRef?: string | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
message: string;
|
|
41
|
-
kind: "notification-created";
|
|
42
|
-
severity: "info" | "warning" | "critical";
|
|
43
|
-
metadata?: Record<string, unknown> | undefined;
|
|
44
|
-
notificationRef?: string | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
};
|
|
47
|
-
export type NotificationCreated = z.infer<typeof sNotificationCreated>;
|
|
48
|
-
export type SystemDeviceEvent = NotificationCreated;
|
package/dist/device/system.js
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const primitives_1 = require("../primitives");
|
|
3
|
+
exports.sSystemDeviceStateDto = exports.sSystemDeviceSpecs = exports.SYSTEM = void 0;
|
|
5
4
|
const zod_1 = require("zod");
|
|
6
5
|
exports.SYSTEM = 'system';
|
|
7
6
|
// SPECS
|
|
8
7
|
exports.sSystemDeviceSpecs = zod_1.z.object({});
|
|
9
8
|
// STATE
|
|
10
9
|
exports.sSystemDeviceStateDto = zod_1.z.record(zod_1.z.unknown());
|
|
11
|
-
// EVENTS
|
|
12
|
-
exports.sNotificationCreated = zod_1.z.object({
|
|
13
|
-
kind: zod_1.z.literal('notification-created'),
|
|
14
|
-
notificationRef: zod_1.z.string().optional(),
|
|
15
|
-
severity: primitives_1.sNotificationSeverity,
|
|
16
|
-
message: zod_1.z.string().nonempty(),
|
|
17
|
-
metadata: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
18
|
-
});
|
|
19
|
-
exports.systemDeviceEventSchemasByKind = {
|
|
20
|
-
'notification-created': exports.sNotificationCreated,
|
|
21
|
-
};
|