@camstack/addon-remote-storage 1.2.17 → 1.2.19

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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-xQFRTCIN.js");
5
+ const require_shared = require("./shared-C7kobCEN.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-_sLM9Y1A.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-CN_vleSm.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-xQFRTCIN.js");
5
+ const require_shared = require("./shared-C7kobCEN.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-_sLM9Y1A.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CN_vleSm.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -19068,7 +19068,31 @@ DeviceType.Camera, method(object({
19068
19068
  lastCapturedAt: number().nullable(),
19069
19069
  cacheAgeMs: number().nullable(),
19070
19070
  etag: string().nullable()
19071
- }))), systemMethod(object({
19071
+ }))), systemMethod(object({ deviceId: number() }), object({
19072
+ /** The battery slice as read, or null when the device has none. */
19073
+ battery: object({
19074
+ sleeping: boolean(),
19075
+ lastUpdated: number(),
19076
+ lastContactAt: number().optional()
19077
+ }).nullable(),
19078
+ /** The resolved snapshot state (what the overlay decision used). */
19079
+ state: object({
19080
+ isBattery: boolean(),
19081
+ reason: _enum([
19082
+ "disabled",
19083
+ "sleeping",
19084
+ "unreachable",
19085
+ "waking"
19086
+ ]).nullable()
19087
+ }),
19088
+ /** The cached frame behind the next paint. */
19089
+ frame: object({
19090
+ capturedAt: number().nullable(),
19091
+ ageMs: number().nullable()
19092
+ }),
19093
+ /** A wake window is currently open (the Waking overlay's source). */
19094
+ waking: boolean()
19095
+ })), systemMethod(object({
19072
19096
  /** The tiles a surface is actually rendering. One entry per (device,
19073
19097
  * width) the caller will paint — the width is snapped to the server's
19074
19098
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19107,7 +19131,14 @@ targets: array(object({
19107
19131
  "sleeping",
19108
19132
  "unreachable",
19109
19133
  "waking"
19110
- ]).nullable()
19134
+ ]).nullable(),
19135
+ /** A battery camera (whatever its current state). An AWAKE battery
19136
+ * camera is deliberately NOT recaptured on the poll cadence — every
19137
+ * capture is a camera hit that would keep it out of sleep — so its
19138
+ * cached frame legitimately ages past the currency ceiling while
19139
+ * nothing is streaming. A surface must keep painting it (a fresh
19140
+ * frame is captured at each wake), not blank to "unavailable". */
19141
+ battery: boolean()
19111
19142
  })));
19112
19143
  /**
19113
19144
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -30328,6 +30359,12 @@ Object.freeze({
30328
30359
  addonId: null,
30329
30360
  access: "view"
30330
30361
  },
30362
+ "snapshot.getDebugState": {
30363
+ capName: "snapshot",
30364
+ capScope: "device",
30365
+ addonId: null,
30366
+ access: "view"
30367
+ },
30331
30368
  "snapshot.getSnapshot": {
30332
30369
  capName: "snapshot",
30333
30370
  capScope: "device",
@@ -32925,6 +32962,11 @@ Object.freeze({
32925
32962
  form: "single",
32926
32963
  optional: false
32927
32964
  }],
32965
+ "snapshot.getDebugState": [{
32966
+ name: "deviceId",
32967
+ form: "single",
32968
+ optional: false
32969
+ }],
32928
32970
  "snapshot.getSnapshot": [{
32929
32971
  name: "deviceId",
32930
32972
  form: "single",
@@ -19045,7 +19045,31 @@ DeviceType.Camera, method(object({
19045
19045
  lastCapturedAt: number().nullable(),
19046
19046
  cacheAgeMs: number().nullable(),
19047
19047
  etag: string().nullable()
19048
- }))), systemMethod(object({
19048
+ }))), systemMethod(object({ deviceId: number() }), object({
19049
+ /** The battery slice as read, or null when the device has none. */
19050
+ battery: object({
19051
+ sleeping: boolean(),
19052
+ lastUpdated: number(),
19053
+ lastContactAt: number().optional()
19054
+ }).nullable(),
19055
+ /** The resolved snapshot state (what the overlay decision used). */
19056
+ state: object({
19057
+ isBattery: boolean(),
19058
+ reason: _enum([
19059
+ "disabled",
19060
+ "sleeping",
19061
+ "unreachable",
19062
+ "waking"
19063
+ ]).nullable()
19064
+ }),
19065
+ /** The cached frame behind the next paint. */
19066
+ frame: object({
19067
+ capturedAt: number().nullable(),
19068
+ ageMs: number().nullable()
19069
+ }),
19070
+ /** A wake window is currently open (the Waking overlay's source). */
19071
+ waking: boolean()
19072
+ })), systemMethod(object({
19049
19073
  /** The tiles a surface is actually rendering. One entry per (device,
19050
19074
  * width) the caller will paint — the width is snapped to the server's
19051
19075
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19084,7 +19108,14 @@ targets: array(object({
19084
19108
  "sleeping",
19085
19109
  "unreachable",
19086
19110
  "waking"
19087
- ]).nullable()
19111
+ ]).nullable(),
19112
+ /** A battery camera (whatever its current state). An AWAKE battery
19113
+ * camera is deliberately NOT recaptured on the poll cadence — every
19114
+ * capture is a camera hit that would keep it out of sleep — so its
19115
+ * cached frame legitimately ages past the currency ceiling while
19116
+ * nothing is streaming. A surface must keep painting it (a fresh
19117
+ * frame is captured at each wake), not blank to "unavailable". */
19118
+ battery: boolean()
19088
19119
  })));
19089
19120
  /**
19090
19121
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -30305,6 +30336,12 @@ Object.freeze({
30305
30336
  addonId: null,
30306
30337
  access: "view"
30307
30338
  },
30339
+ "snapshot.getDebugState": {
30340
+ capName: "snapshot",
30341
+ capScope: "device",
30342
+ addonId: null,
30343
+ access: "view"
30344
+ },
30308
30345
  "snapshot.getSnapshot": {
30309
30346
  capName: "snapshot",
30310
30347
  capScope: "device",
@@ -32902,6 +32939,11 @@ Object.freeze({
32902
32939
  form: "single",
32903
32940
  optional: false
32904
32941
  }],
32942
+ "snapshot.getDebugState": [{
32943
+ name: "deviceId",
32944
+ form: "single",
32945
+ optional: false
32946
+ }],
32905
32947
  "snapshot.getSnapshot": [{
32906
32948
  name: "deviceId",
32907
32949
  form: "single",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-xQFRTCIN.js");
5
+ const require_shared = require("./shared-C7kobCEN.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-_sLM9Y1A.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CN_vleSm.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",