@camstack/addon-remote-storage 1.2.106 → 1.2.108
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 +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-cuWwejpK.js → shared-BBpkMEmi.js} +54 -2
- package/dist/{shared-DEmtCoWA.mjs → shared-Ds3OlVc2.mjs} +54 -2
- package/dist/smb.addon.js +1 -1
- package/dist/smb.addon.mjs +1 -1
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.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-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-Ds3OlVc2.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";
|
package/dist/sftp.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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -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-
|
|
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-Ds3OlVc2.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
|
|
@@ -12271,7 +12271,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12271
12271
|
* This is what lets one picker serve both the bypass and the full source
|
|
12272
12272
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12273
12273
|
*/
|
|
12274
|
-
allowTranscode: boolean().optional()
|
|
12274
|
+
allowTranscode: boolean().optional(),
|
|
12275
|
+
/**
|
|
12276
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12277
|
+
*
|
|
12278
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12279
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12280
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12281
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12282
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12283
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12284
|
+
*
|
|
12285
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12286
|
+
* here when it decides which source to BIND to a slot
|
|
12287
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12288
|
+
* could never bind them.
|
|
12289
|
+
*/
|
|
12290
|
+
requireProfileBound: boolean().optional()
|
|
12275
12291
|
}).readonly();
|
|
12276
12292
|
var PickStreamPreferencesSchema = object({
|
|
12277
12293
|
/**
|
|
@@ -12312,7 +12328,43 @@ var PickedCamStreamSchema = object({
|
|
|
12312
12328
|
*/
|
|
12313
12329
|
transcodes: boolean(),
|
|
12314
12330
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12315
|
-
reason: string()
|
|
12331
|
+
reason: string(),
|
|
12332
|
+
/**
|
|
12333
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12334
|
+
*
|
|
12335
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12336
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12337
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12338
|
+
* the same function a second time.
|
|
12339
|
+
*
|
|
12340
|
+
* Absent when the source has no slot, which a caller passing
|
|
12341
|
+
* `requireProfileBound` can never see.
|
|
12342
|
+
*/
|
|
12343
|
+
profile: CamProfileSchema.optional(),
|
|
12344
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12345
|
+
brokerId: string().optional(),
|
|
12346
|
+
/**
|
|
12347
|
+
* The broker restream URL to dial for this stream.
|
|
12348
|
+
*
|
|
12349
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12350
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12351
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12352
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12353
|
+
*/
|
|
12354
|
+
url: string().optional(),
|
|
12355
|
+
/**
|
|
12356
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12357
|
+
* from.
|
|
12358
|
+
*
|
|
12359
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12360
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12361
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12362
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12363
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12364
|
+
* are not interchangeable.
|
|
12365
|
+
*/
|
|
12366
|
+
fps: number().positive().optional(),
|
|
12367
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12316
12368
|
});
|
|
12317
12369
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12318
12370
|
deviceId: number().int().nonnegative(),
|
|
@@ -12248,7 +12248,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12248
12248
|
* This is what lets one picker serve both the bypass and the full source
|
|
12249
12249
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12250
12250
|
*/
|
|
12251
|
-
allowTranscode: boolean().optional()
|
|
12251
|
+
allowTranscode: boolean().optional(),
|
|
12252
|
+
/**
|
|
12253
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12254
|
+
*
|
|
12255
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12256
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12257
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12258
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12259
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12260
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12261
|
+
*
|
|
12262
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12263
|
+
* here when it decides which source to BIND to a slot
|
|
12264
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12265
|
+
* could never bind them.
|
|
12266
|
+
*/
|
|
12267
|
+
requireProfileBound: boolean().optional()
|
|
12252
12268
|
}).readonly();
|
|
12253
12269
|
var PickStreamPreferencesSchema = object({
|
|
12254
12270
|
/**
|
|
@@ -12289,7 +12305,43 @@ var PickedCamStreamSchema = object({
|
|
|
12289
12305
|
*/
|
|
12290
12306
|
transcodes: boolean(),
|
|
12291
12307
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12292
|
-
reason: string()
|
|
12308
|
+
reason: string(),
|
|
12309
|
+
/**
|
|
12310
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12311
|
+
*
|
|
12312
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12313
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12314
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12315
|
+
* the same function a second time.
|
|
12316
|
+
*
|
|
12317
|
+
* Absent when the source has no slot, which a caller passing
|
|
12318
|
+
* `requireProfileBound` can never see.
|
|
12319
|
+
*/
|
|
12320
|
+
profile: CamProfileSchema.optional(),
|
|
12321
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12322
|
+
brokerId: string().optional(),
|
|
12323
|
+
/**
|
|
12324
|
+
* The broker restream URL to dial for this stream.
|
|
12325
|
+
*
|
|
12326
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12327
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12328
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12329
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12330
|
+
*/
|
|
12331
|
+
url: string().optional(),
|
|
12332
|
+
/**
|
|
12333
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12334
|
+
* from.
|
|
12335
|
+
*
|
|
12336
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12337
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12338
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12339
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12340
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12341
|
+
* are not interchangeable.
|
|
12342
|
+
*/
|
|
12343
|
+
fps: number().positive().optional(),
|
|
12344
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12293
12345
|
});
|
|
12294
12346
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12295
12347
|
deviceId: number().int().nonnegative(),
|
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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.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);
|
package/dist/smb.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-Ds3OlVc2.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";
|
package/dist/webdav.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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.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
|
package/dist/webdav.addon.mjs
CHANGED
|
@@ -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-
|
|
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-Ds3OlVc2.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