@camstack/addon-remote-storage 1.2.58 → 1.2.60
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-ncQEWVrH.js → shared-61TcI1bp.js} +32 -3
- package/dist/{shared-C5bN6WhL.mjs → shared-DafV_cel.mjs} +32 -3
- 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-61TcI1bp.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-DafV_cel.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-61TcI1bp.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-DafV_cel.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
|
|
@@ -12555,7 +12555,26 @@ var DiscoveryCandidateSchema = object({
|
|
|
12555
12555
|
* identity ahead of adoption. Rendering metadata (unit, precision)
|
|
12556
12556
|
* flows live through the cap STATUS SLICE after adoption.
|
|
12557
12557
|
*/
|
|
12558
|
-
sourceInfo: SourceInfoSchema.optional()
|
|
12558
|
+
sourceInfo: SourceInfoSchema.optional(),
|
|
12559
|
+
/**
|
|
12560
|
+
* Set when this candidate is a device the provider ALREADY owns.
|
|
12561
|
+
*
|
|
12562
|
+
* A scan cannot generally produce the identity a device was onboarded under
|
|
12563
|
+
* (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
|
|
12564
|
+
* comparison never matches and an owned device looks addable. Re-adopting one
|
|
12565
|
+
* overwrites its config with scan-derived values — that is how a Home Hub's
|
|
12566
|
+
* Baichuan port was overwritten with its ONVIF port, taking the hub and its
|
|
12567
|
+
* three child cameras offline for four hours.
|
|
12568
|
+
*
|
|
12569
|
+
* A provider that can recognise its own devices says so here. Absent means
|
|
12570
|
+
* "not recognised", which is not the same as "known to be new" — a provider
|
|
12571
|
+
* that cannot tell simply never sets it.
|
|
12572
|
+
*/
|
|
12573
|
+
alreadyOnboarded: boolean().optional(),
|
|
12574
|
+
/** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
|
|
12575
|
+
onboardedDeviceId: number().optional(),
|
|
12576
|
+
/** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
|
|
12577
|
+
onboardedName: string().optional()
|
|
12559
12578
|
});
|
|
12560
12579
|
/**
|
|
12561
12580
|
* Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
|
|
@@ -12602,7 +12621,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12602
12621
|
id: string(),
|
|
12603
12622
|
name: string(),
|
|
12604
12623
|
type: string()
|
|
12605
|
-
}))), method(object({
|
|
12624
|
+
}))), method(object({ stableId: string() }), object({ deviceId: number() }), {
|
|
12625
|
+
kind: "mutation",
|
|
12626
|
+
timeoutMs: 3 * 6e4
|
|
12627
|
+
}), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
12606
12628
|
kind: "mutation",
|
|
12607
12629
|
auth: "admin"
|
|
12608
12630
|
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
@@ -12883,7 +12905,8 @@ method(object({
|
|
|
12883
12905
|
targetId: number()
|
|
12884
12906
|
}), MigrateDeviceResultSchema, {
|
|
12885
12907
|
kind: "mutation",
|
|
12886
|
-
auth: "admin"
|
|
12908
|
+
auth: "admin",
|
|
12909
|
+
timeoutMs: 12 * 6e4
|
|
12887
12910
|
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
12888
12911
|
deviceId: number(),
|
|
12889
12912
|
name: string()
|
|
@@ -30802,6 +30825,12 @@ Object.freeze({
|
|
|
30802
30825
|
addonId: null,
|
|
30803
30826
|
access: "view"
|
|
30804
30827
|
},
|
|
30828
|
+
"deviceProvider.reloadDevice": {
|
|
30829
|
+
capName: "device-provider",
|
|
30830
|
+
capScope: "system",
|
|
30831
|
+
addonId: null,
|
|
30832
|
+
access: "create"
|
|
30833
|
+
},
|
|
30805
30834
|
"deviceProvider.start": {
|
|
30806
30835
|
capName: "device-provider",
|
|
30807
30836
|
capScope: "system",
|
|
@@ -12532,7 +12532,26 @@ var DiscoveryCandidateSchema = object({
|
|
|
12532
12532
|
* identity ahead of adoption. Rendering metadata (unit, precision)
|
|
12533
12533
|
* flows live through the cap STATUS SLICE after adoption.
|
|
12534
12534
|
*/
|
|
12535
|
-
sourceInfo: SourceInfoSchema.optional()
|
|
12535
|
+
sourceInfo: SourceInfoSchema.optional(),
|
|
12536
|
+
/**
|
|
12537
|
+
* Set when this candidate is a device the provider ALREADY owns.
|
|
12538
|
+
*
|
|
12539
|
+
* A scan cannot generally produce the identity a device was onboarded under
|
|
12540
|
+
* (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
|
|
12541
|
+
* comparison never matches and an owned device looks addable. Re-adopting one
|
|
12542
|
+
* overwrites its config with scan-derived values — that is how a Home Hub's
|
|
12543
|
+
* Baichuan port was overwritten with its ONVIF port, taking the hub and its
|
|
12544
|
+
* three child cameras offline for four hours.
|
|
12545
|
+
*
|
|
12546
|
+
* A provider that can recognise its own devices says so here. Absent means
|
|
12547
|
+
* "not recognised", which is not the same as "known to be new" — a provider
|
|
12548
|
+
* that cannot tell simply never sets it.
|
|
12549
|
+
*/
|
|
12550
|
+
alreadyOnboarded: boolean().optional(),
|
|
12551
|
+
/** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
|
|
12552
|
+
onboardedDeviceId: number().optional(),
|
|
12553
|
+
/** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
|
|
12554
|
+
onboardedName: string().optional()
|
|
12536
12555
|
});
|
|
12537
12556
|
/**
|
|
12538
12557
|
* Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
|
|
@@ -12579,7 +12598,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12579
12598
|
id: string(),
|
|
12580
12599
|
name: string(),
|
|
12581
12600
|
type: string()
|
|
12582
|
-
}))), method(object({
|
|
12601
|
+
}))), method(object({ stableId: string() }), object({ deviceId: number() }), {
|
|
12602
|
+
kind: "mutation",
|
|
12603
|
+
timeoutMs: 3 * 6e4
|
|
12604
|
+
}), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
12583
12605
|
kind: "mutation",
|
|
12584
12606
|
auth: "admin"
|
|
12585
12607
|
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
@@ -12860,7 +12882,8 @@ method(object({
|
|
|
12860
12882
|
targetId: number()
|
|
12861
12883
|
}), MigrateDeviceResultSchema, {
|
|
12862
12884
|
kind: "mutation",
|
|
12863
|
-
auth: "admin"
|
|
12885
|
+
auth: "admin",
|
|
12886
|
+
timeoutMs: 12 * 6e4
|
|
12864
12887
|
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
12865
12888
|
deviceId: number(),
|
|
12866
12889
|
name: string()
|
|
@@ -30779,6 +30802,12 @@ Object.freeze({
|
|
|
30779
30802
|
addonId: null,
|
|
30780
30803
|
access: "view"
|
|
30781
30804
|
},
|
|
30805
|
+
"deviceProvider.reloadDevice": {
|
|
30806
|
+
capName: "device-provider",
|
|
30807
|
+
capScope: "system",
|
|
30808
|
+
addonId: null,
|
|
30809
|
+
access: "create"
|
|
30810
|
+
},
|
|
30782
30811
|
"deviceProvider.start": {
|
|
30783
30812
|
capName: "device-provider",
|
|
30784
30813
|
capScope: "system",
|
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-61TcI1bp.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-DafV_cel.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-61TcI1bp.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-DafV_cel.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