@camstack/addon-auth 1.2.100 → 1.2.101

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.
@@ -16315,6 +16315,7 @@ var NcSystemEventKindSchema = _enum([
16315
16315
  "addon-crash-loop",
16316
16316
  "addon-update-available",
16317
16317
  "server-update-available",
16318
+ "wrapper-update-available",
16318
16319
  "alarm-triggered",
16319
16320
  "alarm-armed",
16320
16321
  "alarm-disarmed",
@@ -21831,6 +21832,53 @@ var ImageContractSchema = object({
21831
21832
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21832
21833
  message: string()
21833
21834
  });
21835
+ /**
21836
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21837
+ * produced it.
21838
+ *
21839
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21840
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21841
+ * for a `docker` shell and says the app restarts into the new build for
21842
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21843
+ * nothing reads is the defect this repo keeps paying for.
21844
+ */
21845
+ var WrapperIdentitySchema = object({
21846
+ kind: _enum([
21847
+ "docker",
21848
+ "electron",
21849
+ "native",
21850
+ "contradictory",
21851
+ "unknown"
21852
+ ]),
21853
+ /** Every probe that ran, in a stable order. Never empty. */
21854
+ evidence: array(object({
21855
+ /** Which probe this row reports. */
21856
+ fact: _enum([
21857
+ "dockerenv-file",
21858
+ "proc-1-cgroup",
21859
+ "platform",
21860
+ "electron-app-version-env"
21861
+ ]),
21862
+ /**
21863
+ * `observed` — this process read it itself. `declared` — the shell told the
21864
+ * process and nothing here can check it. Only the Electron app version is
21865
+ * ever `declared`, and only because a child cannot see its parent.
21866
+ */
21867
+ mode: _enum(["observed", "declared"]),
21868
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21869
+ holds: boolean(),
21870
+ /** What was actually read, verbatim enough for an operator to argue with. */
21871
+ detail: string()
21872
+ })),
21873
+ /**
21874
+ * The version of the SHELL, when the shell has one it can state: the
21875
+ * Electron app version it declared, or the baked seed closure that
21876
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21877
+ * `unknown` — which version belongs to the shell is precisely what is not
21878
+ * known there.
21879
+ */
21880
+ currentVersion: string().nullable()
21881
+ });
21834
21882
  var ServerRollbackInfoSchema = object({
21835
21883
  /** The version that failed (or was manually rolled back). */
21836
21884
  fromVersion: string(),
@@ -21872,7 +21920,13 @@ var ServerPackageStatusSchema = object({
21872
21920
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21873
21921
  * version skew: an older provider's payload simply omits it.
21874
21922
  */
21875
- imageContract: ImageContractSchema.optional()
21923
+ imageContract: ImageContractSchema.optional(),
21924
+ /**
21925
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21926
+ * for version skew: an older provider's payload simply omits it, and an
21927
+ * absent wrapper is unknown — never `native`.
21928
+ */
21929
+ wrapper: WrapperIdentitySchema.optional()
21876
21930
  });
21877
21931
  var ServerUpdateCheckResultSchema = object({
21878
21932
  packageName: string(),
@@ -16315,6 +16315,7 @@ var NcSystemEventKindSchema = _enum([
16315
16315
  "addon-crash-loop",
16316
16316
  "addon-update-available",
16317
16317
  "server-update-available",
16318
+ "wrapper-update-available",
16318
16319
  "alarm-triggered",
16319
16320
  "alarm-armed",
16320
16321
  "alarm-disarmed",
@@ -21831,6 +21832,53 @@ var ImageContractSchema = object({
21831
21832
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21832
21833
  message: string()
21833
21834
  });
21835
+ /**
21836
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21837
+ * produced it.
21838
+ *
21839
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21840
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21841
+ * for a `docker` shell and says the app restarts into the new build for
21842
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21843
+ * nothing reads is the defect this repo keeps paying for.
21844
+ */
21845
+ var WrapperIdentitySchema = object({
21846
+ kind: _enum([
21847
+ "docker",
21848
+ "electron",
21849
+ "native",
21850
+ "contradictory",
21851
+ "unknown"
21852
+ ]),
21853
+ /** Every probe that ran, in a stable order. Never empty. */
21854
+ evidence: array(object({
21855
+ /** Which probe this row reports. */
21856
+ fact: _enum([
21857
+ "dockerenv-file",
21858
+ "proc-1-cgroup",
21859
+ "platform",
21860
+ "electron-app-version-env"
21861
+ ]),
21862
+ /**
21863
+ * `observed` — this process read it itself. `declared` — the shell told the
21864
+ * process and nothing here can check it. Only the Electron app version is
21865
+ * ever `declared`, and only because a child cannot see its parent.
21866
+ */
21867
+ mode: _enum(["observed", "declared"]),
21868
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21869
+ holds: boolean(),
21870
+ /** What was actually read, verbatim enough for an operator to argue with. */
21871
+ detail: string()
21872
+ })),
21873
+ /**
21874
+ * The version of the SHELL, when the shell has one it can state: the
21875
+ * Electron app version it declared, or the baked seed closure that
21876
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21877
+ * `unknown` — which version belongs to the shell is precisely what is not
21878
+ * known there.
21879
+ */
21880
+ currentVersion: string().nullable()
21881
+ });
21834
21882
  var ServerRollbackInfoSchema = object({
21835
21883
  /** The version that failed (or was manually rolled back). */
21836
21884
  fromVersion: string(),
@@ -21872,7 +21920,13 @@ var ServerPackageStatusSchema = object({
21872
21920
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21873
21921
  * version skew: an older provider's payload simply omits it.
21874
21922
  */
21875
- imageContract: ImageContractSchema.optional()
21923
+ imageContract: ImageContractSchema.optional(),
21924
+ /**
21925
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21926
+ * for version skew: an older provider's payload simply omits it, and an
21927
+ * absent wrapper is unknown — never `native`.
21928
+ */
21929
+ wrapper: WrapperIdentitySchema.optional()
21876
21930
  });
21877
21931
  var ServerUpdateCheckResultSchema = object({
21878
21932
  packageName: string(),
@@ -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-mBKDEzix.js");
6
+ const require_dist = require("../dist-BoTHwMVe.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-BYBXKrVA.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-ojq_iNdv.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-mBKDEzix.js");
6
+ const require_dist = require("../dist-BoTHwMVe.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-BYBXKrVA.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-ojq_iNdv.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.96",
6
+ version: "1.2.97",
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.176",
21
+ version: "1.2.177",
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.144",
36
+ version: "1.2.145",
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-mBKDEzix.js");
6
+ const require_dist = require("../dist-BoTHwMVe.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-BYBXKrVA.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-ojq_iNdv.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.176",
39
+ version: "1.2.177",
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.96",
48
+ version: "1.2.97",
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.144",
84
+ version: "1.2.145",
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-0AyzvnQW.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-I_Gns-Yt.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.100",
3
+ "version": "1.2.101",
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",