@awarevue/api-types 1.0.88 → 1.0.90
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/device/server.d.ts +29 -1
- package/dist/device/server.js +11 -1
- package/dist/device-event.js +2 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/device/server.d.ts
CHANGED
|
@@ -34,6 +34,34 @@ export type ServerState = {
|
|
|
34
34
|
accessControlProviders: Record<string, AccessControlProviderState>;
|
|
35
35
|
citadelMode: boolean;
|
|
36
36
|
};
|
|
37
|
+
export declare const sAgentStarted: z.ZodObject<{
|
|
38
|
+
kind: z.ZodLiteral<"agent-started">;
|
|
39
|
+
agent: z.ZodString;
|
|
40
|
+
providers: z.ZodArray<z.ZodString, "many">;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
kind: "agent-started";
|
|
43
|
+
agent: string;
|
|
44
|
+
providers: string[];
|
|
45
|
+
}, {
|
|
46
|
+
kind: "agent-started";
|
|
47
|
+
agent: string;
|
|
48
|
+
providers: string[];
|
|
49
|
+
}>;
|
|
50
|
+
export declare const sAgentStopped: z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"agent-stopped">;
|
|
52
|
+
agent: z.ZodString;
|
|
53
|
+
providers: z.ZodArray<z.ZodString, "many">;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
kind: "agent-stopped";
|
|
56
|
+
agent: string;
|
|
57
|
+
providers: string[];
|
|
58
|
+
}, {
|
|
59
|
+
kind: "agent-stopped";
|
|
60
|
+
agent: string;
|
|
61
|
+
providers: string[];
|
|
62
|
+
}>;
|
|
63
|
+
export type AgentStarted = z.infer<typeof sAgentStarted>;
|
|
64
|
+
export type AgentStopped = z.infer<typeof sAgentStopped>;
|
|
37
65
|
export declare const sObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone", "personPresence", "deviceGroup", "view", "layout", "automationRule", "macro", "role", "user", "securityLevel", "bookmark"]>;
|
|
38
66
|
export type ObjectKind = z.infer<typeof sObjectKind>;
|
|
39
67
|
export type ObjectKinds = {
|
|
@@ -88,5 +116,5 @@ export type ObjectDeleted = {
|
|
|
88
116
|
userId?: string;
|
|
89
117
|
};
|
|
90
118
|
}[keyof ObjectKinds];
|
|
91
|
-
export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted;
|
|
119
|
+
export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped;
|
|
92
120
|
export declare const objectLabels: Record<string, string>;
|
package/dist/device/server.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.objectLabels = exports.objectKinds = exports.sObjectKind = exports.SERVER = void 0;
|
|
3
|
+
exports.objectLabels = exports.objectKinds = exports.sObjectKind = exports.sAgentStopped = exports.sAgentStarted = exports.SERVER = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.SERVER = 'server';
|
|
6
6
|
// EVENTS
|
|
7
|
+
exports.sAgentStarted = zod_1.z.object({
|
|
8
|
+
kind: zod_1.z.literal('agent-started'),
|
|
9
|
+
agent: zod_1.z.string(),
|
|
10
|
+
providers: zod_1.z.array(zod_1.z.string()),
|
|
11
|
+
});
|
|
12
|
+
exports.sAgentStopped = zod_1.z.object({
|
|
13
|
+
kind: zod_1.z.literal('agent-stopped'),
|
|
14
|
+
agent: zod_1.z.string(),
|
|
15
|
+
providers: zod_1.z.array(zod_1.z.string()),
|
|
16
|
+
});
|
|
7
17
|
exports.sObjectKind = zod_1.z.enum([
|
|
8
18
|
'accessRule',
|
|
9
19
|
'schedule',
|
package/dist/device-event.js
CHANGED
|
@@ -58,6 +58,8 @@ exports.eventKindLabels = {
|
|
|
58
58
|
'scene-updated': 'Scene Updated',
|
|
59
59
|
'scene-ended': 'Scene Ended',
|
|
60
60
|
'io-board-input-changed': 'IO Board Input Changed',
|
|
61
|
+
'agent-started': 'Agent Started',
|
|
62
|
+
'agent-stopped': 'Agent Stopped',
|
|
61
63
|
};
|
|
62
64
|
exports.eventSchemaByKind = {
|
|
63
65
|
...alarm_1.alarmEventSchemasByKind,
|
package/dist/package.json
CHANGED