@awarevue/api-types 2.0.81 → 2.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alarm-automation.d.ts +21 -37
- package/dist/api/agent-protocol/protocol.d.ts +1473 -10468
- package/dist/api/agent-protocol/protocol.js +16 -12
- package/dist/api/commands/alarm.d.ts +40 -248
- package/dist/api/commands/all.d.ts +393 -4642
- package/dist/api/commands/camera-lift.d.ts +8 -32
- package/dist/api/commands/camera.d.ts +82 -373
- package/dist/api/commands/display.d.ts +21 -373
- package/dist/api/commands/door.d.ts +16 -64
- package/dist/api/commands/io-board.d.ts +4 -40
- package/dist/api/commands/nvr-exporter.d.ts +104 -1380
- package/dist/api/commands/nvr-recorder.d.ts +400 -5288
- package/dist/api/commands/pbx.d.ts +4 -56
- package/dist/api/commands/presence-tracker.d.ts +12 -128
- package/dist/api/commands/server.d.ts +114 -1382
- package/dist/api/commands/server.js +1 -1
- package/dist/api/error.d.ts +77 -443
- package/dist/api/error.js +1 -1
- package/dist/api/events/alarm.d.ts +20 -148
- package/dist/api/events/all.d.ts +74 -526
- package/dist/api/events/all.js +1 -1
- package/dist/api/events/camera.d.ts +46 -470
- package/dist/api/events/display.d.ts +1 -5
- package/dist/api/events/door.d.ts +34 -146
- package/dist/api/events/intercom-terminal.d.ts +22 -42
- package/dist/api/events/io-board.d.ts +2 -18
- package/dist/api/events/nvr-exporter.d.ts +4 -32
- package/dist/api/events/panic-button.d.ts +2 -10
- package/dist/api/events/presence-tracker.d.ts +4 -88
- package/dist/api/events/reader.d.ts +2 -22
- package/dist/api/events/server.d.ts +6 -34
- package/dist/api/mqtt/payloads.d.ts +4 -26
- package/dist/api/queries/all.d.ts +188 -1622
- package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
- package/dist/api/queries/nvr-exporter.d.ts +9 -73
- package/dist/api/queries/nvr-recorder.d.ts +300 -2828
- package/dist/api/rest/access-rule.d.ts +10 -86
- package/dist/api/rest/agreement.d.ts +3 -18
- package/dist/api/rest/api-keys.d.ts +3 -17
- package/dist/api/rest/app.d.ts +3 -51
- package/dist/api/rest/auth.d.ts +3 -19
- package/dist/api/rest/automation.d.ts +11 -236
- package/dist/api/rest/bookmarks.d.ts +8 -56
- package/dist/api/rest/camera.d.ts +12 -70
- package/dist/api/rest/cast.d.ts +1 -7
- package/dist/api/rest/custom-field.d.ts +21 -24
- package/dist/api/rest/device-group.d.ts +8 -32
- package/dist/api/rest/device.d.ts +104 -176
- package/dist/api/rest/io-device.d.ts +7 -75
- package/dist/api/rest/io-device.js +2 -2
- package/dist/api/rest/layout.d.ts +4 -102
- package/dist/api/rest/macros.d.ts +6 -82
- package/dist/api/rest/media.d.ts +17 -141
- package/dist/api/rest/notifications.d.ts +7 -15
- package/dist/api/rest/person-agreement.d.ts +1 -9
- package/dist/api/rest/person-presence.d.ts +8 -50
- package/dist/api/rest/person-type.d.ts +6 -39
- package/dist/api/rest/person.d.ts +18 -96
- package/dist/api/rest/query.d.ts +5 -15
- package/dist/api/rest/schedule.d.ts +78 -216
- package/dist/api/rest/security-level.d.ts +6 -43
- package/dist/api/rest/template.d.ts +10 -20
- package/dist/api/rest/token-conversion.d.ts +11 -28
- package/dist/api/rest/user.d.ts +15 -97
- package/dist/api/rest/view.d.ts +24 -496
- package/dist/api/rest/webrtc-playback.d.ts +3 -25
- package/dist/api/rest/zone.d.ts +5 -21
- package/dist/api/ws/device-communication.d.ts +10 -62
- package/dist/api/ws/notifications.d.ts +7 -33
- package/dist/api/ws/progress.d.ts +10 -72
- package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
- package/dist/objects/access-rule.d.ts +12 -132
- package/dist/objects/access-rule.js +1 -1
- package/dist/objects/agent-metadata.d.ts +38 -146
- package/dist/objects/agent-metadata.js +1 -1
- package/dist/objects/agreement.d.ts +1 -13
- package/dist/objects/all.d.ts +20 -1
- package/dist/objects/api-key.d.ts +1 -13
- package/dist/objects/automation-rule.d.ts +9 -168
- package/dist/objects/automation-rule.js +2 -2
- package/dist/objects/bookmark.d.ts +3 -33
- package/dist/objects/bookmark.js +1 -1
- package/dist/objects/credential.d.ts +13 -13
- package/dist/objects/credential.js +1 -1
- package/dist/objects/custom-field.d.ts +19 -15
- package/dist/objects/device/alarm.d.ts +1 -1
- package/dist/objects/device/any-device.d.ts +1333 -4451
- package/dist/objects/device/camera-lift.d.ts +1 -1
- package/dist/objects/device/camera.d.ts +29 -125
- package/dist/objects/device/camera.js +1 -1
- package/dist/objects/device/device-import.d.ts +307 -1735
- package/dist/objects/device/device-relation.d.ts +70 -58
- package/dist/objects/device/display.d.ts +1 -1
- package/dist/objects/device/door.d.ts +9 -14
- package/dist/objects/device/intercom-terminal.d.ts +10 -59
- package/dist/objects/device/io-board.d.ts +3 -9
- package/dist/objects/device/motion-sensor.d.ts +1 -1
- package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
- package/dist/objects/device/nvr-exporter.d.ts +3 -9
- package/dist/objects/device/nvr-recorder.d.ts +16 -68
- package/dist/objects/device/panic-button.d.ts +1 -1
- package/dist/objects/device/pbx.d.ts +1 -5
- package/dist/objects/device/system.d.ts +1 -1
- package/dist/objects/device/system.js +1 -1
- package/dist/objects/device-group.d.ts +2 -16
- package/dist/objects/layout.d.ts +3 -75
- package/dist/objects/macro.d.ts +3 -59
- package/dist/objects/macro.js +2 -2
- package/dist/objects/notification.d.ts +6 -24
- package/dist/objects/notification.js +1 -1
- package/dist/objects/person-agreement.d.ts +1 -13
- package/dist/objects/person-presence.d.ts +11 -165
- package/dist/objects/person-type.d.ts +2 -22
- package/dist/objects/person.d.ts +21 -153
- package/dist/objects/person.js +3 -3
- package/dist/objects/role.d.ts +3 -15
- package/dist/objects/schedule.d.ts +152 -314
- package/dist/objects/schedule.js +1 -1
- package/dist/objects/security-level.d.ts +1 -21
- package/dist/objects/template.d.ts +9 -13
- package/dist/objects/token-conversion.d.ts +8 -18
- package/dist/objects/user.d.ts +2 -20
- package/dist/objects/view.d.ts +52 -682
- package/dist/objects/world-object.d.ts +1 -7
- package/dist/objects/zone.d.ts +5 -29
- package/dist/objects/zone.js +1 -1
- package/dist/package.json +3 -3
- package/dist/permissions.d.ts +1 -1
- package/dist/primitives.d.ts +113 -551
- package/dist/primitives.js +1 -1
- package/package.json +3 -3
|
@@ -4,43 +4,19 @@ export declare const sIoSlot: z.ZodObject<{
|
|
|
4
4
|
deviceId: z.ZodString;
|
|
5
5
|
slot: z.ZodString;
|
|
6
6
|
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
},
|
|
8
|
-
deviceId: string;
|
|
9
|
-
slot: string;
|
|
10
|
-
inverted?: boolean | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
deviceId: string;
|
|
13
|
-
slot: string;
|
|
14
|
-
inverted?: boolean | undefined;
|
|
15
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
16
8
|
export type IoSlot = z.infer<typeof sIoSlot>;
|
|
17
9
|
export declare const sInputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
18
10
|
deviceId: z.ZodString;
|
|
19
11
|
slot: z.ZodString;
|
|
20
12
|
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
-
},
|
|
22
|
-
deviceId: string;
|
|
23
|
-
slot: string;
|
|
24
|
-
inverted?: boolean | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
deviceId: string;
|
|
27
|
-
slot: string;
|
|
28
|
-
inverted?: boolean | undefined;
|
|
29
|
-
}>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
30
14
|
export type InputBindings = z.infer<typeof sInputBindings>;
|
|
31
15
|
export declare const sOutputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
32
16
|
deviceId: z.ZodString;
|
|
33
17
|
slot: z.ZodString;
|
|
34
18
|
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
},
|
|
36
|
-
deviceId: string;
|
|
37
|
-
slot: string;
|
|
38
|
-
inverted?: boolean | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
deviceId: string;
|
|
41
|
-
slot: string;
|
|
42
|
-
inverted?: boolean | undefined;
|
|
43
|
-
}>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
44
20
|
export type OutputBindings = z.infer<typeof sOutputBindings>;
|
|
45
21
|
export interface DeviceFactoryProviderMetadata {
|
|
46
22
|
templateName: string;
|
|
@@ -61,64 +37,20 @@ export interface DeviceTemplate {
|
|
|
61
37
|
export declare const sAddCustomDeviceRequest: z.ZodObject<{
|
|
62
38
|
name: z.ZodString;
|
|
63
39
|
templateName: z.ZodString;
|
|
64
|
-
},
|
|
65
|
-
name: string;
|
|
66
|
-
templateName: string;
|
|
67
|
-
}, {
|
|
68
|
-
name: string;
|
|
69
|
-
templateName: string;
|
|
70
|
-
}>;
|
|
40
|
+
}, z.core.$strip>;
|
|
71
41
|
export type AddCustomDeviceRequest = z.infer<typeof sAddCustomDeviceRequest>;
|
|
72
42
|
export declare const sUpdateCustomDeviceRequest: z.ZodObject<{
|
|
73
43
|
inputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
74
44
|
deviceId: z.ZodString;
|
|
75
45
|
slot: z.ZodString;
|
|
76
46
|
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
},
|
|
78
|
-
deviceId: string;
|
|
79
|
-
slot: string;
|
|
80
|
-
inverted?: boolean | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
deviceId: string;
|
|
83
|
-
slot: string;
|
|
84
|
-
inverted?: boolean | undefined;
|
|
85
|
-
}>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
86
48
|
outputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
87
49
|
deviceId: z.ZodString;
|
|
88
50
|
slot: z.ZodString;
|
|
89
51
|
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
slot: string;
|
|
93
|
-
inverted?: boolean | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
deviceId: string;
|
|
96
|
-
slot: string;
|
|
97
|
-
inverted?: boolean | undefined;
|
|
98
|
-
}>>;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
inputBindings: Record<string, {
|
|
101
|
-
deviceId: string;
|
|
102
|
-
slot: string;
|
|
103
|
-
inverted?: boolean | undefined;
|
|
104
|
-
}>;
|
|
105
|
-
outputBindings: Record<string, {
|
|
106
|
-
deviceId: string;
|
|
107
|
-
slot: string;
|
|
108
|
-
inverted?: boolean | undefined;
|
|
109
|
-
}>;
|
|
110
|
-
}, {
|
|
111
|
-
inputBindings: Record<string, {
|
|
112
|
-
deviceId: string;
|
|
113
|
-
slot: string;
|
|
114
|
-
inverted?: boolean | undefined;
|
|
115
|
-
}>;
|
|
116
|
-
outputBindings: Record<string, {
|
|
117
|
-
deviceId: string;
|
|
118
|
-
slot: string;
|
|
119
|
-
inverted?: boolean | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
}>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
122
54
|
export type UpdateCustomDeviceRequest = {
|
|
123
55
|
id: string;
|
|
124
56
|
} & z.infer<typeof sUpdateCustomDeviceRequest>;
|
|
@@ -10,8 +10,8 @@ exports.sIoSlot = zod_1.default.object({
|
|
|
10
10
|
slot: zod_1.default.string().nonempty(),
|
|
11
11
|
inverted: zod_1.default.boolean().optional(),
|
|
12
12
|
});
|
|
13
|
-
exports.sInputBindings = zod_1.default.record(exports.sIoSlot);
|
|
14
|
-
exports.sOutputBindings = zod_1.default.record(exports.sIoSlot);
|
|
13
|
+
exports.sInputBindings = zod_1.default.record(zod_1.default.string(), exports.sIoSlot);
|
|
14
|
+
exports.sOutputBindings = zod_1.default.record(zod_1.default.string(), exports.sIoSlot);
|
|
15
15
|
const isDeviceFactoryProviderMetadata = (obj) => {
|
|
16
16
|
return obj && obj.templateName && typeof obj.templateName === 'string';
|
|
17
17
|
};
|
|
@@ -12,58 +12,10 @@ export declare const sAddLayoutRequest: z.ZodObject<{
|
|
|
12
12
|
rotation: z.ZodNumber;
|
|
13
13
|
fov: z.ZodNumber;
|
|
14
14
|
far: z.ZodNumber;
|
|
15
|
-
},
|
|
16
|
-
deviceId: string;
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
scale: number;
|
|
20
|
-
rotation: number;
|
|
21
|
-
fov: number;
|
|
22
|
-
far: number;
|
|
23
|
-
}, {
|
|
24
|
-
deviceId: string;
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
scale: number;
|
|
28
|
-
rotation: number;
|
|
29
|
-
fov: number;
|
|
30
|
-
far: number;
|
|
31
|
-
}>, "many">;
|
|
15
|
+
}, z.core.$strip>>;
|
|
32
16
|
colorize: z.ZodBoolean;
|
|
33
17
|
map: z.ZodBoolean;
|
|
34
|
-
},
|
|
35
|
-
map: boolean;
|
|
36
|
-
name: string;
|
|
37
|
-
devices: {
|
|
38
|
-
deviceId: string;
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
scale: number;
|
|
42
|
-
rotation: number;
|
|
43
|
-
fov: number;
|
|
44
|
-
far: number;
|
|
45
|
-
}[];
|
|
46
|
-
colorize: boolean;
|
|
47
|
-
thumbnailId: string;
|
|
48
|
-
imageId: string;
|
|
49
|
-
order?: number | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
map: boolean;
|
|
52
|
-
name: string;
|
|
53
|
-
devices: {
|
|
54
|
-
deviceId: string;
|
|
55
|
-
x: number;
|
|
56
|
-
y: number;
|
|
57
|
-
scale: number;
|
|
58
|
-
rotation: number;
|
|
59
|
-
fov: number;
|
|
60
|
-
far: number;
|
|
61
|
-
}[];
|
|
62
|
-
colorize: boolean;
|
|
63
|
-
thumbnailId: string;
|
|
64
|
-
imageId: string;
|
|
65
|
-
order?: number | undefined;
|
|
66
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
67
19
|
export type AddLayoutRequest = z.infer<typeof sAddLayoutRequest>;
|
|
68
20
|
export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
69
21
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -79,60 +31,10 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
79
31
|
rotation: z.ZodNumber;
|
|
80
32
|
fov: z.ZodNumber;
|
|
81
33
|
far: z.ZodNumber;
|
|
82
|
-
},
|
|
83
|
-
deviceId: string;
|
|
84
|
-
x: number;
|
|
85
|
-
y: number;
|
|
86
|
-
scale: number;
|
|
87
|
-
rotation: number;
|
|
88
|
-
fov: number;
|
|
89
|
-
far: number;
|
|
90
|
-
}, {
|
|
91
|
-
deviceId: string;
|
|
92
|
-
x: number;
|
|
93
|
-
y: number;
|
|
94
|
-
scale: number;
|
|
95
|
-
rotation: number;
|
|
96
|
-
fov: number;
|
|
97
|
-
far: number;
|
|
98
|
-
}>, "many">>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
99
35
|
colorize: z.ZodOptional<z.ZodBoolean>;
|
|
100
36
|
map: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
-
},
|
|
102
|
-
map?: boolean | undefined;
|
|
103
|
-
name?: string | undefined;
|
|
104
|
-
order?: number | undefined;
|
|
105
|
-
isDefault?: boolean | undefined;
|
|
106
|
-
devices?: {
|
|
107
|
-
deviceId: string;
|
|
108
|
-
x: number;
|
|
109
|
-
y: number;
|
|
110
|
-
scale: number;
|
|
111
|
-
rotation: number;
|
|
112
|
-
fov: number;
|
|
113
|
-
far: number;
|
|
114
|
-
}[] | undefined;
|
|
115
|
-
colorize?: boolean | undefined;
|
|
116
|
-
thumbnailId?: string | undefined;
|
|
117
|
-
imageId?: string | undefined;
|
|
118
|
-
}, {
|
|
119
|
-
map?: boolean | undefined;
|
|
120
|
-
name?: string | undefined;
|
|
121
|
-
order?: number | undefined;
|
|
122
|
-
isDefault?: boolean | undefined;
|
|
123
|
-
devices?: {
|
|
124
|
-
deviceId: string;
|
|
125
|
-
x: number;
|
|
126
|
-
y: number;
|
|
127
|
-
scale: number;
|
|
128
|
-
rotation: number;
|
|
129
|
-
fov: number;
|
|
130
|
-
far: number;
|
|
131
|
-
}[] | undefined;
|
|
132
|
-
colorize?: boolean | undefined;
|
|
133
|
-
thumbnailId?: string | undefined;
|
|
134
|
-
imageId?: string | undefined;
|
|
135
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
136
38
|
export type UpdateLayoutRequest = {
|
|
137
39
|
id: string;
|
|
138
40
|
} & z.infer<typeof sUpdateLayoutRequest>;
|
|
@@ -1,60 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const sAddMacroRequest: z.ZodObject<
|
|
3
|
-
id: z.ZodString;
|
|
2
|
+
export declare const sAddMacroRequest: z.ZodObject<{
|
|
4
3
|
displayName: z.ZodString;
|
|
5
4
|
code: z.ZodNullable<z.ZodString>;
|
|
6
5
|
module: z.ZodNullable<z.ZodString>;
|
|
7
6
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
-
createdOn: z.ZodString;
|
|
9
|
-
lastModifiedOn: z.ZodString;
|
|
10
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
11
7
|
items: z.ZodArray<z.ZodObject<{
|
|
12
8
|
id: z.ZodNullable<z.ZodString>;
|
|
13
9
|
stepId: z.ZodString;
|
|
14
10
|
deviceId: z.ZodString;
|
|
15
11
|
command: z.ZodString;
|
|
16
12
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
id: string | null;
|
|
20
|
-
deviceId: string;
|
|
21
|
-
command: string;
|
|
22
|
-
stepId: string;
|
|
23
|
-
}, {
|
|
24
|
-
params: Record<string, unknown>;
|
|
25
|
-
id: string | null;
|
|
26
|
-
deviceId: string;
|
|
27
|
-
command: string;
|
|
28
|
-
stepId: string;
|
|
29
|
-
}>, "many">;
|
|
30
|
-
}, "id" | "createdOn" | "lastModifiedOn" | "createdBy">, "strip", z.ZodTypeAny, {
|
|
31
|
-
code: string | null;
|
|
32
|
-
displayName: string;
|
|
33
|
-
module: string | null;
|
|
34
|
-
metadata: Record<string, unknown>;
|
|
35
|
-
items: {
|
|
36
|
-
params: Record<string, unknown>;
|
|
37
|
-
id: string | null;
|
|
38
|
-
deviceId: string;
|
|
39
|
-
command: string;
|
|
40
|
-
stepId: string;
|
|
41
|
-
}[];
|
|
42
|
-
}, {
|
|
43
|
-
code: string | null;
|
|
44
|
-
displayName: string;
|
|
45
|
-
module: string | null;
|
|
46
|
-
metadata: Record<string, unknown>;
|
|
47
|
-
items: {
|
|
48
|
-
params: Record<string, unknown>;
|
|
49
|
-
id: string | null;
|
|
50
|
-
deviceId: string;
|
|
51
|
-
command: string;
|
|
52
|
-
stepId: string;
|
|
53
|
-
}[];
|
|
54
|
-
}>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
55
15
|
export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
56
|
-
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
16
|
displayName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
18
|
module: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
19
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
60
20
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -63,43 +23,7 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
63
23
|
deviceId: z.ZodString;
|
|
64
24
|
command: z.ZodString;
|
|
65
25
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
id: string | null;
|
|
69
|
-
deviceId: string;
|
|
70
|
-
command: string;
|
|
71
|
-
stepId: string;
|
|
72
|
-
}, {
|
|
73
|
-
params: Record<string, unknown>;
|
|
74
|
-
id: string | null;
|
|
75
|
-
deviceId: string;
|
|
76
|
-
command: string;
|
|
77
|
-
stepId: string;
|
|
78
|
-
}>, "many">>;
|
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
code?: string | null | undefined;
|
|
81
|
-
displayName?: string | undefined;
|
|
82
|
-
module?: string | null | undefined;
|
|
83
|
-
metadata?: Record<string, unknown> | undefined;
|
|
84
|
-
items?: {
|
|
85
|
-
params: Record<string, unknown>;
|
|
86
|
-
id: string | null;
|
|
87
|
-
deviceId: string;
|
|
88
|
-
command: string;
|
|
89
|
-
stepId: string;
|
|
90
|
-
}[] | undefined;
|
|
91
|
-
}, {
|
|
92
|
-
code?: string | null | undefined;
|
|
93
|
-
displayName?: string | undefined;
|
|
94
|
-
module?: string | null | undefined;
|
|
95
|
-
metadata?: Record<string, unknown> | undefined;
|
|
96
|
-
items?: {
|
|
97
|
-
params: Record<string, unknown>;
|
|
98
|
-
id: string | null;
|
|
99
|
-
deviceId: string;
|
|
100
|
-
command: string;
|
|
101
|
-
stepId: string;
|
|
102
|
-
}[] | undefined;
|
|
103
|
-
}>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
104
28
|
export type AddMacroRequest = z.infer<typeof sAddMacroRequest>;
|
|
105
29
|
export type UpdateMacroRequest = z.infer<typeof sUpdateMacroRequest>;
|
package/dist/api/rest/media.d.ts
CHANGED
|
@@ -5,116 +5,40 @@ export declare const sCreateExportRequest: z.ZodObject<{
|
|
|
5
5
|
streamId: z.ZodString;
|
|
6
6
|
timeFrom: z.ZodNumber;
|
|
7
7
|
timeTo: z.ZodNumber;
|
|
8
|
-
},
|
|
9
|
-
name: string;
|
|
10
|
-
deviceId: string;
|
|
11
|
-
streamId: string;
|
|
12
|
-
timeFrom: number;
|
|
13
|
-
timeTo: number;
|
|
14
|
-
}, {
|
|
15
|
-
name: string;
|
|
16
|
-
deviceId: string;
|
|
17
|
-
streamId: string;
|
|
18
|
-
timeFrom: number;
|
|
19
|
-
timeTo: number;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
21
9
|
export declare const sCreateExportResponse: z.ZodObject<{
|
|
22
10
|
exportId: z.ZodString;
|
|
23
|
-
},
|
|
24
|
-
exportId: string;
|
|
25
|
-
}, {
|
|
26
|
-
exportId: string;
|
|
27
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
28
12
|
export declare const sRecordingSequence: z.ZodObject<{
|
|
29
13
|
start: z.ZodNumber;
|
|
30
14
|
end: z.ZodNumber;
|
|
31
15
|
motion: z.ZodOptional<z.ZodNumber>;
|
|
32
16
|
objects: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
},
|
|
34
|
-
start: number;
|
|
35
|
-
end: number;
|
|
36
|
-
motion?: number | undefined;
|
|
37
|
-
objects?: number | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
start: number;
|
|
40
|
-
end: number;
|
|
41
|
-
motion?: number | undefined;
|
|
42
|
-
objects?: number | undefined;
|
|
43
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
44
18
|
export declare const sGetRecordingsRequest: z.ZodObject<{
|
|
45
19
|
deviceId: z.ZodString;
|
|
46
20
|
streamId: z.ZodString;
|
|
47
21
|
timeFrom: z.ZodNumber;
|
|
48
22
|
timeTo: z.ZodNumber;
|
|
49
|
-
},
|
|
50
|
-
deviceId: string;
|
|
51
|
-
streamId: string;
|
|
52
|
-
timeFrom: number;
|
|
53
|
-
timeTo: number;
|
|
54
|
-
}, {
|
|
55
|
-
deviceId: string;
|
|
56
|
-
streamId: string;
|
|
57
|
-
timeFrom: number;
|
|
58
|
-
timeTo: number;
|
|
59
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
60
24
|
export declare const sGetRecordingsResponse: z.ZodObject<{
|
|
61
25
|
items: z.ZodArray<z.ZodObject<{
|
|
62
26
|
start: z.ZodNumber;
|
|
63
27
|
end: z.ZodNumber;
|
|
64
28
|
motion: z.ZodOptional<z.ZodNumber>;
|
|
65
29
|
objects: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
},
|
|
67
|
-
start: number;
|
|
68
|
-
end: number;
|
|
69
|
-
motion?: number | undefined;
|
|
70
|
-
objects?: number | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
start: number;
|
|
73
|
-
end: number;
|
|
74
|
-
motion?: number | undefined;
|
|
75
|
-
objects?: number | undefined;
|
|
76
|
-
}>, "many">;
|
|
30
|
+
}, z.core.$strip>>;
|
|
77
31
|
total: z.ZodNumber;
|
|
78
|
-
},
|
|
79
|
-
items: {
|
|
80
|
-
start: number;
|
|
81
|
-
end: number;
|
|
82
|
-
motion?: number | undefined;
|
|
83
|
-
objects?: number | undefined;
|
|
84
|
-
}[];
|
|
85
|
-
total: number;
|
|
86
|
-
}, {
|
|
87
|
-
items: {
|
|
88
|
-
start: number;
|
|
89
|
-
end: number;
|
|
90
|
-
motion?: number | undefined;
|
|
91
|
-
objects?: number | undefined;
|
|
92
|
-
}[];
|
|
93
|
-
total: number;
|
|
94
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
95
33
|
export declare const sGetPreviewImageRequest: z.ZodObject<{
|
|
96
34
|
deviceId: z.ZodString;
|
|
97
35
|
time: z.ZodNumber;
|
|
98
36
|
height: z.ZodNumber;
|
|
99
|
-
},
|
|
100
|
-
height: number;
|
|
101
|
-
deviceId: string;
|
|
102
|
-
time: number;
|
|
103
|
-
}, {
|
|
104
|
-
height: number;
|
|
105
|
-
deviceId: string;
|
|
106
|
-
time: number;
|
|
107
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
108
38
|
export declare const sGetScenePreviewClipRequest: z.ZodObject<{
|
|
109
39
|
deviceId: z.ZodString;
|
|
110
40
|
providerAssignedRef: z.ZodString;
|
|
111
|
-
},
|
|
112
|
-
deviceId: string;
|
|
113
|
-
providerAssignedRef: string;
|
|
114
|
-
}, {
|
|
115
|
-
deviceId: string;
|
|
116
|
-
providerAssignedRef: string;
|
|
117
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
118
42
|
export declare const sGetObjectSnapshotRequest: z.ZodObject<{
|
|
119
43
|
deviceId: z.ZodString;
|
|
120
44
|
providerAssignedRef: z.ZodString;
|
|
@@ -122,76 +46,28 @@ export declare const sGetObjectSnapshotRequest: z.ZodObject<{
|
|
|
122
46
|
boxes: z.ZodBoolean;
|
|
123
47
|
height: z.ZodOptional<z.ZodNumber>;
|
|
124
48
|
quality: z.ZodOptional<z.ZodNumber>;
|
|
125
|
-
},
|
|
126
|
-
deviceId: string;
|
|
127
|
-
providerAssignedRef: string;
|
|
128
|
-
crop: boolean;
|
|
129
|
-
boxes: boolean;
|
|
130
|
-
height?: number | undefined;
|
|
131
|
-
quality?: number | undefined;
|
|
132
|
-
}, {
|
|
133
|
-
deviceId: string;
|
|
134
|
-
providerAssignedRef: string;
|
|
135
|
-
crop: boolean;
|
|
136
|
-
boxes: boolean;
|
|
137
|
-
height?: number | undefined;
|
|
138
|
-
quality?: number | undefined;
|
|
139
|
-
}>;
|
|
49
|
+
}, z.core.$strip>;
|
|
140
50
|
export declare const sGetObjectThumbnailRequest: z.ZodObject<{
|
|
141
51
|
deviceId: z.ZodString;
|
|
142
52
|
providerAssignedRef: z.ZodString;
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
providerAssignedRef: string;
|
|
146
|
-
}, {
|
|
147
|
-
deviceId: string;
|
|
148
|
-
providerAssignedRef: string;
|
|
149
|
-
}>;
|
|
150
|
-
export declare const sSortOptions: z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export declare const sSortOptions: z.ZodUnion<readonly [z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>;
|
|
151
55
|
export declare const sMediaSearchQueryDto: z.ZodObject<{
|
|
152
56
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
153
57
|
q: z.ZodOptional<z.ZodString>;
|
|
154
|
-
deviceId: z.ZodOptional<z.ZodArray<z.ZodString
|
|
58
|
+
deviceId: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
155
59
|
similarTo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
156
|
-
label: z.ZodOptional<z.ZodArray<z.ZodString
|
|
157
|
-
subLabel: z.ZodOptional<z.ZodArray<z.ZodString
|
|
60
|
+
label: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
subLabel: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
62
|
timeFrom: z.ZodOptional<z.ZodNumber>;
|
|
159
63
|
timeTo: z.ZodOptional<z.ZodNumber>;
|
|
160
|
-
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>>;
|
|
161
|
-
},
|
|
162
|
-
deviceId?: string[] | undefined;
|
|
163
|
-
label?: string[] | undefined;
|
|
164
|
-
limit?: number | undefined;
|
|
165
|
-
q?: string | undefined;
|
|
166
|
-
timeFrom?: number | undefined;
|
|
167
|
-
timeTo?: number | undefined;
|
|
168
|
-
similarTo?: string | undefined;
|
|
169
|
-
subLabel?: string[] | undefined;
|
|
170
|
-
sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
|
|
171
|
-
}, {
|
|
172
|
-
deviceId?: string[] | undefined;
|
|
173
|
-
label?: string[] | undefined;
|
|
174
|
-
limit?: number | undefined;
|
|
175
|
-
q?: string | undefined;
|
|
176
|
-
timeFrom?: number | undefined;
|
|
177
|
-
timeTo?: number | undefined;
|
|
178
|
-
similarTo?: string | undefined;
|
|
179
|
-
subLabel?: string[] | undefined;
|
|
180
|
-
sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
|
|
181
|
-
}>;
|
|
64
|
+
sortBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
182
66
|
export declare const sGetLatestFrameRequest: z.ZodObject<{
|
|
183
67
|
deviceId: z.ZodString;
|
|
184
68
|
width: z.ZodNumber;
|
|
185
69
|
height: z.ZodNumber;
|
|
186
|
-
},
|
|
187
|
-
width: number;
|
|
188
|
-
height: number;
|
|
189
|
-
deviceId: string;
|
|
190
|
-
}, {
|
|
191
|
-
width: number;
|
|
192
|
-
height: number;
|
|
193
|
-
deviceId: string;
|
|
194
|
-
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
195
71
|
export type CreateExportRequest = z.infer<typeof sCreateExportRequest>;
|
|
196
72
|
export type CreateExportResponse = z.infer<typeof sCreateExportResponse>;
|
|
197
73
|
export type RecordingSequence = z.infer<typeof sRecordingSequence>;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const sNotificationSearchParams: z.ZodObject<{
|
|
3
|
-
deviceId: z.ZodOptional<z.ZodArray<z.ZodString
|
|
4
|
-
severity: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
3
|
+
deviceId: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
|
+
severity: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5
|
+
info: "info";
|
|
6
|
+
warning: "warning";
|
|
7
|
+
critical: "critical";
|
|
8
|
+
}>>>;
|
|
5
9
|
acknowledged: z.ZodOptional<z.ZodBoolean>;
|
|
6
10
|
timeFrom: z.ZodOptional<z.ZodNumber>;
|
|
7
11
|
timeTo: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
},
|
|
9
|
-
deviceId?: string[] | undefined;
|
|
10
|
-
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
11
|
-
timeFrom?: number | undefined;
|
|
12
|
-
timeTo?: number | undefined;
|
|
13
|
-
acknowledged?: boolean | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
deviceId?: string[] | undefined;
|
|
16
|
-
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
17
|
-
timeFrom?: number | undefined;
|
|
18
|
-
timeTo?: number | undefined;
|
|
19
|
-
acknowledged?: boolean | undefined;
|
|
20
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
21
13
|
export type NotificationSearchParams = z.infer<typeof sNotificationSearchParams>;
|
|
@@ -3,13 +3,5 @@ export declare const sCreatePersonAgreementRequest: z.ZodObject<{
|
|
|
3
3
|
personId: z.ZodString;
|
|
4
4
|
agreementId: z.ZodString;
|
|
5
5
|
agreementImage: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
personId: string;
|
|
8
|
-
agreementId: string;
|
|
9
|
-
agreementImage: string;
|
|
10
|
-
}, {
|
|
11
|
-
personId: string;
|
|
12
|
-
agreementId: string;
|
|
13
|
-
agreementImage: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type CreatePersonAgreementRequest = z.infer<typeof sCreatePersonAgreementRequest>;
|
|
@@ -1,72 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const sPersonPresenceQuery: z.ZodObject<{
|
|
3
|
-
persons: z.ZodArray<z.ZodString
|
|
4
|
-
zones: z.ZodArray<z.ZodString
|
|
3
|
+
persons: z.ZodArray<z.ZodString>;
|
|
4
|
+
zones: z.ZodArray<z.ZodString>;
|
|
5
5
|
online: z.ZodBoolean;
|
|
6
|
-
},
|
|
7
|
-
online: boolean;
|
|
8
|
-
persons: string[];
|
|
9
|
-
zones: string[];
|
|
10
|
-
}, {
|
|
11
|
-
online: boolean;
|
|
12
|
-
persons: string[];
|
|
13
|
-
zones: string[];
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type PersonPresenceQuery = z.infer<typeof sPersonPresenceQuery>;
|
|
16
|
-
export declare const sPersonTogglePresence: z.ZodUnion<[z.ZodObject<{
|
|
8
|
+
export declare const sPersonTogglePresence: z.ZodUnion<readonly [z.ZodObject<{
|
|
17
9
|
personId: z.ZodString;
|
|
18
10
|
zoneId: z.ZodString;
|
|
19
11
|
credentialToken: z.ZodUndefined;
|
|
20
|
-
},
|
|
21
|
-
personId: string;
|
|
22
|
-
zoneId: string;
|
|
23
|
-
credentialToken?: undefined;
|
|
24
|
-
}, {
|
|
25
|
-
personId: string;
|
|
26
|
-
zoneId: string;
|
|
27
|
-
credentialToken?: undefined;
|
|
28
|
-
}>, z.ZodObject<{
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
13
|
credentialToken: z.ZodString;
|
|
30
14
|
zoneId: z.ZodString;
|
|
31
15
|
personId: z.ZodUndefined;
|
|
32
|
-
},
|
|
33
|
-
zoneId: string;
|
|
34
|
-
credentialToken: string;
|
|
35
|
-
personId?: undefined;
|
|
36
|
-
}, {
|
|
37
|
-
zoneId: string;
|
|
38
|
-
credentialToken: string;
|
|
39
|
-
personId?: undefined;
|
|
40
|
-
}>]>;
|
|
16
|
+
}, z.core.$strip>]>;
|
|
41
17
|
export declare const sPersonCheckIn: z.ZodObject<{
|
|
42
18
|
personId: z.ZodString;
|
|
43
19
|
zoneId: z.ZodString;
|
|
44
20
|
checkCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
},
|
|
46
|
-
personId: string;
|
|
47
|
-
zoneId: string;
|
|
48
|
-
checkCompleted?: boolean | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
personId: string;
|
|
51
|
-
zoneId: string;
|
|
52
|
-
checkCompleted?: boolean | undefined;
|
|
53
|
-
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
54
22
|
export declare const sPersonCheckOut: z.ZodObject<{
|
|
55
23
|
personId: z.ZodString;
|
|
56
24
|
zoneId: z.ZodString;
|
|
57
25
|
leave: z.ZodNullable<z.ZodBoolean>;
|
|
58
26
|
checkCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
},
|
|
60
|
-
personId: string;
|
|
61
|
-
zoneId: string;
|
|
62
|
-
leave: boolean | null;
|
|
63
|
-
checkCompleted?: boolean | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
personId: string;
|
|
66
|
-
zoneId: string;
|
|
67
|
-
leave: boolean | null;
|
|
68
|
-
checkCompleted?: boolean | undefined;
|
|
69
|
-
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
70
28
|
export type PresenceToggleRequest = z.infer<typeof sPersonTogglePresence>;
|
|
71
29
|
export type PresenceCheckInRequest = z.infer<typeof sPersonCheckIn>;
|
|
72
30
|
export type PresenceCheckOutRequest = z.infer<typeof sPersonCheckOut>;
|