@awarevue/api-types 2.0.42 → 2.0.44

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.
@@ -81,6 +81,8 @@ exports.eventKindLabels = {
81
81
  'nvr-export-deleted': 'NVR Export Deleted',
82
82
  'notification-created': 'Notification Created',
83
83
  'notification-acknowledged': 'Notification Acknowledged',
84
+ 'user-logged-in': 'User Logged In',
85
+ 'user-logged-out': 'User Logged Out',
84
86
  };
85
87
  exports.eventSchemaByKind = {
86
88
  ...alarm_1.alarmEventSchemasByKind,
@@ -62,4 +62,26 @@ export type ObjectDeleted = {
62
62
  userId?: string;
63
63
  };
64
64
  }[keyof ObjectKinds];
65
- export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped;
65
+ export declare const sUserLoggedIn: z.ZodObject<{
66
+ kind: z.ZodLiteral<"user-logged-in">;
67
+ userId: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ kind: "user-logged-in";
70
+ userId: string;
71
+ }, {
72
+ kind: "user-logged-in";
73
+ userId: string;
74
+ }>;
75
+ export declare const sUserLoggedOut: z.ZodObject<{
76
+ kind: z.ZodLiteral<"user-logged-out">;
77
+ userId: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ kind: "user-logged-out";
80
+ userId: string;
81
+ }, {
82
+ kind: "user-logged-out";
83
+ userId: string;
84
+ }>;
85
+ export type UserLoggedIn = z.infer<typeof sUserLoggedIn>;
86
+ export type UserLoggedOut = z.infer<typeof sUserLoggedOut>;
87
+ export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped | UserLoggedIn | UserLoggedOut;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sAgentStopped = exports.sAgentStarted = void 0;
3
+ exports.sUserLoggedOut = exports.sUserLoggedIn = exports.sAgentStopped = exports.sAgentStarted = void 0;
4
4
  const zod_1 = require("zod");
5
+ const primitives_1 = require("../../primitives");
5
6
  // EVENTS
6
7
  exports.sAgentStarted = zod_1.z.object({
7
8
  kind: zod_1.z.literal('agent-started'),
@@ -13,3 +14,11 @@ exports.sAgentStopped = zod_1.z.object({
13
14
  agent: zod_1.z.string(),
14
15
  providers: zod_1.z.array(zod_1.z.string()),
15
16
  });
17
+ exports.sUserLoggedIn = zod_1.z.object({
18
+ kind: zod_1.z.literal('user-logged-in'),
19
+ userId: primitives_1.sUserId,
20
+ });
21
+ exports.sUserLoggedOut = zod_1.z.object({
22
+ kind: zod_1.z.literal('user-logged-out'),
23
+ userId: primitives_1.sUserId,
24
+ });
@@ -17,9 +17,10 @@ export declare const requestSchemasByType: {
17
17
  q: z.ZodOptional<z.ZodString>;
18
18
  similarTo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19
19
  label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
+ subLabel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
21
  timeFrom: z.ZodOptional<z.ZodNumber>;
21
22
  timeTo: z.ZodOptional<z.ZodNumber>;
22
- sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">]>>;
23
+ sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>>;
23
24
  }, "strip", z.ZodTypeAny, {
24
25
  label?: string[] | undefined;
25
26
  q?: string | undefined;
@@ -28,7 +29,8 @@ export declare const requestSchemasByType: {
28
29
  timeFrom?: number | undefined;
29
30
  timeTo?: number | undefined;
30
31
  similarTo?: string | undefined;
31
- sortBy?: "time_asc" | "time_desc" | undefined;
32
+ subLabel?: string[] | undefined;
33
+ sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
32
34
  }, {
33
35
  label?: string[] | undefined;
34
36
  q?: string | undefined;
@@ -37,7 +39,8 @@ export declare const requestSchemasByType: {
37
39
  timeFrom?: number | undefined;
38
40
  timeTo?: number | undefined;
39
41
  similarTo?: string | undefined;
40
- sortBy?: "time_asc" | "time_desc" | undefined;
42
+ subLabel?: string[] | undefined;
43
+ sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
41
44
  }>;
42
45
  readonly "cctv:scene-preview-clip": z.ZodObject<{
43
46
  providerAssignedRef: z.ZodString;
@@ -73,6 +76,62 @@ export declare const requestSchemasByType: {
73
76
  providerAssignedRef: string;
74
77
  }>;
75
78
  readonly "cctv:object-labels": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
79
+ readonly "cctv:media-faces": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
80
+ readonly "cctv:media-face-people": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
81
+ readonly "cctv:media-face-person-create": z.ZodObject<{
82
+ id: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ id: string;
85
+ }, {
86
+ id: string;
87
+ }>;
88
+ readonly "cctv:media-face-person-delete": z.ZodObject<{
89
+ id: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ id: string;
92
+ }, {
93
+ id: string;
94
+ }>;
95
+ readonly "cctv:media-face-person-add": z.ZodObject<{
96
+ id: z.ZodString;
97
+ image: z.ZodString;
98
+ }, "strip", z.ZodTypeAny, {
99
+ id: string;
100
+ image: string;
101
+ }, {
102
+ id: string;
103
+ image: string;
104
+ }>;
105
+ readonly "cctv:media-face-person-remove": z.ZodObject<{
106
+ id: z.ZodString;
107
+ image: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ id: string;
110
+ image: string;
111
+ }, {
112
+ id: string;
113
+ image: string;
114
+ }>;
115
+ readonly "cctv:media-face-image": z.ZodObject<{
116
+ id: z.ZodString;
117
+ imageId: z.ZodString;
118
+ }, "strip", z.ZodTypeAny, {
119
+ id: string;
120
+ imageId: string;
121
+ }, {
122
+ id: string;
123
+ imageId: string;
124
+ }>;
125
+ readonly "cctv:media-face-train": z.ZodObject<{
126
+ id: z.ZodString;
127
+ imageId: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ id: string;
130
+ imageId: string;
131
+ }, {
132
+ id: string;
133
+ imageId: string;
134
+ }>;
76
135
  readonly "cctv:get-export-link": z.ZodObject<{
77
136
  exportId: z.ZodString;
78
137
  }, "strip", z.ZodTypeAny, {
@@ -1674,6 +1733,7 @@ export declare const responseSchemasByType: {
1674
1733
  provider: z.ZodString;
1675
1734
  probability: z.ZodNumber;
1676
1735
  objectKind: z.ZodString;
1736
+ subLabel: z.ZodString;
1677
1737
  startTime: z.ZodNumber;
1678
1738
  endTime: z.ZodNullable<z.ZodNumber>;
1679
1739
  }, "strip", z.ZodTypeAny, {
@@ -1685,6 +1745,7 @@ export declare const responseSchemasByType: {
1685
1745
  probability: number;
1686
1746
  providerAssignedRef: string;
1687
1747
  relevance: number;
1748
+ subLabel: string;
1688
1749
  }, {
1689
1750
  endTime: number | null;
1690
1751
  startTime: number;
@@ -1694,6 +1755,7 @@ export declare const responseSchemasByType: {
1694
1755
  probability: number;
1695
1756
  providerAssignedRef: string;
1696
1757
  relevance: number;
1758
+ subLabel: string;
1697
1759
  }>, "many">;
1698
1760
  readonly "cctv:scene-preview-clip": z.ZodNullable<z.ZodObject<{
1699
1761
  mimeType: z.ZodString;
@@ -1726,6 +1788,68 @@ export declare const responseSchemasByType: {
1726
1788
  mimeType: string;
1727
1789
  }>>;
1728
1790
  readonly "cctv:object-labels": z.ZodArray<z.ZodString, "many">;
1791
+ readonly "cctv:media-faces": z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1792
+ readonly "cctv:media-face-people": z.ZodArray<z.ZodString, "many">;
1793
+ readonly "cctv:media-face-person-create": z.ZodObject<{
1794
+ success: z.ZodBoolean;
1795
+ message: z.ZodString;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ message: string;
1798
+ success: boolean;
1799
+ }, {
1800
+ message: string;
1801
+ success: boolean;
1802
+ }>;
1803
+ readonly "cctv:media-face-person-delete": z.ZodObject<{
1804
+ success: z.ZodBoolean;
1805
+ message: z.ZodString;
1806
+ }, "strip", z.ZodTypeAny, {
1807
+ message: string;
1808
+ success: boolean;
1809
+ }, {
1810
+ message: string;
1811
+ success: boolean;
1812
+ }>;
1813
+ readonly "cctv:media-face-person-add": z.ZodObject<{
1814
+ success: z.ZodBoolean;
1815
+ message: z.ZodString;
1816
+ }, "strip", z.ZodTypeAny, {
1817
+ message: string;
1818
+ success: boolean;
1819
+ }, {
1820
+ message: string;
1821
+ success: boolean;
1822
+ }>;
1823
+ readonly "cctv:media-face-person-remove": z.ZodObject<{
1824
+ success: z.ZodBoolean;
1825
+ message: z.ZodString;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ message: string;
1828
+ success: boolean;
1829
+ }, {
1830
+ message: string;
1831
+ success: boolean;
1832
+ }>;
1833
+ readonly "cctv:media-face-image": z.ZodNullable<z.ZodObject<{
1834
+ mimeType: z.ZodString;
1835
+ data: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ data: string;
1838
+ mimeType: string;
1839
+ }, {
1840
+ data: string;
1841
+ mimeType: string;
1842
+ }>>;
1843
+ readonly "cctv:media-face-train": z.ZodObject<{
1844
+ success: z.ZodBoolean;
1845
+ message: z.ZodString;
1846
+ }, "strip", z.ZodTypeAny, {
1847
+ message: string;
1848
+ success: boolean;
1849
+ }, {
1850
+ message: string;
1851
+ success: boolean;
1852
+ }>;
1729
1853
  readonly "cctv:get-export-link": z.ZodObject<{
1730
1854
  exportLink: z.ZodString;
1731
1855
  }, "strip", z.ZodTypeAny, {
@@ -6,9 +6,10 @@ export declare const sMediaSearchArgs: z.ZodObject<{
6
6
  q: z.ZodOptional<z.ZodString>;
7
7
  similarTo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8
8
  label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ subLabel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
10
  timeFrom: z.ZodOptional<z.ZodNumber>;
10
11
  timeTo: z.ZodOptional<z.ZodNumber>;
11
- sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">]>>;
12
+ sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>>;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  label?: string[] | undefined;
14
15
  q?: string | undefined;
@@ -17,7 +18,8 @@ export declare const sMediaSearchArgs: z.ZodObject<{
17
18
  timeFrom?: number | undefined;
18
19
  timeTo?: number | undefined;
19
20
  similarTo?: string | undefined;
20
- sortBy?: "time_asc" | "time_desc" | undefined;
21
+ subLabel?: string[] | undefined;
22
+ sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
21
23
  }, {
22
24
  label?: string[] | undefined;
23
25
  q?: string | undefined;
@@ -26,7 +28,8 @@ export declare const sMediaSearchArgs: z.ZodObject<{
26
28
  timeFrom?: number | undefined;
27
29
  timeTo?: number | undefined;
28
30
  similarTo?: string | undefined;
29
- sortBy?: "time_asc" | "time_desc" | undefined;
31
+ subLabel?: string[] | undefined;
32
+ sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
30
33
  }>;
31
34
  export declare const sMediaSearchMatch: z.ZodObject<{
32
35
  relevance: z.ZodNumber;
@@ -35,6 +38,7 @@ export declare const sMediaSearchMatch: z.ZodObject<{
35
38
  provider: z.ZodString;
36
39
  probability: z.ZodNumber;
37
40
  objectKind: z.ZodString;
41
+ subLabel: z.ZodString;
38
42
  startTime: z.ZodNumber;
39
43
  endTime: z.ZodNullable<z.ZodNumber>;
40
44
  }, "strip", z.ZodTypeAny, {
@@ -46,6 +50,7 @@ export declare const sMediaSearchMatch: z.ZodObject<{
46
50
  probability: number;
47
51
  providerAssignedRef: string;
48
52
  relevance: number;
53
+ subLabel: string;
49
54
  }, {
50
55
  endTime: number | null;
51
56
  startTime: number;
@@ -55,6 +60,7 @@ export declare const sMediaSearchMatch: z.ZodObject<{
55
60
  probability: number;
56
61
  providerAssignedRef: string;
57
62
  relevance: number;
63
+ subLabel: string;
58
64
  }>;
59
65
  export declare const sMediaSearchResponse: z.ZodArray<z.ZodObject<{
60
66
  relevance: z.ZodNumber;
@@ -63,6 +69,7 @@ export declare const sMediaSearchResponse: z.ZodArray<z.ZodObject<{
63
69
  provider: z.ZodString;
64
70
  probability: z.ZodNumber;
65
71
  objectKind: z.ZodString;
72
+ subLabel: z.ZodString;
66
73
  startTime: z.ZodNumber;
67
74
  endTime: z.ZodNullable<z.ZodNumber>;
68
75
  }, "strip", z.ZodTypeAny, {
@@ -74,6 +81,7 @@ export declare const sMediaSearchResponse: z.ZodArray<z.ZodObject<{
74
81
  probability: number;
75
82
  providerAssignedRef: string;
76
83
  relevance: number;
84
+ subLabel: string;
77
85
  }, {
78
86
  endTime: number | null;
79
87
  startTime: number;
@@ -83,6 +91,7 @@ export declare const sMediaSearchResponse: z.ZodArray<z.ZodObject<{
83
91
  probability: number;
84
92
  providerAssignedRef: string;
85
93
  relevance: number;
94
+ subLabel: string;
86
95
  }>, "many">;
87
96
  export type MediaSearchArgs = z.infer<typeof sMediaSearchArgs>;
88
97
  export type MediaSearchMatch = z.infer<typeof sMediaSearchMatch>;
@@ -164,6 +173,148 @@ export declare const sObjectLabelsArgs: z.ZodObject<{}, "strip", z.ZodTypeAny, {
164
173
  export type ObjectLabelsArgs = z.infer<typeof sObjectLabelsArgs>;
165
174
  export declare const sObjectLabelResponse: z.ZodArray<z.ZodString, "many">;
166
175
  export type ObjectLabelsResponse = z.infer<typeof sObjectLabelResponse>;
176
+ export declare const QUERY_MEDIA_FACES = "cctv:media-faces";
177
+ export declare const sMediaFacesArgs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
178
+ export type MediaFacesArgs = z.infer<typeof sMediaFacesArgs>;
179
+ export declare const sMediaFacesResponse: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
180
+ export type MediaFacesResponse = z.infer<typeof sMediaFacesResponse>;
181
+ export declare const QUERY_MEDIA_FACE_PEOPLE = "cctv:media-face-people";
182
+ export declare const sMediaFacePeopleArgs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
183
+ export type MediaFacePeopleArgs = z.infer<typeof sMediaFacePeopleArgs>;
184
+ export declare const sMediaFacePeopleResponse: z.ZodArray<z.ZodString, "many">;
185
+ export type MediaFacePeopleResponse = z.infer<typeof sMediaFacePeopleResponse>;
186
+ export declare const QUERY_MEDIA_FACE_PERSON_CREATE = "cctv:media-face-person-create";
187
+ export declare const sMediaFacePersonCreateArgs: z.ZodObject<{
188
+ id: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ id: string;
191
+ }, {
192
+ id: string;
193
+ }>;
194
+ export type MediaFacePersonCreateArgs = z.infer<typeof sMediaFacePersonCreateArgs>;
195
+ export declare const sMediaFacePersonCreateResponse: z.ZodObject<{
196
+ success: z.ZodBoolean;
197
+ message: z.ZodString;
198
+ }, "strip", z.ZodTypeAny, {
199
+ message: string;
200
+ success: boolean;
201
+ }, {
202
+ message: string;
203
+ success: boolean;
204
+ }>;
205
+ export type MediaFacePersonCreateResponse = z.infer<typeof sMediaFacePersonCreateResponse>;
206
+ export declare const QUERY_MEDIA_FACE_PERSON_DELETE = "cctv:media-face-person-delete";
207
+ export declare const sMediaFacePersonDeleteArgs: z.ZodObject<{
208
+ id: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ id: string;
211
+ }, {
212
+ id: string;
213
+ }>;
214
+ export type MediaFacePersonDeleteArgs = z.infer<typeof sMediaFacePersonDeleteArgs>;
215
+ export declare const sMediaFacePersonDeleteResponse: z.ZodObject<{
216
+ success: z.ZodBoolean;
217
+ message: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ message: string;
220
+ success: boolean;
221
+ }, {
222
+ message: string;
223
+ success: boolean;
224
+ }>;
225
+ export type MediaFacePersonDeleteResponse = z.infer<typeof sMediaFacePersonDeleteResponse>;
226
+ export declare const QUERY_MEDIA_FACE_PERSON_ADD = "cctv:media-face-person-add";
227
+ export declare const sMediaFacePersonAddArgs: z.ZodObject<{
228
+ id: z.ZodString;
229
+ image: z.ZodString;
230
+ }, "strip", z.ZodTypeAny, {
231
+ id: string;
232
+ image: string;
233
+ }, {
234
+ id: string;
235
+ image: string;
236
+ }>;
237
+ export type MediaFacePersonAddArgs = z.infer<typeof sMediaFacePersonAddArgs>;
238
+ export declare const sMediaFacePersonAddResponse: z.ZodObject<{
239
+ success: z.ZodBoolean;
240
+ message: z.ZodString;
241
+ }, "strip", z.ZodTypeAny, {
242
+ message: string;
243
+ success: boolean;
244
+ }, {
245
+ message: string;
246
+ success: boolean;
247
+ }>;
248
+ export type MediaFacePersonAddResponse = z.infer<typeof sMediaFacePersonAddResponse>;
249
+ export declare const QUERY_MEDIA_FACE_PERSON_REMOVE = "cctv:media-face-person-remove";
250
+ export declare const sMediaFacePersonRemoveArgs: z.ZodObject<{
251
+ id: z.ZodString;
252
+ image: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ id: string;
255
+ image: string;
256
+ }, {
257
+ id: string;
258
+ image: string;
259
+ }>;
260
+ export type MediaFacePersonRemoveArgs = z.infer<typeof sMediaFacePersonRemoveArgs>;
261
+ export declare const sMediaFacePersonRemoveResponse: z.ZodObject<{
262
+ success: z.ZodBoolean;
263
+ message: z.ZodString;
264
+ }, "strip", z.ZodTypeAny, {
265
+ message: string;
266
+ success: boolean;
267
+ }, {
268
+ message: string;
269
+ success: boolean;
270
+ }>;
271
+ export type MediaFacePersonRemoveResponse = z.infer<typeof sMediaFacePersonRemoveResponse>;
272
+ export declare const QUERY_MEDIA_FACE_IMAGE = "cctv:media-face-image";
273
+ export declare const sMediaFaceImageArgs: z.ZodObject<{
274
+ id: z.ZodString;
275
+ imageId: z.ZodString;
276
+ }, "strip", z.ZodTypeAny, {
277
+ id: string;
278
+ imageId: string;
279
+ }, {
280
+ id: string;
281
+ imageId: string;
282
+ }>;
283
+ export type MediaFaceImageArgs = z.infer<typeof sMediaFaceImageArgs>;
284
+ export declare const sMediaFaceImageResponse: z.ZodNullable<z.ZodObject<{
285
+ mimeType: z.ZodString;
286
+ data: z.ZodString;
287
+ }, "strip", z.ZodTypeAny, {
288
+ data: string;
289
+ mimeType: string;
290
+ }, {
291
+ data: string;
292
+ mimeType: string;
293
+ }>>;
294
+ export type MediaFaceImageResponse = z.infer<typeof sMediaFaceImageResponse>;
295
+ export declare const QUERY_MEDIA_FACE_TRAIN = "cctv:media-face-train";
296
+ export declare const sMediaFaceTrainArgs: z.ZodObject<{
297
+ id: z.ZodString;
298
+ imageId: z.ZodString;
299
+ }, "strip", z.ZodTypeAny, {
300
+ id: string;
301
+ imageId: string;
302
+ }, {
303
+ id: string;
304
+ imageId: string;
305
+ }>;
306
+ export type MediaFaceTrainArgs = z.infer<typeof sMediaFaceTrainArgs>;
307
+ export declare const sMediaFaceTrainResponse: z.ZodObject<{
308
+ success: z.ZodBoolean;
309
+ message: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ message: string;
312
+ success: boolean;
313
+ }, {
314
+ message: string;
315
+ success: boolean;
316
+ }>;
317
+ export type MediaFaceTrainResponse = z.infer<typeof sMediaFaceTrainResponse>;
167
318
  export declare const nvrAnalyticsRequestSchemas: {
168
319
  readonly "cctv:media-search": z.ZodObject<{
169
320
  devices: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
@@ -171,9 +322,10 @@ export declare const nvrAnalyticsRequestSchemas: {
171
322
  q: z.ZodOptional<z.ZodString>;
172
323
  similarTo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
173
324
  label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
325
+ subLabel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
174
326
  timeFrom: z.ZodOptional<z.ZodNumber>;
175
327
  timeTo: z.ZodOptional<z.ZodNumber>;
176
- sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">]>>;
328
+ sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>>;
177
329
  }, "strip", z.ZodTypeAny, {
178
330
  label?: string[] | undefined;
179
331
  q?: string | undefined;
@@ -182,7 +334,8 @@ export declare const nvrAnalyticsRequestSchemas: {
182
334
  timeFrom?: number | undefined;
183
335
  timeTo?: number | undefined;
184
336
  similarTo?: string | undefined;
185
- sortBy?: "time_asc" | "time_desc" | undefined;
337
+ subLabel?: string[] | undefined;
338
+ sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
186
339
  }, {
187
340
  label?: string[] | undefined;
188
341
  q?: string | undefined;
@@ -191,7 +344,8 @@ export declare const nvrAnalyticsRequestSchemas: {
191
344
  timeFrom?: number | undefined;
192
345
  timeTo?: number | undefined;
193
346
  similarTo?: string | undefined;
194
- sortBy?: "time_asc" | "time_desc" | undefined;
347
+ subLabel?: string[] | undefined;
348
+ sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
195
349
  }>;
196
350
  readonly "cctv:scene-preview-clip": z.ZodObject<{
197
351
  providerAssignedRef: z.ZodString;
@@ -227,6 +381,62 @@ export declare const nvrAnalyticsRequestSchemas: {
227
381
  providerAssignedRef: string;
228
382
  }>;
229
383
  readonly "cctv:object-labels": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
384
+ readonly "cctv:media-faces": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
385
+ readonly "cctv:media-face-people": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
386
+ readonly "cctv:media-face-person-create": z.ZodObject<{
387
+ id: z.ZodString;
388
+ }, "strip", z.ZodTypeAny, {
389
+ id: string;
390
+ }, {
391
+ id: string;
392
+ }>;
393
+ readonly "cctv:media-face-person-delete": z.ZodObject<{
394
+ id: z.ZodString;
395
+ }, "strip", z.ZodTypeAny, {
396
+ id: string;
397
+ }, {
398
+ id: string;
399
+ }>;
400
+ readonly "cctv:media-face-person-add": z.ZodObject<{
401
+ id: z.ZodString;
402
+ image: z.ZodString;
403
+ }, "strip", z.ZodTypeAny, {
404
+ id: string;
405
+ image: string;
406
+ }, {
407
+ id: string;
408
+ image: string;
409
+ }>;
410
+ readonly "cctv:media-face-person-remove": z.ZodObject<{
411
+ id: z.ZodString;
412
+ image: z.ZodString;
413
+ }, "strip", z.ZodTypeAny, {
414
+ id: string;
415
+ image: string;
416
+ }, {
417
+ id: string;
418
+ image: string;
419
+ }>;
420
+ readonly "cctv:media-face-image": z.ZodObject<{
421
+ id: z.ZodString;
422
+ imageId: z.ZodString;
423
+ }, "strip", z.ZodTypeAny, {
424
+ id: string;
425
+ imageId: string;
426
+ }, {
427
+ id: string;
428
+ imageId: string;
429
+ }>;
430
+ readonly "cctv:media-face-train": z.ZodObject<{
431
+ id: z.ZodString;
432
+ imageId: z.ZodString;
433
+ }, "strip", z.ZodTypeAny, {
434
+ id: string;
435
+ imageId: string;
436
+ }, {
437
+ id: string;
438
+ imageId: string;
439
+ }>;
230
440
  };
231
441
  export declare const nvrAnalyticsResponseSchemas: {
232
442
  readonly "cctv:media-search": z.ZodArray<z.ZodObject<{
@@ -236,6 +446,7 @@ export declare const nvrAnalyticsResponseSchemas: {
236
446
  provider: z.ZodString;
237
447
  probability: z.ZodNumber;
238
448
  objectKind: z.ZodString;
449
+ subLabel: z.ZodString;
239
450
  startTime: z.ZodNumber;
240
451
  endTime: z.ZodNullable<z.ZodNumber>;
241
452
  }, "strip", z.ZodTypeAny, {
@@ -247,6 +458,7 @@ export declare const nvrAnalyticsResponseSchemas: {
247
458
  probability: number;
248
459
  providerAssignedRef: string;
249
460
  relevance: number;
461
+ subLabel: string;
250
462
  }, {
251
463
  endTime: number | null;
252
464
  startTime: number;
@@ -256,6 +468,7 @@ export declare const nvrAnalyticsResponseSchemas: {
256
468
  probability: number;
257
469
  providerAssignedRef: string;
258
470
  relevance: number;
471
+ subLabel: string;
259
472
  }>, "many">;
260
473
  readonly "cctv:scene-preview-clip": z.ZodNullable<z.ZodObject<{
261
474
  mimeType: z.ZodString;
@@ -288,6 +501,68 @@ export declare const nvrAnalyticsResponseSchemas: {
288
501
  mimeType: string;
289
502
  }>>;
290
503
  readonly "cctv:object-labels": z.ZodArray<z.ZodString, "many">;
504
+ readonly "cctv:media-faces": z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
505
+ readonly "cctv:media-face-people": z.ZodArray<z.ZodString, "many">;
506
+ readonly "cctv:media-face-person-create": z.ZodObject<{
507
+ success: z.ZodBoolean;
508
+ message: z.ZodString;
509
+ }, "strip", z.ZodTypeAny, {
510
+ message: string;
511
+ success: boolean;
512
+ }, {
513
+ message: string;
514
+ success: boolean;
515
+ }>;
516
+ readonly "cctv:media-face-person-delete": z.ZodObject<{
517
+ success: z.ZodBoolean;
518
+ message: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ message: string;
521
+ success: boolean;
522
+ }, {
523
+ message: string;
524
+ success: boolean;
525
+ }>;
526
+ readonly "cctv:media-face-person-add": z.ZodObject<{
527
+ success: z.ZodBoolean;
528
+ message: z.ZodString;
529
+ }, "strip", z.ZodTypeAny, {
530
+ message: string;
531
+ success: boolean;
532
+ }, {
533
+ message: string;
534
+ success: boolean;
535
+ }>;
536
+ readonly "cctv:media-face-person-remove": z.ZodObject<{
537
+ success: z.ZodBoolean;
538
+ message: z.ZodString;
539
+ }, "strip", z.ZodTypeAny, {
540
+ message: string;
541
+ success: boolean;
542
+ }, {
543
+ message: string;
544
+ success: boolean;
545
+ }>;
546
+ readonly "cctv:media-face-image": z.ZodNullable<z.ZodObject<{
547
+ mimeType: z.ZodString;
548
+ data: z.ZodString;
549
+ }, "strip", z.ZodTypeAny, {
550
+ data: string;
551
+ mimeType: string;
552
+ }, {
553
+ data: string;
554
+ mimeType: string;
555
+ }>>;
556
+ readonly "cctv:media-face-train": z.ZodObject<{
557
+ success: z.ZodBoolean;
558
+ message: z.ZodString;
559
+ }, "strip", z.ZodTypeAny, {
560
+ message: string;
561
+ success: boolean;
562
+ }, {
563
+ message: string;
564
+ success: boolean;
565
+ }>;
291
566
  };
292
567
  export type NvrAnalyticsQueryRequestMap = {
293
568
  [QUERY_MEDIA_SEARCH]: MediaSearchArgs;
@@ -295,6 +570,14 @@ export type NvrAnalyticsQueryRequestMap = {
295
570
  [QUERY_OBJECT_SNAPSHOT]: ObjectSnapshotArgs;
296
571
  [QUERY_OBJECT_THUMBNAIL]: ObjectThumbnailArgs;
297
572
  [QUERY_OBJECT_LABELS]: ObjectLabelsArgs;
573
+ [QUERY_MEDIA_FACES]: MediaFacesArgs;
574
+ [QUERY_MEDIA_FACE_PEOPLE]: MediaFacePeopleArgs;
575
+ [QUERY_MEDIA_FACE_PERSON_CREATE]: MediaFacePersonCreateArgs;
576
+ [QUERY_MEDIA_FACE_PERSON_DELETE]: MediaFacePersonDeleteArgs;
577
+ [QUERY_MEDIA_FACE_PERSON_ADD]: MediaFacePersonAddArgs;
578
+ [QUERY_MEDIA_FACE_PERSON_REMOVE]: MediaFacePersonRemoveArgs;
579
+ [QUERY_MEDIA_FACE_IMAGE]: MediaFaceImageArgs;
580
+ [QUERY_MEDIA_FACE_TRAIN]: MediaFaceTrainArgs;
298
581
  };
299
582
  export type NvrAnalyticsQueryResponseMap = {
300
583
  [QUERY_MEDIA_SEARCH]: MediaSearchResponse;
@@ -302,4 +585,12 @@ export type NvrAnalyticsQueryResponseMap = {
302
585
  [QUERY_OBJECT_SNAPSHOT]: ObjectSnapshotResponse;
303
586
  [QUERY_OBJECT_THUMBNAIL]: ObjectThumbnailResponse;
304
587
  [QUERY_OBJECT_LABELS]: ObjectLabelsResponse;
588
+ [QUERY_MEDIA_FACES]: MediaFacesResponse;
589
+ [QUERY_MEDIA_FACE_PEOPLE]: MediaFacePeopleResponse;
590
+ [QUERY_MEDIA_FACE_PERSON_CREATE]: MediaFacePersonCreateResponse;
591
+ [QUERY_MEDIA_FACE_PERSON_DELETE]: MediaFacePersonDeleteResponse;
592
+ [QUERY_MEDIA_FACE_PERSON_ADD]: MediaFacePersonAddResponse;
593
+ [QUERY_MEDIA_FACE_PERSON_REMOVE]: MediaFacePersonRemoveResponse;
594
+ [QUERY_MEDIA_FACE_IMAGE]: MediaFaceImageResponse;
595
+ [QUERY_MEDIA_FACE_TRAIN]: MediaFaceTrainResponse;
305
596
  };