@camstack/addon-provider-wyze 0.2.129 → 0.2.130

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
@@ -28935,6 +28935,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28935
28935
  var RestartAddonResultSchema = unknown();
28936
28936
  var InstallPackageResultSchema = unknown();
28937
28937
  var ReloadPackagesResultSchema = unknown();
28938
+ /**
28939
+ * What an uninstall did on ONE node.
28940
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28941
+ * - `not-installed` — the node did not have it (nothing to do).
28942
+ * - `refused` — protected / bootstrap package; nothing touched.
28943
+ * - `failed` — attempted and did not complete; `error` says why.
28944
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28945
+ * back-fill never returns the package, and the stale-addon sweep removes the
28946
+ * copy when the node registers again (only once the hub no longer has it).
28947
+ */
28948
+ var UninstallNodeOutcomeSchema = _enum([
28949
+ "uninstalled",
28950
+ "not-installed",
28951
+ "refused",
28952
+ "failed",
28953
+ "pending-reconnect"
28954
+ ]);
28955
+ var UninstallNodeResultSchema = object({
28956
+ nodeId: string(),
28957
+ outcome: UninstallNodeOutcomeSchema,
28958
+ error: string().optional(),
28959
+ addonIds: array(string()).readonly(),
28960
+ runnersStopped: array(string()).readonly(),
28961
+ warnings: array(string()).readonly()
28962
+ });
28963
+ var UninstallPackageResultSchema = object({
28964
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28965
+ success: boolean(),
28966
+ packageName: string(),
28967
+ results: array(UninstallNodeResultSchema).readonly()
28968
+ });
28969
+ /**
28970
+ * `unreachable` lists online agents whose status read FAILED — absence from
28971
+ * `installations` is only "not installed" for a node that answered (D315).
28972
+ */
28973
+ var PackageInstallationsSchema = object({
28974
+ installations: array(object({
28975
+ packageName: string(),
28976
+ nodeId: string(),
28977
+ nodeName: string(),
28978
+ isHub: boolean(),
28979
+ isOnline: boolean(),
28980
+ version: string().nullable(),
28981
+ addonIds: array(string()).readonly(),
28982
+ source: _enum(["live", "recorded"]),
28983
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28984
+ onHub: boolean()
28985
+ })).readonly(),
28986
+ unreachable: array(object({
28987
+ nodeId: string(),
28988
+ error: string()
28989
+ })).readonly()
28990
+ });
28938
28991
  var BulkUpdateItemStatusSchema = _enum([
28939
28992
  "queued",
28940
28993
  "updating",
@@ -29017,10 +29070,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29017
29070
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29018
29071
  kind: "mutation",
29019
29072
  auth: "admin"
29020
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29073
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29074
+ packageName: string().min(1),
29075
+ nodeId: string().optional(),
29076
+ everywhere: boolean().optional()
29077
+ }), UninstallPackageResultSchema, {
29021
29078
  kind: "mutation",
29022
29079
  auth: "admin"
29023
- }), method(_void(), ReloadPackagesResultSchema, {
29080
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29024
29081
  kind: "mutation",
29025
29082
  auth: "admin"
29026
29083
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -41461,6 +41518,12 @@ Object.freeze({
41461
41518
  addonId: null,
41462
41519
  access: "view"
41463
41520
  },
41521
+ "addons.listInstallations": {
41522
+ capName: "addons",
41523
+ capScope: "system",
41524
+ addonId: null,
41525
+ access: "view"
41526
+ },
41464
41527
  "addons.listJobs": {
41465
41528
  capName: "addons",
41466
41529
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -28914,6 +28914,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28914
28914
  var RestartAddonResultSchema = unknown();
28915
28915
  var InstallPackageResultSchema = unknown();
28916
28916
  var ReloadPackagesResultSchema = unknown();
28917
+ /**
28918
+ * What an uninstall did on ONE node.
28919
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28920
+ * - `not-installed` — the node did not have it (nothing to do).
28921
+ * - `refused` — protected / bootstrap package; nothing touched.
28922
+ * - `failed` — attempted and did not complete; `error` says why.
28923
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28924
+ * back-fill never returns the package, and the stale-addon sweep removes the
28925
+ * copy when the node registers again (only once the hub no longer has it).
28926
+ */
28927
+ var UninstallNodeOutcomeSchema = _enum([
28928
+ "uninstalled",
28929
+ "not-installed",
28930
+ "refused",
28931
+ "failed",
28932
+ "pending-reconnect"
28933
+ ]);
28934
+ var UninstallNodeResultSchema = object({
28935
+ nodeId: string(),
28936
+ outcome: UninstallNodeOutcomeSchema,
28937
+ error: string().optional(),
28938
+ addonIds: array(string()).readonly(),
28939
+ runnersStopped: array(string()).readonly(),
28940
+ warnings: array(string()).readonly()
28941
+ });
28942
+ var UninstallPackageResultSchema = object({
28943
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28944
+ success: boolean(),
28945
+ packageName: string(),
28946
+ results: array(UninstallNodeResultSchema).readonly()
28947
+ });
28948
+ /**
28949
+ * `unreachable` lists online agents whose status read FAILED — absence from
28950
+ * `installations` is only "not installed" for a node that answered (D315).
28951
+ */
28952
+ var PackageInstallationsSchema = object({
28953
+ installations: array(object({
28954
+ packageName: string(),
28955
+ nodeId: string(),
28956
+ nodeName: string(),
28957
+ isHub: boolean(),
28958
+ isOnline: boolean(),
28959
+ version: string().nullable(),
28960
+ addonIds: array(string()).readonly(),
28961
+ source: _enum(["live", "recorded"]),
28962
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28963
+ onHub: boolean()
28964
+ })).readonly(),
28965
+ unreachable: array(object({
28966
+ nodeId: string(),
28967
+ error: string()
28968
+ })).readonly()
28969
+ });
28917
28970
  var BulkUpdateItemStatusSchema = _enum([
28918
28971
  "queued",
28919
28972
  "updating",
@@ -28996,10 +29049,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28996
29049
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28997
29050
  kind: "mutation",
28998
29051
  auth: "admin"
28999
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29052
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29053
+ packageName: string().min(1),
29054
+ nodeId: string().optional(),
29055
+ everywhere: boolean().optional()
29056
+ }), UninstallPackageResultSchema, {
29000
29057
  kind: "mutation",
29001
29058
  auth: "admin"
29002
- }), method(_void(), ReloadPackagesResultSchema, {
29059
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29003
29060
  kind: "mutation",
29004
29061
  auth: "admin"
29005
29062
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -41440,6 +41497,12 @@ Object.freeze({
41440
41497
  addonId: null,
41441
41498
  access: "view"
41442
41499
  },
41500
+ "addons.listInstallations": {
41501
+ capName: "addons",
41502
+ capScope: "system",
41503
+ addonId: null,
41504
+ access: "view"
41505
+ },
41443
41506
  "addons.listJobs": {
41444
41507
  capName: "addons",
41445
41508
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.129",
3
+ "version": "0.2.130",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",