@camstack/types 1.2.78 → 1.2.79

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.
@@ -6,20 +6,23 @@
6
6
  * system-scope cap that takes a deviceId was previously never device-filtered
7
7
  * — see the generator header).
8
8
  *
9
- * Coverage: 331 methods carry a device reference, of which
9
+ * Coverage: 332 methods carry a device reference, of which
10
10
  * 124 are on SYSTEM-scope caps.
11
11
  *
12
- * Only TOP-LEVEL input fields appear here; a nested device id is not
13
- * extractable by the middleware and is failed by the classification guard
14
- * instead of passing unenforced.
12
+ * Top-level fields, number arrays, and one-level arrays of objects carrying
13
+ * a numeric device field (targets[].deviceId) are all mapped; the matcher
14
+ * resolves every form and requires EVERY referenced device to be covered.
15
15
  */
16
- /** How a device reference is carried: one number, or an array of numbers. */
17
- export type DeviceRefForm = 'single' | 'array';
16
+ /** How a device reference is carried: one number, an array of numbers, or an
17
+ * array of objects each carrying a numeric device field. */
18
+ export type DeviceRefForm = 'single' | 'array' | 'object-array';
18
19
  export interface DeviceRefField {
19
20
  readonly name: string;
20
21
  readonly form: DeviceRefForm;
21
22
  /** When true the field may be absent or null — enforcement skips it. */
22
23
  readonly optional: boolean;
24
+ /** For object-array: the device-id field inside each element. */
25
+ readonly itemField?: string;
23
26
  }
24
27
  export declare const METHOD_DEVICE_SELECTORS: Readonly<Record<string, readonly DeviceRefField[]>>;
25
28
  /** Cap-method paths that carry a device reference AND live on a system-scope
package/dist/index.js CHANGED
@@ -41259,6 +41259,12 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
41259
41259
  form: "single",
41260
41260
  optional: false
41261
41261
  }],
41262
+ "snapshot.getSnapshotLinks": [{
41263
+ name: "targets",
41264
+ form: "object-array",
41265
+ optional: false,
41266
+ itemField: "deviceId"
41267
+ }],
41262
41268
  "snapshot.getSnapshotOverview": [{
41263
41269
  name: "deviceIds",
41264
41270
  form: "array",
package/dist/index.mjs CHANGED
@@ -41258,6 +41258,12 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
41258
41258
  form: "single",
41259
41259
  optional: false
41260
41260
  }],
41261
+ "snapshot.getSnapshotLinks": [{
41262
+ name: "targets",
41263
+ form: "object-array",
41264
+ optional: false,
41265
+ itemField: "deviceId"
41266
+ }],
41261
41267
  "snapshot.getSnapshotOverview": [{
41262
41268
  name: "deviceIds",
41263
41269
  form: "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.78",
3
+ "version": "1.2.79",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",