@camstack/addon-import-alexa 0.2.133 → 0.2.135

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
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
5586
5586
  var ZodFirstPartyTypeKind;
5587
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5588
5588
  //#endregion
5589
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5589
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5590
5590
  /**
5591
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5592
5592
  * window to float samples (D455).
@@ -8204,7 +8204,13 @@ var RecordKindDeclarationSchema = object({
8204
8204
  secretPaths: array(string().min(1)).default([]),
8205
8205
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8206
8206
  secretArrayKeys: record(string(), string()).default({}),
8207
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8207
+ /**
8208
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8209
+ * migration. Nothing declares it any more and nothing reads it; the schema
8210
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8211
+ * (an orphaned kind is never redeclared) and an addon built before the
8212
+ * removal still sends it. Never set it.
8213
+ */
8208
8214
  adoptsFrom: string().min(1).optional(),
8209
8215
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8210
8216
  transactFamily: string().min(1).optional(),
@@ -8279,7 +8285,6 @@ function defineRecordKinds(specs) {
8279
8285
  maxDataBytes: spec.maxDataBytes,
8280
8286
  secretPaths: [...secretPaths],
8281
8287
  secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
8282
- adoptsFrom: spec.adoptsFrom,
8283
8288
  transactFamily: spec.transactFamily,
8284
8289
  entry: spec.entry === void 0 ? void 0 : {
8285
8290
  title: spec.entry.title,
@@ -8323,7 +8328,6 @@ function defineEntryKind(name, spec) {
8323
8328
  ...spec.database === void 0 ? {} : { database: spec.database },
8324
8329
  ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
8325
8330
  ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
8326
- ...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
8327
8331
  entry: {
8328
8332
  title: spec.title,
8329
8333
  ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
@@ -8332,16 +8336,6 @@ function defineEntryKind(name, spec) {
8332
8336
  if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
8333
8337
  return defined;
8334
8338
  }
8335
- /**
8336
- * Legacy source for broker entry adoption (B2): brokers live in addon-settings
8337
- * as one row `<addonId>.brokers` whose value is an array until records-adopt
8338
- * copies them into the entry kind.
8339
- */
8340
- var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
8341
- /** The `adoptsFrom` value for an addon's broker entry kind. */
8342
- function settingsBrokersAdoptsFrom(addonId) {
8343
- return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
8344
- }
8345
8339
  /** Shared Zod schemas used across streaming capabilities. */
8346
8340
  var CamProfileSchema = _enum([
8347
8341
  "high",
@@ -17191,11 +17185,12 @@ var DeclareKindResultSchema = object({
17191
17185
  kindId: number().int(),
17192
17186
  state: RecordKindStateSchema,
17193
17187
  createdIndexes: array(string()),
17194
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17195
- adoptionPending: object({
17196
- legacyTable: string(),
17197
- legacyRows: number().int()
17198
- }).nullable()
17188
+ /**
17189
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17190
+ * it stays on the wire, null, because an addon built before the removal reads
17191
+ * an ABSENT field as "adoption pending" and refuses to start.
17192
+ */
17193
+ adoptionPending: _null()
17199
17194
  });
17200
17195
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17201
17196
  var SecretRefsList = array(string());
@@ -17368,26 +17363,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17368
17363
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17369
17364
  owner: string().min(1),
17370
17365
  kind: RecordKindNameSchema
17371
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17372
- owner: string().min(1),
17373
- kind: RecordKindNameSchema,
17374
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17375
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17376
- complete: boolean().optional()
17377
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17378
- kind: "mutation",
17379
- auth: "admin"
17380
- }), method(object({
17381
- collection: string().min(1),
17382
- cursor: string().optional(),
17383
- limit: number().int().min(1).max(1e3).optional()
17384
- }), object({
17385
- rows: array(object({
17386
- id: string(),
17387
- data: record(string(), unknown())
17388
- })),
17389
- nextCursor: string().nullable()
17390
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17366
+ }), RecordQueryResultSchema, { auth: "admin" });
17391
17367
  /**
17392
17368
  * record-entries - the ONE admin surface for every list of user-created entries
17393
17369
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60915,9 +60891,24 @@ var NpuInfoSchema = object({
60915
60891
  name: string().optional(),
60916
60892
  generation: _enum(["xdna1", "xdna2"]).optional()
60917
60893
  });
60894
+ var CoralBusSchema = _enum(["usb", "pci"]);
60918
60895
  var CoralInfoSchema = object({
60919
60896
  type: literal("coral-edgetpu"),
60920
- bus: string().optional()
60897
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60898
+ bus: string().optional(),
60899
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60900
+ count: number().int().nonnegative().optional(),
60901
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60902
+ units: array(object({
60903
+ bus: CoralBusSchema,
60904
+ count: number().int().nonnegative()
60905
+ })).readonly().optional(),
60906
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60907
+ unavailable: array(object({
60908
+ bus: CoralBusSchema,
60909
+ count: number().int().nonnegative(),
60910
+ reason: _enum(["driver-missing", "device-not-accessible"])
60911
+ })).readonly().optional()
60921
60912
  });
60922
60913
  var HardwareInfoSchema = object({
60923
60914
  platform: HardwarePlatformSchema,
@@ -69664,6 +69655,12 @@ Object.freeze({
69664
69655
  addonId: null,
69665
69656
  access: "view"
69666
69657
  },
69658
+ "deviceHistory.queryMany": {
69659
+ capName: "device-history",
69660
+ capScope: "system",
69661
+ addonId: null,
69662
+ access: "view"
69663
+ },
69667
69664
  "deviceHistory.queryNode": {
69668
69665
  capName: "device-history",
69669
69666
  capScope: "system",
@@ -74884,24 +74881,12 @@ Object.freeze({
74884
74881
  addonId: null,
74885
74882
  access: "create"
74886
74883
  },
74887
- "storageAdmin.adoptRecords": {
74888
- capName: "storage-admin",
74889
- capScope: "system",
74890
- addonId: null,
74891
- access: "create"
74892
- },
74893
74884
  "storageAdmin.dropCollection": {
74894
74885
  capName: "storage-admin",
74895
74886
  capScope: "system",
74896
74887
  addonId: null,
74897
74888
  access: "delete"
74898
74889
  },
74899
- "storageAdmin.isAdoptedLegacyTable": {
74900
- capName: "storage-admin",
74901
- capScope: "system",
74902
- addonId: null,
74903
- access: "view"
74904
- },
74905
74890
  "storageAdmin.listKinds": {
74906
74891
  capName: "storage-admin",
74907
74892
  capScope: "system",
@@ -74914,12 +74899,6 @@ Object.freeze({
74914
74899
  addonId: null,
74915
74900
  access: "view"
74916
74901
  },
74917
- "storageAdmin.readLegacyCollection": {
74918
- capName: "storage-admin",
74919
- capScope: "system",
74920
- addonId: null,
74921
- access: "view"
74922
- },
74923
74902
  "storageAdmin.readRecords": {
74924
74903
  capName: "storage-admin",
74925
74904
  capScope: "system",
@@ -78734,12 +78713,6 @@ Object.freeze({
78734
78713
  form: "single",
78735
78714
  optional: false
78736
78715
  }],
78737
- "storageAdmin.adoptRecords": [{
78738
- name: "records",
78739
- form: "object-array",
78740
- optional: false,
78741
- itemField: "deviceId"
78742
- }],
78743
78716
  "storageAdmin.readRecords": [{
78744
78717
  name: "deviceId",
78745
78718
  form: "single",
@@ -123727,8 +123700,7 @@ var alexaBrokersEntryKind = defineEntryKind("brokers", {
123727
123700
  connection: AlexaBrokerEntrySchema.shape.connection,
123728
123701
  integrationId: string().optional()
123729
123702
  }),
123730
- writeTrigger: "an operator links or removes an Alexa account broker",
123731
- adoptsFrom: settingsBrokersAdoptsFrom("import-alexa")
123703
+ writeTrigger: "an operator links or removes an Alexa account broker"
123732
123704
  });
123733
123705
  //#endregion
123734
123706
  //#region src/alexa-broker-store.ts
package/dist/addon.mjs CHANGED
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
5586
5586
  var ZodFirstPartyTypeKind;
5587
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5588
5588
  //#endregion
5589
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5589
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5590
5590
  /**
5591
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5592
5592
  * window to float samples (D455).
@@ -8204,7 +8204,13 @@ var RecordKindDeclarationSchema = object({
8204
8204
  secretPaths: array(string().min(1)).default([]),
8205
8205
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8206
8206
  secretArrayKeys: record(string(), string()).default({}),
8207
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8207
+ /**
8208
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8209
+ * migration. Nothing declares it any more and nothing reads it; the schema
8210
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8211
+ * (an orphaned kind is never redeclared) and an addon built before the
8212
+ * removal still sends it. Never set it.
8213
+ */
8208
8214
  adoptsFrom: string().min(1).optional(),
8209
8215
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8210
8216
  transactFamily: string().min(1).optional(),
@@ -8279,7 +8285,6 @@ function defineRecordKinds(specs) {
8279
8285
  maxDataBytes: spec.maxDataBytes,
8280
8286
  secretPaths: [...secretPaths],
8281
8287
  secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
8282
- adoptsFrom: spec.adoptsFrom,
8283
8288
  transactFamily: spec.transactFamily,
8284
8289
  entry: spec.entry === void 0 ? void 0 : {
8285
8290
  title: spec.entry.title,
@@ -8323,7 +8328,6 @@ function defineEntryKind(name, spec) {
8323
8328
  ...spec.database === void 0 ? {} : { database: spec.database },
8324
8329
  ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
8325
8330
  ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
8326
- ...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
8327
8331
  entry: {
8328
8332
  title: spec.title,
8329
8333
  ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
@@ -8332,16 +8336,6 @@ function defineEntryKind(name, spec) {
8332
8336
  if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
8333
8337
  return defined;
8334
8338
  }
8335
- /**
8336
- * Legacy source for broker entry adoption (B2): brokers live in addon-settings
8337
- * as one row `<addonId>.brokers` whose value is an array until records-adopt
8338
- * copies them into the entry kind.
8339
- */
8340
- var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
8341
- /** The `adoptsFrom` value for an addon's broker entry kind. */
8342
- function settingsBrokersAdoptsFrom(addonId) {
8343
- return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
8344
- }
8345
8339
  /** Shared Zod schemas used across streaming capabilities. */
8346
8340
  var CamProfileSchema = _enum([
8347
8341
  "high",
@@ -17191,11 +17185,12 @@ var DeclareKindResultSchema = object({
17191
17185
  kindId: number().int(),
17192
17186
  state: RecordKindStateSchema,
17193
17187
  createdIndexes: array(string()),
17194
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17195
- adoptionPending: object({
17196
- legacyTable: string(),
17197
- legacyRows: number().int()
17198
- }).nullable()
17188
+ /**
17189
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17190
+ * it stays on the wire, null, because an addon built before the removal reads
17191
+ * an ABSENT field as "adoption pending" and refuses to start.
17192
+ */
17193
+ adoptionPending: _null()
17199
17194
  });
17200
17195
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17201
17196
  var SecretRefsList = array(string());
@@ -17368,26 +17363,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17368
17363
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17369
17364
  owner: string().min(1),
17370
17365
  kind: RecordKindNameSchema
17371
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17372
- owner: string().min(1),
17373
- kind: RecordKindNameSchema,
17374
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17375
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17376
- complete: boolean().optional()
17377
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17378
- kind: "mutation",
17379
- auth: "admin"
17380
- }), method(object({
17381
- collection: string().min(1),
17382
- cursor: string().optional(),
17383
- limit: number().int().min(1).max(1e3).optional()
17384
- }), object({
17385
- rows: array(object({
17386
- id: string(),
17387
- data: record(string(), unknown())
17388
- })),
17389
- nextCursor: string().nullable()
17390
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17366
+ }), RecordQueryResultSchema, { auth: "admin" });
17391
17367
  /**
17392
17368
  * record-entries - the ONE admin surface for every list of user-created entries
17393
17369
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60915,9 +60891,24 @@ var NpuInfoSchema = object({
60915
60891
  name: string().optional(),
60916
60892
  generation: _enum(["xdna1", "xdna2"]).optional()
60917
60893
  });
60894
+ var CoralBusSchema = _enum(["usb", "pci"]);
60918
60895
  var CoralInfoSchema = object({
60919
60896
  type: literal("coral-edgetpu"),
60920
- bus: string().optional()
60897
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60898
+ bus: string().optional(),
60899
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60900
+ count: number().int().nonnegative().optional(),
60901
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60902
+ units: array(object({
60903
+ bus: CoralBusSchema,
60904
+ count: number().int().nonnegative()
60905
+ })).readonly().optional(),
60906
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60907
+ unavailable: array(object({
60908
+ bus: CoralBusSchema,
60909
+ count: number().int().nonnegative(),
60910
+ reason: _enum(["driver-missing", "device-not-accessible"])
60911
+ })).readonly().optional()
60921
60912
  });
60922
60913
  var HardwareInfoSchema = object({
60923
60914
  platform: HardwarePlatformSchema,
@@ -69664,6 +69655,12 @@ Object.freeze({
69664
69655
  addonId: null,
69665
69656
  access: "view"
69666
69657
  },
69658
+ "deviceHistory.queryMany": {
69659
+ capName: "device-history",
69660
+ capScope: "system",
69661
+ addonId: null,
69662
+ access: "view"
69663
+ },
69667
69664
  "deviceHistory.queryNode": {
69668
69665
  capName: "device-history",
69669
69666
  capScope: "system",
@@ -74884,24 +74881,12 @@ Object.freeze({
74884
74881
  addonId: null,
74885
74882
  access: "create"
74886
74883
  },
74887
- "storageAdmin.adoptRecords": {
74888
- capName: "storage-admin",
74889
- capScope: "system",
74890
- addonId: null,
74891
- access: "create"
74892
- },
74893
74884
  "storageAdmin.dropCollection": {
74894
74885
  capName: "storage-admin",
74895
74886
  capScope: "system",
74896
74887
  addonId: null,
74897
74888
  access: "delete"
74898
74889
  },
74899
- "storageAdmin.isAdoptedLegacyTable": {
74900
- capName: "storage-admin",
74901
- capScope: "system",
74902
- addonId: null,
74903
- access: "view"
74904
- },
74905
74890
  "storageAdmin.listKinds": {
74906
74891
  capName: "storage-admin",
74907
74892
  capScope: "system",
@@ -74914,12 +74899,6 @@ Object.freeze({
74914
74899
  addonId: null,
74915
74900
  access: "view"
74916
74901
  },
74917
- "storageAdmin.readLegacyCollection": {
74918
- capName: "storage-admin",
74919
- capScope: "system",
74920
- addonId: null,
74921
- access: "view"
74922
- },
74923
74902
  "storageAdmin.readRecords": {
74924
74903
  capName: "storage-admin",
74925
74904
  capScope: "system",
@@ -78734,12 +78713,6 @@ Object.freeze({
78734
78713
  form: "single",
78735
78714
  optional: false
78736
78715
  }],
78737
- "storageAdmin.adoptRecords": [{
78738
- name: "records",
78739
- form: "object-array",
78740
- optional: false,
78741
- itemField: "deviceId"
78742
- }],
78743
78716
  "storageAdmin.readRecords": [{
78744
78717
  name: "deviceId",
78745
78718
  form: "single",
@@ -123727,8 +123700,7 @@ var alexaBrokersEntryKind = defineEntryKind("brokers", {
123727
123700
  connection: AlexaBrokerEntrySchema.shape.connection,
123728
123701
  integrationId: string().optional()
123729
123702
  }),
123730
- writeTrigger: "an operator links or removes an Alexa account broker",
123731
- adoptsFrom: settingsBrokersAdoptsFrom("import-alexa")
123703
+ writeTrigger: "an operator links or removes an Alexa account broker"
123732
123704
  });
123733
123705
  //#endregion
123734
123706
  //#region src/alexa-broker-store.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.133",
3
+ "version": "0.2.135",
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",