@camstack/addon-provider-petkit 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
@@ -29881,6 +29881,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29881
29881
  var RestartAddonResultSchema = unknown();
29882
29882
  var InstallPackageResultSchema = unknown();
29883
29883
  var ReloadPackagesResultSchema = unknown();
29884
+ /**
29885
+ * What an uninstall did on ONE node.
29886
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29887
+ * - `not-installed` — the node did not have it (nothing to do).
29888
+ * - `refused` — protected / bootstrap package; nothing touched.
29889
+ * - `failed` — attempted and did not complete; `error` says why.
29890
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29891
+ * back-fill never returns the package, and the stale-addon sweep removes the
29892
+ * copy when the node registers again (only once the hub no longer has it).
29893
+ */
29894
+ var UninstallNodeOutcomeSchema = _enum([
29895
+ "uninstalled",
29896
+ "not-installed",
29897
+ "refused",
29898
+ "failed",
29899
+ "pending-reconnect"
29900
+ ]);
29901
+ var UninstallNodeResultSchema = object({
29902
+ nodeId: string(),
29903
+ outcome: UninstallNodeOutcomeSchema,
29904
+ error: string().optional(),
29905
+ addonIds: array(string()).readonly(),
29906
+ runnersStopped: array(string()).readonly(),
29907
+ warnings: array(string()).readonly()
29908
+ });
29909
+ var UninstallPackageResultSchema = object({
29910
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29911
+ success: boolean(),
29912
+ packageName: string(),
29913
+ results: array(UninstallNodeResultSchema).readonly()
29914
+ });
29915
+ /**
29916
+ * `unreachable` lists online agents whose status read FAILED — absence from
29917
+ * `installations` is only "not installed" for a node that answered (D315).
29918
+ */
29919
+ var PackageInstallationsSchema = object({
29920
+ installations: array(object({
29921
+ packageName: string(),
29922
+ nodeId: string(),
29923
+ nodeName: string(),
29924
+ isHub: boolean(),
29925
+ isOnline: boolean(),
29926
+ version: string().nullable(),
29927
+ addonIds: array(string()).readonly(),
29928
+ source: _enum(["live", "recorded"]),
29929
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29930
+ onHub: boolean()
29931
+ })).readonly(),
29932
+ unreachable: array(object({
29933
+ nodeId: string(),
29934
+ error: string()
29935
+ })).readonly()
29936
+ });
29884
29937
  var BulkUpdateItemStatusSchema = _enum([
29885
29938
  "queued",
29886
29939
  "updating",
@@ -29963,10 +30016,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29963
30016
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29964
30017
  kind: "mutation",
29965
30018
  auth: "admin"
29966
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
30019
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
30020
+ packageName: string().min(1),
30021
+ nodeId: string().optional(),
30022
+ everywhere: boolean().optional()
30023
+ }), UninstallPackageResultSchema, {
29967
30024
  kind: "mutation",
29968
30025
  auth: "admin"
29969
- }), method(_void(), ReloadPackagesResultSchema, {
30026
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29970
30027
  kind: "mutation",
29971
30028
  auth: "admin"
29972
30029
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -42407,6 +42464,12 @@ Object.freeze({
42407
42464
  addonId: null,
42408
42465
  access: "view"
42409
42466
  },
42467
+ "addons.listInstallations": {
42468
+ capName: "addons",
42469
+ capScope: "system",
42470
+ addonId: null,
42471
+ access: "view"
42472
+ },
42410
42473
  "addons.listJobs": {
42411
42474
  capName: "addons",
42412
42475
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -29880,6 +29880,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29880
29880
  var RestartAddonResultSchema = unknown();
29881
29881
  var InstallPackageResultSchema = unknown();
29882
29882
  var ReloadPackagesResultSchema = unknown();
29883
+ /**
29884
+ * What an uninstall did on ONE node.
29885
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29886
+ * - `not-installed` — the node did not have it (nothing to do).
29887
+ * - `refused` — protected / bootstrap package; nothing touched.
29888
+ * - `failed` — attempted and did not complete; `error` says why.
29889
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29890
+ * back-fill never returns the package, and the stale-addon sweep removes the
29891
+ * copy when the node registers again (only once the hub no longer has it).
29892
+ */
29893
+ var UninstallNodeOutcomeSchema = _enum([
29894
+ "uninstalled",
29895
+ "not-installed",
29896
+ "refused",
29897
+ "failed",
29898
+ "pending-reconnect"
29899
+ ]);
29900
+ var UninstallNodeResultSchema = object({
29901
+ nodeId: string(),
29902
+ outcome: UninstallNodeOutcomeSchema,
29903
+ error: string().optional(),
29904
+ addonIds: array(string()).readonly(),
29905
+ runnersStopped: array(string()).readonly(),
29906
+ warnings: array(string()).readonly()
29907
+ });
29908
+ var UninstallPackageResultSchema = object({
29909
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29910
+ success: boolean(),
29911
+ packageName: string(),
29912
+ results: array(UninstallNodeResultSchema).readonly()
29913
+ });
29914
+ /**
29915
+ * `unreachable` lists online agents whose status read FAILED — absence from
29916
+ * `installations` is only "not installed" for a node that answered (D315).
29917
+ */
29918
+ var PackageInstallationsSchema = object({
29919
+ installations: array(object({
29920
+ packageName: string(),
29921
+ nodeId: string(),
29922
+ nodeName: string(),
29923
+ isHub: boolean(),
29924
+ isOnline: boolean(),
29925
+ version: string().nullable(),
29926
+ addonIds: array(string()).readonly(),
29927
+ source: _enum(["live", "recorded"]),
29928
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29929
+ onHub: boolean()
29930
+ })).readonly(),
29931
+ unreachable: array(object({
29932
+ nodeId: string(),
29933
+ error: string()
29934
+ })).readonly()
29935
+ });
29883
29936
  var BulkUpdateItemStatusSchema = _enum([
29884
29937
  "queued",
29885
29938
  "updating",
@@ -29962,10 +30015,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29962
30015
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29963
30016
  kind: "mutation",
29964
30017
  auth: "admin"
29965
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
30018
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
30019
+ packageName: string().min(1),
30020
+ nodeId: string().optional(),
30021
+ everywhere: boolean().optional()
30022
+ }), UninstallPackageResultSchema, {
29966
30023
  kind: "mutation",
29967
30024
  auth: "admin"
29968
- }), method(_void(), ReloadPackagesResultSchema, {
30025
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29969
30026
  kind: "mutation",
29970
30027
  auth: "admin"
29971
30028
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -42406,6 +42463,12 @@ Object.freeze({
42406
42463
  addonId: null,
42407
42464
  access: "view"
42408
42465
  },
42466
+ "addons.listInstallations": {
42467
+ capName: "addons",
42468
+ capScope: "system",
42469
+ addonId: null,
42470
+ access: "view"
42471
+ },
42409
42472
  "addons.listJobs": {
42410
42473
  capName: "addons",
42411
42474
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.120",
3
+ "version": "0.2.121",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",