@camstack/addon-provider-unifi 0.2.144 → 0.2.145

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.
package/dist/addon.js CHANGED
@@ -50371,6 +50371,19 @@ var NodeInferenceDeviceSchema = object({
50371
50371
  /** Whether the node's live probe reports the device as usable right now. */
50372
50372
  available: boolean(),
50373
50373
  /**
50374
+ * Is the device on the node at all (D919)? `present` — the live probe
50375
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
50376
+ * its stored settings remain (unplugged, moved to another node): never
50377
+ * eligible, whatever its stored `enabled`, and forgettable with
50378
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
50379
+ * claimed (D315). Optional only for an orchestrator older than the field.
50380
+ */
50381
+ presence: _enum([
50382
+ "present",
50383
+ "absent",
50384
+ "unknown"
50385
+ ]).optional(),
50386
+ /**
50374
50387
  * Whether this device participates in dispatch. AUTO default (spec C2):
50375
50388
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
50376
50389
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50596,7 +50609,13 @@ method(object({
50596
50609
  }), object({ success: literal(true) }), {
50597
50610
  kind: "mutation",
50598
50611
  auth: "admin"
50599
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
50612
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
50613
+ agentNodeId: string(),
50614
+ deviceKey: string()
50615
+ }), object({ success: literal(true) }), {
50616
+ kind: "mutation",
50617
+ auth: "admin"
50618
+ }), method(object({ agentNodeId: string() }), object({
50600
50619
  success: literal(true),
50601
50620
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50602
50621
  effectiveModelId: string().nullable(),
@@ -58856,7 +58875,7 @@ var motionTriggerCapability = {
58856
58875
  enabled: boolean()
58857
58876
  }), _void(), {
58858
58877
  kind: "mutation",
58859
- auth: "admin"
58878
+ auth: "protected"
58860
58879
  }) },
58861
58880
  events: { onMotionTriggerChanged: { data: object({
58862
58881
  deviceId: number(),
@@ -59586,6 +59605,13 @@ var TopologyNodeSchema = object({
59586
59605
  cpuModel: string().nullable(),
59587
59606
  cpuCores: number(),
59588
59607
  memoryMB: number(),
59608
+ /**
59609
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
59610
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
59611
+ * about whether its hardware is there (a Coral delegate stays installed
59612
+ * after the stick leaves, D919); the live device set is
59613
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
59614
+ */
59589
59615
  engines: array(string()).readonly(),
59590
59616
  isHub: boolean(),
59591
59617
  isOnline: boolean(),
@@ -60703,7 +60729,28 @@ var ResolvedInferenceConfigSchema = object({
60703
60729
  format: ModelFormatSchema,
60704
60730
  reason: string()
60705
60731
  });
60706
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
60732
+ /**
60733
+ * The answer of an accelerator rescan (D919): the node's device list after
60734
+ * the re-probe, what changed, and the evidence that decided the Coral answer
60735
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
60736
+ * bus, the installed-delegate fallback, or nothing).
60737
+ */
60738
+ var AcceleratorRescanSchema = object({
60739
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
60740
+ appeared: array(string()).readonly(),
60741
+ disappeared: array(string()).readonly(),
60742
+ usbBus: _enum(["observed", "unobservable"]),
60743
+ decidedBy: _enum([
60744
+ "usb-ids",
60745
+ "pci",
60746
+ "delegate-fallback",
60747
+ "none"
60748
+ ])
60749
+ });
60750
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
60751
+ kind: "mutation",
60752
+ auth: "admin"
60753
+ });
60707
60754
  /**
60708
60755
  * Multi-metric electrical meter. One slice can carry any combination
60709
60756
  * of instantaneous power (W), cumulative energy (kWh), voltage (V),
@@ -72931,6 +72978,12 @@ Object.freeze({
72931
72978
  addonId: null,
72932
72979
  access: "delete"
72933
72980
  },
72981
+ "pipelineOrchestrator.forgetInferenceDevice": {
72982
+ capName: "pipeline-orchestrator",
72983
+ capScope: "system",
72984
+ addonId: null,
72985
+ access: "delete"
72986
+ },
72934
72987
  "pipelineOrchestrator.getAgentLoad": {
72935
72988
  capName: "pipeline-orchestrator",
72936
72989
  capScope: "system",
@@ -73507,6 +73560,12 @@ Object.freeze({
73507
73560
  addonId: null,
73508
73561
  access: "view"
73509
73562
  },
73563
+ "platformProbe.rescanAccelerators": {
73564
+ capName: "platform-probe",
73565
+ capScope: "system",
73566
+ addonId: null,
73567
+ access: "create"
73568
+ },
73510
73569
  "platformProbe.resolveHwAccel": {
73511
73570
  capName: "platform-probe",
73512
73571
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -50370,6 +50370,19 @@ var NodeInferenceDeviceSchema = object({
50370
50370
  /** Whether the node's live probe reports the device as usable right now. */
50371
50371
  available: boolean(),
50372
50372
  /**
50373
+ * Is the device on the node at all (D919)? `present` — the live probe
50374
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
50375
+ * its stored settings remain (unplugged, moved to another node): never
50376
+ * eligible, whatever its stored `enabled`, and forgettable with
50377
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
50378
+ * claimed (D315). Optional only for an orchestrator older than the field.
50379
+ */
50380
+ presence: _enum([
50381
+ "present",
50382
+ "absent",
50383
+ "unknown"
50384
+ ]).optional(),
50385
+ /**
50373
50386
  * Whether this device participates in dispatch. AUTO default (spec C2):
50374
50387
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
50375
50388
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50595,7 +50608,13 @@ method(object({
50595
50608
  }), object({ success: literal(true) }), {
50596
50609
  kind: "mutation",
50597
50610
  auth: "admin"
50598
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
50611
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
50612
+ agentNodeId: string(),
50613
+ deviceKey: string()
50614
+ }), object({ success: literal(true) }), {
50615
+ kind: "mutation",
50616
+ auth: "admin"
50617
+ }), method(object({ agentNodeId: string() }), object({
50599
50618
  success: literal(true),
50600
50619
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50601
50620
  effectiveModelId: string().nullable(),
@@ -58855,7 +58874,7 @@ var motionTriggerCapability = {
58855
58874
  enabled: boolean()
58856
58875
  }), _void(), {
58857
58876
  kind: "mutation",
58858
- auth: "admin"
58877
+ auth: "protected"
58859
58878
  }) },
58860
58879
  events: { onMotionTriggerChanged: { data: object({
58861
58880
  deviceId: number(),
@@ -59585,6 +59604,13 @@ var TopologyNodeSchema = object({
59585
59604
  cpuModel: string().nullable(),
59586
59605
  cpuCores: number(),
59587
59606
  memoryMB: number(),
59607
+ /**
59608
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
59609
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
59610
+ * about whether its hardware is there (a Coral delegate stays installed
59611
+ * after the stick leaves, D919); the live device set is
59612
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
59613
+ */
59588
59614
  engines: array(string()).readonly(),
59589
59615
  isHub: boolean(),
59590
59616
  isOnline: boolean(),
@@ -60702,7 +60728,28 @@ var ResolvedInferenceConfigSchema = object({
60702
60728
  format: ModelFormatSchema,
60703
60729
  reason: string()
60704
60730
  });
60705
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
60731
+ /**
60732
+ * The answer of an accelerator rescan (D919): the node's device list after
60733
+ * the re-probe, what changed, and the evidence that decided the Coral answer
60734
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
60735
+ * bus, the installed-delegate fallback, or nothing).
60736
+ */
60737
+ var AcceleratorRescanSchema = object({
60738
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
60739
+ appeared: array(string()).readonly(),
60740
+ disappeared: array(string()).readonly(),
60741
+ usbBus: _enum(["observed", "unobservable"]),
60742
+ decidedBy: _enum([
60743
+ "usb-ids",
60744
+ "pci",
60745
+ "delegate-fallback",
60746
+ "none"
60747
+ ])
60748
+ });
60749
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
60750
+ kind: "mutation",
60751
+ auth: "admin"
60752
+ });
60706
60753
  /**
60707
60754
  * Multi-metric electrical meter. One slice can carry any combination
60708
60755
  * of instantaneous power (W), cumulative energy (kWh), voltage (V),
@@ -72930,6 +72977,12 @@ Object.freeze({
72930
72977
  addonId: null,
72931
72978
  access: "delete"
72932
72979
  },
72980
+ "pipelineOrchestrator.forgetInferenceDevice": {
72981
+ capName: "pipeline-orchestrator",
72982
+ capScope: "system",
72983
+ addonId: null,
72984
+ access: "delete"
72985
+ },
72933
72986
  "pipelineOrchestrator.getAgentLoad": {
72934
72987
  capName: "pipeline-orchestrator",
72935
72988
  capScope: "system",
@@ -73506,6 +73559,12 @@ Object.freeze({
73506
73559
  addonId: null,
73507
73560
  access: "view"
73508
73561
  },
73562
+ "platformProbe.rescanAccelerators": {
73563
+ capName: "platform-probe",
73564
+ capScope: "system",
73565
+ addonId: null,
73566
+ access: "create"
73567
+ },
73509
73568
  "platformProbe.resolveHwAccel": {
73510
73569
  capName: "platform-probe",
73511
73570
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unifi",
3
- "version": "0.2.144",
3
+ "version": "0.2.145",
4
4
  "description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
5
5
  "keywords": [
6
6
  "camstack",