@camstack/addon-import-alexa 0.2.91 → 0.2.93

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
@@ -16713,6 +16713,7 @@ var NcSystemEventKindSchema = _enum([
16713
16713
  "addon-crash-loop",
16714
16714
  "addon-update-available",
16715
16715
  "server-update-available",
16716
+ "wrapper-update-available",
16716
16717
  "alarm-triggered",
16717
16718
  "alarm-armed",
16718
16719
  "alarm-disarmed",
@@ -20158,7 +20159,17 @@ var EventDensityBucketSchema = object({
20158
20159
  bucketStart: number(),
20159
20160
  motion: number().int(),
20160
20161
  object: number().int(),
20161
- audio: number().int()
20162
+ audio: number().int(),
20163
+ /**
20164
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20165
+ * as opposed to `audio`, which is their COUNT (D431).
20166
+ *
20167
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20168
+ * measured", which is not the same claim as silence, and a lane that cannot
20169
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20170
+ * the count-on-a-level-meter did.
20171
+ */
20172
+ audioDbfs: number().optional()
20162
20173
  });
20163
20174
  /**
20164
20175
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22259,6 +22270,53 @@ var ImageContractSchema = object({
22259
22270
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22260
22271
  message: string()
22261
22272
  });
22273
+ /**
22274
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22275
+ * produced it.
22276
+ *
22277
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22278
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22279
+ * for a `docker` shell and says the app restarts into the new build for
22280
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22281
+ * nothing reads is the defect this repo keeps paying for.
22282
+ */
22283
+ var WrapperIdentitySchema = object({
22284
+ kind: _enum([
22285
+ "docker",
22286
+ "electron",
22287
+ "native",
22288
+ "contradictory",
22289
+ "unknown"
22290
+ ]),
22291
+ /** Every probe that ran, in a stable order. Never empty. */
22292
+ evidence: array(object({
22293
+ /** Which probe this row reports. */
22294
+ fact: _enum([
22295
+ "dockerenv-file",
22296
+ "proc-1-cgroup",
22297
+ "platform",
22298
+ "electron-app-version-env"
22299
+ ]),
22300
+ /**
22301
+ * `observed` — this process read it itself. `declared` — the shell told the
22302
+ * process and nothing here can check it. Only the Electron app version is
22303
+ * ever `declared`, and only because a child cannot see its parent.
22304
+ */
22305
+ mode: _enum(["observed", "declared"]),
22306
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22307
+ holds: boolean(),
22308
+ /** What was actually read, verbatim enough for an operator to argue with. */
22309
+ detail: string()
22310
+ })),
22311
+ /**
22312
+ * The version of the SHELL, when the shell has one it can state: the
22313
+ * Electron app version it declared, or the baked seed closure that
22314
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22315
+ * `unknown` — which version belongs to the shell is precisely what is not
22316
+ * known there.
22317
+ */
22318
+ currentVersion: string().nullable()
22319
+ });
22262
22320
  var ServerRollbackInfoSchema = object({
22263
22321
  /** The version that failed (or was manually rolled back). */
22264
22322
  fromVersion: string(),
@@ -22300,7 +22358,13 @@ var ServerPackageStatusSchema = object({
22300
22358
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22301
22359
  * version skew: an older provider's payload simply omits it.
22302
22360
  */
22303
- imageContract: ImageContractSchema.optional()
22361
+ imageContract: ImageContractSchema.optional(),
22362
+ /**
22363
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22364
+ * for version skew: an older provider's payload simply omits it, and an
22365
+ * absent wrapper is unknown — never `native`.
22366
+ */
22367
+ wrapper: WrapperIdentitySchema.optional()
22304
22368
  });
22305
22369
  var ServerUpdateCheckResultSchema = object({
22306
22370
  packageName: string(),
@@ -30190,7 +30254,23 @@ var RecordingRangeSchema = object({
30190
30254
  });
30191
30255
  var RecordingAvailabilitySchema = object({
30192
30256
  deviceId: number(),
30193
- ranges: array(RecordingRangeSchema)
30257
+ ranges: array(RecordingRangeSchema),
30258
+ /**
30259
+ * Every profile this camera has footage in — not only the one `ranges`
30260
+ * describes (D433).
30261
+ *
30262
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30263
+ * and enumerating all of them triples the directory reads for a bar that
30264
+ * would look identical. But the answer used to say nothing about that, so a
30265
+ * caller asking "what can I export?" read the single preferred profile as
30266
+ * the only one that exists — on this deployment every camera records `high`
30267
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30268
+ * UI could not see it.
30269
+ *
30270
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30271
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30272
+ */
30273
+ profilesWithFootage: array(string())
30194
30274
  });
30195
30275
  var RecordingDaysSchema = object({
30196
30276
  deviceId: number(),
@@ -30216,7 +30296,11 @@ var RecordingDaysSchema = object({
30216
30296
  var RecordingAvailabilityForDeviceSchema = object({
30217
30297
  deviceId: number(),
30218
30298
  read: _enum(["read", "unreadable"]),
30219
- ranges: array(RecordingRangeSchema).readonly()
30299
+ ranges: array(RecordingRangeSchema).readonly(),
30300
+ /** Same field, same meaning, as the singular answer (D433). A row that
30301
+ * dropped it would tell a grid caller the archive holds one profile.
30302
+ * Empty on an `'unreadable'` row: nobody looked. */
30303
+ profilesWithFootage: array(string()).readonly()
30220
30304
  });
30221
30305
  /**
30222
30306
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30506,7 +30590,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30506
30590
  method(object({
30507
30591
  deviceId: number(),
30508
30592
  fromMs: number(),
30509
- toMs: number()
30593
+ toMs: number(),
30594
+ /**
30595
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30596
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30597
+ * reads. `profilesWithFootage` on the answer says what may be asked
30598
+ * for.
30599
+ */
30600
+ profile: string().optional()
30510
30601
  }), RecordingAvailabilitySchema, {
30511
30602
  kind: "query",
30512
30603
  auth: "protected"
package/dist/addon.mjs CHANGED
@@ -16713,6 +16713,7 @@ var NcSystemEventKindSchema = _enum([
16713
16713
  "addon-crash-loop",
16714
16714
  "addon-update-available",
16715
16715
  "server-update-available",
16716
+ "wrapper-update-available",
16716
16717
  "alarm-triggered",
16717
16718
  "alarm-armed",
16718
16719
  "alarm-disarmed",
@@ -20158,7 +20159,17 @@ var EventDensityBucketSchema = object({
20158
20159
  bucketStart: number(),
20159
20160
  motion: number().int(),
20160
20161
  object: number().int(),
20161
- audio: number().int()
20162
+ audio: number().int(),
20163
+ /**
20164
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20165
+ * as opposed to `audio`, which is their COUNT (D431).
20166
+ *
20167
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20168
+ * measured", which is not the same claim as silence, and a lane that cannot
20169
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20170
+ * the count-on-a-level-meter did.
20171
+ */
20172
+ audioDbfs: number().optional()
20162
20173
  });
20163
20174
  /**
20164
20175
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22259,6 +22270,53 @@ var ImageContractSchema = object({
22259
22270
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22260
22271
  message: string()
22261
22272
  });
22273
+ /**
22274
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22275
+ * produced it.
22276
+ *
22277
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22278
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22279
+ * for a `docker` shell and says the app restarts into the new build for
22280
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22281
+ * nothing reads is the defect this repo keeps paying for.
22282
+ */
22283
+ var WrapperIdentitySchema = object({
22284
+ kind: _enum([
22285
+ "docker",
22286
+ "electron",
22287
+ "native",
22288
+ "contradictory",
22289
+ "unknown"
22290
+ ]),
22291
+ /** Every probe that ran, in a stable order. Never empty. */
22292
+ evidence: array(object({
22293
+ /** Which probe this row reports. */
22294
+ fact: _enum([
22295
+ "dockerenv-file",
22296
+ "proc-1-cgroup",
22297
+ "platform",
22298
+ "electron-app-version-env"
22299
+ ]),
22300
+ /**
22301
+ * `observed` — this process read it itself. `declared` — the shell told the
22302
+ * process and nothing here can check it. Only the Electron app version is
22303
+ * ever `declared`, and only because a child cannot see its parent.
22304
+ */
22305
+ mode: _enum(["observed", "declared"]),
22306
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22307
+ holds: boolean(),
22308
+ /** What was actually read, verbatim enough for an operator to argue with. */
22309
+ detail: string()
22310
+ })),
22311
+ /**
22312
+ * The version of the SHELL, when the shell has one it can state: the
22313
+ * Electron app version it declared, or the baked seed closure that
22314
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22315
+ * `unknown` — which version belongs to the shell is precisely what is not
22316
+ * known there.
22317
+ */
22318
+ currentVersion: string().nullable()
22319
+ });
22262
22320
  var ServerRollbackInfoSchema = object({
22263
22321
  /** The version that failed (or was manually rolled back). */
22264
22322
  fromVersion: string(),
@@ -22300,7 +22358,13 @@ var ServerPackageStatusSchema = object({
22300
22358
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22301
22359
  * version skew: an older provider's payload simply omits it.
22302
22360
  */
22303
- imageContract: ImageContractSchema.optional()
22361
+ imageContract: ImageContractSchema.optional(),
22362
+ /**
22363
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22364
+ * for version skew: an older provider's payload simply omits it, and an
22365
+ * absent wrapper is unknown — never `native`.
22366
+ */
22367
+ wrapper: WrapperIdentitySchema.optional()
22304
22368
  });
22305
22369
  var ServerUpdateCheckResultSchema = object({
22306
22370
  packageName: string(),
@@ -30190,7 +30254,23 @@ var RecordingRangeSchema = object({
30190
30254
  });
30191
30255
  var RecordingAvailabilitySchema = object({
30192
30256
  deviceId: number(),
30193
- ranges: array(RecordingRangeSchema)
30257
+ ranges: array(RecordingRangeSchema),
30258
+ /**
30259
+ * Every profile this camera has footage in — not only the one `ranges`
30260
+ * describes (D433).
30261
+ *
30262
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30263
+ * and enumerating all of them triples the directory reads for a bar that
30264
+ * would look identical. But the answer used to say nothing about that, so a
30265
+ * caller asking "what can I export?" read the single preferred profile as
30266
+ * the only one that exists — on this deployment every camera records `high`
30267
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30268
+ * UI could not see it.
30269
+ *
30270
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30271
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30272
+ */
30273
+ profilesWithFootage: array(string())
30194
30274
  });
30195
30275
  var RecordingDaysSchema = object({
30196
30276
  deviceId: number(),
@@ -30216,7 +30296,11 @@ var RecordingDaysSchema = object({
30216
30296
  var RecordingAvailabilityForDeviceSchema = object({
30217
30297
  deviceId: number(),
30218
30298
  read: _enum(["read", "unreadable"]),
30219
- ranges: array(RecordingRangeSchema).readonly()
30299
+ ranges: array(RecordingRangeSchema).readonly(),
30300
+ /** Same field, same meaning, as the singular answer (D433). A row that
30301
+ * dropped it would tell a grid caller the archive holds one profile.
30302
+ * Empty on an `'unreadable'` row: nobody looked. */
30303
+ profilesWithFootage: array(string()).readonly()
30220
30304
  });
30221
30305
  /**
30222
30306
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30506,7 +30590,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30506
30590
  method(object({
30507
30591
  deviceId: number(),
30508
30592
  fromMs: number(),
30509
- toMs: number()
30593
+ toMs: number(),
30594
+ /**
30595
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30596
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30597
+ * reads. `profilesWithFootage` on the answer says what may be asked
30598
+ * for.
30599
+ */
30600
+ profile: string().optional()
30510
30601
  }), RecordingAvailabilitySchema, {
30511
30602
  kind: "query",
30512
30603
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.91",
3
+ "version": "0.2.93",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",