@camstack/addon-provider-unifi 0.2.121 → 0.2.122

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
@@ -28875,6 +28875,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28875
28875
  var RestartAddonResultSchema = unknown();
28876
28876
  var InstallPackageResultSchema = unknown();
28877
28877
  var ReloadPackagesResultSchema = unknown();
28878
+ /**
28879
+ * What an uninstall did on ONE node.
28880
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28881
+ * - `not-installed` — the node did not have it (nothing to do).
28882
+ * - `refused` — protected / bootstrap package; nothing touched.
28883
+ * - `failed` — attempted and did not complete; `error` says why.
28884
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28885
+ * back-fill never returns the package, and the stale-addon sweep removes the
28886
+ * copy when the node registers again (only once the hub no longer has it).
28887
+ */
28888
+ var UninstallNodeOutcomeSchema = _enum([
28889
+ "uninstalled",
28890
+ "not-installed",
28891
+ "refused",
28892
+ "failed",
28893
+ "pending-reconnect"
28894
+ ]);
28895
+ var UninstallNodeResultSchema = object({
28896
+ nodeId: string(),
28897
+ outcome: UninstallNodeOutcomeSchema,
28898
+ error: string().optional(),
28899
+ addonIds: array(string()).readonly(),
28900
+ runnersStopped: array(string()).readonly(),
28901
+ warnings: array(string()).readonly()
28902
+ });
28903
+ var UninstallPackageResultSchema = object({
28904
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28905
+ success: boolean(),
28906
+ packageName: string(),
28907
+ results: array(UninstallNodeResultSchema).readonly()
28908
+ });
28909
+ /**
28910
+ * `unreachable` lists online agents whose status read FAILED — absence from
28911
+ * `installations` is only "not installed" for a node that answered (D315).
28912
+ */
28913
+ var PackageInstallationsSchema = object({
28914
+ installations: array(object({
28915
+ packageName: string(),
28916
+ nodeId: string(),
28917
+ nodeName: string(),
28918
+ isHub: boolean(),
28919
+ isOnline: boolean(),
28920
+ version: string().nullable(),
28921
+ addonIds: array(string()).readonly(),
28922
+ source: _enum(["live", "recorded"]),
28923
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28924
+ onHub: boolean()
28925
+ })).readonly(),
28926
+ unreachable: array(object({
28927
+ nodeId: string(),
28928
+ error: string()
28929
+ })).readonly()
28930
+ });
28878
28931
  var BulkUpdateItemStatusSchema = _enum([
28879
28932
  "queued",
28880
28933
  "updating",
@@ -28957,10 +29010,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28957
29010
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28958
29011
  kind: "mutation",
28959
29012
  auth: "admin"
28960
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29013
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29014
+ packageName: string().min(1),
29015
+ nodeId: string().optional(),
29016
+ everywhere: boolean().optional()
29017
+ }), UninstallPackageResultSchema, {
28961
29018
  kind: "mutation",
28962
29019
  auth: "admin"
28963
- }), method(_void(), ReloadPackagesResultSchema, {
29020
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28964
29021
  kind: "mutation",
28965
29022
  auth: "admin"
28966
29023
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -41410,6 +41467,12 @@ Object.freeze({
41410
41467
  addonId: null,
41411
41468
  access: "view"
41412
41469
  },
41470
+ "addons.listInstallations": {
41471
+ capName: "addons",
41472
+ capScope: "system",
41473
+ addonId: null,
41474
+ access: "view"
41475
+ },
41413
41476
  "addons.listJobs": {
41414
41477
  capName: "addons",
41415
41478
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -28874,6 +28874,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28874
28874
  var RestartAddonResultSchema = unknown();
28875
28875
  var InstallPackageResultSchema = unknown();
28876
28876
  var ReloadPackagesResultSchema = unknown();
28877
+ /**
28878
+ * What an uninstall did on ONE node.
28879
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28880
+ * - `not-installed` — the node did not have it (nothing to do).
28881
+ * - `refused` — protected / bootstrap package; nothing touched.
28882
+ * - `failed` — attempted and did not complete; `error` says why.
28883
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28884
+ * back-fill never returns the package, and the stale-addon sweep removes the
28885
+ * copy when the node registers again (only once the hub no longer has it).
28886
+ */
28887
+ var UninstallNodeOutcomeSchema = _enum([
28888
+ "uninstalled",
28889
+ "not-installed",
28890
+ "refused",
28891
+ "failed",
28892
+ "pending-reconnect"
28893
+ ]);
28894
+ var UninstallNodeResultSchema = object({
28895
+ nodeId: string(),
28896
+ outcome: UninstallNodeOutcomeSchema,
28897
+ error: string().optional(),
28898
+ addonIds: array(string()).readonly(),
28899
+ runnersStopped: array(string()).readonly(),
28900
+ warnings: array(string()).readonly()
28901
+ });
28902
+ var UninstallPackageResultSchema = object({
28903
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28904
+ success: boolean(),
28905
+ packageName: string(),
28906
+ results: array(UninstallNodeResultSchema).readonly()
28907
+ });
28908
+ /**
28909
+ * `unreachable` lists online agents whose status read FAILED — absence from
28910
+ * `installations` is only "not installed" for a node that answered (D315).
28911
+ */
28912
+ var PackageInstallationsSchema = object({
28913
+ installations: array(object({
28914
+ packageName: string(),
28915
+ nodeId: string(),
28916
+ nodeName: string(),
28917
+ isHub: boolean(),
28918
+ isOnline: boolean(),
28919
+ version: string().nullable(),
28920
+ addonIds: array(string()).readonly(),
28921
+ source: _enum(["live", "recorded"]),
28922
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28923
+ onHub: boolean()
28924
+ })).readonly(),
28925
+ unreachable: array(object({
28926
+ nodeId: string(),
28927
+ error: string()
28928
+ })).readonly()
28929
+ });
28877
28930
  var BulkUpdateItemStatusSchema = _enum([
28878
28931
  "queued",
28879
28932
  "updating",
@@ -28956,10 +29009,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28956
29009
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28957
29010
  kind: "mutation",
28958
29011
  auth: "admin"
28959
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29012
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29013
+ packageName: string().min(1),
29014
+ nodeId: string().optional(),
29015
+ everywhere: boolean().optional()
29016
+ }), UninstallPackageResultSchema, {
28960
29017
  kind: "mutation",
28961
29018
  auth: "admin"
28962
- }), method(_void(), ReloadPackagesResultSchema, {
29019
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28963
29020
  kind: "mutation",
28964
29021
  auth: "admin"
28965
29022
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -41409,6 +41466,12 @@ Object.freeze({
41409
41466
  addonId: null,
41410
41467
  access: "view"
41411
41468
  },
41469
+ "addons.listInstallations": {
41470
+ capName: "addons",
41471
+ capScope: "system",
41472
+ addonId: null,
41473
+ access: "view"
41474
+ },
41412
41475
  "addons.listJobs": {
41413
41476
  capName: "addons",
41414
41477
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unifi",
3
- "version": "0.2.121",
3
+ "version": "0.2.122",
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",