@camstack/addon-terminal 0.1.57 → 0.1.58

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 CHANGED
@@ -7817,7 +7817,8 @@ var OpsLogReasonSchema = _enum([
7817
7817
  "quota",
7818
7818
  "manual",
7819
7819
  "operator",
7820
- "maintenance"
7820
+ "maintenance",
7821
+ "orphaned-device"
7821
7822
  ]);
7822
7823
  /** One audit row, shared verbatim by both domains. */
7823
7824
  var OpsLogEntrySchema = object({
@@ -13057,10 +13058,39 @@ var DevicePersistConfigPayloadSchema = object({
13057
13058
  deviceId: number(),
13058
13059
  data: record(string(), unknown())
13059
13060
  });
13061
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13062
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13063
+ var MigrateSwitchOutcomeSchema = _enum([
13064
+ "off",
13065
+ "on",
13066
+ "not-offered",
13067
+ "unreachable"
13068
+ ]);
13069
+ var MigrateSwitchReportSchema = object({
13070
+ deviceId: number(),
13071
+ switchId: CameraSwitchIdSchema,
13072
+ outcome: MigrateSwitchOutcomeSchema,
13073
+ detail: string().optional()
13074
+ });
13075
+ var MigrateDeviceResultSchema = object({
13076
+ sourceId: number(),
13077
+ targetId: number(),
13078
+ switches: array(MigrateSwitchReportSchema).readonly(),
13079
+ /** Switches that could NOT be turned off on the source. Empty is the only
13080
+ * value meaning the replaced hardware is quiet. */
13081
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13082
+ swapped: boolean()
13083
+ });
13060
13084
  method(object({
13061
13085
  addonId: string(),
13062
13086
  stableId: string()
13063
- }), 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({
13087
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13088
+ sourceId: number(),
13089
+ targetId: number()
13090
+ }), MigrateDeviceResultSchema, {
13091
+ kind: "mutation",
13092
+ auth: "admin"
13093
+ }), 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({
13064
13094
  deviceId: number(),
13065
13095
  name: string()
13066
13096
  }), _void(), {
@@ -34201,6 +34231,12 @@ Object.freeze({
34201
34231
  addonId: null,
34202
34232
  access: "view"
34203
34233
  },
34234
+ "deviceManager.migrateDevice": {
34235
+ capName: "device-manager",
34236
+ capScope: "system",
34237
+ addonId: null,
34238
+ access: "create"
34239
+ },
34204
34240
  "deviceManager.persistConfig": {
34205
34241
  capName: "device-manager",
34206
34242
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -7794,7 +7794,8 @@ var OpsLogReasonSchema = _enum([
7794
7794
  "quota",
7795
7795
  "manual",
7796
7796
  "operator",
7797
- "maintenance"
7797
+ "maintenance",
7798
+ "orphaned-device"
7798
7799
  ]);
7799
7800
  /** One audit row, shared verbatim by both domains. */
7800
7801
  var OpsLogEntrySchema = object({
@@ -13034,10 +13035,39 @@ var DevicePersistConfigPayloadSchema = object({
13034
13035
  deviceId: number(),
13035
13036
  data: record(string(), unknown())
13036
13037
  });
13038
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13039
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13040
+ var MigrateSwitchOutcomeSchema = _enum([
13041
+ "off",
13042
+ "on",
13043
+ "not-offered",
13044
+ "unreachable"
13045
+ ]);
13046
+ var MigrateSwitchReportSchema = object({
13047
+ deviceId: number(),
13048
+ switchId: CameraSwitchIdSchema,
13049
+ outcome: MigrateSwitchOutcomeSchema,
13050
+ detail: string().optional()
13051
+ });
13052
+ var MigrateDeviceResultSchema = object({
13053
+ sourceId: number(),
13054
+ targetId: number(),
13055
+ switches: array(MigrateSwitchReportSchema).readonly(),
13056
+ /** Switches that could NOT be turned off on the source. Empty is the only
13057
+ * value meaning the replaced hardware is quiet. */
13058
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13059
+ swapped: boolean()
13060
+ });
13037
13061
  method(object({
13038
13062
  addonId: string(),
13039
13063
  stableId: string()
13040
- }), 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({
13064
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13065
+ sourceId: number(),
13066
+ targetId: number()
13067
+ }), MigrateDeviceResultSchema, {
13068
+ kind: "mutation",
13069
+ auth: "admin"
13070
+ }), 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({
13041
13071
  deviceId: number(),
13042
13072
  name: string()
13043
13073
  }), _void(), {
@@ -34178,6 +34208,12 @@ Object.freeze({
34178
34208
  addonId: null,
34179
34209
  access: "view"
34180
34210
  },
34211
+ "deviceManager.migrateDevice": {
34212
+ capName: "device-manager",
34213
+ capScope: "system",
34214
+ addonId: null,
34215
+ access: "create"
34216
+ },
34181
34217
  "deviceManager.persistConfig": {
34182
34218
  capName: "device-manager",
34183
34219
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",