@camstack/addon-auth 1.2.57 → 1.2.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.
@@ -7832,7 +7832,8 @@ var OpsLogReasonSchema = _enum([
7832
7832
  "quota",
7833
7833
  "manual",
7834
7834
  "operator",
7835
- "maintenance"
7835
+ "maintenance",
7836
+ "orphaned-device"
7836
7837
  ]);
7837
7838
  /** One audit row, shared verbatim by both domains. */
7838
7839
  var OpsLogEntrySchema = object({
@@ -12914,10 +12915,39 @@ var DevicePersistConfigPayloadSchema = object({
12914
12915
  deviceId: number(),
12915
12916
  data: record(string(), unknown())
12916
12917
  });
12918
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12919
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12920
+ var MigrateSwitchOutcomeSchema = _enum([
12921
+ "off",
12922
+ "on",
12923
+ "not-offered",
12924
+ "unreachable"
12925
+ ]);
12926
+ var MigrateSwitchReportSchema = object({
12927
+ deviceId: number(),
12928
+ switchId: CameraSwitchIdSchema,
12929
+ outcome: MigrateSwitchOutcomeSchema,
12930
+ detail: string().optional()
12931
+ });
12932
+ var MigrateDeviceResultSchema = object({
12933
+ sourceId: number(),
12934
+ targetId: number(),
12935
+ switches: array(MigrateSwitchReportSchema).readonly(),
12936
+ /** Switches that could NOT be turned off on the source. Empty is the only
12937
+ * value meaning the replaced hardware is quiet. */
12938
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12939
+ swapped: boolean()
12940
+ });
12917
12941
  method(object({
12918
12942
  addonId: string(),
12919
12943
  stableId: string()
12920
- }), 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({
12944
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12945
+ sourceId: number(),
12946
+ targetId: number()
12947
+ }), MigrateDeviceResultSchema, {
12948
+ kind: "mutation",
12949
+ auth: "admin"
12950
+ }), 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({
12921
12951
  deviceId: number(),
12922
12952
  name: string()
12923
12953
  }), _void(), {
@@ -30463,6 +30493,12 @@ Object.freeze({
30463
30493
  addonId: null,
30464
30494
  access: "view"
30465
30495
  },
30496
+ "deviceManager.migrateDevice": {
30497
+ capName: "device-manager",
30498
+ capScope: "system",
30499
+ addonId: null,
30500
+ access: "create"
30501
+ },
30466
30502
  "deviceManager.persistConfig": {
30467
30503
  capName: "device-manager",
30468
30504
  capScope: "system",
@@ -7832,7 +7832,8 @@ var OpsLogReasonSchema = _enum([
7832
7832
  "quota",
7833
7833
  "manual",
7834
7834
  "operator",
7835
- "maintenance"
7835
+ "maintenance",
7836
+ "orphaned-device"
7836
7837
  ]);
7837
7838
  /** One audit row, shared verbatim by both domains. */
7838
7839
  var OpsLogEntrySchema = object({
@@ -12914,10 +12915,39 @@ var DevicePersistConfigPayloadSchema = object({
12914
12915
  deviceId: number(),
12915
12916
  data: record(string(), unknown())
12916
12917
  });
12918
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12919
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12920
+ var MigrateSwitchOutcomeSchema = _enum([
12921
+ "off",
12922
+ "on",
12923
+ "not-offered",
12924
+ "unreachable"
12925
+ ]);
12926
+ var MigrateSwitchReportSchema = object({
12927
+ deviceId: number(),
12928
+ switchId: CameraSwitchIdSchema,
12929
+ outcome: MigrateSwitchOutcomeSchema,
12930
+ detail: string().optional()
12931
+ });
12932
+ var MigrateDeviceResultSchema = object({
12933
+ sourceId: number(),
12934
+ targetId: number(),
12935
+ switches: array(MigrateSwitchReportSchema).readonly(),
12936
+ /** Switches that could NOT be turned off on the source. Empty is the only
12937
+ * value meaning the replaced hardware is quiet. */
12938
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12939
+ swapped: boolean()
12940
+ });
12917
12941
  method(object({
12918
12942
  addonId: string(),
12919
12943
  stableId: string()
12920
- }), 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({
12944
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12945
+ sourceId: number(),
12946
+ targetId: number()
12947
+ }), MigrateDeviceResultSchema, {
12948
+ kind: "mutation",
12949
+ auth: "admin"
12950
+ }), 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({
12921
12951
  deviceId: number(),
12922
12952
  name: string()
12923
12953
  }), _void(), {
@@ -30463,6 +30493,12 @@ Object.freeze({
30463
30493
  addonId: null,
30464
30494
  access: "view"
30465
30495
  },
30496
+ "deviceManager.migrateDevice": {
30497
+ capName: "device-manager",
30498
+ capScope: "system",
30499
+ addonId: null,
30500
+ access: "create"
30501
+ },
30466
30502
  "deviceManager.persistConfig": {
30467
30503
  capName: "device-manager",
30468
30504
  capScope: "system",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-DMrsaAkq.js");
6
+ const require_dist = require("../dist-DY4Z6N4Y.js");
7
7
  //#region src/magic-link/auth-magic-link.addon.ts
8
8
  /**
9
9
  * Magic-link authentication addon.
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-BH4jvgTO.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-WDj7RQ-c.mjs";
2
2
  //#region src/magic-link/auth-magic-link.addon.ts
3
3
  /**
4
4
  * Magic-link authentication addon.
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-DMrsaAkq.js");
6
+ const require_dist = require("../dist-DY4Z6N4Y.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  node_crypto = require_chunk.__toESM(node_crypto);
9
9
  //#region node_modules/jose/dist/webapi/lib/buffer_utils.js
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-BH4jvgTO.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-WDj7RQ-c.mjs";
2
2
  import * as crypto$1 from "node:crypto";
3
3
  //#region node_modules/jose/dist/webapi/lib/buffer_utils.js
4
4
  var encoder = new TextEncoder();
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.55",
6
+ version: "1.2.56",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_auth_webauthn_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.135",
21
+ version: "1.2.136",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_auth_webauthn_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.101",
36
+ version: "1.2.102",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_auth_webauthn_widgets",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-DMrsaAkq.js");
6
+ const require_dist = require("../dist-DY4Z6N4Y.js");
7
7
  let stream = require("stream");
8
8
  stream = require_chunk.__toESM(stream, 1);
9
9
  let http = require("http");
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, d as number, f as object, l as array, n as addonWidgetsSourceCapability, o as userPasskeysCapability, p as string, u as boolean } from "../dist-BH4jvgTO.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, d as number, f as object, l as array, n as addonWidgetsSourceCapability, o as userPasskeysCapability, p as string, u as boolean } from "../dist-WDj7RQ-c.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import Stream from "stream";
4
4
  import http from "http";
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.135",
39
+ version: "1.2.136",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.55",
48
+ version: "1.2.56",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.101",
84
+ version: "1.2.102",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-C4ZqAzuH.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-D0OUnmzr.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-auth",
3
- "version": "1.2.57",
3
+ "version": "1.2.58",
4
4
  "description": "Authentication bundle — magic-link, OIDC, and WebAuthn/passkey. Multi-entry npm package shipping 3 addons under a single bundle; each addon keeps its own id, capabilities, and runner.",
5
5
  "keywords": [
6
6
  "camstack",