@camstack/addon-provider-dreo 0.2.120 → 0.2.121

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
@@ -28815,6 +28815,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28815
28815
  var RestartAddonResultSchema = unknown();
28816
28816
  var InstallPackageResultSchema = unknown();
28817
28817
  var ReloadPackagesResultSchema = unknown();
28818
+ /**
28819
+ * What an uninstall did on ONE node.
28820
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28821
+ * - `not-installed` — the node did not have it (nothing to do).
28822
+ * - `refused` — protected / bootstrap package; nothing touched.
28823
+ * - `failed` — attempted and did not complete; `error` says why.
28824
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28825
+ * back-fill never returns the package, and the stale-addon sweep removes the
28826
+ * copy when the node registers again (only once the hub no longer has it).
28827
+ */
28828
+ var UninstallNodeOutcomeSchema = _enum([
28829
+ "uninstalled",
28830
+ "not-installed",
28831
+ "refused",
28832
+ "failed",
28833
+ "pending-reconnect"
28834
+ ]);
28835
+ var UninstallNodeResultSchema = object({
28836
+ nodeId: string(),
28837
+ outcome: UninstallNodeOutcomeSchema,
28838
+ error: string().optional(),
28839
+ addonIds: array(string()).readonly(),
28840
+ runnersStopped: array(string()).readonly(),
28841
+ warnings: array(string()).readonly()
28842
+ });
28843
+ var UninstallPackageResultSchema = object({
28844
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28845
+ success: boolean(),
28846
+ packageName: string(),
28847
+ results: array(UninstallNodeResultSchema).readonly()
28848
+ });
28849
+ /**
28850
+ * `unreachable` lists online agents whose status read FAILED — absence from
28851
+ * `installations` is only "not installed" for a node that answered (D315).
28852
+ */
28853
+ var PackageInstallationsSchema = object({
28854
+ installations: array(object({
28855
+ packageName: string(),
28856
+ nodeId: string(),
28857
+ nodeName: string(),
28858
+ isHub: boolean(),
28859
+ isOnline: boolean(),
28860
+ version: string().nullable(),
28861
+ addonIds: array(string()).readonly(),
28862
+ source: _enum(["live", "recorded"]),
28863
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28864
+ onHub: boolean()
28865
+ })).readonly(),
28866
+ unreachable: array(object({
28867
+ nodeId: string(),
28868
+ error: string()
28869
+ })).readonly()
28870
+ });
28818
28871
  var BulkUpdateItemStatusSchema = _enum([
28819
28872
  "queued",
28820
28873
  "updating",
@@ -28897,10 +28950,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28897
28950
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28898
28951
  kind: "mutation",
28899
28952
  auth: "admin"
28900
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
28953
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
28954
+ packageName: string().min(1),
28955
+ nodeId: string().optional(),
28956
+ everywhere: boolean().optional()
28957
+ }), UninstallPackageResultSchema, {
28901
28958
  kind: "mutation",
28902
28959
  auth: "admin"
28903
- }), method(_void(), ReloadPackagesResultSchema, {
28960
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28904
28961
  kind: "mutation",
28905
28962
  auth: "admin"
28906
28963
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -41341,6 +41398,12 @@ Object.freeze({
41341
41398
  addonId: null,
41342
41399
  access: "view"
41343
41400
  },
41401
+ "addons.listInstallations": {
41402
+ capName: "addons",
41403
+ capScope: "system",
41404
+ addonId: null,
41405
+ access: "view"
41406
+ },
41344
41407
  "addons.listJobs": {
41345
41408
  capName: "addons",
41346
41409
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -28816,6 +28816,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28816
28816
  var RestartAddonResultSchema = unknown();
28817
28817
  var InstallPackageResultSchema = unknown();
28818
28818
  var ReloadPackagesResultSchema = unknown();
28819
+ /**
28820
+ * What an uninstall did on ONE node.
28821
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28822
+ * - `not-installed` — the node did not have it (nothing to do).
28823
+ * - `refused` — protected / bootstrap package; nothing touched.
28824
+ * - `failed` — attempted and did not complete; `error` says why.
28825
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28826
+ * back-fill never returns the package, and the stale-addon sweep removes the
28827
+ * copy when the node registers again (only once the hub no longer has it).
28828
+ */
28829
+ var UninstallNodeOutcomeSchema = _enum([
28830
+ "uninstalled",
28831
+ "not-installed",
28832
+ "refused",
28833
+ "failed",
28834
+ "pending-reconnect"
28835
+ ]);
28836
+ var UninstallNodeResultSchema = object({
28837
+ nodeId: string(),
28838
+ outcome: UninstallNodeOutcomeSchema,
28839
+ error: string().optional(),
28840
+ addonIds: array(string()).readonly(),
28841
+ runnersStopped: array(string()).readonly(),
28842
+ warnings: array(string()).readonly()
28843
+ });
28844
+ var UninstallPackageResultSchema = object({
28845
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28846
+ success: boolean(),
28847
+ packageName: string(),
28848
+ results: array(UninstallNodeResultSchema).readonly()
28849
+ });
28850
+ /**
28851
+ * `unreachable` lists online agents whose status read FAILED — absence from
28852
+ * `installations` is only "not installed" for a node that answered (D315).
28853
+ */
28854
+ var PackageInstallationsSchema = object({
28855
+ installations: array(object({
28856
+ packageName: string(),
28857
+ nodeId: string(),
28858
+ nodeName: string(),
28859
+ isHub: boolean(),
28860
+ isOnline: boolean(),
28861
+ version: string().nullable(),
28862
+ addonIds: array(string()).readonly(),
28863
+ source: _enum(["live", "recorded"]),
28864
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28865
+ onHub: boolean()
28866
+ })).readonly(),
28867
+ unreachable: array(object({
28868
+ nodeId: string(),
28869
+ error: string()
28870
+ })).readonly()
28871
+ });
28819
28872
  var BulkUpdateItemStatusSchema = _enum([
28820
28873
  "queued",
28821
28874
  "updating",
@@ -28898,10 +28951,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28898
28951
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28899
28952
  kind: "mutation",
28900
28953
  auth: "admin"
28901
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
28954
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
28955
+ packageName: string().min(1),
28956
+ nodeId: string().optional(),
28957
+ everywhere: boolean().optional()
28958
+ }), UninstallPackageResultSchema, {
28902
28959
  kind: "mutation",
28903
28960
  auth: "admin"
28904
- }), method(_void(), ReloadPackagesResultSchema, {
28961
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28905
28962
  kind: "mutation",
28906
28963
  auth: "admin"
28907
28964
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -41342,6 +41399,12 @@ Object.freeze({
41342
41399
  addonId: null,
41343
41400
  access: "view"
41344
41401
  },
41402
+ "addons.listInstallations": {
41403
+ capName: "addons",
41404
+ capScope: "system",
41405
+ addonId: null,
41406
+ access: "view"
41407
+ },
41345
41408
  "addons.listJobs": {
41346
41409
  capName: "addons",
41347
41410
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.120",
3
+ "version": "0.2.121",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",