@camstack/types 1.2.593 → 1.2.595

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/addon.d.ts +1 -0
  3. package/dist/addon.js +157 -156
  4. package/dist/addon.mjs +4 -4
  5. package/dist/capabilities/composer.cap.d.ts +9 -0
  6. package/dist/capabilities/core-blocks.cap.d.ts +64 -0
  7. package/dist/capabilities/device-manager.cap.d.ts +681 -48
  8. package/dist/capabilities/index.d.ts +1 -1
  9. package/dist/capabilities/platform-probe.cap.d.ts +28 -0
  10. package/dist/capabilities/power-meter.cap.d.ts +16 -5
  11. package/dist/capabilities/power-source.cap.d.ts +10 -0
  12. package/dist/client.js +10 -1
  13. package/dist/client.mjs +10 -1
  14. package/dist/{composed-stable-id-BNTaDZEh.mjs → composed-stable-id-DIeNz933.mjs} +3 -0
  15. package/dist/{composed-stable-id-BdeYe5dD.js → composed-stable-id-DkF5-kuf.js} +3 -0
  16. package/dist/composition/composition-report.d.ts +3 -0
  17. package/dist/composition/composition.d.ts +14 -0
  18. package/dist/composition/power-source-link.d.ts +8 -0
  19. package/dist/device/base-device.d.ts +8 -0
  20. package/dist/device/device-icon.d.ts +1 -0
  21. package/dist/device/device-management.d.ts +4 -0
  22. package/dist/device/device-type.d.ts +4 -1
  23. package/dist/device/hero/hero-look.d.ts +1 -0
  24. package/dist/device/hero/hero-scene.d.ts +1 -0
  25. package/dist/device/identity-links.d.ts +310 -0
  26. package/dist/device/index.d.ts +2 -0
  27. package/dist/device/state-refresh.d.ts +15 -1
  28. package/dist/enums/event-category.d.ts +14 -0
  29. package/dist/enums.js +1 -1
  30. package/dist/enums.mjs +1 -1
  31. package/dist/{event-category-CY27-fF0.mjs → event-category-7P4A3bYA.mjs} +14 -0
  32. package/dist/{event-category-BKxXXxnV.js → event-category-CMA0-jGW.js} +14 -0
  33. package/dist/generated/addon-api.d.ts +35 -0
  34. package/dist/generated/addon-cap-facts.d.ts +1 -1
  35. package/dist/generated/customize-catalog.d.ts +4 -4
  36. package/dist/generated/device-proxy.d.ts +1 -1
  37. package/dist/generated/method-access-map.d.ts +1 -1
  38. package/dist/generated/method-device-selectors.d.ts +2 -2
  39. package/dist/generated/system-proxy.d.ts +1 -1
  40. package/dist/{implemented-methods-BarLh7tc.js → implemented-methods-DnfgAfI6.js} +17 -2
  41. package/dist/{implemented-methods-k3KProJd.mjs → implemented-methods-wFScvZ40.mjs} +12 -3
  42. package/dist/index.d.ts +5 -2
  43. package/dist/index.js +4204 -4224
  44. package/dist/index.mjs +348 -389
  45. package/dist/inference/runtime-capabilities.d.ts +13 -2
  46. package/dist/interfaces/addon.d.ts +3 -1
  47. package/dist/interfaces/platform.d.ts +32 -0
  48. package/dist/node.js +2 -2
  49. package/dist/node.mjs +2 -2
  50. package/dist/{sleep-DO-ayTnk.mjs → runtime-capabilities-Bgt5QBvO.mjs} +403 -3
  51. package/dist/{sleep-BOK28JE0.js → runtime-capabilities-wOKNm9iz.js} +498 -2
  52. package/package.json +1 -1
@@ -251,7 +251,7 @@ export { type IPetFountainProvider, PET_FOUNTAIN_WATER_KEY, type PetFountainStat
251
251
  export { type IPumpCycleProvider, type PumpCycleStatus, PumpCycleStatusSchema, pumpCycleCapability, } from './pump-cycle.cap.js';
252
252
  export { type IPlateGalleryProvider, type PlateInfo, plateGalleryCapability, type Vehicle, type VehicleSampleInfo, } from './plate-gallery.cap.js';
253
253
  export { type AcceleratorRescan, type HardwareDecodeAccels, type HardwareEncoderId, type HardwareEncoderProbe, type HardwareEncoders, type IPlatformProbeProvider, platformProbeCapability, } from './platform-probe.cap.js';
254
- export { type IPowerMeterProvider, type PowerMeterStatus, PowerMeterStatusSchema, powerMeterCapability, } from './power-meter.cap.js';
254
+ export { type IPowerMeterProvider, type PowerMeterStatus, PowerMeterStatusSchema, netPowerOf, powerMeterCapability, } from './power-meter.cap.js';
255
255
  export { type GpsLocation, type IPresenceProvider, type PresenceStatus, PresenceStatusSchema, presenceCapability, } from './presence.cap.js';
256
256
  export { type IPressureSensorProvider, type PressureSensorStatus, PressureSensorStatusSchema, pressureSensorCapability, } from './pressure-sensor.cap.js';
257
257
  export { type IPrivacyMaskProvider, type PrivacyMaskOptions, PrivacyMaskOptionsSchema, type PrivacyMaskPatch, PrivacyMaskPatchSchema, type PrivacyMaskRegion, PrivacyMaskRegionSchema, type PrivacyMaskShape, PrivacyMaskShapeSchema, type PrivacyMaskStatus, PrivacyMaskStatusSchema, privacyMaskCapability, summarisePrivacyAudio, } from './privacy-mask.cap.js';
@@ -223,6 +223,20 @@ export declare const platformProbeCapability: {
223
223
  }>;
224
224
  }, z.core.$strip>>>>;
225
225
  }, z.core.$strip>>>;
226
+ nvidia: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
227
+ type: z.ZodLiteral<"nvidia">;
228
+ name: z.ZodString;
229
+ memoryMB: z.ZodOptional<z.ZodNumber>;
230
+ usable: z.ZodLiteral<true>;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ type: z.ZodLiteral<"nvidia">;
233
+ name: z.ZodString;
234
+ memoryMB: z.ZodOptional<z.ZodNumber>;
235
+ usable: z.ZodLiteral<false>;
236
+ reason: z.ZodEnum<{
237
+ "no-cuda-execution-provider": "no-cuda-execution-provider";
238
+ }>;
239
+ }, z.core.$strip>], "usable">>>;
226
240
  accelerators: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
227
241
  deviceKey: z.ZodString;
228
242
  fullDeviceName: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
@@ -344,6 +358,20 @@ export declare const platformProbeCapability: {
344
358
  }>;
345
359
  }, z.core.$strip>>>>;
346
360
  }, z.core.$strip>>>;
361
+ nvidia: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
362
+ type: z.ZodLiteral<"nvidia">;
363
+ name: z.ZodString;
364
+ memoryMB: z.ZodOptional<z.ZodNumber>;
365
+ usable: z.ZodLiteral<true>;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ type: z.ZodLiteral<"nvidia">;
368
+ name: z.ZodString;
369
+ memoryMB: z.ZodOptional<z.ZodNumber>;
370
+ usable: z.ZodLiteral<false>;
371
+ reason: z.ZodEnum<{
372
+ "no-cuda-execution-provider": "no-cuda-execution-provider";
373
+ }>;
374
+ }, z.core.$strip>], "usable">>>;
347
375
  accelerators: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
348
376
  deviceKey: z.ZodString;
349
377
  fullDeviceName: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
@@ -18,6 +18,7 @@ import { DeviceType } from '../device/device-type.js';
18
18
  */
19
19
  export declare const PowerMeterStatusSchema: z.ZodObject<{
20
20
  power: z.ZodOptional<z.ZodNumber>;
21
+ deliveredPower: z.ZodOptional<z.ZodNumber>;
21
22
  energy: z.ZodOptional<z.ZodNumber>;
22
23
  voltage: z.ZodOptional<z.ZodNumber>;
23
24
  current: z.ZodOptional<z.ZodNumber>;
@@ -26,12 +27,20 @@ export declare const PowerMeterStatusSchema: z.ZodObject<{
26
27
  lastFetchedAt: z.ZodNumber;
27
28
  }, z.core.$strip>;
28
29
  export type PowerMeterStatus = z.infer<typeof PowerMeterStatusSchema>;
30
+ /**
31
+ * The device's own draw: `power − deliveredPower`. Derived, never stored, and only when the total
32
+ * is known; with nothing delivered it is `power`. Unknown stays `undefined`, never 0 — and
33
+ * so does a delivered figure above the total, which is a reading out of step, not a negative
34
+ * draw. A consumer that adds power across devices should count this, so delivered power is not
35
+ * counted twice on top of the downstream devices' own meters.
36
+ */
37
+ export declare function netPowerOf(status: Pick<PowerMeterStatus, 'power' | 'deliveredPower'>): number | undefined;
29
38
  export declare const powerMeterCapability: {
30
39
  readonly name: 'power-meter';
31
40
  readonly scope: 'device';
32
41
  readonly deviceNative: true;
33
42
  readonly mode: 'singleton';
34
- readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder];
43
+ readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload];
35
44
  readonly deviceConfig: {
36
45
  readonly ui: {
37
46
  readonly kind: 'widget';
@@ -46,6 +55,7 @@ export declare const powerMeterCapability: {
46
55
  readonly status: {
47
56
  readonly schema: z.ZodObject<{
48
57
  power: z.ZodOptional<z.ZodNumber>;
58
+ deliveredPower: z.ZodOptional<z.ZodNumber>;
49
59
  energy: z.ZodOptional<z.ZodNumber>;
50
60
  voltage: z.ZodOptional<z.ZodNumber>;
51
61
  current: z.ZodOptional<z.ZodNumber>;
@@ -57,6 +67,7 @@ export declare const powerMeterCapability: {
57
67
  };
58
68
  readonly runtimeState: z.ZodObject<{
59
69
  power: z.ZodOptional<z.ZodNumber>;
70
+ deliveredPower: z.ZodOptional<z.ZodNumber>;
60
71
  energy: z.ZodOptional<z.ZodNumber>;
61
72
  voltage: z.ZodOptional<z.ZodNumber>;
62
73
  current: z.ZodOptional<z.ZodNumber>;
@@ -128,7 +139,7 @@ export declare const powerMeterCapability: {
128
139
  readonly cap: 'power-meter';
129
140
  readonly stateField: string;
130
141
  };
131
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
142
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
132
143
  readonly apply: 'add';
133
144
  readonly path: string;
134
145
  readonly sources: readonly [{
@@ -154,7 +165,7 @@ export declare const powerMeterCapability: {
154
165
  readonly cap: 'power-meter';
155
166
  readonly stateField: string;
156
167
  };
157
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
168
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
158
169
  readonly apply: 'add';
159
170
  readonly path: string;
160
171
  readonly sources: readonly [{
@@ -180,7 +191,7 @@ export declare const powerMeterCapability: {
180
191
  readonly cap: 'power-meter';
181
192
  readonly stateField: string;
182
193
  };
183
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
194
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
184
195
  readonly apply: 'add';
185
196
  readonly path: string;
186
197
  readonly sources: readonly [{
@@ -206,7 +217,7 @@ export declare const powerMeterCapability: {
206
217
  readonly cap: 'power-meter';
207
218
  readonly stateField: string;
208
219
  };
209
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
220
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
210
221
  readonly apply: 'add';
211
222
  readonly path: string;
212
223
  readonly sources: readonly [{
@@ -32,6 +32,8 @@ export declare const POWER_SOURCE_OFF_SECONDS_MIN = 3;
32
32
  export declare const POWER_SOURCE_OFF_SECONDS_MAX = 120;
33
33
  export declare const POWER_SOURCE_OFF_SECONDS_DEFAULT = 10;
34
34
  export declare const PowerSourceRefusalReasonSchema: z.ZodEnum<{
35
+ "link-lost": "link-lost";
36
+ "link-unknown": "link-unknown";
35
37
  "no-power-source": "no-power-source";
36
38
  "not-settable": "not-settable";
37
39
  "restart-in-progress": "restart-in-progress";
@@ -48,6 +50,8 @@ export declare const PowerSourceActionResultSchema: z.ZodDiscriminatedUnion<[z.Z
48
50
  }, z.core.$strip>, z.ZodObject<{
49
51
  accepted: z.ZodLiteral<false>;
50
52
  reason: z.ZodEnum<{
53
+ "link-lost": "link-lost";
54
+ "link-unknown": "link-unknown";
51
55
  "no-power-source": "no-power-source";
52
56
  "not-settable": "not-settable";
53
57
  "restart-in-progress": "restart-in-progress";
@@ -111,6 +115,8 @@ export declare const powerSourceCapability: {
111
115
  }, z.core.$strip>, z.ZodObject<{
112
116
  accepted: z.ZodLiteral<false>;
113
117
  reason: z.ZodEnum<{
118
+ "link-lost": "link-lost";
119
+ "link-unknown": "link-unknown";
114
120
  "no-power-source": "no-power-source";
115
121
  "not-settable": "not-settable";
116
122
  "restart-in-progress": "restart-in-progress";
@@ -132,6 +138,8 @@ export declare const powerSourceCapability: {
132
138
  }, z.core.$strip>, z.ZodObject<{
133
139
  accepted: z.ZodLiteral<false>;
134
140
  reason: z.ZodEnum<{
141
+ "link-lost": "link-lost";
142
+ "link-unknown": "link-unknown";
135
143
  "no-power-source": "no-power-source";
136
144
  "not-settable": "not-settable";
137
145
  "restart-in-progress": "restart-in-progress";
@@ -153,6 +161,8 @@ export declare const powerSourceCapability: {
153
161
  }, z.core.$strip>, z.ZodObject<{
154
162
  accepted: z.ZodLiteral<false>;
155
163
  reason: z.ZodEnum<{
164
+ "link-lost": "link-lost";
165
+ "link-unknown": "link-unknown";
156
166
  "no-power-source": "no-power-source";
157
167
  "not-settable": "not-settable";
158
168
  "restart-in-progress": "restart-in-progress";
package/dist/client.js CHANGED
@@ -21434,6 +21434,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
21434
21434
  /** A machine that runs workloads or is an appliance with its own OS: a
21435
21435
  * server, a hypervisor, a gateway console, a CCU. */
21436
21436
  DeviceRole["Host"] = "host";
21437
+ /** An uninterruptible power supply: battery charge, mains status and load. A
21438
+ * `DeviceType.Sensor` device. */
21439
+ DeviceRole["Ups"] = "ups";
21437
21440
  return DeviceRole;
21438
21441
  }({});
21439
21442
  zod.z.enum(["new-session", "step-up"]);
@@ -27540,7 +27543,8 @@ var DEVICE_ROLE_ICON = {
27540
27543
  [DeviceRole.AppContainer]: "container",
27541
27544
  [DeviceRole.Lxc]: "box",
27542
27545
  [DeviceRole.App]: "app-window",
27543
- [DeviceRole.Host]: "server"
27546
+ [DeviceRole.Host]: "server",
27547
+ [DeviceRole.Ups]: "battery-charging"
27544
27548
  };
27545
27549
  var TYPE_VALUES = new Set(Object.values(DeviceType));
27546
27550
  var ROLE_VALUES = new Set(Object.values(DeviceRole));
@@ -28338,6 +28342,8 @@ function createDeviceProxy(api, binding, opts) {
28338
28342
  applyInitialMeta: (input, options) => dispatchSystem("deviceManager", "applyInitialMeta", "mutation", input, void 0, options),
28339
28343
  setMetadata: (input, options) => dispatchSystem("deviceManager", "setMetadata", "mutation", input, void 0, options),
28340
28344
  setIdentifiers: (input, options) => dispatchSystem("deviceManager", "setIdentifiers", "mutation", input, void 0, options),
28345
+ setAttachedIdentifiers: (input, options) => dispatchSystem("deviceManager", "setAttachedIdentifiers", "mutation", input, void 0, options),
28346
+ listIdentityLinks: (input, options) => dispatchSystem("deviceManager", "listIdentityLinks", "query", input, void 0, options),
28341
28347
  setDisabled: (input, options) => dispatchSystem("deviceManager", "setDisabled", "mutation", input, void 0, options),
28342
28348
  getDevice: (input, options) => dispatchSystem("deviceManager", "getDevice", "query", input, void 0, options),
28343
28349
  getLinkedDevices: (input, options) => dispatchSystem("deviceManager", "getLinkedDevices", "query", input, void 0, options),
@@ -29589,6 +29595,9 @@ function createSystemProxy(api) {
29589
29595
  getRoleDisplayDefaults: (input) => dispatch("deviceManager", "getRoleDisplayDefaults", "query", input),
29590
29596
  setRoleDisplayDefaults: (input) => dispatch("deviceManager", "setRoleDisplayDefaults", "mutation", input),
29591
29597
  listIdentityCandidates: (input) => dispatch("deviceManager", "listIdentityCandidates", "query", input),
29598
+ confirmIdentityLink: (input) => dispatch("deviceManager", "confirmIdentityLink", "mutation", input),
29599
+ dismissIdentityLink: (input) => dispatch("deviceManager", "dismissIdentityLink", "mutation", input),
29600
+ unlinkIdentity: (input) => dispatch("deviceManager", "unlinkIdentity", "mutation", input),
29592
29601
  listLocations: (input) => dispatch("deviceManager", "listLocations", "query", input),
29593
29602
  addLocation: (input) => dispatch("deviceManager", "addLocation", "mutation", input),
29594
29603
  removeLocation: (input) => dispatch("deviceManager", "removeLocation", "mutation", input),
package/dist/client.mjs CHANGED
@@ -21433,6 +21433,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
21433
21433
  /** A machine that runs workloads or is an appliance with its own OS: a
21434
21434
  * server, a hypervisor, a gateway console, a CCU. */
21435
21435
  DeviceRole["Host"] = "host";
21436
+ /** An uninterruptible power supply: battery charge, mains status and load. A
21437
+ * `DeviceType.Sensor` device. */
21438
+ DeviceRole["Ups"] = "ups";
21436
21439
  return DeviceRole;
21437
21440
  }({});
21438
21441
  z.enum(["new-session", "step-up"]);
@@ -27539,7 +27542,8 @@ var DEVICE_ROLE_ICON = {
27539
27542
  [DeviceRole.AppContainer]: "container",
27540
27543
  [DeviceRole.Lxc]: "box",
27541
27544
  [DeviceRole.App]: "app-window",
27542
- [DeviceRole.Host]: "server"
27545
+ [DeviceRole.Host]: "server",
27546
+ [DeviceRole.Ups]: "battery-charging"
27543
27547
  };
27544
27548
  var TYPE_VALUES = new Set(Object.values(DeviceType));
27545
27549
  var ROLE_VALUES = new Set(Object.values(DeviceRole));
@@ -28337,6 +28341,8 @@ function createDeviceProxy(api, binding, opts) {
28337
28341
  applyInitialMeta: (input, options) => dispatchSystem("deviceManager", "applyInitialMeta", "mutation", input, void 0, options),
28338
28342
  setMetadata: (input, options) => dispatchSystem("deviceManager", "setMetadata", "mutation", input, void 0, options),
28339
28343
  setIdentifiers: (input, options) => dispatchSystem("deviceManager", "setIdentifiers", "mutation", input, void 0, options),
28344
+ setAttachedIdentifiers: (input, options) => dispatchSystem("deviceManager", "setAttachedIdentifiers", "mutation", input, void 0, options),
28345
+ listIdentityLinks: (input, options) => dispatchSystem("deviceManager", "listIdentityLinks", "query", input, void 0, options),
28340
28346
  setDisabled: (input, options) => dispatchSystem("deviceManager", "setDisabled", "mutation", input, void 0, options),
28341
28347
  getDevice: (input, options) => dispatchSystem("deviceManager", "getDevice", "query", input, void 0, options),
28342
28348
  getLinkedDevices: (input, options) => dispatchSystem("deviceManager", "getLinkedDevices", "query", input, void 0, options),
@@ -29588,6 +29594,9 @@ function createSystemProxy(api) {
29588
29594
  getRoleDisplayDefaults: (input) => dispatch("deviceManager", "getRoleDisplayDefaults", "query", input),
29589
29595
  setRoleDisplayDefaults: (input) => dispatch("deviceManager", "setRoleDisplayDefaults", "mutation", input),
29590
29596
  listIdentityCandidates: (input) => dispatch("deviceManager", "listIdentityCandidates", "query", input),
29597
+ confirmIdentityLink: (input) => dispatch("deviceManager", "confirmIdentityLink", "mutation", input),
29598
+ dismissIdentityLink: (input) => dispatch("deviceManager", "dismissIdentityLink", "mutation", input),
29599
+ unlinkIdentity: (input) => dispatch("deviceManager", "unlinkIdentity", "mutation", input),
29591
29600
  listLocations: (input) => dispatch("deviceManager", "listLocations", "query", input),
29592
29601
  addLocation: (input) => dispatch("deviceManager", "addLocation", "mutation", input),
29593
29602
  removeLocation: (input) => dispatch("deviceManager", "removeLocation", "mutation", input),
@@ -463,6 +463,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
463
463
  /** A machine that runs workloads or is an appliance with its own OS: a
464
464
  * server, a hypervisor, a gateway console, a CCU. */
465
465
  DeviceRole["Host"] = "host";
466
+ /** An uninterruptible power supply: battery charge, mains status and load. A
467
+ * `DeviceType.Sensor` device. */
468
+ DeviceRole["Ups"] = "ups";
466
469
  return DeviceRole;
467
470
  }({});
468
471
  //#endregion
@@ -463,6 +463,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
463
463
  /** A machine that runs workloads or is an appliance with its own OS: a
464
464
  * server, a hypervisor, a gateway console, a CCU. */
465
465
  DeviceRole["Host"] = "host";
466
+ /** An uninterruptible power supply: battery charge, mains status and load. A
467
+ * `DeviceType.Sensor` device. */
468
+ DeviceRole["Ups"] = "ups";
466
469
  return DeviceRole;
467
470
  }({});
468
471
  //#endregion
@@ -15,6 +15,7 @@ export declare const CompositionProblemCodeSchema: z.ZodEnum<{
15
15
  "helper-mismatch": "helper-mismatch";
16
16
  "item-field-reserved": "item-field-reserved";
17
17
  "kind-mismatch": "kind-mismatch";
18
+ "link-contribution-removed": "link-contribution-removed";
18
19
  "may-be-null": "may-be-null";
19
20
  "member-constraint": "member-constraint";
20
21
  "missing-field": "missing-field";
@@ -53,6 +54,7 @@ export declare const CompositionProblemSchema: z.ZodObject<{
53
54
  "helper-mismatch": "helper-mismatch";
54
55
  "item-field-reserved": "item-field-reserved";
55
56
  "kind-mismatch": "kind-mismatch";
57
+ "link-contribution-removed": "link-contribution-removed";
56
58
  "may-be-null": "may-be-null";
57
59
  "member-constraint": "member-constraint";
58
60
  "missing-field": "missing-field";
@@ -281,6 +283,7 @@ export declare const CompositionValidationSchema: z.ZodObject<{
281
283
  "helper-mismatch": "helper-mismatch";
282
284
  "item-field-reserved": "item-field-reserved";
283
285
  "kind-mismatch": "kind-mismatch";
286
+ "link-contribution-removed": "link-contribution-removed";
284
287
  "may-be-null": "may-be-null";
285
288
  "member-constraint": "member-constraint";
286
289
  "missing-field": "missing-field";
@@ -414,6 +414,11 @@ export declare const CompositionItemEntrySchema: z.ZodObject<{
414
414
  }, z.core.$strip>>;
415
415
  }, z.core.$strip>;
416
416
  export type CompositionItemEntry = z.infer<typeof CompositionItemEntrySchema>;
417
+ /** Which identity link added a feature (D1063). */
418
+ export declare const CompositionContributedBySchema: z.ZodObject<{
419
+ linkId: z.ZodString;
420
+ }, z.core.$strip>;
421
+ export type CompositionContributedBy = z.infer<typeof CompositionContributedBySchema>;
417
422
  export declare const CompositionFieldsFeatureSchema: z.ZodObject<{
418
423
  kind: z.ZodLiteral<"fields">;
419
424
  cap: z.ZodString;
@@ -605,6 +610,9 @@ export declare const CompositionFieldsFeatureSchema: z.ZodObject<{
605
610
  kind: z.ZodLiteral<"extension">;
606
611
  target: z.ZodLiteral<"remote">;
607
612
  }, z.core.$strip>], "kind">>>;
613
+ contributedBy: z.ZodOptional<z.ZodObject<{
614
+ linkId: z.ZodString;
615
+ }, z.core.$strip>>;
608
616
  }, z.core.$strip>;
609
617
  export type CompositionFieldsFeature = z.infer<typeof CompositionFieldsFeatureSchema>;
610
618
  /** RESERVED for slice 3: a media / data-plane cap, whole, from one source. */
@@ -809,6 +817,9 @@ export declare const CompositionFeatureSchema: z.ZodDiscriminatedUnion<[z.ZodObj
809
817
  kind: z.ZodLiteral<"extension">;
810
818
  target: z.ZodLiteral<"remote">;
811
819
  }, z.core.$strip>], "kind">>>;
820
+ contributedBy: z.ZodOptional<z.ZodObject<{
821
+ linkId: z.ZodString;
822
+ }, z.core.$strip>>;
812
823
  }, z.core.$strip>, z.ZodObject<{
813
824
  kind: z.ZodLiteral<"passthrough">;
814
825
  cap: z.ZodString;
@@ -1063,6 +1074,9 @@ export declare const CompositionSchema: z.ZodObject<{
1063
1074
  kind: z.ZodLiteral<"extension">;
1064
1075
  target: z.ZodLiteral<"remote">;
1065
1076
  }, z.core.$strip>], "kind">>>;
1077
+ contributedBy: z.ZodOptional<z.ZodObject<{
1078
+ linkId: z.ZodString;
1079
+ }, z.core.$strip>>;
1066
1080
  }, z.core.$strip>, z.ZodObject<{
1067
1081
  kind: z.ZodLiteral<"passthrough">;
1068
1082
  cap: z.ZodString;
@@ -7,6 +7,14 @@ export interface PowerSourceLink {
7
7
  readonly switch: CompositionSourceRef;
8
8
  /** How long a forced restart keeps the switch off: an integer within the cap's bounds. */
9
9
  readonly offSeconds: number;
10
+ /**
11
+ * The identity link that contributed this feature (D1063), or absent when the
12
+ * operator wrote it. A contributed link is re-checked against that link before
13
+ * any action: a stamp is not proof the port still feeds this device.
14
+ */
15
+ readonly contributedBy?: {
16
+ readonly linkId: string;
17
+ };
10
18
  }
11
19
  /**
12
20
  * The stored off time, or the default when none is stored. A stored number out
@@ -183,6 +183,14 @@ export declare abstract class BaseDevice<T extends z.ZodObject<z.core.$ZodLooseS
183
183
  * nothing. Best-effort: never throws.
184
184
  */
185
185
  protected declareIdentifiers(raw: RawDeviceIdentifiers, options?: DeclareIdentifiersOptions): Promise<DeclareIdentifiersResult>;
186
+ /**
187
+ * Declare the identity of the device at the FAR END of this device's physical
188
+ * link (D1063): a PoE port's wired client. Same normalisation, `unread`
189
+ * rule and owner check as {@link declareIdentifiers}, written through
190
+ * `device-manager.setAttachedIdentifiers`. It never makes the two devices the
191
+ * same device. Best-effort: never throws.
192
+ */
193
+ protected declareAttachedIdentifiers(raw: RawDeviceIdentifiers, options?: DeclareIdentifiersOptions): Promise<DeclareIdentifiersResult>;
186
194
  /**
187
195
  * Re-publish the device's current `features` array to the persisted
188
196
  * meta blob. Drivers call this after a probe finishes when the live
@@ -130,6 +130,7 @@ export declare const DEVICE_ROLE_ICON: {
130
130
  readonly lxc: 'box';
131
131
  readonly app: 'app-window';
132
132
  readonly host: 'server';
133
+ readonly ups: 'battery-charging';
133
134
  };
134
135
  /** Every icon a device can be drawn with — a subset of the catalog the glyph tables must cover. */
135
136
  export type DeviceIconKey = (typeof DEVICE_TYPE_ICON)[DeviceType] | (typeof DEVICE_ROLE_ICON)[DeviceRole];
@@ -164,6 +164,10 @@ export interface DeviceMeta {
164
164
  * the owning provider through `device-manager.setIdentifiers`, read-only for
165
165
  * the operator. Absent ⇒ the provider declared none. */
166
166
  readonly identifiers?: DeviceIdentifiers;
167
+ /** The identity of the device at the far end of this device's physical link
168
+ * (D1063) — a PoE port's wired client. Written only by the owning provider
169
+ * through `device-manager.setAttachedIdentifiers`. Absent ⇒ none declared. */
170
+ readonly attachedIdentifiers?: DeviceIdentifiers;
167
171
  /** Optional upstream-system identity + rendering envelope. See
168
172
  * `SourceInfo`. Persisted under `metadata.sourceInfo` — this field
169
173
  * is the typed projection callers consume directly. `BaseDevice`
@@ -444,5 +444,8 @@ export declare enum DeviceRole {
444
444
  App = "app",
445
445
  /** A machine that runs workloads or is an appliance with its own OS: a
446
446
  * server, a hypervisor, a gateway console, a CCU. */
447
- Host = "host"
447
+ Host = "host",
448
+ /** An uninterruptible power supply: battery charge, mains status and load. A
449
+ * `DeviceType.Sensor` device. */
450
+ Ups = "ups"
448
451
  }
@@ -394,6 +394,7 @@ export declare const HERO_LOOK_BY_ROLE: {
394
394
  readonly lxc: 'inherit';
395
395
  readonly app: 'inherit';
396
396
  readonly host: 'inherit';
397
+ readonly ups: 'inherit';
397
398
  };
398
399
  /**
399
400
  * The look of a (role, type) pair, for a state. Role beats type beats the generic default.
@@ -226,6 +226,7 @@ export declare const HERO_SCENE_BY_ROLE: {
226
226
  readonly lxc: 'inherit';
227
227
  readonly app: 'inherit';
228
228
  readonly host: 'inherit';
229
+ readonly ups: 'inherit';
229
230
  };
230
231
  /** The scene id of a (role, type) pair. Role beats type; a type this build does not know gets the terminal. */
231
232
  export declare function resolveHeroSceneId(role: string | null, type: string): HeroSceneId;