@camstack/addon-export-alexa 1.2.58 → 1.2.59

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.
@@ -7886,7 +7886,8 @@ var OpsLogReasonSchema = _enum([
7886
7886
  "quota",
7887
7887
  "manual",
7888
7888
  "operator",
7889
- "maintenance"
7889
+ "maintenance",
7890
+ "orphaned-device"
7890
7891
  ]);
7891
7892
  /** One audit row, shared verbatim by both domains. */
7892
7893
  var OpsLogEntrySchema = object({
@@ -13044,10 +13045,39 @@ var DevicePersistConfigPayloadSchema = object({
13044
13045
  deviceId: number(),
13045
13046
  data: record(string(), unknown())
13046
13047
  });
13048
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13049
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13050
+ var MigrateSwitchOutcomeSchema = _enum([
13051
+ "off",
13052
+ "on",
13053
+ "not-offered",
13054
+ "unreachable"
13055
+ ]);
13056
+ var MigrateSwitchReportSchema = object({
13057
+ deviceId: number(),
13058
+ switchId: CameraSwitchIdSchema,
13059
+ outcome: MigrateSwitchOutcomeSchema,
13060
+ detail: string().optional()
13061
+ });
13062
+ var MigrateDeviceResultSchema = object({
13063
+ sourceId: number(),
13064
+ targetId: number(),
13065
+ switches: array(MigrateSwitchReportSchema).readonly(),
13066
+ /** Switches that could NOT be turned off on the source. Empty is the only
13067
+ * value meaning the replaced hardware is quiet. */
13068
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13069
+ swapped: boolean()
13070
+ });
13047
13071
  method(object({
13048
13072
  addonId: string(),
13049
13073
  stableId: string()
13050
- }), object({ id: number() }), { kind: "mutation" }), 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({
13074
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13075
+ sourceId: number(),
13076
+ targetId: number()
13077
+ }), MigrateDeviceResultSchema, {
13078
+ kind: "mutation",
13079
+ auth: "admin"
13080
+ }), 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({
13051
13081
  deviceId: number(),
13052
13082
  name: string()
13053
13083
  }), _void(), {
@@ -30566,6 +30596,12 @@ Object.freeze({
30566
30596
  addonId: null,
30567
30597
  access: "view"
30568
30598
  },
30599
+ "deviceManager.migrateDevice": {
30600
+ capName: "device-manager",
30601
+ capScope: "system",
30602
+ addonId: null,
30603
+ access: "create"
30604
+ },
30569
30605
  "deviceManager.persistConfig": {
30570
30606
  capName: "device-manager",
30571
30607
  capScope: "system",
@@ -7859,7 +7859,8 @@ var OpsLogReasonSchema = _enum([
7859
7859
  "quota",
7860
7860
  "manual",
7861
7861
  "operator",
7862
- "maintenance"
7862
+ "maintenance",
7863
+ "orphaned-device"
7863
7864
  ]);
7864
7865
  /** One audit row, shared verbatim by both domains. */
7865
7866
  var OpsLogEntrySchema = object({
@@ -13017,10 +13018,39 @@ var DevicePersistConfigPayloadSchema = object({
13017
13018
  deviceId: number(),
13018
13019
  data: record(string(), unknown())
13019
13020
  });
13021
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13022
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13023
+ var MigrateSwitchOutcomeSchema = _enum([
13024
+ "off",
13025
+ "on",
13026
+ "not-offered",
13027
+ "unreachable"
13028
+ ]);
13029
+ var MigrateSwitchReportSchema = object({
13030
+ deviceId: number(),
13031
+ switchId: CameraSwitchIdSchema,
13032
+ outcome: MigrateSwitchOutcomeSchema,
13033
+ detail: string().optional()
13034
+ });
13035
+ var MigrateDeviceResultSchema = object({
13036
+ sourceId: number(),
13037
+ targetId: number(),
13038
+ switches: array(MigrateSwitchReportSchema).readonly(),
13039
+ /** Switches that could NOT be turned off on the source. Empty is the only
13040
+ * value meaning the replaced hardware is quiet. */
13041
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13042
+ swapped: boolean()
13043
+ });
13020
13044
  method(object({
13021
13045
  addonId: string(),
13022
13046
  stableId: string()
13023
- }), object({ id: number() }), { kind: "mutation" }), 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({
13047
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13048
+ sourceId: number(),
13049
+ targetId: number()
13050
+ }), MigrateDeviceResultSchema, {
13051
+ kind: "mutation",
13052
+ auth: "admin"
13053
+ }), 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({
13024
13054
  deviceId: number(),
13025
13055
  name: string()
13026
13056
  }), _void(), {
@@ -30539,6 +30569,12 @@ Object.freeze({
30539
30569
  addonId: null,
30540
30570
  access: "view"
30541
30571
  },
30572
+ "deviceManager.migrateDevice": {
30573
+ capName: "device-manager",
30574
+ capScope: "system",
30575
+ addonId: null,
30576
+ access: "create"
30577
+ },
30542
30578
  "deviceManager.persistConfig": {
30543
30579
  capName: "device-manager",
30544
30580
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.58",
3
+ "version": "1.2.59",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",