@camstack/addon-auth 1.2.99 → 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",
@@ -19720,7 +19721,17 @@ var EventDensityBucketSchema = object({
19720
19721
  bucketStart: number(),
19721
19722
  motion: number().int(),
19722
19723
  object: number().int(),
19723
- audio: number().int()
19724
+ audio: number().int(),
19725
+ /**
19726
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19727
+ * as opposed to `audio`, which is their COUNT (D431).
19728
+ *
19729
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19730
+ * measured", which is not the same claim as silence, and a lane that cannot
19731
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19732
+ * the count-on-a-level-meter did.
19733
+ */
19734
+ audioDbfs: number().optional()
19724
19735
  });
19725
19736
  /**
19726
19737
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21821,6 +21832,53 @@ var ImageContractSchema = object({
21821
21832
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21822
21833
  message: string()
21823
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
+ });
21824
21882
  var ServerRollbackInfoSchema = object({
21825
21883
  /** The version that failed (or was manually rolled back). */
21826
21884
  fromVersion: string(),
@@ -21862,7 +21920,13 @@ var ServerPackageStatusSchema = object({
21862
21920
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21863
21921
  * version skew: an older provider's payload simply omits it.
21864
21922
  */
21865
- 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()
21866
21930
  });
21867
21931
  var ServerUpdateCheckResultSchema = object({
21868
21932
  packageName: string(),
@@ -27922,7 +27986,23 @@ var RecordingRangeSchema = object({
27922
27986
  });
27923
27987
  var RecordingAvailabilitySchema = object({
27924
27988
  deviceId: number(),
27925
- ranges: array(RecordingRangeSchema)
27989
+ ranges: array(RecordingRangeSchema),
27990
+ /**
27991
+ * Every profile this camera has footage in — not only the one `ranges`
27992
+ * describes (D433).
27993
+ *
27994
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27995
+ * and enumerating all of them triples the directory reads for a bar that
27996
+ * would look identical. But the answer used to say nothing about that, so a
27997
+ * caller asking "what can I export?" read the single preferred profile as
27998
+ * the only one that exists — on this deployment every camera records `high`
27999
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
28000
+ * UI could not see it.
28001
+ *
28002
+ * Cheap: it is the same shallow directory read the profile CHOICE already
28003
+ * makes. Ask for a specific profile's ranges with the `profile` input.
28004
+ */
28005
+ profilesWithFootage: array(string())
27926
28006
  });
27927
28007
  var RecordingDaysSchema = object({
27928
28008
  deviceId: number(),
@@ -27948,7 +28028,11 @@ var RecordingDaysSchema = object({
27948
28028
  var RecordingAvailabilityForDeviceSchema = object({
27949
28029
  deviceId: number(),
27950
28030
  read: _enum(["read", "unreadable"]),
27951
- ranges: array(RecordingRangeSchema).readonly()
28031
+ ranges: array(RecordingRangeSchema).readonly(),
28032
+ /** Same field, same meaning, as the singular answer (D433). A row that
28033
+ * dropped it would tell a grid caller the archive holds one profile.
28034
+ * Empty on an `'unreadable'` row: nobody looked. */
28035
+ profilesWithFootage: array(string()).readonly()
27952
28036
  });
27953
28037
  /**
27954
28038
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28238,7 +28322,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28238
28322
  method(object({
28239
28323
  deviceId: number(),
28240
28324
  fromMs: number(),
28241
- toMs: number()
28325
+ toMs: number(),
28326
+ /**
28327
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28328
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28329
+ * reads. `profilesWithFootage` on the answer says what may be asked
28330
+ * for.
28331
+ */
28332
+ profile: string().optional()
28242
28333
  }), RecordingAvailabilitySchema, {
28243
28334
  kind: "query",
28244
28335
  auth: "protected"
@@ -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",
@@ -19720,7 +19721,17 @@ var EventDensityBucketSchema = object({
19720
19721
  bucketStart: number(),
19721
19722
  motion: number().int(),
19722
19723
  object: number().int(),
19723
- audio: number().int()
19724
+ audio: number().int(),
19725
+ /**
19726
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19727
+ * as opposed to `audio`, which is their COUNT (D431).
19728
+ *
19729
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19730
+ * measured", which is not the same claim as silence, and a lane that cannot
19731
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19732
+ * the count-on-a-level-meter did.
19733
+ */
19734
+ audioDbfs: number().optional()
19724
19735
  });
19725
19736
  /**
19726
19737
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21821,6 +21832,53 @@ var ImageContractSchema = object({
21821
21832
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21822
21833
  message: string()
21823
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
+ });
21824
21882
  var ServerRollbackInfoSchema = object({
21825
21883
  /** The version that failed (or was manually rolled back). */
21826
21884
  fromVersion: string(),
@@ -21862,7 +21920,13 @@ var ServerPackageStatusSchema = object({
21862
21920
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21863
21921
  * version skew: an older provider's payload simply omits it.
21864
21922
  */
21865
- 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()
21866
21930
  });
21867
21931
  var ServerUpdateCheckResultSchema = object({
21868
21932
  packageName: string(),
@@ -27922,7 +27986,23 @@ var RecordingRangeSchema = object({
27922
27986
  });
27923
27987
  var RecordingAvailabilitySchema = object({
27924
27988
  deviceId: number(),
27925
- ranges: array(RecordingRangeSchema)
27989
+ ranges: array(RecordingRangeSchema),
27990
+ /**
27991
+ * Every profile this camera has footage in — not only the one `ranges`
27992
+ * describes (D433).
27993
+ *
27994
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27995
+ * and enumerating all of them triples the directory reads for a bar that
27996
+ * would look identical. But the answer used to say nothing about that, so a
27997
+ * caller asking "what can I export?" read the single preferred profile as
27998
+ * the only one that exists — on this deployment every camera records `high`
27999
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
28000
+ * UI could not see it.
28001
+ *
28002
+ * Cheap: it is the same shallow directory read the profile CHOICE already
28003
+ * makes. Ask for a specific profile's ranges with the `profile` input.
28004
+ */
28005
+ profilesWithFootage: array(string())
27926
28006
  });
27927
28007
  var RecordingDaysSchema = object({
27928
28008
  deviceId: number(),
@@ -27948,7 +28028,11 @@ var RecordingDaysSchema = object({
27948
28028
  var RecordingAvailabilityForDeviceSchema = object({
27949
28029
  deviceId: number(),
27950
28030
  read: _enum(["read", "unreadable"]),
27951
- ranges: array(RecordingRangeSchema).readonly()
28031
+ ranges: array(RecordingRangeSchema).readonly(),
28032
+ /** Same field, same meaning, as the singular answer (D433). A row that
28033
+ * dropped it would tell a grid caller the archive holds one profile.
28034
+ * Empty on an `'unreadable'` row: nobody looked. */
28035
+ profilesWithFootage: array(string()).readonly()
27952
28036
  });
27953
28037
  /**
27954
28038
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28238,7 +28322,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28238
28322
  method(object({
28239
28323
  deviceId: number(),
28240
28324
  fromMs: number(),
28241
- toMs: number()
28325
+ toMs: number(),
28326
+ /**
28327
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28328
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28329
+ * reads. `profilesWithFootage` on the answer says what may be asked
28330
+ * for.
28331
+ */
28332
+ profile: string().optional()
28242
28333
  }), RecordingAvailabilitySchema, {
28243
28334
  kind: "query",
28244
28335
  auth: "protected"
@@ -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-Cv6M4721.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-B4csIGFJ.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-Cv6M4721.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-B4csIGFJ.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.95",
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.175",
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.143",
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-Cv6M4721.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-B4csIGFJ.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.175",
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.95",
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.143",
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-BNgTaJNA.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.99",
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",