@camstack/addon-provider-petkit 0.2.52 → 0.2.53
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
|
@@ -8820,7 +8820,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
8820
8820
|
"quota",
|
|
8821
8821
|
"manual",
|
|
8822
8822
|
"operator",
|
|
8823
|
-
"maintenance"
|
|
8823
|
+
"maintenance",
|
|
8824
|
+
"orphaned-device"
|
|
8824
8825
|
]);
|
|
8825
8826
|
/** One audit row, shared verbatim by both domains. */
|
|
8826
8827
|
var OpsLogEntrySchema = object({
|
|
@@ -14132,10 +14133,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
14132
14133
|
deviceId: number(),
|
|
14133
14134
|
data: record(string(), unknown())
|
|
14134
14135
|
});
|
|
14136
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
14137
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
14138
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
14139
|
+
"off",
|
|
14140
|
+
"on",
|
|
14141
|
+
"not-offered",
|
|
14142
|
+
"unreachable"
|
|
14143
|
+
]);
|
|
14144
|
+
var MigrateSwitchReportSchema = object({
|
|
14145
|
+
deviceId: number(),
|
|
14146
|
+
switchId: CameraSwitchIdSchema,
|
|
14147
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
14148
|
+
detail: string().optional()
|
|
14149
|
+
});
|
|
14150
|
+
var MigrateDeviceResultSchema = object({
|
|
14151
|
+
sourceId: number(),
|
|
14152
|
+
targetId: number(),
|
|
14153
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
14154
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
14155
|
+
* value meaning the replaced hardware is quiet. */
|
|
14156
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
14157
|
+
swapped: boolean()
|
|
14158
|
+
});
|
|
14135
14159
|
method(object({
|
|
14136
14160
|
addonId: string(),
|
|
14137
14161
|
stableId: string()
|
|
14138
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
14162
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
14163
|
+
sourceId: number(),
|
|
14164
|
+
targetId: number()
|
|
14165
|
+
}), MigrateDeviceResultSchema, {
|
|
14166
|
+
kind: "mutation",
|
|
14167
|
+
auth: "admin"
|
|
14168
|
+
}), 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({
|
|
14139
14169
|
deviceId: number(),
|
|
14140
14170
|
name: string()
|
|
14141
14171
|
}), _void(), {
|
|
@@ -35138,6 +35168,12 @@ Object.freeze({
|
|
|
35138
35168
|
addonId: null,
|
|
35139
35169
|
access: "view"
|
|
35140
35170
|
},
|
|
35171
|
+
"deviceManager.migrateDevice": {
|
|
35172
|
+
capName: "device-manager",
|
|
35173
|
+
capScope: "system",
|
|
35174
|
+
addonId: null,
|
|
35175
|
+
access: "create"
|
|
35176
|
+
},
|
|
35141
35177
|
"deviceManager.persistConfig": {
|
|
35142
35178
|
capName: "device-manager",
|
|
35143
35179
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -8819,7 +8819,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
8819
8819
|
"quota",
|
|
8820
8820
|
"manual",
|
|
8821
8821
|
"operator",
|
|
8822
|
-
"maintenance"
|
|
8822
|
+
"maintenance",
|
|
8823
|
+
"orphaned-device"
|
|
8823
8824
|
]);
|
|
8824
8825
|
/** One audit row, shared verbatim by both domains. */
|
|
8825
8826
|
var OpsLogEntrySchema = object({
|
|
@@ -14131,10 +14132,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
14131
14132
|
deviceId: number(),
|
|
14132
14133
|
data: record(string(), unknown())
|
|
14133
14134
|
});
|
|
14135
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
14136
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
14137
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
14138
|
+
"off",
|
|
14139
|
+
"on",
|
|
14140
|
+
"not-offered",
|
|
14141
|
+
"unreachable"
|
|
14142
|
+
]);
|
|
14143
|
+
var MigrateSwitchReportSchema = object({
|
|
14144
|
+
deviceId: number(),
|
|
14145
|
+
switchId: CameraSwitchIdSchema,
|
|
14146
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
14147
|
+
detail: string().optional()
|
|
14148
|
+
});
|
|
14149
|
+
var MigrateDeviceResultSchema = object({
|
|
14150
|
+
sourceId: number(),
|
|
14151
|
+
targetId: number(),
|
|
14152
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
14153
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
14154
|
+
* value meaning the replaced hardware is quiet. */
|
|
14155
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
14156
|
+
swapped: boolean()
|
|
14157
|
+
});
|
|
14134
14158
|
method(object({
|
|
14135
14159
|
addonId: string(),
|
|
14136
14160
|
stableId: string()
|
|
14137
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
14161
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
14162
|
+
sourceId: number(),
|
|
14163
|
+
targetId: number()
|
|
14164
|
+
}), MigrateDeviceResultSchema, {
|
|
14165
|
+
kind: "mutation",
|
|
14166
|
+
auth: "admin"
|
|
14167
|
+
}), 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({
|
|
14138
14168
|
deviceId: number(),
|
|
14139
14169
|
name: string()
|
|
14140
14170
|
}), _void(), {
|
|
@@ -35137,6 +35167,12 @@ Object.freeze({
|
|
|
35137
35167
|
addonId: null,
|
|
35138
35168
|
access: "view"
|
|
35139
35169
|
},
|
|
35170
|
+
"deviceManager.migrateDevice": {
|
|
35171
|
+
capName: "device-manager",
|
|
35172
|
+
capScope: "system",
|
|
35173
|
+
addonId: null,
|
|
35174
|
+
access: "create"
|
|
35175
|
+
},
|
|
35140
35176
|
"deviceManager.persistConfig": {
|
|
35141
35177
|
capName: "device-manager",
|
|
35142
35178
|
capScope: "system",
|
package/package.json
CHANGED