@camstack/types 1.2.221 → 1.2.222

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.
@@ -89,13 +89,12 @@ declare const GridProfileOfferSchema: z.ZodObject<{
89
89
  }>;
90
90
  offered: z.ZodBoolean;
91
91
  missingSources: z.ZodArray<z.ZodNumber>;
92
+ canvas: z.ZodString;
92
93
  }, z.core.$strip>;
93
94
  export declare const GridLayoutViewSchema: z.ZodObject<{
94
95
  instanceId: z.ZodString;
95
96
  deviceId: z.ZodNumber;
96
97
  name: z.ZodString;
97
- width: z.ZodNumber;
98
- height: z.ZodNumber;
99
98
  fps: z.ZodNumber;
100
99
  cells: z.ZodArray<z.ZodObject<{
101
100
  deviceId: z.ZodNumber;
@@ -120,6 +119,7 @@ export declare const GridLayoutViewSchema: z.ZodObject<{
120
119
  }>;
121
120
  offered: z.ZodBoolean;
122
121
  missingSources: z.ZodArray<z.ZodNumber>;
122
+ canvas: z.ZodString;
123
123
  }, z.core.$strip>>;
124
124
  }, z.core.$strip>;
125
125
  export type GridNormalizedRect = z.infer<typeof GridNormalizedRectSchema>;
@@ -129,8 +129,6 @@ export type GridLayoutView = z.infer<typeof GridLayoutViewSchema>;
129
129
  export declare const GridLayoutPatchSchema: z.ZodObject<{
130
130
  deviceId: z.ZodNumber;
131
131
  name: z.ZodOptional<z.ZodString>;
132
- width: z.ZodOptional<z.ZodNumber>;
133
- height: z.ZodOptional<z.ZodNumber>;
134
132
  fps: z.ZodOptional<z.ZodNumber>;
135
133
  cells: z.ZodArray<z.ZodObject<{
136
134
  deviceId: z.ZodNumber;
@@ -187,8 +185,6 @@ export declare const cameraGridLayoutCapability: {
187
185
  instanceId: z.ZodString;
188
186
  deviceId: z.ZodNumber;
189
187
  name: z.ZodString;
190
- width: z.ZodNumber;
191
- height: z.ZodNumber;
192
188
  fps: z.ZodNumber;
193
189
  cells: z.ZodArray<z.ZodObject<{
194
190
  deviceId: z.ZodNumber;
@@ -213,14 +209,13 @@ export declare const cameraGridLayoutCapability: {
213
209
  }>;
214
210
  offered: z.ZodBoolean;
215
211
  missingSources: z.ZodArray<z.ZodNumber>;
212
+ canvas: z.ZodString;
216
213
  }, z.core.$strip>>;
217
214
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
218
215
  /** Write the geometry back. Returns the grid as it now stands, profiles included. */
219
216
  readonly saveLayout: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
220
217
  deviceId: z.ZodNumber;
221
218
  name: z.ZodOptional<z.ZodString>;
222
- width: z.ZodOptional<z.ZodNumber>;
223
- height: z.ZodOptional<z.ZodNumber>;
224
219
  fps: z.ZodOptional<z.ZodNumber>;
225
220
  cells: z.ZodArray<z.ZodObject<{
226
221
  deviceId: z.ZodNumber;
@@ -241,8 +236,6 @@ export declare const cameraGridLayoutCapability: {
241
236
  instanceId: z.ZodString;
242
237
  deviceId: z.ZodNumber;
243
238
  name: z.ZodString;
244
- width: z.ZodNumber;
245
- height: z.ZodNumber;
246
239
  fps: z.ZodNumber;
247
240
  cells: z.ZodArray<z.ZodObject<{
248
241
  deviceId: z.ZodNumber;
@@ -267,6 +260,7 @@ export declare const cameraGridLayoutCapability: {
267
260
  }>;
268
261
  offered: z.ZodBoolean;
269
262
  missingSources: z.ZodArray<z.ZodNumber>;
263
+ canvas: z.ZodString;
270
264
  }, z.core.$strip>>;
271
265
  }, z.core.$strip>, "mutation">;
272
266
  };
package/dist/index.js CHANGED
@@ -32551,16 +32551,28 @@ var GridProfileOfferSchema = zod.z.object({
32551
32551
  ]),
32552
32552
  offered: zod.z.boolean(),
32553
32553
  /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
32554
- missingSources: zod.z.array(zod.z.number().int().positive())
32554
+ missingSources: zod.z.array(zod.z.number().int().positive()),
32555
+ /**
32556
+ * The canvas this profile composes onto, `WxH`, or empty when it is not
32557
+ * offered. DERIVED from the cells and the sources' own size at this profile —
32558
+ * it is reported because nothing else in the system would ever say what the
32559
+ * grid came out as, and because it is the number an operator would otherwise
32560
+ * expect to type.
32561
+ */
32562
+ canvas: zod.z.string()
32555
32563
  });
32556
32564
  var GridLayoutViewSchema = zod.z.object({
32557
32565
  /** The persisted grid row this camera was declared from. */
32558
32566
  instanceId: zod.z.string(),
32559
32567
  deviceId: zod.z.number().int().nonnegative(),
32560
32568
  name: zod.z.string(),
32561
- /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
32562
- width: zod.z.number().int(),
32563
- height: zod.z.number().int(),
32569
+ /**
32570
+ * NO canvas size. A grid's resolution is not authored: each profile derives
32571
+ * its own from the cells and its sources' dimensions. The two numbers that
32572
+ * used to be here were a text field that silently decided both how much the
32573
+ * composite cost and how sharp it was — see `profiles[].canvas` for what it
32574
+ * came out as.
32575
+ */
32564
32576
  fps: zod.z.number().int(),
32565
32577
  cells: zod.z.array(GridLayoutCellSchema),
32566
32578
  /** What the catalog will publish, and what it refuses to. Read-only. */
@@ -32569,8 +32581,6 @@ var GridLayoutViewSchema = zod.z.object({
32569
32581
  var GridLayoutPatchSchema = zod.z.object({
32570
32582
  deviceId: zod.z.number().int().nonnegative(),
32571
32583
  name: zod.z.string().min(1).max(160).optional(),
32572
- width: zod.z.number().int().min(160).max(7680).optional(),
32573
- height: zod.z.number().int().min(120).max(4320).optional(),
32574
32584
  fps: zod.z.number().int().min(1).max(60).optional(),
32575
32585
  /**
32576
32586
  * The whole cell list at once. A per-cell patch would need an ordering the
package/dist/index.mjs CHANGED
@@ -32550,16 +32550,28 @@ var GridProfileOfferSchema = z.object({
32550
32550
  ]),
32551
32551
  offered: z.boolean(),
32552
32552
  /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
32553
- missingSources: z.array(z.number().int().positive())
32553
+ missingSources: z.array(z.number().int().positive()),
32554
+ /**
32555
+ * The canvas this profile composes onto, `WxH`, or empty when it is not
32556
+ * offered. DERIVED from the cells and the sources' own size at this profile —
32557
+ * it is reported because nothing else in the system would ever say what the
32558
+ * grid came out as, and because it is the number an operator would otherwise
32559
+ * expect to type.
32560
+ */
32561
+ canvas: z.string()
32554
32562
  });
32555
32563
  var GridLayoutViewSchema = z.object({
32556
32564
  /** The persisted grid row this camera was declared from. */
32557
32565
  instanceId: z.string(),
32558
32566
  deviceId: z.number().int().nonnegative(),
32559
32567
  name: z.string(),
32560
- /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
32561
- width: z.number().int(),
32562
- height: z.number().int(),
32568
+ /**
32569
+ * NO canvas size. A grid's resolution is not authored: each profile derives
32570
+ * its own from the cells and its sources' dimensions. The two numbers that
32571
+ * used to be here were a text field that silently decided both how much the
32572
+ * composite cost and how sharp it was — see `profiles[].canvas` for what it
32573
+ * came out as.
32574
+ */
32563
32575
  fps: z.number().int(),
32564
32576
  cells: z.array(GridLayoutCellSchema),
32565
32577
  /** What the catalog will publish, and what it refuses to. Read-only. */
@@ -32568,8 +32580,6 @@ var GridLayoutViewSchema = z.object({
32568
32580
  var GridLayoutPatchSchema = z.object({
32569
32581
  deviceId: z.number().int().nonnegative(),
32570
32582
  name: z.string().min(1).max(160).optional(),
32571
- width: z.number().int().min(160).max(7680).optional(),
32572
- height: z.number().int().min(120).max(4320).optional(),
32573
32583
  fps: z.number().int().min(1).max(60).optional(),
32574
32584
  /**
32575
32585
  * The whole cell list at once. A per-cell patch would need an ordering the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.221",
3
+ "version": "1.2.222",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",