@camstack/addon-remote-storage 1.2.95 → 1.2.96

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-CAn4TcNa.js");
5
+ const require_shared = require("./shared-B99wFlH6.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-DfgX737p.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-BOK9gl06.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-CAn4TcNa.js");
5
+ const require_shared = require("./shared-B99wFlH6.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-DfgX737p.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-BOK9gl06.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
@@ -20338,6 +20338,14 @@ var NativeCropResultSchema = object({
20338
20338
  * set `encodeJpeg: true`; `bytes` is then absent.
20339
20339
  */
20340
20340
  jpeg: string().optional(),
20341
+ /**
20342
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20343
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20344
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20345
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20346
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20347
+ */
20348
+ jpegBytes: _instanceof(Uint8Array).optional(),
20341
20349
  width: number().int().positive(),
20342
20350
  height: number().int().positive(),
20343
20351
  /**
@@ -20404,7 +20412,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20404
20412
  })]);
20405
20413
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20406
20414
  var ParkedTrackFrameSchema = object({
20407
- jpeg: string(),
20415
+ /**
20416
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20417
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20418
+ * Exactly one of the two is present.
20419
+ */
20420
+ jpeg: string().optional(),
20421
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20422
+ jpegBytes: _instanceof(Uint8Array).optional(),
20408
20423
  width: number().int().positive(),
20409
20424
  height: number().int().positive(),
20410
20425
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -20991,6 +21006,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20991
21006
  bbox: NativeCropBboxSchema,
20992
21007
  maxWidth: number().int().positive().optional(),
20993
21008
  /**
21009
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21010
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21011
+ * wire — never assume consent: a pre-D462 caller parses the field as
21012
+ * base64 and bytes would decode to garbage rather than fail.
21013
+ */
21014
+ acceptJpegBytes: boolean().optional(),
21015
+ /**
20994
21016
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
20995
21017
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
20996
21018
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21058,7 +21080,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21058
21080
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21059
21081
  deviceId: number(),
21060
21082
  trackId: string(),
21061
- kind: ParkedFrameKindSchema
21083
+ kind: ParkedFrameKindSchema,
21084
+ /**
21085
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21086
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21087
+ * wire — never assume consent: a pre-D462 caller parses the field as
21088
+ * base64 and bytes would decode to garbage rather than fail.
21089
+ */
21090
+ acceptJpegBytes: boolean().optional()
21062
21091
  }), ParkedTrackFrameSchema.nullable()), method(object({
21063
21092
  deviceId: number(),
21064
21093
  trackId: string()
@@ -20315,6 +20315,14 @@ var NativeCropResultSchema = object({
20315
20315
  * set `encodeJpeg: true`; `bytes` is then absent.
20316
20316
  */
20317
20317
  jpeg: string().optional(),
20318
+ /**
20319
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20320
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20321
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20322
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20323
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20324
+ */
20325
+ jpegBytes: _instanceof(Uint8Array).optional(),
20318
20326
  width: number().int().positive(),
20319
20327
  height: number().int().positive(),
20320
20328
  /**
@@ -20381,7 +20389,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20381
20389
  })]);
20382
20390
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20383
20391
  var ParkedTrackFrameSchema = object({
20384
- jpeg: string(),
20392
+ /**
20393
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20394
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20395
+ * Exactly one of the two is present.
20396
+ */
20397
+ jpeg: string().optional(),
20398
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20399
+ jpegBytes: _instanceof(Uint8Array).optional(),
20385
20400
  width: number().int().positive(),
20386
20401
  height: number().int().positive(),
20387
20402
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -20968,6 +20983,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20968
20983
  bbox: NativeCropBboxSchema,
20969
20984
  maxWidth: number().int().positive().optional(),
20970
20985
  /**
20986
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
20987
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
20988
+ * wire — never assume consent: a pre-D462 caller parses the field as
20989
+ * base64 and bytes would decode to garbage rather than fail.
20990
+ */
20991
+ acceptJpegBytes: boolean().optional(),
20992
+ /**
20971
20993
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
20972
20994
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
20973
20995
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21035,7 +21057,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21035
21057
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21036
21058
  deviceId: number(),
21037
21059
  trackId: string(),
21038
- kind: ParkedFrameKindSchema
21060
+ kind: ParkedFrameKindSchema,
21061
+ /**
21062
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21063
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21064
+ * wire — never assume consent: a pre-D462 caller parses the field as
21065
+ * base64 and bytes would decode to garbage rather than fail.
21066
+ */
21067
+ acceptJpegBytes: boolean().optional()
21039
21068
  }), ParkedTrackFrameSchema.nullable()), method(object({
21040
21069
  deviceId: number(),
21041
21070
  trackId: string()
package/dist/smb.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-CAn4TcNa.js");
5
+ const require_shared = require("./shared-B99wFlH6.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-DfgX737p.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-BOK9gl06.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import * as path from "node:path";
4
4
  import * as fsp from "node:fs/promises";
@@ -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-CAn4TcNa.js");
5
+ const require_shared = require("./shared-B99wFlH6.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-DfgX737p.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-BOK9gl06.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.95",
3
+ "version": "1.2.96",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",