@awarevue/api-types 2.0.152 → 2.0.154

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.
@@ -525,6 +525,12 @@ export declare const sPushTrackableUpdate: z.ZodObject<{
525
525
  "base-station": "base-station";
526
526
  "aid-to-navigation": "aid-to-navigation";
527
527
  "sar-aircraft": "sar-aircraft";
528
+ aircraft: "aircraft";
529
+ helicopter: "helicopter";
530
+ glider: "glider";
531
+ balloon: "balloon";
532
+ drone: "drone";
533
+ "ground-vehicle": "ground-vehicle";
528
534
  }>>;
529
535
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
530
536
  longitude: z.ZodOptional<z.ZodNumber>;
@@ -20,6 +20,11 @@ export declare const sConflictMeta: z.ZodObject<{
20
20
  blockingId: z.ZodOptional<z.ZodString>;
21
21
  value: z.ZodOptional<z.ZodString>;
22
22
  }, z.core.$strip>;
23
+ /** Someone else changed the resource since the requester read it, so the requester's change was not made. */
24
+ export declare const sChangedMeta: z.ZodObject<{
25
+ subject: z.ZodString;
26
+ id: z.ZodString;
27
+ }, z.core.$strip>;
23
28
  export declare const sVoidMeta: z.ZodObject<{}, z.core.$strict>;
24
29
  export declare const sAccessRuleConflictMeta: z.ZodObject<{
25
30
  deviceSchedules: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
@@ -61,6 +66,7 @@ export type DuplicateMeta = z.infer<typeof sDuplicateMeta>;
61
66
  export type NotFoundMeta = z.infer<typeof sNotFoundMeta>;
62
67
  export type InvalidMeta = z.infer<typeof sInvalidMeta>;
63
68
  export type ConflictMeta = z.infer<typeof sConflictMeta>;
69
+ export type ChangedMeta = z.infer<typeof sChangedMeta>;
64
70
  export type AccessRuleConflictMeta = z.infer<typeof sAccessRuleConflictMeta>;
65
71
  export declare enum AppErrorCode {
66
72
  RESOURCE_ALREADY_EXISTS = "RESOURCE_ALREADY_EXISTS",
@@ -69,6 +75,7 @@ export declare enum AppErrorCode {
69
75
  RESOURCE_INVALID = "RESOURCE_INVALID",
70
76
  RESOURCE_IN_USE = "RESOURCE_IN_USE",
71
77
  RESOURCE_NOT_SUPPORTED = "RESOURCE_NOT_SUPPORTED",
78
+ RESOURCE_CHANGED = "RESOURCE_CHANGED",
72
79
  BAD_REFERENCE = "BAD_REFERENCE",
73
80
  UNKNOWN = "UNKNOWN",
74
81
  SERVER_INTERNAL_ERROR = "SERVER_INTERNAL_ERROR",
@@ -143,6 +150,10 @@ export declare const errorMetadataSchemas: {
143
150
  value: z.ZodOptional<z.ZodString>;
144
151
  }, z.core.$strip>;
145
152
  readonly RESOURCE_NOT_SUPPORTED: z.ZodObject<{}, z.core.$strict>;
153
+ readonly RESOURCE_CHANGED: z.ZodObject<{
154
+ subject: z.ZodString;
155
+ id: z.ZodString;
156
+ }, z.core.$strip>;
146
157
  readonly RESOURCE_FORBIDDEN: z.ZodObject<{}, z.core.$strict>;
147
158
  readonly BAD_REFERENCE: z.ZodObject<{}, z.core.$strict>;
148
159
  readonly ACCESS_RULE_NOT_FOUND: z.ZodObject<{
package/dist/api/error.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.errorMetadataSchemas = exports.AppErrorCode = exports.sPersonTypeSyncPermissionRequiredMeta = exports.sPersonTypeNotAccessControlUserMeta = exports.sTokenLimitExceededMeta = exports.sTokenInvalidFormatMeta = exports.sZoneAccessRuleConflictMeta = exports.sAccessRuleConflictMeta = exports.sVoidMeta = exports.sConflictMeta = exports.sInvalidMeta = exports.sNotFoundMeta = exports.sDuplicateMeta = void 0;
3
+ exports.errorMetadataSchemas = exports.AppErrorCode = exports.sPersonTypeSyncPermissionRequiredMeta = exports.sPersonTypeNotAccessControlUserMeta = exports.sTokenLimitExceededMeta = exports.sTokenInvalidFormatMeta = exports.sZoneAccessRuleConflictMeta = exports.sAccessRuleConflictMeta = exports.sVoidMeta = exports.sChangedMeta = exports.sConflictMeta = exports.sInvalidMeta = exports.sNotFoundMeta = exports.sDuplicateMeta = void 0;
4
4
  exports.isErrorResponse = isErrorResponse;
5
5
  const zod_1 = require("zod");
6
6
  const credential_type_1 = require("../primitives/credential-type");
@@ -26,6 +26,11 @@ exports.sConflictMeta = zod_1.z.object({
26
26
  blockingId: zod_1.z.string().optional(),
27
27
  value: zod_1.z.string().optional(),
28
28
  });
29
+ /** Someone else changed the resource since the requester read it, so the requester's change was not made. */
30
+ exports.sChangedMeta = zod_1.z.object({
31
+ subject: zod_1.z.string(),
32
+ id: zod_1.z.string(),
33
+ });
29
34
  exports.sVoidMeta = zod_1.z.object({}).strict();
30
35
  exports.sAccessRuleConflictMeta = zod_1.z.object({
31
36
  deviceSchedules: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string())),
@@ -62,6 +67,7 @@ var AppErrorCode;
62
67
  AppErrorCode["RESOURCE_INVALID"] = "RESOURCE_INVALID";
63
68
  AppErrorCode["RESOURCE_IN_USE"] = "RESOURCE_IN_USE";
64
69
  AppErrorCode["RESOURCE_NOT_SUPPORTED"] = "RESOURCE_NOT_SUPPORTED";
70
+ AppErrorCode["RESOURCE_CHANGED"] = "RESOURCE_CHANGED";
65
71
  AppErrorCode["BAD_REFERENCE"] = "BAD_REFERENCE";
66
72
  AppErrorCode["UNKNOWN"] = "UNKNOWN";
67
73
  AppErrorCode["SERVER_INTERNAL_ERROR"] = "SERVER_INTERNAL_ERROR";
@@ -129,6 +135,7 @@ exports.errorMetadataSchemas = {
129
135
  [AppErrorCode.RESOURCE_INVALID]: exports.sInvalidMeta,
130
136
  [AppErrorCode.RESOURCE_IN_USE]: exports.sConflictMeta,
131
137
  [AppErrorCode.RESOURCE_NOT_SUPPORTED]: exports.sVoidMeta,
138
+ [AppErrorCode.RESOURCE_CHANGED]: exports.sChangedMeta,
132
139
  [AppErrorCode.RESOURCE_FORBIDDEN]: exports.sVoidMeta,
133
140
  [AppErrorCode.BAD_REFERENCE]: exports.sVoidMeta,
134
141
  // access
@@ -231,6 +231,9 @@ export declare const eventSchemaByKind: {
231
231
  objectKind: z.ZodNullable<z.ZodString>;
232
232
  probability: z.ZodNumber;
233
233
  identifiedObjectId: z.ZodNullable<z.ZodString>;
234
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
235
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
236
+ stationary: z.ZodOptional<z.ZodBoolean>;
234
237
  frameTime: z.ZodNumber;
235
238
  startTime: z.ZodNumber;
236
239
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -240,6 +243,8 @@ export declare const eventSchemaByKind: {
240
243
  y1: z.ZodNumber;
241
244
  x2: z.ZodNumber;
242
245
  y2: z.ZodNumber;
246
+ frameWidth: z.ZodOptional<z.ZodNumber>;
247
+ frameHeight: z.ZodOptional<z.ZodNumber>;
243
248
  }, z.core.$strip>>>;
244
249
  'object-detection-updated': z.ZodIntersection<z.ZodObject<{
245
250
  kind: z.ZodLiteral<"object-detection-updated">;
@@ -249,6 +254,9 @@ export declare const eventSchemaByKind: {
249
254
  objectKind: z.ZodNullable<z.ZodString>;
250
255
  probability: z.ZodNumber;
251
256
  identifiedObjectId: z.ZodNullable<z.ZodString>;
257
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
258
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
259
+ stationary: z.ZodOptional<z.ZodBoolean>;
252
260
  frameTime: z.ZodNumber;
253
261
  startTime: z.ZodNumber;
254
262
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -258,6 +266,8 @@ export declare const eventSchemaByKind: {
258
266
  y1: z.ZodNumber;
259
267
  x2: z.ZodNumber;
260
268
  y2: z.ZodNumber;
269
+ frameWidth: z.ZodOptional<z.ZodNumber>;
270
+ frameHeight: z.ZodOptional<z.ZodNumber>;
261
271
  }, z.core.$strip>>>;
262
272
  'object-detection-ended': z.ZodIntersection<z.ZodObject<{
263
273
  kind: z.ZodLiteral<"object-detection-ended">;
@@ -267,6 +277,9 @@ export declare const eventSchemaByKind: {
267
277
  objectKind: z.ZodNullable<z.ZodString>;
268
278
  probability: z.ZodNumber;
269
279
  identifiedObjectId: z.ZodNullable<z.ZodString>;
280
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
281
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
+ stationary: z.ZodOptional<z.ZodBoolean>;
270
283
  frameTime: z.ZodNumber;
271
284
  startTime: z.ZodNumber;
272
285
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -276,6 +289,8 @@ export declare const eventSchemaByKind: {
276
289
  y1: z.ZodNumber;
277
290
  x2: z.ZodNumber;
278
291
  y2: z.ZodNumber;
292
+ frameWidth: z.ZodOptional<z.ZodNumber>;
293
+ frameHeight: z.ZodOptional<z.ZodNumber>;
279
294
  }, z.core.$strip>>>;
280
295
  'scene-created': z.ZodIntersection<z.ZodObject<{
281
296
  kind: z.ZodLiteral<"scene-created">;
@@ -9,12 +9,15 @@ export declare const sCameraPtzPresetSaved: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  assignedRef: z.ZodNullable<z.ZodString>;
11
11
  }, z.core.$strip>;
12
+ /** A box in the picture the object was detected in, in pixels of that picture. */
12
13
  export declare const sBoxLocator: z.ZodObject<{
13
14
  locatorKind: z.ZodLiteral<"box">;
14
15
  x1: z.ZodNumber;
15
16
  y1: z.ZodNumber;
16
17
  x2: z.ZodNumber;
17
18
  y2: z.ZodNumber;
19
+ frameWidth: z.ZodOptional<z.ZodNumber>;
20
+ frameHeight: z.ZodOptional<z.ZodNumber>;
18
21
  }, z.core.$strip>;
19
22
  export declare const sObjectLocator: z.ZodObject<{
20
23
  locatorKind: z.ZodLiteral<"box">;
@@ -22,11 +25,16 @@ export declare const sObjectLocator: z.ZodObject<{
22
25
  y1: z.ZodNumber;
23
26
  x2: z.ZodNumber;
24
27
  y2: z.ZodNumber;
28
+ frameWidth: z.ZodOptional<z.ZodNumber>;
29
+ frameHeight: z.ZodOptional<z.ZodNumber>;
25
30
  }, z.core.$strip>;
26
31
  export declare const sObjectDetectionData: z.ZodIntersection<z.ZodObject<{
27
32
  objectKind: z.ZodNullable<z.ZodString>;
28
33
  probability: z.ZodNumber;
29
34
  identifiedObjectId: z.ZodNullable<z.ZodString>;
35
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ stationary: z.ZodOptional<z.ZodBoolean>;
30
38
  frameTime: z.ZodNumber;
31
39
  startTime: z.ZodNumber;
32
40
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -36,7 +44,12 @@ export declare const sObjectDetectionData: z.ZodIntersection<z.ZodObject<{
36
44
  y1: z.ZodNumber;
37
45
  x2: z.ZodNumber;
38
46
  y2: z.ZodNumber;
47
+ frameWidth: z.ZodOptional<z.ZodNumber>;
48
+ frameHeight: z.ZodOptional<z.ZodNumber>;
39
49
  }, z.core.$strip>>;
50
+ /**
51
+ * A detected object's events: started once, then any number of updated, then ended once.
52
+ */
40
53
  export declare const sObjectDetectionStarted: z.ZodIntersection<z.ZodObject<{
41
54
  kind: z.ZodLiteral<"object-detection-started">;
42
55
  providerAssignedRef: z.ZodString;
@@ -45,6 +58,9 @@ export declare const sObjectDetectionStarted: z.ZodIntersection<z.ZodObject<{
45
58
  objectKind: z.ZodNullable<z.ZodString>;
46
59
  probability: z.ZodNumber;
47
60
  identifiedObjectId: z.ZodNullable<z.ZodString>;
61
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ stationary: z.ZodOptional<z.ZodBoolean>;
48
64
  frameTime: z.ZodNumber;
49
65
  startTime: z.ZodNumber;
50
66
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -54,6 +70,8 @@ export declare const sObjectDetectionStarted: z.ZodIntersection<z.ZodObject<{
54
70
  y1: z.ZodNumber;
55
71
  x2: z.ZodNumber;
56
72
  y2: z.ZodNumber;
73
+ frameWidth: z.ZodOptional<z.ZodNumber>;
74
+ frameHeight: z.ZodOptional<z.ZodNumber>;
57
75
  }, z.core.$strip>>>;
58
76
  export declare const sObjectDetectionUpdated: z.ZodIntersection<z.ZodObject<{
59
77
  kind: z.ZodLiteral<"object-detection-updated">;
@@ -63,6 +81,9 @@ export declare const sObjectDetectionUpdated: z.ZodIntersection<z.ZodObject<{
63
81
  objectKind: z.ZodNullable<z.ZodString>;
64
82
  probability: z.ZodNumber;
65
83
  identifiedObjectId: z.ZodNullable<z.ZodString>;
84
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
85
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ stationary: z.ZodOptional<z.ZodBoolean>;
66
87
  frameTime: z.ZodNumber;
67
88
  startTime: z.ZodNumber;
68
89
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -72,6 +93,8 @@ export declare const sObjectDetectionUpdated: z.ZodIntersection<z.ZodObject<{
72
93
  y1: z.ZodNumber;
73
94
  x2: z.ZodNumber;
74
95
  y2: z.ZodNumber;
96
+ frameWidth: z.ZodOptional<z.ZodNumber>;
97
+ frameHeight: z.ZodOptional<z.ZodNumber>;
75
98
  }, z.core.$strip>>>;
76
99
  export declare const sObjectDetectionEnded: z.ZodIntersection<z.ZodObject<{
77
100
  kind: z.ZodLiteral<"object-detection-ended">;
@@ -81,6 +104,9 @@ export declare const sObjectDetectionEnded: z.ZodIntersection<z.ZodObject<{
81
104
  objectKind: z.ZodNullable<z.ZodString>;
82
105
  probability: z.ZodNumber;
83
106
  identifiedObjectId: z.ZodNullable<z.ZodString>;
107
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
108
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
+ stationary: z.ZodOptional<z.ZodBoolean>;
84
110
  frameTime: z.ZodNumber;
85
111
  startTime: z.ZodNumber;
86
112
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -90,6 +116,8 @@ export declare const sObjectDetectionEnded: z.ZodIntersection<z.ZodObject<{
90
116
  y1: z.ZodNumber;
91
117
  x2: z.ZodNumber;
92
118
  y2: z.ZodNumber;
119
+ frameWidth: z.ZodOptional<z.ZodNumber>;
120
+ frameHeight: z.ZodOptional<z.ZodNumber>;
93
121
  }, z.core.$strip>>>;
94
122
  export declare const sSceneData: z.ZodObject<{
95
123
  detections: z.ZodArray<z.ZodString>;
@@ -146,6 +174,9 @@ export declare const cameraEventSchemasByKind: {
146
174
  objectKind: z.ZodNullable<z.ZodString>;
147
175
  probability: z.ZodNumber;
148
176
  identifiedObjectId: z.ZodNullable<z.ZodString>;
177
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
178
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
+ stationary: z.ZodOptional<z.ZodBoolean>;
149
180
  frameTime: z.ZodNumber;
150
181
  startTime: z.ZodNumber;
151
182
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -155,6 +186,8 @@ export declare const cameraEventSchemasByKind: {
155
186
  y1: z.ZodNumber;
156
187
  x2: z.ZodNumber;
157
188
  y2: z.ZodNumber;
189
+ frameWidth: z.ZodOptional<z.ZodNumber>;
190
+ frameHeight: z.ZodOptional<z.ZodNumber>;
158
191
  }, z.core.$strip>>>;
159
192
  readonly 'object-detection-updated': z.ZodIntersection<z.ZodObject<{
160
193
  kind: z.ZodLiteral<"object-detection-updated">;
@@ -164,6 +197,9 @@ export declare const cameraEventSchemasByKind: {
164
197
  objectKind: z.ZodNullable<z.ZodString>;
165
198
  probability: z.ZodNumber;
166
199
  identifiedObjectId: z.ZodNullable<z.ZodString>;
200
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
201
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
202
+ stationary: z.ZodOptional<z.ZodBoolean>;
167
203
  frameTime: z.ZodNumber;
168
204
  startTime: z.ZodNumber;
169
205
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -173,6 +209,8 @@ export declare const cameraEventSchemasByKind: {
173
209
  y1: z.ZodNumber;
174
210
  x2: z.ZodNumber;
175
211
  y2: z.ZodNumber;
212
+ frameWidth: z.ZodOptional<z.ZodNumber>;
213
+ frameHeight: z.ZodOptional<z.ZodNumber>;
176
214
  }, z.core.$strip>>>;
177
215
  readonly 'object-detection-ended': z.ZodIntersection<z.ZodObject<{
178
216
  kind: z.ZodLiteral<"object-detection-ended">;
@@ -182,6 +220,9 @@ export declare const cameraEventSchemasByKind: {
182
220
  objectKind: z.ZodNullable<z.ZodString>;
183
221
  probability: z.ZodNumber;
184
222
  identifiedObjectId: z.ZodNullable<z.ZodString>;
223
+ identificationScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
224
+ providerZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
+ stationary: z.ZodOptional<z.ZodBoolean>;
185
226
  frameTime: z.ZodNumber;
186
227
  startTime: z.ZodNumber;
187
228
  endTime: z.ZodNullable<z.ZodNumber>;
@@ -191,6 +232,8 @@ export declare const cameraEventSchemasByKind: {
191
232
  y1: z.ZodNumber;
192
233
  x2: z.ZodNumber;
193
234
  y2: z.ZodNumber;
235
+ frameWidth: z.ZodOptional<z.ZodNumber>;
236
+ frameHeight: z.ZodOptional<z.ZodNumber>;
194
237
  }, z.core.$strip>>>;
195
238
  readonly 'scene-created': z.ZodIntersection<z.ZodObject<{
196
239
  kind: z.ZodLiteral<"scene-created">;
@@ -10,42 +10,76 @@ exports.sCameraPtzPresetSaved = zod_1.z.object({
10
10
  presetInfo: primitives_1.sCameraPresetInfo,
11
11
  assignedRef: zod_1.z.string().nullable(),
12
12
  });
13
+ /** A box in the picture the object was detected in, in pixels of that picture. */
13
14
  exports.sBoxLocator = zod_1.z.object({
14
15
  locatorKind: zod_1.z.literal('box'),
15
16
  x1: zod_1.z.number(),
16
17
  y1: zod_1.z.number(),
17
18
  x2: zod_1.z.number(),
18
19
  y2: zod_1.z.number(),
20
+ frameWidth: zod_1.z
21
+ .number()
22
+ .positive()
23
+ .optional()
24
+ .describe('Width in pixels of the picture the box is measured in, which is not necessarily the stream resolution'),
25
+ frameHeight: zod_1.z
26
+ .number()
27
+ .positive()
28
+ .optional()
29
+ .describe('Height in pixels of the picture the box is measured in'),
19
30
  });
20
31
  exports.sObjectLocator = exports.sBoxLocator;
21
32
  exports.sObjectDetectionData = zod_1.z
22
33
  .object({
23
34
  objectKind: primitives_1.sWorldObjectId.nullable(),
24
35
  probability: zod_1.z.number(),
25
- identifiedObjectId: zod_1.z.string().nullable(),
36
+ identifiedObjectId: zod_1.z
37
+ .string()
38
+ .nullable()
39
+ .describe('Who or what the object was identified as. For faces, the Aware person id.'),
40
+ identificationScore: zod_1.z
41
+ .number()
42
+ .nullable()
43
+ .optional()
44
+ .describe('Confidence of identifiedObjectId, 0 to 1, when known'),
45
+ providerZones: zod_1.z
46
+ .array(zod_1.z.string())
47
+ .optional()
48
+ .describe("Names of the detection provider's zones the object is in now. These are the vendor's zones, not Aware Zones."),
49
+ stationary: zod_1.z
50
+ .boolean()
51
+ .optional()
52
+ .describe('Whether the object has stopped moving'),
26
53
  frameTime: zod_1.z.number(),
27
54
  startTime: zod_1.z.number(),
28
55
  endTime: zod_1.z.number().nullable(),
29
56
  })
30
57
  .and(exports.sObjectLocator);
58
+ const sProviderAssignedRef = zod_1.z
59
+ .string()
60
+ .nonempty()
61
+ .describe('Correlates the events of one detected object, from started to ended; unique only with the provider and camera');
62
+ /**
63
+ * A detected object's events: started once, then any number of updated, then ended once.
64
+ */
31
65
  exports.sObjectDetectionStarted = zod_1.z
32
66
  .object({
33
67
  kind: zod_1.z.literal('object-detection-started'),
34
- providerAssignedRef: zod_1.z.string().nonempty(),
68
+ providerAssignedRef: sProviderAssignedRef,
35
69
  detectionProvider: zod_1.z.string().nonempty(),
36
70
  })
37
71
  .and(exports.sObjectDetectionData);
38
72
  exports.sObjectDetectionUpdated = zod_1.z
39
73
  .object({
40
74
  kind: zod_1.z.literal('object-detection-updated'),
41
- providerAssignedRef: zod_1.z.string().nonempty(),
75
+ providerAssignedRef: sProviderAssignedRef,
42
76
  detectionProvider: zod_1.z.string().nonempty(),
43
77
  })
44
78
  .and(exports.sObjectDetectionData);
45
79
  exports.sObjectDetectionEnded = zod_1.z
46
80
  .object({
47
81
  kind: zod_1.z.literal('object-detection-ended'),
48
- providerAssignedRef: zod_1.z.string().nonempty(),
82
+ providerAssignedRef: sProviderAssignedRef,
49
83
  detectionProvider: zod_1.z.string().nonempty(),
50
84
  })
51
85
  .and(exports.sObjectDetectionData);
@@ -1,8 +1,45 @@
1
1
  import z from 'zod';
2
- export declare const sAddLayoutRequest: z.ZodObject<{
2
+ export declare const sAddImageLayoutRequest: z.ZodObject<{
3
3
  name: z.ZodString;
4
+ order: z.ZodOptional<z.ZodNumber>;
5
+ devices: z.ZodArray<z.ZodObject<{
6
+ deviceId: z.ZodString;
7
+ x: z.ZodNumber;
8
+ y: z.ZodNumber;
9
+ scale: z.ZodNumber;
10
+ rotation: z.ZodNumber;
11
+ fov: z.ZodNumber;
12
+ far: z.ZodNumber;
13
+ displayAs: z.ZodNullable<z.ZodString>;
14
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ width: z.ZodOptional<z.ZodNumber>;
18
+ hinge: z.ZodOptional<z.ZodEnum<{
19
+ start: "start";
20
+ end: "end";
21
+ }>>;
22
+ opens: z.ZodOptional<z.ZodEnum<{
23
+ right: "right";
24
+ left: "left";
25
+ }>>;
26
+ size: z.ZodOptional<z.ZodNumber>;
27
+ room: z.ZodOptional<z.ZodString>;
28
+ viewId: z.ZodOptional<z.ZodString>;
29
+ calibration: z.ZodOptional<z.ZodObject<{
30
+ img: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
31
+ level: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
32
+ }, z.core.$strip>>;
33
+ zoneRooms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34
+ }, z.core.$strip>>>;
35
+ }, z.core.$strip>>;
36
+ colorize: z.ZodBoolean;
37
+ kind: z.ZodLiteral<"image">;
4
38
  thumbnailId: z.ZodString;
5
39
  imageId: z.ZodString;
40
+ }, z.core.$strip>;
41
+ export declare const sAddMapLayoutRequest: z.ZodObject<{
42
+ name: z.ZodString;
6
43
  order: z.ZodOptional<z.ZodNumber>;
7
44
  devices: z.ZodArray<z.ZodObject<{
8
45
  deviceId: z.ZodString;
@@ -13,10 +50,188 @@ export declare const sAddLayoutRequest: z.ZodObject<{
13
50
  fov: z.ZodNumber;
14
51
  far: z.ZodNumber;
15
52
  displayAs: z.ZodNullable<z.ZodString>;
53
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
+ width: z.ZodOptional<z.ZodNumber>;
57
+ hinge: z.ZodOptional<z.ZodEnum<{
58
+ start: "start";
59
+ end: "end";
60
+ }>>;
61
+ opens: z.ZodOptional<z.ZodEnum<{
62
+ right: "right";
63
+ left: "left";
64
+ }>>;
65
+ size: z.ZodOptional<z.ZodNumber>;
66
+ room: z.ZodOptional<z.ZodString>;
67
+ viewId: z.ZodOptional<z.ZodString>;
68
+ calibration: z.ZodOptional<z.ZodObject<{
69
+ img: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
70
+ level: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
71
+ }, z.core.$strip>>;
72
+ zoneRooms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
73
+ }, z.core.$strip>>>;
16
74
  }, z.core.$strip>>;
17
75
  colorize: z.ZodBoolean;
76
+ kind: z.ZodLiteral<"map">;
77
+ }, z.core.$strip>;
78
+ /** An image layout, or a map layout when `map` is true, chosen by a flag rather than by `kind`. */
79
+ export declare const sAddImageOrMapLayoutRequest: z.ZodObject<{
80
+ name: z.ZodString;
81
+ order: z.ZodOptional<z.ZodNumber>;
82
+ devices: z.ZodArray<z.ZodObject<{
83
+ deviceId: z.ZodString;
84
+ x: z.ZodNumber;
85
+ y: z.ZodNumber;
86
+ scale: z.ZodNumber;
87
+ rotation: z.ZodNumber;
88
+ fov: z.ZodNumber;
89
+ far: z.ZodNumber;
90
+ displayAs: z.ZodNullable<z.ZodString>;
91
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
93
+ extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
+ width: z.ZodOptional<z.ZodNumber>;
95
+ hinge: z.ZodOptional<z.ZodEnum<{
96
+ start: "start";
97
+ end: "end";
98
+ }>>;
99
+ opens: z.ZodOptional<z.ZodEnum<{
100
+ right: "right";
101
+ left: "left";
102
+ }>>;
103
+ size: z.ZodOptional<z.ZodNumber>;
104
+ room: z.ZodOptional<z.ZodString>;
105
+ viewId: z.ZodOptional<z.ZodString>;
106
+ calibration: z.ZodOptional<z.ZodObject<{
107
+ img: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
108
+ level: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
109
+ }, z.core.$strip>>;
110
+ zoneRooms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
111
+ }, z.core.$strip>>>;
112
+ }, z.core.$strip>>;
113
+ colorize: z.ZodBoolean;
114
+ thumbnailId: z.ZodString;
115
+ imageId: z.ZodString;
18
116
  map: z.ZodBoolean;
19
117
  }, z.core.$strip>;
118
+ /** `3d` layouts are created by importing their model (POST /layouts/models). */
119
+ export declare const sAddLayoutRequest: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
120
+ name: z.ZodString;
121
+ order: z.ZodOptional<z.ZodNumber>;
122
+ devices: z.ZodArray<z.ZodObject<{
123
+ deviceId: z.ZodString;
124
+ x: z.ZodNumber;
125
+ y: z.ZodNumber;
126
+ scale: z.ZodNumber;
127
+ rotation: z.ZodNumber;
128
+ fov: z.ZodNumber;
129
+ far: z.ZodNumber;
130
+ displayAs: z.ZodNullable<z.ZodString>;
131
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
133
+ extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
+ width: z.ZodOptional<z.ZodNumber>;
135
+ hinge: z.ZodOptional<z.ZodEnum<{
136
+ start: "start";
137
+ end: "end";
138
+ }>>;
139
+ opens: z.ZodOptional<z.ZodEnum<{
140
+ right: "right";
141
+ left: "left";
142
+ }>>;
143
+ size: z.ZodOptional<z.ZodNumber>;
144
+ room: z.ZodOptional<z.ZodString>;
145
+ viewId: z.ZodOptional<z.ZodString>;
146
+ calibration: z.ZodOptional<z.ZodObject<{
147
+ img: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
148
+ level: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
149
+ }, z.core.$strip>>;
150
+ zoneRooms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
151
+ }, z.core.$strip>>>;
152
+ }, z.core.$strip>>;
153
+ colorize: z.ZodBoolean;
154
+ kind: z.ZodLiteral<"image">;
155
+ thumbnailId: z.ZodString;
156
+ imageId: z.ZodString;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ name: z.ZodString;
159
+ order: z.ZodOptional<z.ZodNumber>;
160
+ devices: z.ZodArray<z.ZodObject<{
161
+ deviceId: z.ZodString;
162
+ x: z.ZodNumber;
163
+ y: z.ZodNumber;
164
+ scale: z.ZodNumber;
165
+ rotation: z.ZodNumber;
166
+ fov: z.ZodNumber;
167
+ far: z.ZodNumber;
168
+ displayAs: z.ZodNullable<z.ZodString>;
169
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
171
+ extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
172
+ width: z.ZodOptional<z.ZodNumber>;
173
+ hinge: z.ZodOptional<z.ZodEnum<{
174
+ start: "start";
175
+ end: "end";
176
+ }>>;
177
+ opens: z.ZodOptional<z.ZodEnum<{
178
+ right: "right";
179
+ left: "left";
180
+ }>>;
181
+ size: z.ZodOptional<z.ZodNumber>;
182
+ room: z.ZodOptional<z.ZodString>;
183
+ viewId: z.ZodOptional<z.ZodString>;
184
+ calibration: z.ZodOptional<z.ZodObject<{
185
+ img: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
186
+ level: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
187
+ }, z.core.$strip>>;
188
+ zoneRooms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
189
+ }, z.core.$strip>>>;
190
+ }, z.core.$strip>>;
191
+ colorize: z.ZodBoolean;
192
+ kind: z.ZodLiteral<"map">;
193
+ }, z.core.$strip>], "kind">, z.ZodObject<{
194
+ name: z.ZodString;
195
+ order: z.ZodOptional<z.ZodNumber>;
196
+ devices: z.ZodArray<z.ZodObject<{
197
+ deviceId: z.ZodString;
198
+ x: z.ZodNumber;
199
+ y: z.ZodNumber;
200
+ scale: z.ZodNumber;
201
+ rotation: z.ZodNumber;
202
+ fov: z.ZodNumber;
203
+ far: z.ZodNumber;
204
+ displayAs: z.ZodNullable<z.ZodString>;
205
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
207
+ extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
208
+ width: z.ZodOptional<z.ZodNumber>;
209
+ hinge: z.ZodOptional<z.ZodEnum<{
210
+ start: "start";
211
+ end: "end";
212
+ }>>;
213
+ opens: z.ZodOptional<z.ZodEnum<{
214
+ right: "right";
215
+ left: "left";
216
+ }>>;
217
+ size: z.ZodOptional<z.ZodNumber>;
218
+ room: z.ZodOptional<z.ZodString>;
219
+ viewId: z.ZodOptional<z.ZodString>;
220
+ calibration: z.ZodOptional<z.ZodObject<{
221
+ img: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
222
+ level: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
223
+ }, z.core.$strip>>;
224
+ zoneRooms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
225
+ }, z.core.$strip>>>;
226
+ }, z.core.$strip>>;
227
+ colorize: z.ZodBoolean;
228
+ thumbnailId: z.ZodString;
229
+ imageId: z.ZodString;
230
+ map: z.ZodBoolean;
231
+ }, z.core.$strip>]>;
232
+ export type AddImageLayoutRequest = z.infer<typeof sAddImageLayoutRequest>;
233
+ export type AddMapLayoutRequest = z.infer<typeof sAddMapLayoutRequest>;
234
+ export type AddImageOrMapLayoutRequest = z.infer<typeof sAddImageOrMapLayoutRequest>;
20
235
  export type AddLayoutRequest = z.infer<typeof sAddLayoutRequest>;
21
236
  export declare const sUpdateLayoutRequest: z.ZodObject<{
22
237
  name: z.ZodOptional<z.ZodString>;
@@ -33,7 +248,29 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
33
248
  fov: z.ZodNumber;
34
249
  far: z.ZodNumber;
35
250
  displayAs: z.ZodNullable<z.ZodString>;
251
+ level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
253
+ extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
254
+ width: z.ZodOptional<z.ZodNumber>;
255
+ hinge: z.ZodOptional<z.ZodEnum<{
256
+ start: "start";
257
+ end: "end";
258
+ }>>;
259
+ opens: z.ZodOptional<z.ZodEnum<{
260
+ right: "right";
261
+ left: "left";
262
+ }>>;
263
+ size: z.ZodOptional<z.ZodNumber>;
264
+ room: z.ZodOptional<z.ZodString>;
265
+ viewId: z.ZodOptional<z.ZodString>;
266
+ calibration: z.ZodOptional<z.ZodObject<{
267
+ img: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
268
+ level: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
269
+ }, z.core.$strip>>;
270
+ zoneRooms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
271
+ }, z.core.$strip>>>;
36
272
  }, z.core.$strip>>>;
273
+ placementsRev: z.ZodOptional<z.ZodNumber>;
37
274
  colorize: z.ZodOptional<z.ZodBoolean>;
38
275
  map: z.ZodOptional<z.ZodBoolean>;
39
276
  }, z.core.$strip>;