@awarevue/api-types 2.0.13 → 2.0.15
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} +650 -19
- package/dist/{device-command.js → commands/all.js} +11 -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,136 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sPersonIn: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"person-in">;
|
|
4
|
+
personId: z.ZodString;
|
|
5
|
+
personFirstName: z.ZodString;
|
|
6
|
+
personLastName: z.ZodString;
|
|
7
|
+
personAvatarId: z.ZodNullable<z.ZodString>;
|
|
8
|
+
personType: z.ZodString;
|
|
9
|
+
personPosition: z.ZodNullable<z.ZodString>;
|
|
10
|
+
zoneId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
securityChecked: z.ZodBoolean;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
kind: "person-in";
|
|
14
|
+
personId: string;
|
|
15
|
+
securityChecked: boolean;
|
|
16
|
+
zoneId: string | null;
|
|
17
|
+
personType: string;
|
|
18
|
+
personFirstName: string;
|
|
19
|
+
personLastName: string;
|
|
20
|
+
personAvatarId: string | null;
|
|
21
|
+
personPosition: string | null;
|
|
22
|
+
}, {
|
|
23
|
+
kind: "person-in";
|
|
24
|
+
personId: string;
|
|
25
|
+
securityChecked: boolean;
|
|
26
|
+
zoneId: string | null;
|
|
27
|
+
personType: string;
|
|
28
|
+
personFirstName: string;
|
|
29
|
+
personLastName: string;
|
|
30
|
+
personAvatarId: string | null;
|
|
31
|
+
personPosition: string | null;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const sPersonOut: z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"person-out">;
|
|
35
|
+
personId: z.ZodString;
|
|
36
|
+
personFirstName: z.ZodString;
|
|
37
|
+
personLastName: z.ZodString;
|
|
38
|
+
personAvatarId: z.ZodNullable<z.ZodString>;
|
|
39
|
+
personType: z.ZodString;
|
|
40
|
+
personPosition: z.ZodNullable<z.ZodString>;
|
|
41
|
+
isLeave: z.ZodBoolean;
|
|
42
|
+
zoneId: z.ZodNullable<z.ZodString>;
|
|
43
|
+
securityChecked: z.ZodBoolean;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
kind: "person-out";
|
|
46
|
+
personId: string;
|
|
47
|
+
securityChecked: boolean;
|
|
48
|
+
isLeave: boolean;
|
|
49
|
+
zoneId: string | null;
|
|
50
|
+
personType: string;
|
|
51
|
+
personFirstName: string;
|
|
52
|
+
personLastName: string;
|
|
53
|
+
personAvatarId: string | null;
|
|
54
|
+
personPosition: string | null;
|
|
55
|
+
}, {
|
|
56
|
+
kind: "person-out";
|
|
57
|
+
personId: string;
|
|
58
|
+
securityChecked: boolean;
|
|
59
|
+
isLeave: boolean;
|
|
60
|
+
zoneId: string | null;
|
|
61
|
+
personType: string;
|
|
62
|
+
personFirstName: string;
|
|
63
|
+
personLastName: string;
|
|
64
|
+
personAvatarId: string | null;
|
|
65
|
+
personPosition: string | null;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const presenceTrackerEventSchemaByKind: {
|
|
68
|
+
readonly 'person-in': z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"person-in">;
|
|
70
|
+
personId: z.ZodString;
|
|
71
|
+
personFirstName: z.ZodString;
|
|
72
|
+
personLastName: z.ZodString;
|
|
73
|
+
personAvatarId: z.ZodNullable<z.ZodString>;
|
|
74
|
+
personType: z.ZodString;
|
|
75
|
+
personPosition: z.ZodNullable<z.ZodString>;
|
|
76
|
+
zoneId: z.ZodNullable<z.ZodString>;
|
|
77
|
+
securityChecked: z.ZodBoolean;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
kind: "person-in";
|
|
80
|
+
personId: string;
|
|
81
|
+
securityChecked: boolean;
|
|
82
|
+
zoneId: string | null;
|
|
83
|
+
personType: string;
|
|
84
|
+
personFirstName: string;
|
|
85
|
+
personLastName: string;
|
|
86
|
+
personAvatarId: string | null;
|
|
87
|
+
personPosition: string | null;
|
|
88
|
+
}, {
|
|
89
|
+
kind: "person-in";
|
|
90
|
+
personId: string;
|
|
91
|
+
securityChecked: boolean;
|
|
92
|
+
zoneId: string | null;
|
|
93
|
+
personType: string;
|
|
94
|
+
personFirstName: string;
|
|
95
|
+
personLastName: string;
|
|
96
|
+
personAvatarId: string | null;
|
|
97
|
+
personPosition: string | null;
|
|
98
|
+
}>;
|
|
99
|
+
readonly 'person-out': z.ZodObject<{
|
|
100
|
+
kind: z.ZodLiteral<"person-out">;
|
|
101
|
+
personId: z.ZodString;
|
|
102
|
+
personFirstName: z.ZodString;
|
|
103
|
+
personLastName: z.ZodString;
|
|
104
|
+
personAvatarId: z.ZodNullable<z.ZodString>;
|
|
105
|
+
personType: z.ZodString;
|
|
106
|
+
personPosition: z.ZodNullable<z.ZodString>;
|
|
107
|
+
isLeave: z.ZodBoolean;
|
|
108
|
+
zoneId: z.ZodNullable<z.ZodString>;
|
|
109
|
+
securityChecked: z.ZodBoolean;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
kind: "person-out";
|
|
112
|
+
personId: string;
|
|
113
|
+
securityChecked: boolean;
|
|
114
|
+
isLeave: boolean;
|
|
115
|
+
zoneId: string | null;
|
|
116
|
+
personType: string;
|
|
117
|
+
personFirstName: string;
|
|
118
|
+
personLastName: string;
|
|
119
|
+
personAvatarId: string | null;
|
|
120
|
+
personPosition: string | null;
|
|
121
|
+
}, {
|
|
122
|
+
kind: "person-out";
|
|
123
|
+
personId: string;
|
|
124
|
+
securityChecked: boolean;
|
|
125
|
+
isLeave: boolean;
|
|
126
|
+
zoneId: string | null;
|
|
127
|
+
personType: string;
|
|
128
|
+
personFirstName: string;
|
|
129
|
+
personLastName: string;
|
|
130
|
+
personAvatarId: string | null;
|
|
131
|
+
personPosition: string | null;
|
|
132
|
+
}>;
|
|
133
|
+
};
|
|
134
|
+
export type PersonIn = z.infer<typeof sPersonIn>;
|
|
135
|
+
export type PersonOut = z.infer<typeof sPersonOut>;
|
|
136
|
+
export type PresenceTrackerEvent = PersonIn | PersonOut;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.presenceTrackerEventSchemaByKind = exports.sPersonOut = exports.sPersonIn = void 0;
|
|
4
|
+
const primitives_1 = require("../primitives");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
// EVENTS
|
|
7
|
+
exports.sPersonIn = zod_1.z.object({
|
|
8
|
+
kind: zod_1.z.literal('person-in'),
|
|
9
|
+
personId: primitives_1.sPersonId,
|
|
10
|
+
personFirstName: zod_1.z.string().nonempty(),
|
|
11
|
+
personLastName: zod_1.z.string().nonempty(),
|
|
12
|
+
personAvatarId: zod_1.z.string().nullable(),
|
|
13
|
+
personType: zod_1.z.string().nonempty(),
|
|
14
|
+
personPosition: zod_1.z.string().nullable(),
|
|
15
|
+
zoneId: zod_1.z.string().nullable(),
|
|
16
|
+
securityChecked: zod_1.z.boolean(),
|
|
17
|
+
});
|
|
18
|
+
exports.sPersonOut = zod_1.z.object({
|
|
19
|
+
kind: zod_1.z.literal('person-out'),
|
|
20
|
+
personId: primitives_1.sPersonId,
|
|
21
|
+
personFirstName: zod_1.z.string().nonempty(),
|
|
22
|
+
personLastName: zod_1.z.string().nonempty(),
|
|
23
|
+
personAvatarId: zod_1.z.string().nullable(),
|
|
24
|
+
personType: zod_1.z.string().nonempty(),
|
|
25
|
+
personPosition: zod_1.z.string().max(128).nullable(),
|
|
26
|
+
isLeave: zod_1.z.boolean(),
|
|
27
|
+
zoneId: zod_1.z.string().nullable(),
|
|
28
|
+
securityChecked: zod_1.z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
exports.presenceTrackerEventSchemaByKind = {
|
|
31
|
+
'person-in': exports.sPersonIn,
|
|
32
|
+
'person-out': exports.sPersonOut,
|
|
33
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ObjectKinds } from '../objects';
|
|
3
|
+
export declare const sAgentStarted: z.ZodObject<{
|
|
4
|
+
kind: z.ZodLiteral<"agent-started">;
|
|
5
|
+
agent: z.ZodString;
|
|
6
|
+
providers: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
kind: "agent-started";
|
|
9
|
+
providers: string[];
|
|
10
|
+
agent: string;
|
|
11
|
+
}, {
|
|
12
|
+
kind: "agent-started";
|
|
13
|
+
providers: string[];
|
|
14
|
+
agent: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const sAgentStopped: z.ZodObject<{
|
|
17
|
+
kind: z.ZodLiteral<"agent-stopped">;
|
|
18
|
+
agent: z.ZodString;
|
|
19
|
+
providers: z.ZodArray<z.ZodString, "many">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
kind: "agent-stopped";
|
|
22
|
+
providers: string[];
|
|
23
|
+
agent: string;
|
|
24
|
+
}, {
|
|
25
|
+
kind: "agent-stopped";
|
|
26
|
+
providers: string[];
|
|
27
|
+
agent: string;
|
|
28
|
+
}>;
|
|
29
|
+
export type AgentStarted = z.infer<typeof sAgentStarted>;
|
|
30
|
+
export type AgentStopped = z.infer<typeof sAgentStopped>;
|
|
31
|
+
export type ObjectCreated = {
|
|
32
|
+
[K in keyof ObjectKinds]: {
|
|
33
|
+
originator: string;
|
|
34
|
+
objectVersion: number;
|
|
35
|
+
objectKind: K;
|
|
36
|
+
data: ObjectKinds[K];
|
|
37
|
+
objectId: string;
|
|
38
|
+
kind: 'object-created';
|
|
39
|
+
userId?: string;
|
|
40
|
+
};
|
|
41
|
+
}[keyof ObjectKinds];
|
|
42
|
+
export type ObjectUpdated = {
|
|
43
|
+
[K in keyof ObjectKinds]: {
|
|
44
|
+
originator: string;
|
|
45
|
+
objectVersion: number;
|
|
46
|
+
objectKind: K;
|
|
47
|
+
original: ObjectKinds[K];
|
|
48
|
+
changes: Partial<ObjectKinds[K]>;
|
|
49
|
+
objectId: string;
|
|
50
|
+
kind: 'object-updated';
|
|
51
|
+
userId?: string;
|
|
52
|
+
};
|
|
53
|
+
}[keyof ObjectKinds];
|
|
54
|
+
export type ObjectDeleted = {
|
|
55
|
+
[K in keyof ObjectKinds]: {
|
|
56
|
+
originator: string;
|
|
57
|
+
objectVersion: number;
|
|
58
|
+
objectKind: K;
|
|
59
|
+
data: ObjectKinds[K];
|
|
60
|
+
objectId: string;
|
|
61
|
+
kind: 'object-deleted';
|
|
62
|
+
userId?: string;
|
|
63
|
+
};
|
|
64
|
+
}[keyof ObjectKinds];
|
|
65
|
+
export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sAgentStopped = exports.sAgentStarted = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// EVENTS
|
|
6
|
+
exports.sAgentStarted = zod_1.z.object({
|
|
7
|
+
kind: zod_1.z.literal('agent-started'),
|
|
8
|
+
agent: zod_1.z.string(),
|
|
9
|
+
providers: zod_1.z.array(zod_1.z.string()),
|
|
10
|
+
});
|
|
11
|
+
exports.sAgentStopped = zod_1.z.object({
|
|
12
|
+
kind: zod_1.z.literal('agent-stopped'),
|
|
13
|
+
agent: zod_1.z.string(),
|
|
14
|
+
providers: zod_1.z.array(zod_1.z.string()),
|
|
15
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './orchid';
|
|
|
15
15
|
export * from './aware-config';
|
|
16
16
|
export * from './access-control';
|
|
17
17
|
export * from './device-event';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './commands/all';
|
|
19
19
|
export * from './device-factory';
|
|
20
20
|
export * from './module-config';
|
|
21
21
|
export * from './device-group';
|
|
@@ -33,6 +33,9 @@ export * from './token-conversion';
|
|
|
33
33
|
export * from './world-objects';
|
|
34
34
|
export * from './bookmarks';
|
|
35
35
|
export * from './objects';
|
|
36
|
+
export * from './events';
|
|
37
|
+
export * from './commands';
|
|
38
|
+
export * from './queries';
|
|
36
39
|
export * from './primitives';
|
|
37
40
|
export * from './api-keys';
|
|
38
41
|
export * from './notifications';
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __exportStar(require("./orchid"), exports);
|
|
|
31
31
|
__exportStar(require("./aware-config"), exports);
|
|
32
32
|
__exportStar(require("./access-control"), exports);
|
|
33
33
|
__exportStar(require("./device-event"), exports);
|
|
34
|
-
__exportStar(require("./
|
|
34
|
+
__exportStar(require("./commands/all"), exports);
|
|
35
35
|
__exportStar(require("./device-factory"), exports);
|
|
36
36
|
__exportStar(require("./module-config"), exports);
|
|
37
37
|
__exportStar(require("./device-group"), exports);
|
|
@@ -49,6 +49,9 @@ __exportStar(require("./token-conversion"), exports);
|
|
|
49
49
|
__exportStar(require("./world-objects"), exports);
|
|
50
50
|
__exportStar(require("./bookmarks"), exports);
|
|
51
51
|
__exportStar(require("./objects"), exports);
|
|
52
|
+
__exportStar(require("./events"), exports);
|
|
53
|
+
__exportStar(require("./commands"), exports);
|
|
54
|
+
__exportStar(require("./queries"), exports);
|
|
52
55
|
__exportStar(require("./primitives"), exports);
|
|
53
56
|
__exportStar(require("./api-keys"), exports);
|
|
54
57
|
__exportStar(require("./notifications"), exports);
|
package/dist/layout.d.ts
CHANGED
|
@@ -123,7 +123,6 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
name?: string | undefined;
|
|
125
125
|
order?: number | undefined;
|
|
126
|
-
isDefault?: boolean | undefined;
|
|
127
126
|
devices?: {
|
|
128
127
|
scale: number;
|
|
129
128
|
x: number;
|
|
@@ -133,13 +132,13 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
133
132
|
fov: number;
|
|
134
133
|
far: number;
|
|
135
134
|
}[] | undefined;
|
|
135
|
+
isDefault?: boolean | undefined;
|
|
136
136
|
thumbnailId?: string | undefined;
|
|
137
137
|
imageId?: string | undefined;
|
|
138
138
|
colorize?: boolean | undefined;
|
|
139
139
|
}, {
|
|
140
140
|
name?: string | undefined;
|
|
141
141
|
order?: number | undefined;
|
|
142
|
-
isDefault?: boolean | undefined;
|
|
143
142
|
devices?: {
|
|
144
143
|
scale: number;
|
|
145
144
|
x: number;
|
|
@@ -149,6 +148,7 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
149
148
|
fov: number;
|
|
150
149
|
far: number;
|
|
151
150
|
}[] | undefined;
|
|
151
|
+
isDefault?: boolean | undefined;
|
|
152
152
|
thumbnailId?: string | undefined;
|
|
153
153
|
imageId?: string | undefined;
|
|
154
154
|
colorize?: boolean | undefined;
|
|
@@ -195,9 +195,6 @@ export declare const sLayoutDto: z.ZodObject<{
|
|
|
195
195
|
name: string;
|
|
196
196
|
id: string;
|
|
197
197
|
order: number;
|
|
198
|
-
isDefault: boolean;
|
|
199
|
-
createdOn: string;
|
|
200
|
-
lastModifiedOn: string;
|
|
201
198
|
devices: {
|
|
202
199
|
scale: number;
|
|
203
200
|
x: number;
|
|
@@ -207,6 +204,9 @@ export declare const sLayoutDto: z.ZodObject<{
|
|
|
207
204
|
fov: number;
|
|
208
205
|
far: number;
|
|
209
206
|
}[];
|
|
207
|
+
isDefault: boolean;
|
|
208
|
+
createdOn: string;
|
|
209
|
+
lastModifiedOn: string;
|
|
210
210
|
colorize: boolean;
|
|
211
211
|
thumbnailUrl: string;
|
|
212
212
|
imageUrl: string;
|
|
@@ -214,9 +214,6 @@ export declare const sLayoutDto: z.ZodObject<{
|
|
|
214
214
|
name: string;
|
|
215
215
|
id: string;
|
|
216
216
|
order: number;
|
|
217
|
-
isDefault: boolean;
|
|
218
|
-
createdOn: string;
|
|
219
|
-
lastModifiedOn: string;
|
|
220
217
|
devices: {
|
|
221
218
|
scale: number;
|
|
222
219
|
x: number;
|
|
@@ -226,6 +223,9 @@ export declare const sLayoutDto: z.ZodObject<{
|
|
|
226
223
|
fov: number;
|
|
227
224
|
far: number;
|
|
228
225
|
}[];
|
|
226
|
+
isDefault: boolean;
|
|
227
|
+
createdOn: string;
|
|
228
|
+
lastModifiedOn: string;
|
|
229
229
|
colorize: boolean;
|
|
230
230
|
thumbnailUrl: string;
|
|
231
231
|
imageUrl: string;
|
package/dist/macros.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ export declare const sMacroItemDto: z.ZodObject<{
|
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
id: string | null;
|
|
10
10
|
params: Record<string, unknown>;
|
|
11
|
-
command: string;
|
|
12
11
|
deviceId: string;
|
|
12
|
+
command: string;
|
|
13
13
|
stepId: string;
|
|
14
14
|
}, {
|
|
15
15
|
id: string | null;
|
|
16
16
|
params: Record<string, unknown>;
|
|
17
|
-
command: string;
|
|
18
17
|
deviceId: string;
|
|
18
|
+
command: string;
|
|
19
19
|
stepId: string;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const sMacroDto: z.ZodObject<{
|
|
@@ -36,14 +36,14 @@ export declare const sMacroDto: z.ZodObject<{
|
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
id: string | null;
|
|
38
38
|
params: Record<string, unknown>;
|
|
39
|
-
command: string;
|
|
40
39
|
deviceId: string;
|
|
40
|
+
command: string;
|
|
41
41
|
stepId: string;
|
|
42
42
|
}, {
|
|
43
43
|
id: string | null;
|
|
44
44
|
params: Record<string, unknown>;
|
|
45
|
-
command: string;
|
|
46
45
|
deviceId: string;
|
|
46
|
+
command: string;
|
|
47
47
|
stepId: string;
|
|
48
48
|
}>, "many">;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -54,8 +54,8 @@ export declare const sMacroDto: z.ZodObject<{
|
|
|
54
54
|
items: {
|
|
55
55
|
id: string | null;
|
|
56
56
|
params: Record<string, unknown>;
|
|
57
|
-
command: string;
|
|
58
57
|
deviceId: string;
|
|
58
|
+
command: string;
|
|
59
59
|
stepId: string;
|
|
60
60
|
}[];
|
|
61
61
|
displayName: string;
|
|
@@ -70,8 +70,8 @@ export declare const sMacroDto: z.ZodObject<{
|
|
|
70
70
|
items: {
|
|
71
71
|
id: string | null;
|
|
72
72
|
params: Record<string, unknown>;
|
|
73
|
-
command: string;
|
|
74
73
|
deviceId: string;
|
|
74
|
+
command: string;
|
|
75
75
|
stepId: string;
|
|
76
76
|
}[];
|
|
77
77
|
displayName: string;
|
|
@@ -97,14 +97,14 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
id: string | null;
|
|
99
99
|
params: Record<string, unknown>;
|
|
100
|
-
command: string;
|
|
101
100
|
deviceId: string;
|
|
101
|
+
command: string;
|
|
102
102
|
stepId: string;
|
|
103
103
|
}, {
|
|
104
104
|
id: string | null;
|
|
105
105
|
params: Record<string, unknown>;
|
|
106
|
-
command: string;
|
|
107
106
|
deviceId: string;
|
|
107
|
+
command: string;
|
|
108
108
|
stepId: string;
|
|
109
109
|
}>, "many">;
|
|
110
110
|
}, "id" | "createdOn" | "lastModifiedOn" | "createdBy">, "strip", z.ZodTypeAny, {
|
|
@@ -114,8 +114,8 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
|
114
114
|
items: {
|
|
115
115
|
id: string | null;
|
|
116
116
|
params: Record<string, unknown>;
|
|
117
|
-
command: string;
|
|
118
117
|
deviceId: string;
|
|
118
|
+
command: string;
|
|
119
119
|
stepId: string;
|
|
120
120
|
}[];
|
|
121
121
|
displayName: string;
|
|
@@ -126,8 +126,8 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
|
126
126
|
items: {
|
|
127
127
|
id: string | null;
|
|
128
128
|
params: Record<string, unknown>;
|
|
129
|
-
command: string;
|
|
130
129
|
deviceId: string;
|
|
130
|
+
command: string;
|
|
131
131
|
stepId: string;
|
|
132
132
|
}[];
|
|
133
133
|
displayName: string;
|
|
@@ -145,14 +145,14 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
id: string | null;
|
|
147
147
|
params: Record<string, unknown>;
|
|
148
|
-
command: string;
|
|
149
148
|
deviceId: string;
|
|
149
|
+
command: string;
|
|
150
150
|
stepId: string;
|
|
151
151
|
}, {
|
|
152
152
|
id: string | null;
|
|
153
153
|
params: Record<string, unknown>;
|
|
154
|
-
command: string;
|
|
155
154
|
deviceId: string;
|
|
155
|
+
command: string;
|
|
156
156
|
stepId: string;
|
|
157
157
|
}>, "many">>;
|
|
158
158
|
displayName: z.ZodOptional<z.ZodString>;
|
|
@@ -163,8 +163,8 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
163
163
|
items?: {
|
|
164
164
|
id: string | null;
|
|
165
165
|
params: Record<string, unknown>;
|
|
166
|
-
command: string;
|
|
167
166
|
deviceId: string;
|
|
167
|
+
command: string;
|
|
168
168
|
stepId: string;
|
|
169
169
|
}[] | undefined;
|
|
170
170
|
displayName?: string | undefined;
|
|
@@ -175,8 +175,8 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
175
175
|
items?: {
|
|
176
176
|
id: string | null;
|
|
177
177
|
params: Record<string, unknown>;
|
|
178
|
-
command: string;
|
|
179
178
|
deviceId: string;
|
|
179
|
+
command: string;
|
|
180
180
|
stepId: string;
|
|
181
181
|
}[] | undefined;
|
|
182
182
|
displayName?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { CommandRun } from '../
|
|
3
|
-
import { DeviceEvent } from '../
|
|
2
|
+
import { CommandRun } from '../commands/all';
|
|
3
|
+
import { DeviceEvent } from '../events';
|
|
4
4
|
import { WebSocketMessage } from './web-socket';
|
|
5
5
|
export type CommandRunPayload = CommandRun;
|
|
6
6
|
export declare const sCommandSuccess: z.ZodObject<{
|
|
@@ -16,8 +16,8 @@ export declare const sNotificationCreatedPayload: z.ZodObject<{
|
|
|
16
16
|
source: string;
|
|
17
17
|
metadata: Record<string, unknown>;
|
|
18
18
|
createdOn: number;
|
|
19
|
-
notificationRef: string | null;
|
|
20
19
|
severity: "info" | "warning" | "critical";
|
|
20
|
+
notificationRef: string | null;
|
|
21
21
|
acknowledgedBy: string | null;
|
|
22
22
|
acknowledgedOn: number | null;
|
|
23
23
|
}, {
|
|
@@ -26,8 +26,8 @@ export declare const sNotificationCreatedPayload: z.ZodObject<{
|
|
|
26
26
|
source: string;
|
|
27
27
|
metadata: Record<string, unknown>;
|
|
28
28
|
createdOn: number;
|
|
29
|
-
notificationRef: string | null;
|
|
30
29
|
severity: "info" | "warning" | "critical";
|
|
30
|
+
notificationRef: string | null;
|
|
31
31
|
acknowledgedBy: string | null;
|
|
32
32
|
acknowledgedOn: number | null;
|
|
33
33
|
}>;
|
|
@@ -17,11 +17,11 @@ export declare const sWebRtcLiveServiceParams: z.ZodObject<{
|
|
|
17
17
|
deviceId: z.ZodString;
|
|
18
18
|
streamId: z.ZodString;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
streamId: string;
|
|
21
20
|
deviceId: string;
|
|
22
|
-
}, {
|
|
23
21
|
streamId: string;
|
|
22
|
+
}, {
|
|
24
23
|
deviceId: string;
|
|
24
|
+
streamId: string;
|
|
25
25
|
}>;
|
|
26
26
|
export type WebRtcLiveServiceParams = z.infer<typeof sWebRtcLiveServiceParams>;
|
|
27
27
|
export declare const sWebRtcPlaybackParams: z.ZodObject<{
|
|
@@ -57,23 +57,23 @@ export declare const sWebRtcServiceDescription: z.ZodUnion<[z.ZodObject<{
|
|
|
57
57
|
deviceId: z.ZodString;
|
|
58
58
|
streamId: z.ZodString;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
streamId: string;
|
|
61
60
|
deviceId: string;
|
|
62
|
-
}, {
|
|
63
61
|
streamId: string;
|
|
62
|
+
}, {
|
|
64
63
|
deviceId: string;
|
|
64
|
+
streamId: string;
|
|
65
65
|
}>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
service: "live";
|
|
68
68
|
serviceParams: {
|
|
69
|
-
streamId: string;
|
|
70
69
|
deviceId: string;
|
|
70
|
+
streamId: string;
|
|
71
71
|
};
|
|
72
72
|
}, {
|
|
73
73
|
service: "live";
|
|
74
74
|
serviceParams: {
|
|
75
|
-
streamId: string;
|
|
76
75
|
deviceId: string;
|
|
76
|
+
streamId: string;
|
|
77
77
|
};
|
|
78
78
|
}>, z.ZodObject<{
|
|
79
79
|
service: z.ZodLiteral<"playback">;
|
|
@@ -145,23 +145,23 @@ export declare const sWebRtcNewSessionPayload: z.ZodIntersection<z.ZodUnion<[z.Z
|
|
|
145
145
|
deviceId: z.ZodString;
|
|
146
146
|
streamId: z.ZodString;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
streamId: string;
|
|
149
148
|
deviceId: string;
|
|
150
|
-
}, {
|
|
151
149
|
streamId: string;
|
|
150
|
+
}, {
|
|
152
151
|
deviceId: string;
|
|
152
|
+
streamId: string;
|
|
153
153
|
}>;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
155
|
service: "live";
|
|
156
156
|
serviceParams: {
|
|
157
|
-
streamId: string;
|
|
158
157
|
deviceId: string;
|
|
158
|
+
streamId: string;
|
|
159
159
|
};
|
|
160
160
|
}, {
|
|
161
161
|
service: "live";
|
|
162
162
|
serviceParams: {
|
|
163
|
-
streamId: string;
|
|
164
163
|
deviceId: string;
|
|
164
|
+
streamId: string;
|
|
165
165
|
};
|
|
166
166
|
}>, z.ZodObject<{
|
|
167
167
|
service: z.ZodLiteral<"playback">;
|
package/dist/notifications.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ export declare const sNotificationDto: z.ZodObject<{
|
|
|
15
15
|
source: string;
|
|
16
16
|
metadata: Record<string, unknown>;
|
|
17
17
|
createdOn: number;
|
|
18
|
-
notificationRef: string | null;
|
|
19
18
|
severity: "info" | "warning" | "critical";
|
|
19
|
+
notificationRef: string | null;
|
|
20
20
|
acknowledgedBy: string | null;
|
|
21
21
|
acknowledgedOn: number | null;
|
|
22
22
|
}, {
|
|
@@ -25,8 +25,8 @@ export declare const sNotificationDto: z.ZodObject<{
|
|
|
25
25
|
source: string;
|
|
26
26
|
metadata: Record<string, unknown>;
|
|
27
27
|
createdOn: number;
|
|
28
|
-
notificationRef: string | null;
|
|
29
28
|
severity: "info" | "warning" | "critical";
|
|
29
|
+
notificationRef: string | null;
|
|
30
30
|
acknowledgedBy: string | null;
|
|
31
31
|
acknowledgedOn: number | null;
|
|
32
32
|
}>;
|
|
@@ -39,15 +39,15 @@ export declare const sNotificationSearchParams: z.ZodObject<{
|
|
|
39
39
|
timeTo: z.ZodOptional<z.ZodNumber>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
deviceId?: string[] | undefined;
|
|
42
|
-
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
43
42
|
timeFrom?: number | undefined;
|
|
44
43
|
timeTo?: number | undefined;
|
|
44
|
+
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
45
45
|
acknowledged?: boolean | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
deviceId?: string[] | undefined;
|
|
48
|
-
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
49
48
|
timeFrom?: number | undefined;
|
|
50
49
|
timeTo?: number | undefined;
|
|
50
|
+
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
51
51
|
acknowledged?: boolean | undefined;
|
|
52
52
|
}>;
|
|
53
53
|
export type NotificationSearchParams = z.infer<typeof sNotificationSearchParams>;
|
package/dist/package.json
CHANGED
package/dist/primitives.d.ts
CHANGED
|
@@ -527,3 +527,19 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
|
|
|
527
527
|
export type DeviceParam = z.infer<typeof sDeviceParam>;
|
|
528
528
|
export declare const sNotificationSeverity: z.ZodEnum<["info", "warning", "critical"]>;
|
|
529
529
|
export type NotificationSeverity = z.infer<typeof sNotificationSeverity>;
|
|
530
|
+
export declare const sCameraPresetInfo: z.ZodObject<{
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
isDefault: z.ZodBoolean;
|
|
533
|
+
values: z.ZodUnknown;
|
|
534
|
+
}, "strip", z.ZodTypeAny, {
|
|
535
|
+
name: string;
|
|
536
|
+
isDefault: boolean;
|
|
537
|
+
values?: unknown;
|
|
538
|
+
}, {
|
|
539
|
+
name: string;
|
|
540
|
+
isDefault: boolean;
|
|
541
|
+
values?: unknown;
|
|
542
|
+
}>;
|
|
543
|
+
export type CameraPresetInfo = z.infer<typeof sCameraPresetInfo>;
|
|
544
|
+
export declare const sCallState: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
|
|
545
|
+
export declare const sCallDirection: z.ZodEnum<["incoming", "outgoing"]>;
|
package/dist/primitives.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sNotificationSeverity = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
|
|
3
|
+
exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const device_1 = require("./device");
|
|
6
6
|
exports.sDeviceId = zod_1.z.string().uuid().nonempty();
|
|
@@ -28,3 +28,15 @@ exports.sForeignDeviceId = zod_1.z.tuple([
|
|
|
28
28
|
// a pointer to a device, can be local device id, foreign device info, or full device info for agents
|
|
29
29
|
exports.sDeviceParam = exports.sDeviceId.or(exports.sAgentDeviceInfo).or(exports.sForeignDeviceId);
|
|
30
30
|
exports.sNotificationSeverity = zod_1.z.enum(['info', 'warning', 'critical']);
|
|
31
|
+
exports.sCameraPresetInfo = zod_1.z.object({
|
|
32
|
+
name: zod_1.z.string().nonempty(),
|
|
33
|
+
isDefault: zod_1.z.boolean(),
|
|
34
|
+
values: zod_1.z.unknown(),
|
|
35
|
+
});
|
|
36
|
+
exports.sCallState = zod_1.z.enum([
|
|
37
|
+
'connecting',
|
|
38
|
+
'connected',
|
|
39
|
+
'ringing',
|
|
40
|
+
'terminated',
|
|
41
|
+
]);
|
|
42
|
+
exports.sCallDirection = zod_1.z.enum(['incoming', 'outgoing']);
|