@camstack/addon-provider-wyze 0.2.56 → 0.2.57
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 +38 -2
- package/dist/addon.mjs +38 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7750,7 +7750,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7750
7750
|
"quota",
|
|
7751
7751
|
"manual",
|
|
7752
7752
|
"operator",
|
|
7753
|
-
"maintenance"
|
|
7753
|
+
"maintenance",
|
|
7754
|
+
"orphaned-device"
|
|
7754
7755
|
]);
|
|
7755
7756
|
/** One audit row, shared verbatim by both domains. */
|
|
7756
7757
|
var OpsLogEntrySchema = object({
|
|
@@ -13062,10 +13063,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13062
13063
|
deviceId: number(),
|
|
13063
13064
|
data: record(string(), unknown())
|
|
13064
13065
|
});
|
|
13066
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13067
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13068
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13069
|
+
"off",
|
|
13070
|
+
"on",
|
|
13071
|
+
"not-offered",
|
|
13072
|
+
"unreachable"
|
|
13073
|
+
]);
|
|
13074
|
+
var MigrateSwitchReportSchema = object({
|
|
13075
|
+
deviceId: number(),
|
|
13076
|
+
switchId: CameraSwitchIdSchema,
|
|
13077
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13078
|
+
detail: string().optional()
|
|
13079
|
+
});
|
|
13080
|
+
var MigrateDeviceResultSchema = object({
|
|
13081
|
+
sourceId: number(),
|
|
13082
|
+
targetId: number(),
|
|
13083
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13084
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13085
|
+
* value meaning the replaced hardware is quiet. */
|
|
13086
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13087
|
+
swapped: boolean()
|
|
13088
|
+
});
|
|
13065
13089
|
method(object({
|
|
13066
13090
|
addonId: string(),
|
|
13067
13091
|
stableId: string()
|
|
13068
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13092
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13093
|
+
sourceId: number(),
|
|
13094
|
+
targetId: number()
|
|
13095
|
+
}), MigrateDeviceResultSchema, {
|
|
13096
|
+
kind: "mutation",
|
|
13097
|
+
auth: "admin"
|
|
13098
|
+
}), 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({
|
|
13069
13099
|
deviceId: number(),
|
|
13070
13100
|
name: string()
|
|
13071
13101
|
}), _void(), {
|
|
@@ -34172,6 +34202,12 @@ Object.freeze({
|
|
|
34172
34202
|
addonId: null,
|
|
34173
34203
|
access: "view"
|
|
34174
34204
|
},
|
|
34205
|
+
"deviceManager.migrateDevice": {
|
|
34206
|
+
capName: "device-manager",
|
|
34207
|
+
capScope: "system",
|
|
34208
|
+
addonId: null,
|
|
34209
|
+
access: "create"
|
|
34210
|
+
},
|
|
34175
34211
|
"deviceManager.persistConfig": {
|
|
34176
34212
|
capName: "device-manager",
|
|
34177
34213
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -7729,7 +7729,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7729
7729
|
"quota",
|
|
7730
7730
|
"manual",
|
|
7731
7731
|
"operator",
|
|
7732
|
-
"maintenance"
|
|
7732
|
+
"maintenance",
|
|
7733
|
+
"orphaned-device"
|
|
7733
7734
|
]);
|
|
7734
7735
|
/** One audit row, shared verbatim by both domains. */
|
|
7735
7736
|
var OpsLogEntrySchema = object({
|
|
@@ -13041,10 +13042,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13041
13042
|
deviceId: number(),
|
|
13042
13043
|
data: record(string(), unknown())
|
|
13043
13044
|
});
|
|
13045
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13046
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13047
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13048
|
+
"off",
|
|
13049
|
+
"on",
|
|
13050
|
+
"not-offered",
|
|
13051
|
+
"unreachable"
|
|
13052
|
+
]);
|
|
13053
|
+
var MigrateSwitchReportSchema = object({
|
|
13054
|
+
deviceId: number(),
|
|
13055
|
+
switchId: CameraSwitchIdSchema,
|
|
13056
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13057
|
+
detail: string().optional()
|
|
13058
|
+
});
|
|
13059
|
+
var MigrateDeviceResultSchema = object({
|
|
13060
|
+
sourceId: number(),
|
|
13061
|
+
targetId: number(),
|
|
13062
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13063
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13064
|
+
* value meaning the replaced hardware is quiet. */
|
|
13065
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13066
|
+
swapped: boolean()
|
|
13067
|
+
});
|
|
13044
13068
|
method(object({
|
|
13045
13069
|
addonId: string(),
|
|
13046
13070
|
stableId: string()
|
|
13047
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13071
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13072
|
+
sourceId: number(),
|
|
13073
|
+
targetId: number()
|
|
13074
|
+
}), MigrateDeviceResultSchema, {
|
|
13075
|
+
kind: "mutation",
|
|
13076
|
+
auth: "admin"
|
|
13077
|
+
}), 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({
|
|
13048
13078
|
deviceId: number(),
|
|
13049
13079
|
name: string()
|
|
13050
13080
|
}), _void(), {
|
|
@@ -34151,6 +34181,12 @@ Object.freeze({
|
|
|
34151
34181
|
addonId: null,
|
|
34152
34182
|
access: "view"
|
|
34153
34183
|
},
|
|
34184
|
+
"deviceManager.migrateDevice": {
|
|
34185
|
+
capName: "device-manager",
|
|
34186
|
+
capScope: "system",
|
|
34187
|
+
addonId: null,
|
|
34188
|
+
access: "create"
|
|
34189
|
+
},
|
|
34154
34190
|
"deviceManager.persistConfig": {
|
|
34155
34191
|
capName: "device-manager",
|
|
34156
34192
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.57",
|
|
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",
|