@camstack/addon-remote-storage 1.2.82 → 1.2.84

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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-CCTASNJI.js");
5
+ const require_shared = require("./shared-GkmTwSS1.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-B5I6yx9T.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-Dd6Ix8wk.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-CCTASNJI.js");
5
+ const require_shared = require("./shared-GkmTwSS1.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-B5I6yx9T.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Dd6Ix8wk.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -18363,11 +18363,30 @@ var SensorEventSchema = object({
18363
18363
  value: record(string(), unknown()).nullable(),
18364
18364
  timestamp: number()
18365
18365
  });
18366
+ /**
18367
+ * One stored sighting on a track's trajectory.
18368
+ *
18369
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18370
+ * arrival order, and the two detector passes interleave, so a consumer must not
18371
+ * assume the two are the same on a row written by an older build.
18372
+ */
18366
18373
  var TrackPositionSchema = object({
18367
18374
  x: number(),
18368
18375
  y: number(),
18369
18376
  timestamp: number(),
18370
- bbox: BoundingBoxSchema
18377
+ bbox: BoundingBoxSchema,
18378
+ /**
18379
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18380
+ * pass on the analysis raster, `recovery` is the native-resolution
18381
+ * small-subject second pass (D377/D378). Both write into one array, and until
18382
+ * this field existed the only way to tell them apart was that full-frame boxes
18383
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18384
+ * Absent on rows written before D399.
18385
+ */
18386
+ source: _enum(["frame", "recovery"]).optional(),
18387
+ /** Detection score of this box, so a position can be weighed and not only
18388
+ * plotted. Absent on rows written before D399. */
18389
+ score: number().optional()
18371
18390
  });
18372
18391
  var TrackSnapshotSchema = object({
18373
18392
  timestamp: number(),
@@ -18767,14 +18786,25 @@ var TrackSchema = object({
18767
18786
  */
18768
18787
  hasRider: boolean().optional(),
18769
18788
  /**
18770
- * WHY this track ended without a NATIVE best-shot tile
18771
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18789
+ * WHY this track ended without a NATIVE best-shot FRAME
18790
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18791
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18772
18792
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18773
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18774
- * the late-keyFrame upgrade when a native tile lands after all. The
18775
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18793
+ * `derive-returned-null tile=standin`,
18794
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18795
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18796
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18776
18797
  * tile is a face/plate stand-in, a raster crop, or an icon.
18777
18798
  *
18799
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18800
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18801
+ * while its key frame missed carried no reason at all — three of the four
18802
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18803
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18804
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18805
+ * lastFrame copy source`), so its absence is now on this line whatever the
18806
+ * tile ended up being.
18807
+ *
18778
18808
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18779
18809
  * that predates the field, and every track whose tile landed native all
18780
18810
  * omit it. Render nothing when absent.
@@ -24168,6 +24198,59 @@ var IdentitySampleInfoSchema = object({
24168
24198
  deviceId: number().int().optional(),
24169
24199
  base64: string().optional()
24170
24200
  });
24201
+ /**
24202
+ * One enrolled sample, judged against the gallery it lives in.
24203
+ *
24204
+ * The gallery is the one input to recognition nobody re-reads: a sample
24205
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24206
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24207
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24208
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24209
+ * where every other cross-identity pair sits under 0.50.
24210
+ */
24211
+ var IdentitySampleAuditRowSchema = object({
24212
+ sampleId: string(),
24213
+ enrolledAt: number().int(),
24214
+ deviceId: number().int().optional(),
24215
+ source: _enum(["detected", "photo"]),
24216
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24217
+ mediaKey: string().optional(),
24218
+ /**
24219
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24220
+ * across feature spaces is a well-formed float with no meaning. Every number
24221
+ * below then says nothing — it must read as "cannot say", never as an
24222
+ * accusation and never as a clean bill: this list ends in a Remove button.
24223
+ */
24224
+ comparable: boolean(),
24225
+ /** Mean cosine against this person's other samples. Null when there are none
24226
+ * to compare with — never 0, which would read as "opposite". */
24227
+ selfMean: number().nullable(),
24228
+ /** The other person this sample looks most like, when it looks like one.
24229
+ * This is the half that convicts: not looking like yourself can be a hard
24230
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24231
+ bestForeign: object({
24232
+ identityId: string(),
24233
+ name: string(),
24234
+ score: number()
24235
+ }).optional(),
24236
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24237
+ suspicion: number()
24238
+ });
24239
+ var IdentitySampleAuditSchema = object({
24240
+ identityId: string(),
24241
+ name: string(),
24242
+ /** The cluster face model every comparison was made in. */
24243
+ modelId: string(),
24244
+ totalSamples: number().int(),
24245
+ comparableSamples: number().int(),
24246
+ flagged: number().int(),
24247
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24248
+ * only its current result. */
24249
+ flagThreshold: number(),
24250
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24251
+ * operator asked to see the gallery, not only its accusations. */
24252
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24253
+ });
24171
24254
  var FaceInfoSchema = object({
24172
24255
  faceId: string(),
24173
24256
  deviceId: number().int(),
@@ -24319,7 +24402,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24319
24402
  }), method(object({ id: string() }), _void(), {
24320
24403
  kind: "mutation",
24321
24404
  auth: "admin"
24322
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24405
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24323
24406
  identityId: string(),
24324
24407
  sampleId: string()
24325
24408
  }), _void(), {
@@ -31546,6 +31629,12 @@ Object.freeze({
31546
31629
  addonId: null,
31547
31630
  access: "create"
31548
31631
  },
31632
+ "faceGallery.auditIdentitySamples": {
31633
+ capName: "face-gallery",
31634
+ capScope: "system",
31635
+ addonId: null,
31636
+ access: "view"
31637
+ },
31549
31638
  "faceGallery.createIdentity": {
31550
31639
  capName: "face-gallery",
31551
31640
  capScope: "system",
@@ -18386,11 +18386,30 @@ var SensorEventSchema = object({
18386
18386
  value: record(string(), unknown()).nullable(),
18387
18387
  timestamp: number()
18388
18388
  });
18389
+ /**
18390
+ * One stored sighting on a track's trajectory.
18391
+ *
18392
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18393
+ * arrival order, and the two detector passes interleave, so a consumer must not
18394
+ * assume the two are the same on a row written by an older build.
18395
+ */
18389
18396
  var TrackPositionSchema = object({
18390
18397
  x: number(),
18391
18398
  y: number(),
18392
18399
  timestamp: number(),
18393
- bbox: BoundingBoxSchema
18400
+ bbox: BoundingBoxSchema,
18401
+ /**
18402
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18403
+ * pass on the analysis raster, `recovery` is the native-resolution
18404
+ * small-subject second pass (D377/D378). Both write into one array, and until
18405
+ * this field existed the only way to tell them apart was that full-frame boxes
18406
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18407
+ * Absent on rows written before D399.
18408
+ */
18409
+ source: _enum(["frame", "recovery"]).optional(),
18410
+ /** Detection score of this box, so a position can be weighed and not only
18411
+ * plotted. Absent on rows written before D399. */
18412
+ score: number().optional()
18394
18413
  });
18395
18414
  var TrackSnapshotSchema = object({
18396
18415
  timestamp: number(),
@@ -18790,14 +18809,25 @@ var TrackSchema = object({
18790
18809
  */
18791
18810
  hasRider: boolean().optional(),
18792
18811
  /**
18793
- * WHY this track ended without a NATIVE best-shot tile
18794
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18812
+ * WHY this track ended without a NATIVE best-shot FRAME
18813
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18814
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18795
18815
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18796
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18797
- * the late-keyFrame upgrade when a native tile lands after all. The
18798
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18816
+ * `derive-returned-null tile=standin`,
18817
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18818
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18819
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18799
18820
  * tile is a face/plate stand-in, a raster crop, or an icon.
18800
18821
  *
18822
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18823
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18824
+ * while its key frame missed carried no reason at all — three of the four
18825
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18826
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18827
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18828
+ * lastFrame copy source`), so its absence is now on this line whatever the
18829
+ * tile ended up being.
18830
+ *
18801
18831
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18802
18832
  * that predates the field, and every track whose tile landed native all
18803
18833
  * omit it. Render nothing when absent.
@@ -24191,6 +24221,59 @@ var IdentitySampleInfoSchema = object({
24191
24221
  deviceId: number().int().optional(),
24192
24222
  base64: string().optional()
24193
24223
  });
24224
+ /**
24225
+ * One enrolled sample, judged against the gallery it lives in.
24226
+ *
24227
+ * The gallery is the one input to recognition nobody re-reads: a sample
24228
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24229
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24230
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24231
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24232
+ * where every other cross-identity pair sits under 0.50.
24233
+ */
24234
+ var IdentitySampleAuditRowSchema = object({
24235
+ sampleId: string(),
24236
+ enrolledAt: number().int(),
24237
+ deviceId: number().int().optional(),
24238
+ source: _enum(["detected", "photo"]),
24239
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24240
+ mediaKey: string().optional(),
24241
+ /**
24242
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24243
+ * across feature spaces is a well-formed float with no meaning. Every number
24244
+ * below then says nothing — it must read as "cannot say", never as an
24245
+ * accusation and never as a clean bill: this list ends in a Remove button.
24246
+ */
24247
+ comparable: boolean(),
24248
+ /** Mean cosine against this person's other samples. Null when there are none
24249
+ * to compare with — never 0, which would read as "opposite". */
24250
+ selfMean: number().nullable(),
24251
+ /** The other person this sample looks most like, when it looks like one.
24252
+ * This is the half that convicts: not looking like yourself can be a hard
24253
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24254
+ bestForeign: object({
24255
+ identityId: string(),
24256
+ name: string(),
24257
+ score: number()
24258
+ }).optional(),
24259
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24260
+ suspicion: number()
24261
+ });
24262
+ var IdentitySampleAuditSchema = object({
24263
+ identityId: string(),
24264
+ name: string(),
24265
+ /** The cluster face model every comparison was made in. */
24266
+ modelId: string(),
24267
+ totalSamples: number().int(),
24268
+ comparableSamples: number().int(),
24269
+ flagged: number().int(),
24270
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24271
+ * only its current result. */
24272
+ flagThreshold: number(),
24273
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24274
+ * operator asked to see the gallery, not only its accusations. */
24275
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24276
+ });
24194
24277
  var FaceInfoSchema = object({
24195
24278
  faceId: string(),
24196
24279
  deviceId: number().int(),
@@ -24342,7 +24425,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24342
24425
  }), method(object({ id: string() }), _void(), {
24343
24426
  kind: "mutation",
24344
24427
  auth: "admin"
24345
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24428
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24346
24429
  identityId: string(),
24347
24430
  sampleId: string()
24348
24431
  }), _void(), {
@@ -31569,6 +31652,12 @@ Object.freeze({
31569
31652
  addonId: null,
31570
31653
  access: "create"
31571
31654
  },
31655
+ "faceGallery.auditIdentitySamples": {
31656
+ capName: "face-gallery",
31657
+ capScope: "system",
31658
+ addonId: null,
31659
+ access: "view"
31660
+ },
31572
31661
  "faceGallery.createIdentity": {
31573
31662
  capName: "face-gallery",
31574
31663
  capScope: "system",
package/dist/smb.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-CCTASNJI.js");
5
+ const require_shared = require("./shared-GkmTwSS1.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-B5I6yx9T.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-Dd6Ix8wk.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import * as path from "node:path";
4
4
  import * as fsp from "node:fs/promises";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-CCTASNJI.js");
5
+ const require_shared = require("./shared-GkmTwSS1.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-B5I6yx9T.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Dd6Ix8wk.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.82",
3
+ "version": "1.2.84",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",