@awarevue/api-types 1.1.15 → 2.0.2
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/person-agreement.d.ts +2 -2
- package/dist/access-control/person.d.ts +4 -4
- package/dist/agent-communication/protocol.d.ts +108 -308
- package/dist/agent-communication/protocol.js +5 -8
- package/dist/agent-communication/queries.d.ts +1312 -1045
- package/dist/agent-communication/queries.js +11 -109
- package/dist/api/media.d.ts +6 -14
- package/dist/api/media.js +1 -4
- package/dist/device/alarm.d.ts +24 -24
- package/dist/device/any-device.d.ts +537 -269
- package/dist/device/any-device.js +22 -4
- package/dist/device/camera.d.ts +97 -0
- package/dist/device/camera.js +24 -1
- package/dist/device/index.d.ts +3 -1
- package/dist/device/index.js +3 -1
- package/dist/device/intercom-terminal.d.ts +4 -4
- package/dist/device/nvr-analytics-server.d.ts +307 -0
- package/dist/device/nvr-analytics-server.js +73 -0
- package/dist/device/nvr-exporter.d.ts +892 -0
- package/dist/device/nvr-exporter.js +77 -0
- package/dist/device/nvr-recorder.d.ts +2981 -0
- package/dist/device/nvr-recorder.js +47 -0
- package/dist/device/presence-tracker.d.ts +8 -8
- package/dist/device-event.d.ts +43 -19
- package/dist/device-event.js +5 -0
- package/dist/device-import.d.ts +123 -51
- package/dist/device-relation.d.ts +7 -7
- package/dist/device-relation.js +12 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/messages/web-rtc-signaling.d.ts +10 -10
- package/dist/package.json +1 -1
- package/dist/permissions.d.ts +3 -3
- package/dist/permissions.js +9 -1
- package/dist/primitives.d.ts +596 -0
- package/dist/primitives.js +13 -1
- package/dist/user.d.ts +16 -16
- package/package.json +1 -1
- package/dist/device/recorder.d.ts +0 -12
- package/dist/device/recorder.js +0 -9
- package/dist/export.d.ts +0 -30
- package/dist/export.js +0 -14
|
@@ -6,15 +6,15 @@ export declare const sPersonAgeementDto: z.ZodObject<{
|
|
|
6
6
|
createdOn: z.ZodString;
|
|
7
7
|
lastModifiedOn: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
personId: string;
|
|
10
9
|
createdOn: string;
|
|
11
10
|
lastModifiedOn: string;
|
|
11
|
+
personId: string;
|
|
12
12
|
agreementId: string;
|
|
13
13
|
agreementImage: string;
|
|
14
14
|
}, {
|
|
15
|
-
personId: string;
|
|
16
15
|
createdOn: string;
|
|
17
16
|
lastModifiedOn: string;
|
|
17
|
+
personId: string;
|
|
18
18
|
agreementId: string;
|
|
19
19
|
agreementImage: string;
|
|
20
20
|
}>;
|
|
@@ -56,15 +56,15 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
56
56
|
createdOn: z.ZodString;
|
|
57
57
|
lastModifiedOn: z.ZodString;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
personId: string;
|
|
60
59
|
createdOn: string;
|
|
61
60
|
lastModifiedOn: string;
|
|
61
|
+
personId: string;
|
|
62
62
|
agreementId: string;
|
|
63
63
|
agreementImage: string;
|
|
64
64
|
}, {
|
|
65
|
-
personId: string;
|
|
66
65
|
createdOn: string;
|
|
67
66
|
lastModifiedOn: string;
|
|
67
|
+
personId: string;
|
|
68
68
|
agreementId: string;
|
|
69
69
|
agreementImage: string;
|
|
70
70
|
}>, "many">;
|
|
@@ -95,9 +95,9 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
95
95
|
}[];
|
|
96
96
|
customFields: Record<string, string> | null;
|
|
97
97
|
agreements: {
|
|
98
|
-
personId: string;
|
|
99
98
|
createdOn: string;
|
|
100
99
|
lastModifiedOn: string;
|
|
100
|
+
personId: string;
|
|
101
101
|
agreementId: string;
|
|
102
102
|
agreementImage: string;
|
|
103
103
|
}[];
|
|
@@ -128,9 +128,9 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
128
128
|
}[];
|
|
129
129
|
customFields: Record<string, string> | null;
|
|
130
130
|
agreements: {
|
|
131
|
-
personId: string;
|
|
132
131
|
createdOn: string;
|
|
133
132
|
lastModifiedOn: string;
|
|
133
|
+
personId: string;
|
|
134
134
|
agreementId: string;
|
|
135
135
|
agreementImage: string;
|
|
136
136
|
}[];
|
|
@@ -1,285 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
foreignRef: z.ZodString;
|
|
5
|
-
provider: z.ZodString;
|
|
6
|
-
providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
name: string;
|
|
9
|
-
foreignRef: string;
|
|
10
|
-
provider: string;
|
|
11
|
-
providerMetadata: {} & {
|
|
12
|
-
[k: string]: unknown;
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
name: string;
|
|
16
|
-
foreignRef: string;
|
|
17
|
-
provider: string;
|
|
18
|
-
providerMetadata: {} & {
|
|
19
|
-
[k: string]: unknown;
|
|
20
|
-
};
|
|
21
|
-
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
22
|
-
type: z.ZodLiteral<"alarm">;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
type: "alarm";
|
|
25
|
-
}, {
|
|
26
|
-
type: "alarm";
|
|
27
|
-
}>, z.ZodObject<{
|
|
28
|
-
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
29
|
-
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
30
|
-
ptzCapable: z.ZodBoolean;
|
|
31
|
-
ptzPanSpeed: z.ZodNumber;
|
|
32
|
-
ptzTiltSpeed: z.ZodNumber;
|
|
33
|
-
ptzZoomSpeed: z.ZodNumber;
|
|
34
|
-
panMin: z.ZodNumber;
|
|
35
|
-
panMax: z.ZodNumber;
|
|
36
|
-
tiltMin: z.ZodNumber;
|
|
37
|
-
tiltMax: z.ZodNumber;
|
|
38
|
-
zoomMin: z.ZodNumber;
|
|
39
|
-
zoomMax: z.ZodNumber;
|
|
40
|
-
recordingCapable: z.ZodBoolean;
|
|
41
|
-
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
42
|
-
kind: z.ZodString;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
kind: string;
|
|
45
|
-
}, {
|
|
46
|
-
kind: string;
|
|
47
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
48
|
-
streams: z.ZodArray<z.ZodObject<{
|
|
49
|
-
id: z.ZodString;
|
|
50
|
-
displayName: z.ZodString;
|
|
51
|
-
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
id: string;
|
|
54
|
-
displayName: string;
|
|
55
|
-
externalPlayerUrl: string | null;
|
|
56
|
-
}, {
|
|
57
|
-
id: string;
|
|
58
|
-
displayName: string;
|
|
59
|
-
externalPlayerUrl: string | null;
|
|
60
|
-
}>, "many">;
|
|
61
|
-
defaultStreamId: z.ZodString;
|
|
62
|
-
} & {
|
|
63
|
-
type: z.ZodLiteral<"camera">;
|
|
64
|
-
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
type: "camera";
|
|
66
|
-
streams: {
|
|
67
|
-
id: string;
|
|
68
|
-
displayName: string;
|
|
69
|
-
externalPlayerUrl: string | null;
|
|
70
|
-
}[];
|
|
71
|
-
lensType: "flat" | "fisheye";
|
|
72
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
73
|
-
ptzCapable: boolean;
|
|
74
|
-
ptzPanSpeed: number;
|
|
75
|
-
ptzTiltSpeed: number;
|
|
76
|
-
ptzZoomSpeed: number;
|
|
77
|
-
panMin: number;
|
|
78
|
-
panMax: number;
|
|
79
|
-
tiltMin: number;
|
|
80
|
-
tiltMax: number;
|
|
81
|
-
zoomMin: number;
|
|
82
|
-
zoomMax: number;
|
|
83
|
-
recordingCapable: boolean;
|
|
84
|
-
webrtcPlaybackSource: ({
|
|
85
|
-
kind: string;
|
|
86
|
-
} & Record<string, unknown>) | null;
|
|
87
|
-
defaultStreamId: string;
|
|
88
|
-
}, {
|
|
89
|
-
type: "camera";
|
|
90
|
-
streams: {
|
|
91
|
-
id: string;
|
|
92
|
-
displayName: string;
|
|
93
|
-
externalPlayerUrl: string | null;
|
|
94
|
-
}[];
|
|
95
|
-
lensType: "flat" | "fisheye";
|
|
96
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
97
|
-
ptzCapable: boolean;
|
|
98
|
-
ptzPanSpeed: number;
|
|
99
|
-
ptzTiltSpeed: number;
|
|
100
|
-
ptzZoomSpeed: number;
|
|
101
|
-
panMin: number;
|
|
102
|
-
panMax: number;
|
|
103
|
-
tiltMin: number;
|
|
104
|
-
tiltMax: number;
|
|
105
|
-
zoomMin: number;
|
|
106
|
-
zoomMax: number;
|
|
107
|
-
recordingCapable: boolean;
|
|
108
|
-
webrtcPlaybackSource: ({
|
|
109
|
-
kind: string;
|
|
110
|
-
} & Record<string, unknown>) | null;
|
|
111
|
-
defaultStreamId: string;
|
|
112
|
-
}>, z.ZodObject<{
|
|
113
|
-
canReportOpenState: z.ZodBoolean;
|
|
114
|
-
canReportLockState: z.ZodBoolean;
|
|
115
|
-
canControlLock: z.ZodBoolean;
|
|
116
|
-
canRelease: z.ZodBoolean;
|
|
117
|
-
} & {
|
|
118
|
-
type: z.ZodLiteral<"door">;
|
|
119
|
-
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
type: "door";
|
|
121
|
-
canReportOpenState: boolean;
|
|
122
|
-
canReportLockState: boolean;
|
|
123
|
-
canControlLock: boolean;
|
|
124
|
-
canRelease: boolean;
|
|
125
|
-
}, {
|
|
126
|
-
type: "door";
|
|
127
|
-
canReportOpenState: boolean;
|
|
128
|
-
canReportLockState: boolean;
|
|
129
|
-
canControlLock: boolean;
|
|
130
|
-
canRelease: boolean;
|
|
131
|
-
}>, z.ZodObject<{
|
|
132
|
-
inputs: z.ZodArray<z.ZodString, "many">;
|
|
133
|
-
outputs: z.ZodArray<z.ZodString, "many">;
|
|
134
|
-
} & {
|
|
135
|
-
type: z.ZodLiteral<"io-board">;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
type: "io-board";
|
|
138
|
-
inputs: string[];
|
|
139
|
-
outputs: string[];
|
|
140
|
-
}, {
|
|
141
|
-
type: "io-board";
|
|
142
|
-
inputs: string[];
|
|
143
|
-
outputs: string[];
|
|
144
|
-
}>, z.ZodObject<{
|
|
145
|
-
type: z.ZodLiteral<"camera-lift">;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
type: "camera-lift";
|
|
148
|
-
}, {
|
|
149
|
-
type: "camera-lift";
|
|
150
|
-
}>, z.ZodObject<{
|
|
151
|
-
type: z.ZodLiteral<"motion-sensor">;
|
|
152
|
-
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
type: "motion-sensor";
|
|
154
|
-
}, {
|
|
155
|
-
type: "motion-sensor";
|
|
156
|
-
}>, z.ZodObject<{
|
|
157
|
-
type: z.ZodLiteral<"panic-button">;
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
type: "panic-button";
|
|
160
|
-
}, {
|
|
161
|
-
type: "panic-button";
|
|
162
|
-
}>, z.ZodObject<{
|
|
163
|
-
sipUri: z.ZodString;
|
|
164
|
-
sipUser: z.ZodString;
|
|
165
|
-
sipPassword: z.ZodString;
|
|
166
|
-
sipRealm: z.ZodString;
|
|
167
|
-
remoteExtension: z.ZodString;
|
|
168
|
-
} & {
|
|
169
|
-
type: z.ZodLiteral<"intercom-terminal">;
|
|
170
|
-
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
type: "intercom-terminal";
|
|
172
|
-
sipUri: string;
|
|
173
|
-
sipUser: string;
|
|
174
|
-
sipPassword: string;
|
|
175
|
-
sipRealm: string;
|
|
176
|
-
remoteExtension: string;
|
|
177
|
-
}, {
|
|
178
|
-
type: "intercom-terminal";
|
|
179
|
-
sipUri: string;
|
|
180
|
-
sipUser: string;
|
|
181
|
-
sipPassword: string;
|
|
182
|
-
sipRealm: string;
|
|
183
|
-
remoteExtension: string;
|
|
184
|
-
}>, z.ZodObject<{
|
|
185
|
-
sipWsUrl: z.ZodString;
|
|
186
|
-
} & {
|
|
187
|
-
type: z.ZodLiteral<"pbx">;
|
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
type: "pbx";
|
|
190
|
-
sipWsUrl: string;
|
|
191
|
-
}, {
|
|
192
|
-
type: "pbx";
|
|
193
|
-
sipWsUrl: string;
|
|
194
|
-
}>, z.ZodObject<{
|
|
195
|
-
type: z.ZodLiteral<"server">;
|
|
196
|
-
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
type: "server";
|
|
198
|
-
}, {
|
|
199
|
-
type: "server";
|
|
200
|
-
}>, z.ZodObject<{
|
|
201
|
-
type: z.ZodLiteral<"intercom-operator">;
|
|
202
|
-
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
type: "intercom-operator";
|
|
204
|
-
}, {
|
|
205
|
-
type: "intercom-operator";
|
|
206
|
-
}>, z.ZodObject<{
|
|
207
|
-
type: z.ZodLiteral<"device-gateway">;
|
|
208
|
-
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
type: "device-gateway";
|
|
210
|
-
}, {
|
|
211
|
-
type: "device-gateway";
|
|
212
|
-
}>, z.ZodObject<{
|
|
213
|
-
type: z.ZodLiteral<"presence-tracker">;
|
|
214
|
-
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
type: "presence-tracker";
|
|
216
|
-
}, {
|
|
217
|
-
type: "presence-tracker";
|
|
218
|
-
}>, z.ZodObject<{
|
|
219
|
-
type: z.ZodLiteral<"reader">;
|
|
220
|
-
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
type: "reader";
|
|
222
|
-
}, {
|
|
223
|
-
type: "reader";
|
|
224
|
-
}>, z.ZodObject<{
|
|
225
|
-
type: z.ZodLiteral<"display">;
|
|
226
|
-
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
type: "display";
|
|
228
|
-
}, {
|
|
229
|
-
type: "display";
|
|
230
|
-
}>, z.ZodObject<{
|
|
231
|
-
type: z.ZodLiteral<"recorder">;
|
|
232
|
-
}, "strip", z.ZodTypeAny, {
|
|
233
|
-
type: "recorder";
|
|
234
|
-
}, {
|
|
235
|
-
type: "recorder";
|
|
236
|
-
}>]>>, z.ZodObject<{
|
|
237
|
-
presets: z.ZodArray<z.ZodObject<{
|
|
238
|
-
id: z.ZodString;
|
|
239
|
-
name: z.ZodString;
|
|
240
|
-
params: z.ZodUnknown;
|
|
241
|
-
isDefault: z.ZodBoolean;
|
|
242
|
-
assignedRef: z.ZodNullable<z.ZodString>;
|
|
243
|
-
createdOn: z.ZodString;
|
|
244
|
-
lastModifiedOn: z.ZodString;
|
|
245
|
-
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
name: string;
|
|
247
|
-
id: string;
|
|
248
|
-
isDefault: boolean;
|
|
249
|
-
assignedRef: string | null;
|
|
250
|
-
createdOn: string;
|
|
251
|
-
lastModifiedOn: string;
|
|
252
|
-
params?: unknown;
|
|
253
|
-
}, {
|
|
254
|
-
name: string;
|
|
255
|
-
id: string;
|
|
256
|
-
isDefault: boolean;
|
|
257
|
-
assignedRef: string | null;
|
|
258
|
-
createdOn: string;
|
|
259
|
-
lastModifiedOn: string;
|
|
260
|
-
params?: unknown;
|
|
261
|
-
}>, "many">;
|
|
262
|
-
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
presets: {
|
|
264
|
-
name: string;
|
|
265
|
-
id: string;
|
|
266
|
-
isDefault: boolean;
|
|
267
|
-
assignedRef: string | null;
|
|
268
|
-
createdOn: string;
|
|
269
|
-
lastModifiedOn: string;
|
|
270
|
-
params?: unknown;
|
|
271
|
-
}[];
|
|
272
|
-
}, {
|
|
273
|
-
presets: {
|
|
274
|
-
name: string;
|
|
275
|
-
id: string;
|
|
276
|
-
isDefault: boolean;
|
|
277
|
-
assignedRef: string | null;
|
|
278
|
-
createdOn: string;
|
|
279
|
-
lastModifiedOn: string;
|
|
280
|
-
params?: unknown;
|
|
281
|
-
}[];
|
|
282
|
-
}>>;
|
|
2
|
+
import { sAgentDeviceInfo } from '../primitives';
|
|
283
3
|
export declare const sMessageHeader: z.ZodObject<{
|
|
284
4
|
version: z.ZodNumber;
|
|
285
5
|
id: z.ZodString;
|
|
@@ -1045,11 +765,23 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1045
765
|
}, {
|
|
1046
766
|
type: "display";
|
|
1047
767
|
}>, z.ZodObject<{
|
|
1048
|
-
type: z.ZodLiteral<"recorder">;
|
|
768
|
+
type: z.ZodLiteral<"nvr-recorder">;
|
|
769
|
+
}, "strip", z.ZodTypeAny, {
|
|
770
|
+
type: "nvr-recorder";
|
|
771
|
+
}, {
|
|
772
|
+
type: "nvr-recorder";
|
|
773
|
+
}>, z.ZodObject<{
|
|
774
|
+
type: z.ZodLiteral<"nvr-exporter">;
|
|
775
|
+
}, "strip", z.ZodTypeAny, {
|
|
776
|
+
type: "nvr-exporter";
|
|
777
|
+
}, {
|
|
778
|
+
type: "nvr-exporter";
|
|
779
|
+
}>, z.ZodObject<{
|
|
780
|
+
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
1049
781
|
}, "strip", z.ZodTypeAny, {
|
|
1050
|
-
type: "
|
|
782
|
+
type: "nvr-analytics-server";
|
|
1051
783
|
}, {
|
|
1052
|
-
type: "
|
|
784
|
+
type: "nvr-analytics-server";
|
|
1053
785
|
}>]>>, z.ZodObject<{
|
|
1054
786
|
presets: z.ZodArray<z.ZodObject<{
|
|
1055
787
|
id: z.ZodString;
|
|
@@ -1101,8 +833,8 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1101
833
|
batchId: z.ZodOptional<z.ZodString>;
|
|
1102
834
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1103
835
|
}, "strip", z.ZodTypeAny, {
|
|
1104
|
-
command: string;
|
|
1105
836
|
kind: "command";
|
|
837
|
+
command: string;
|
|
1106
838
|
device: ({
|
|
1107
839
|
name: string;
|
|
1108
840
|
foreignRef: string;
|
|
@@ -1175,7 +907,11 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1175
907
|
} | {
|
|
1176
908
|
type: "display";
|
|
1177
909
|
} | {
|
|
1178
|
-
type: "recorder";
|
|
910
|
+
type: "nvr-recorder";
|
|
911
|
+
} | {
|
|
912
|
+
type: "nvr-exporter";
|
|
913
|
+
} | {
|
|
914
|
+
type: "nvr-analytics-server";
|
|
1179
915
|
})) & {
|
|
1180
916
|
presets: {
|
|
1181
917
|
name: string;
|
|
@@ -1190,8 +926,8 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1190
926
|
params?: Record<string, unknown> | undefined;
|
|
1191
927
|
batchId?: string | undefined;
|
|
1192
928
|
}, {
|
|
1193
|
-
command: string;
|
|
1194
929
|
kind: "command";
|
|
930
|
+
command: string;
|
|
1195
931
|
device: ({
|
|
1196
932
|
name: string;
|
|
1197
933
|
foreignRef: string;
|
|
@@ -1264,7 +1000,11 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1264
1000
|
} | {
|
|
1265
1001
|
type: "display";
|
|
1266
1002
|
} | {
|
|
1267
|
-
type: "recorder";
|
|
1003
|
+
type: "nvr-recorder";
|
|
1004
|
+
} | {
|
|
1005
|
+
type: "nvr-exporter";
|
|
1006
|
+
} | {
|
|
1007
|
+
type: "nvr-analytics-server";
|
|
1268
1008
|
})) & {
|
|
1269
1009
|
presets: {
|
|
1270
1010
|
name: string;
|
|
@@ -1521,11 +1261,23 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1521
1261
|
}, {
|
|
1522
1262
|
type: "display";
|
|
1523
1263
|
}>, z.ZodObject<{
|
|
1524
|
-
type: z.ZodLiteral<"recorder">;
|
|
1264
|
+
type: z.ZodLiteral<"nvr-recorder">;
|
|
1265
|
+
}, "strip", z.ZodTypeAny, {
|
|
1266
|
+
type: "nvr-recorder";
|
|
1267
|
+
}, {
|
|
1268
|
+
type: "nvr-recorder";
|
|
1269
|
+
}>, z.ZodObject<{
|
|
1270
|
+
type: z.ZodLiteral<"nvr-exporter">;
|
|
1525
1271
|
}, "strip", z.ZodTypeAny, {
|
|
1526
|
-
type: "
|
|
1272
|
+
type: "nvr-exporter";
|
|
1527
1273
|
}, {
|
|
1528
|
-
type: "
|
|
1274
|
+
type: "nvr-exporter";
|
|
1275
|
+
}>, z.ZodObject<{
|
|
1276
|
+
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
1277
|
+
}, "strip", z.ZodTypeAny, {
|
|
1278
|
+
type: "nvr-analytics-server";
|
|
1279
|
+
}, {
|
|
1280
|
+
type: "nvr-analytics-server";
|
|
1529
1281
|
}>]>>, z.ZodObject<{
|
|
1530
1282
|
presets: z.ZodArray<z.ZodObject<{
|
|
1531
1283
|
id: z.ZodString;
|
|
@@ -1648,7 +1400,11 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1648
1400
|
} | {
|
|
1649
1401
|
type: "display";
|
|
1650
1402
|
} | {
|
|
1651
|
-
type: "recorder";
|
|
1403
|
+
type: "nvr-recorder";
|
|
1404
|
+
} | {
|
|
1405
|
+
type: "nvr-exporter";
|
|
1406
|
+
} | {
|
|
1407
|
+
type: "nvr-analytics-server";
|
|
1652
1408
|
})) & {
|
|
1653
1409
|
presets: {
|
|
1654
1410
|
name: string;
|
|
@@ -1736,7 +1492,11 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1736
1492
|
} | {
|
|
1737
1493
|
type: "display";
|
|
1738
1494
|
} | {
|
|
1739
|
-
type: "recorder";
|
|
1495
|
+
type: "nvr-recorder";
|
|
1496
|
+
} | {
|
|
1497
|
+
type: "nvr-exporter";
|
|
1498
|
+
} | {
|
|
1499
|
+
type: "nvr-analytics-server";
|
|
1740
1500
|
})) & {
|
|
1741
1501
|
presets: {
|
|
1742
1502
|
name: string;
|
|
@@ -1999,11 +1759,23 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
1999
1759
|
}, {
|
|
2000
1760
|
type: "display";
|
|
2001
1761
|
}>, z.ZodObject<{
|
|
2002
|
-
type: z.ZodLiteral<"recorder">;
|
|
1762
|
+
type: z.ZodLiteral<"nvr-recorder">;
|
|
1763
|
+
}, "strip", z.ZodTypeAny, {
|
|
1764
|
+
type: "nvr-recorder";
|
|
1765
|
+
}, {
|
|
1766
|
+
type: "nvr-recorder";
|
|
1767
|
+
}>, z.ZodObject<{
|
|
1768
|
+
type: z.ZodLiteral<"nvr-exporter">;
|
|
2003
1769
|
}, "strip", z.ZodTypeAny, {
|
|
2004
|
-
type: "
|
|
1770
|
+
type: "nvr-exporter";
|
|
2005
1771
|
}, {
|
|
2006
|
-
type: "
|
|
1772
|
+
type: "nvr-exporter";
|
|
1773
|
+
}>, z.ZodObject<{
|
|
1774
|
+
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
1775
|
+
}, "strip", z.ZodTypeAny, {
|
|
1776
|
+
type: "nvr-analytics-server";
|
|
1777
|
+
}, {
|
|
1778
|
+
type: "nvr-analytics-server";
|
|
2007
1779
|
}>]>>, z.ZodObject<{
|
|
2008
1780
|
presets: z.ZodArray<z.ZodObject<{
|
|
2009
1781
|
id: z.ZodString;
|
|
@@ -2128,7 +1900,11 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
2128
1900
|
} | {
|
|
2129
1901
|
type: "display";
|
|
2130
1902
|
} | {
|
|
2131
|
-
type: "recorder";
|
|
1903
|
+
type: "nvr-recorder";
|
|
1904
|
+
} | {
|
|
1905
|
+
type: "nvr-exporter";
|
|
1906
|
+
} | {
|
|
1907
|
+
type: "nvr-analytics-server";
|
|
2132
1908
|
})) & {
|
|
2133
1909
|
presets: {
|
|
2134
1910
|
name: string;
|
|
@@ -2217,7 +1993,11 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
2217
1993
|
} | {
|
|
2218
1994
|
type: "display";
|
|
2219
1995
|
} | {
|
|
2220
|
-
type: "recorder";
|
|
1996
|
+
type: "nvr-recorder";
|
|
1997
|
+
} | {
|
|
1998
|
+
type: "nvr-exporter";
|
|
1999
|
+
} | {
|
|
2000
|
+
type: "nvr-analytics-server";
|
|
2221
2001
|
})) & {
|
|
2222
2002
|
presets: {
|
|
2223
2003
|
name: string;
|
|
@@ -2548,24 +2328,36 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2548
2328
|
}, {
|
|
2549
2329
|
type: "display";
|
|
2550
2330
|
}>, z.ZodObject<{
|
|
2551
|
-
type: z.ZodLiteral<"recorder">;
|
|
2331
|
+
type: z.ZodLiteral<"nvr-recorder">;
|
|
2332
|
+
}, "strip", z.ZodTypeAny, {
|
|
2333
|
+
type: "nvr-recorder";
|
|
2334
|
+
}, {
|
|
2335
|
+
type: "nvr-recorder";
|
|
2336
|
+
}>, z.ZodObject<{
|
|
2337
|
+
type: z.ZodLiteral<"nvr-exporter">;
|
|
2552
2338
|
}, "strip", z.ZodTypeAny, {
|
|
2553
|
-
type: "
|
|
2339
|
+
type: "nvr-exporter";
|
|
2554
2340
|
}, {
|
|
2555
|
-
type: "
|
|
2341
|
+
type: "nvr-exporter";
|
|
2342
|
+
}>, z.ZodObject<{
|
|
2343
|
+
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
2344
|
+
}, "strip", z.ZodTypeAny, {
|
|
2345
|
+
type: "nvr-analytics-server";
|
|
2346
|
+
}, {
|
|
2347
|
+
type: "nvr-analytics-server";
|
|
2556
2348
|
}>]>>, "many">;
|
|
2557
2349
|
relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
2558
2350
|
leftId: z.ZodString;
|
|
2559
2351
|
rightId: z.ZodString;
|
|
2560
|
-
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
|
|
2352
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2561
2353
|
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2562
2354
|
leftId: z.ZodString;
|
|
2563
2355
|
rightId: z.ZodString;
|
|
2564
|
-
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
|
|
2356
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2565
2357
|
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2566
2358
|
leftId: z.ZodString;
|
|
2567
2359
|
rightId: z.ZodString;
|
|
2568
|
-
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
|
|
2360
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2569
2361
|
}, z.ZodUnknown, "strip">>, z.ZodObject<{
|
|
2570
2362
|
provider: z.ZodString;
|
|
2571
2363
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2648,10 +2440,14 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2648
2440
|
} | {
|
|
2649
2441
|
type: "display";
|
|
2650
2442
|
} | {
|
|
2651
|
-
type: "recorder";
|
|
2443
|
+
type: "nvr-recorder";
|
|
2444
|
+
} | {
|
|
2445
|
+
type: "nvr-exporter";
|
|
2446
|
+
} | {
|
|
2447
|
+
type: "nvr-analytics-server";
|
|
2652
2448
|
}))[];
|
|
2653
2449
|
relations: ({
|
|
2654
|
-
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
|
|
2450
|
+
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
|
|
2655
2451
|
leftId: string;
|
|
2656
2452
|
rightId: string;
|
|
2657
2453
|
} & {
|
|
@@ -2734,10 +2530,14 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2734
2530
|
} | {
|
|
2735
2531
|
type: "display";
|
|
2736
2532
|
} | {
|
|
2737
|
-
type: "recorder";
|
|
2533
|
+
type: "nvr-recorder";
|
|
2534
|
+
} | {
|
|
2535
|
+
type: "nvr-exporter";
|
|
2536
|
+
} | {
|
|
2537
|
+
type: "nvr-analytics-server";
|
|
2738
2538
|
}))[];
|
|
2739
2539
|
relations: ({
|
|
2740
|
-
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
|
|
2540
|
+
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
|
|
2741
2541
|
leftId: string;
|
|
2742
2542
|
rightId: string;
|
|
2743
2543
|
} & {
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sChangeIssueCode = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sPushFile = exports.sQueryRs = exports.sQueryRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader =
|
|
4
|
-
const device_1 = require("../device");
|
|
3
|
+
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sChangeIssueCode = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sPushFile = exports.sQueryRs = exports.sQueryRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = void 0;
|
|
5
4
|
const device_import_1 = require("../device-import");
|
|
6
5
|
const credential_1 = require("../access-control/credential");
|
|
7
6
|
const zod_1 = require("zod");
|
|
8
7
|
const access_control_1 = require("../access-control");
|
|
9
|
-
|
|
10
|
-
presets: zod_1.z.array(device_1.sPresetDto),
|
|
11
|
-
}));
|
|
8
|
+
const primitives_1 = require("../primitives");
|
|
12
9
|
// PROTOCOL ENVELOPE
|
|
13
10
|
exports.sMessageHeader = zod_1.z.object({
|
|
14
11
|
version: zod_1.z.number().describe('Protocol version'),
|
|
@@ -135,7 +132,7 @@ exports.sStopServiceRs = (0, exports.sResponsePayload)(zod_1.z.literal('stop-rs'
|
|
|
135
132
|
exports.sRunCommandRq = zod_1.z
|
|
136
133
|
.object({
|
|
137
134
|
kind: zod_1.z.literal('command'),
|
|
138
|
-
device:
|
|
135
|
+
device: primitives_1.sAgentDeviceInfo,
|
|
139
136
|
command: zod_1.z.string().nonempty(),
|
|
140
137
|
batchId: zod_1.z
|
|
141
138
|
.string()
|
|
@@ -149,7 +146,7 @@ exports.sRunCommandRs = (0, exports.sResponsePayload)(zod_1.z.literal('command-r
|
|
|
149
146
|
exports.sQueryRq = zod_1.z.object({
|
|
150
147
|
kind: zod_1.z.literal('query'),
|
|
151
148
|
query: zod_1.z.string().nonempty(),
|
|
152
|
-
device:
|
|
149
|
+
device: primitives_1.sAgentDeviceInfo,
|
|
153
150
|
args: zod_1.z.unknown().describe('Query arguments, depends on the query type'),
|
|
154
151
|
});
|
|
155
152
|
exports.sQueryRs = (0, exports.sResponsePayload)(zod_1.z.literal('query-rs'), zod_1.z.object({
|
|
@@ -160,7 +157,7 @@ exports.sPushFile = zod_1.z
|
|
|
160
157
|
.object({
|
|
161
158
|
kind: zod_1.z.literal('push-file'),
|
|
162
159
|
query: zod_1.z.string().nonempty(),
|
|
163
|
-
device:
|
|
160
|
+
device: primitives_1.sAgentDeviceInfo,
|
|
164
161
|
args: zod_1.z.unknown().describe('Query arguments, depends on the query type'),
|
|
165
162
|
url: zod_1.z.string().nonempty().describe('URL to pull the file from'),
|
|
166
163
|
})
|