@camstack/addon-import-alexa 0.2.80 → 0.2.82

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
@@ -12277,6 +12277,9 @@ var QueryFilterSchema = object({
12277
12277
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
12278
12278
  /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
12279
12279
  whereNot: record(string(), unknown()).optional(),
12280
+ /** NULL-safe exclusion of a SET — `whereNot` for more than one value. An
12281
+ * empty list excludes nothing. See `QueryFilter.whereNotIn`. */
12282
+ whereNotIn: record(string(), array(unknown())).optional(),
12280
12283
  orderBy: object({
12281
12284
  field: string(),
12282
12285
  direction: _enum(["asc", "desc"])
@@ -12297,7 +12300,8 @@ var MutationFilterSchema = object({
12297
12300
  where: record(string(), unknown()).optional(),
12298
12301
  whereIn: record(string(), array(unknown())).optional(),
12299
12302
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
12300
- whereNot: record(string(), unknown()).optional()
12303
+ whereNot: record(string(), unknown()).optional(),
12304
+ whereNotIn: record(string(), array(unknown())).optional()
12301
12305
  });
12302
12306
  /**
12303
12307
  * One scalar an {@link settingsStoreCapability.methods.aggregate} call asks for.
@@ -19070,10 +19074,12 @@ var TrackSourceSchema = _enum([
19070
19074
  * Terminal for the plain `markForTrain` toggle: returning it to `staging` is
19071
19075
  * a deliberate action of the retrain page, not a side effect of a checkbox.
19072
19076
  *
19073
- * There is no `null`. The state is stored `TEXT NOT NULL DEFAULT 'none'` because
19074
- * the store's filter language has only positive equality and `whereIn` — no
19075
- * negation, no IS NULL — so a NULL would be unselectable by ANY predicate and
19076
- * would make the entire pre-column history immortal in one deploy.
19077
+ * There is no `null`. The state is stored `TEXT NOT NULL DEFAULT 'none'` so that
19078
+ * every row is selectable by a positive predicate. (The filter language has
19079
+ * since grown the NULL-safe `whereNot` / `whereNotIn` and an `IS NULL` reading
19080
+ * of `where: { f: null }`, which is how {@link TrackSourceSchema} can be
19081
+ * filtered on a NULLABLE column — see `excludeSources`. It did not when this
19082
+ * column was designed, and a NOT NULL column is still the better shape.)
19077
19083
  */
19078
19084
  var RetrainStatusSchema = _enum([
19079
19085
  "none",
@@ -19809,7 +19815,9 @@ var RecentTracksQueryInput = object({
19809
19815
  * whose class list is unreadable are kept, and the client's rule stays the
19810
19816
  * exact one.
19811
19817
  */
19812
- classes: array(string()).optional()
19818
+ classes: array(string()).optional(),
19819
+ /** See {@link ExcludeSourcesDoc}. */
19820
+ excludeSources: array(TrackSourceSchema).optional()
19813
19821
  });
19814
19822
  /**
19815
19823
  * A Summary (D359): the per-camera session envelope that references tracks.
@@ -20237,7 +20245,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20237
20245
  * selected is an operator who has not narrowed anything, and an empty
20238
20246
  * timeline would read as a camera that saw nothing.
20239
20247
  */
20240
- classes: array(string()).optional()
20248
+ classes: array(string()).optional(),
20249
+ /** See {@link ExcludeSourcesDoc}. */
20250
+ excludeSources: array(TrackSourceSchema).optional()
20241
20251
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20242
20252
  kind: "mutation",
20243
20253
  auth: "admin"
@@ -29444,8 +29454,27 @@ var PrivacyMaskRegionSchema = object({
29444
29454
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
29445
29455
  var PrivacyMaskStatusSchema = object({
29446
29456
  enabled: boolean(),
29447
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
29448
- regions: array(PrivacyMaskRegionSchema),
29457
+ /**
29458
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
29459
+ *
29460
+ * `null` means "no answer" — the provider has never reached this camera
29461
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
29462
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
29463
+ * has no zones": those two look identical to an operator right up to the
29464
+ * moment one of them is acted on, and acting on them differs completely.
29465
+ * The switch group turned an unanswered read into *"nothing is set up for
29466
+ * it to act on"* — an instruction to go and draw a zone that already
29467
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
29468
+ * from deleting the mask it could not read.
29469
+ *
29470
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
29471
+ * has no zones. The distinction is the same one {@link
29472
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
29473
+ * microphone, on the very same payload — both planes come from ONE refresh,
29474
+ * so it was never coherent for one of them to be able to say "unknown"
29475
+ * while the other could not.
29476
+ */
29477
+ regions: array(PrivacyMaskRegionSchema).nullable(),
29449
29478
  /**
29450
29479
  * Is the camera capturing sound right now? Read from the camera, never from
29451
29480
  * a server-side mirror.
package/dist/addon.mjs CHANGED
@@ -12277,6 +12277,9 @@ var QueryFilterSchema = object({
12277
12277
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
12278
12278
  /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
12279
12279
  whereNot: record(string(), unknown()).optional(),
12280
+ /** NULL-safe exclusion of a SET — `whereNot` for more than one value. An
12281
+ * empty list excludes nothing. See `QueryFilter.whereNotIn`. */
12282
+ whereNotIn: record(string(), array(unknown())).optional(),
12280
12283
  orderBy: object({
12281
12284
  field: string(),
12282
12285
  direction: _enum(["asc", "desc"])
@@ -12297,7 +12300,8 @@ var MutationFilterSchema = object({
12297
12300
  where: record(string(), unknown()).optional(),
12298
12301
  whereIn: record(string(), array(unknown())).optional(),
12299
12302
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
12300
- whereNot: record(string(), unknown()).optional()
12303
+ whereNot: record(string(), unknown()).optional(),
12304
+ whereNotIn: record(string(), array(unknown())).optional()
12301
12305
  });
12302
12306
  /**
12303
12307
  * One scalar an {@link settingsStoreCapability.methods.aggregate} call asks for.
@@ -19070,10 +19074,12 @@ var TrackSourceSchema = _enum([
19070
19074
  * Terminal for the plain `markForTrain` toggle: returning it to `staging` is
19071
19075
  * a deliberate action of the retrain page, not a side effect of a checkbox.
19072
19076
  *
19073
- * There is no `null`. The state is stored `TEXT NOT NULL DEFAULT 'none'` because
19074
- * the store's filter language has only positive equality and `whereIn` — no
19075
- * negation, no IS NULL — so a NULL would be unselectable by ANY predicate and
19076
- * would make the entire pre-column history immortal in one deploy.
19077
+ * There is no `null`. The state is stored `TEXT NOT NULL DEFAULT 'none'` so that
19078
+ * every row is selectable by a positive predicate. (The filter language has
19079
+ * since grown the NULL-safe `whereNot` / `whereNotIn` and an `IS NULL` reading
19080
+ * of `where: { f: null }`, which is how {@link TrackSourceSchema} can be
19081
+ * filtered on a NULLABLE column — see `excludeSources`. It did not when this
19082
+ * column was designed, and a NOT NULL column is still the better shape.)
19077
19083
  */
19078
19084
  var RetrainStatusSchema = _enum([
19079
19085
  "none",
@@ -19809,7 +19815,9 @@ var RecentTracksQueryInput = object({
19809
19815
  * whose class list is unreadable are kept, and the client's rule stays the
19810
19816
  * exact one.
19811
19817
  */
19812
- classes: array(string()).optional()
19818
+ classes: array(string()).optional(),
19819
+ /** See {@link ExcludeSourcesDoc}. */
19820
+ excludeSources: array(TrackSourceSchema).optional()
19813
19821
  });
19814
19822
  /**
19815
19823
  * A Summary (D359): the per-camera session envelope that references tracks.
@@ -20237,7 +20245,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20237
20245
  * selected is an operator who has not narrowed anything, and an empty
20238
20246
  * timeline would read as a camera that saw nothing.
20239
20247
  */
20240
- classes: array(string()).optional()
20248
+ classes: array(string()).optional(),
20249
+ /** See {@link ExcludeSourcesDoc}. */
20250
+ excludeSources: array(TrackSourceSchema).optional()
20241
20251
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20242
20252
  kind: "mutation",
20243
20253
  auth: "admin"
@@ -29444,8 +29454,27 @@ var PrivacyMaskRegionSchema = object({
29444
29454
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
29445
29455
  var PrivacyMaskStatusSchema = object({
29446
29456
  enabled: boolean(),
29447
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
29448
- regions: array(PrivacyMaskRegionSchema),
29457
+ /**
29458
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
29459
+ *
29460
+ * `null` means "no answer" — the provider has never reached this camera
29461
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
29462
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
29463
+ * has no zones": those two look identical to an operator right up to the
29464
+ * moment one of them is acted on, and acting on them differs completely.
29465
+ * The switch group turned an unanswered read into *"nothing is set up for
29466
+ * it to act on"* — an instruction to go and draw a zone that already
29467
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
29468
+ * from deleting the mask it could not read.
29469
+ *
29470
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
29471
+ * has no zones. The distinction is the same one {@link
29472
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
29473
+ * microphone, on the very same payload — both planes come from ONE refresh,
29474
+ * so it was never coherent for one of them to be able to say "unknown"
29475
+ * while the other could not.
29476
+ */
29477
+ regions: array(PrivacyMaskRegionSchema).nullable(),
29449
29478
  /**
29450
29479
  * Is the camera capturing sound right now? Read from the camera, never from
29451
29480
  * a server-side mirror.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.80",
3
+ "version": "0.2.82",
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",