@camstack/addon-provider-unifi 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
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
5414
5414
  var ZodFirstPartyTypeKind;
5415
5415
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5416
5416
  //#endregion
5417
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5417
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5418
5418
  /**
5419
5419
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5420
5420
  * window to float samples (D455).
@@ -7962,7 +7962,13 @@ var RecordKindDeclarationSchema = object({
7962
7962
  secretPaths: array(string().min(1)).default([]),
7963
7963
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7964
7964
  secretArrayKeys: record(string(), string()).default({}),
7965
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7965
+ /**
7966
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7967
+ * migration. Nothing declares it any more and nothing reads it; the schema
7968
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7969
+ * (an orphaned kind is never redeclared) and an addon built before the
7970
+ * removal still sends it. Never set it.
7971
+ */
7966
7972
  adoptsFrom: string().min(1).optional(),
7967
7973
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7968
7974
  transactFamily: string().min(1).optional(),
@@ -16648,11 +16654,12 @@ var DeclareKindResultSchema = object({
16648
16654
  kindId: number().int(),
16649
16655
  state: RecordKindStateSchema,
16650
16656
  createdIndexes: array(string()),
16651
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16652
- adoptionPending: object({
16653
- legacyTable: string(),
16654
- legacyRows: number().int()
16655
- }).nullable()
16657
+ /**
16658
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16659
+ * it stays on the wire, null, because an addon built before the removal reads
16660
+ * an ABSENT field as "adoption pending" and refuses to start.
16661
+ */
16662
+ adoptionPending: _null()
16656
16663
  });
16657
16664
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16658
16665
  var SecretRefsList = array(string());
@@ -16825,26 +16832,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16825
16832
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16826
16833
  owner: string().min(1),
16827
16834
  kind: RecordKindNameSchema
16828
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16829
- owner: string().min(1),
16830
- kind: RecordKindNameSchema,
16831
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16832
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16833
- complete: boolean().optional()
16834
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16835
- kind: "mutation",
16836
- auth: "admin"
16837
- }), method(object({
16838
- collection: string().min(1),
16839
- cursor: string().optional(),
16840
- limit: number().int().min(1).max(1e3).optional()
16841
- }), object({
16842
- rows: array(object({
16843
- id: string(),
16844
- data: record(string(), unknown())
16845
- })),
16846
- nextCursor: string().nullable()
16847
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16835
+ }), RecordQueryResultSchema, { auth: "admin" });
16848
16836
  /**
16849
16837
  * record-entries - the ONE admin surface for every list of user-created entries
16850
16838
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -69232,6 +69220,12 @@ Object.freeze({
69232
69220
  addonId: null,
69233
69221
  access: "view"
69234
69222
  },
69223
+ "deviceHistory.queryMany": {
69224
+ capName: "device-history",
69225
+ capScope: "system",
69226
+ addonId: null,
69227
+ access: "view"
69228
+ },
69235
69229
  "deviceHistory.queryNode": {
69236
69230
  capName: "device-history",
69237
69231
  capScope: "system",
@@ -74452,24 +74446,12 @@ Object.freeze({
74452
74446
  addonId: null,
74453
74447
  access: "create"
74454
74448
  },
74455
- "storageAdmin.adoptRecords": {
74456
- capName: "storage-admin",
74457
- capScope: "system",
74458
- addonId: null,
74459
- access: "create"
74460
- },
74461
74449
  "storageAdmin.dropCollection": {
74462
74450
  capName: "storage-admin",
74463
74451
  capScope: "system",
74464
74452
  addonId: null,
74465
74453
  access: "delete"
74466
74454
  },
74467
- "storageAdmin.isAdoptedLegacyTable": {
74468
- capName: "storage-admin",
74469
- capScope: "system",
74470
- addonId: null,
74471
- access: "view"
74472
- },
74473
74455
  "storageAdmin.listKinds": {
74474
74456
  capName: "storage-admin",
74475
74457
  capScope: "system",
@@ -74482,12 +74464,6 @@ Object.freeze({
74482
74464
  addonId: null,
74483
74465
  access: "view"
74484
74466
  },
74485
- "storageAdmin.readLegacyCollection": {
74486
- capName: "storage-admin",
74487
- capScope: "system",
74488
- addonId: null,
74489
- access: "view"
74490
- },
74491
74467
  "storageAdmin.readRecords": {
74492
74468
  capName: "storage-admin",
74493
74469
  capScope: "system",
@@ -78302,12 +78278,6 @@ Object.freeze({
78302
78278
  form: "single",
78303
78279
  optional: false
78304
78280
  }],
78305
- "storageAdmin.adoptRecords": [{
78306
- name: "records",
78307
- form: "object-array",
78308
- optional: false,
78309
- itemField: "deviceId"
78310
- }],
78311
78281
  "storageAdmin.readRecords": [{
78312
78282
  name: "deviceId",
78313
78283
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5413,7 +5413,7 @@ var ZodIssueCode = {
5413
5413
  var ZodFirstPartyTypeKind;
5414
5414
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5415
5415
  //#endregion
5416
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5416
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5417
5417
  /**
5418
5418
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5419
5419
  * window to float samples (D455).
@@ -7961,7 +7961,13 @@ var RecordKindDeclarationSchema = object({
7961
7961
  secretPaths: array(string().min(1)).default([]),
7962
7962
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7963
7963
  secretArrayKeys: record(string(), string()).default({}),
7964
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7964
+ /**
7965
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7966
+ * migration. Nothing declares it any more and nothing reads it; the schema
7967
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7968
+ * (an orphaned kind is never redeclared) and an addon built before the
7969
+ * removal still sends it. Never set it.
7970
+ */
7965
7971
  adoptsFrom: string().min(1).optional(),
7966
7972
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7967
7973
  transactFamily: string().min(1).optional(),
@@ -16647,11 +16653,12 @@ var DeclareKindResultSchema = object({
16647
16653
  kindId: number().int(),
16648
16654
  state: RecordKindStateSchema,
16649
16655
  createdIndexes: array(string()),
16650
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16651
- adoptionPending: object({
16652
- legacyTable: string(),
16653
- legacyRows: number().int()
16654
- }).nullable()
16656
+ /**
16657
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16658
+ * it stays on the wire, null, because an addon built before the removal reads
16659
+ * an ABSENT field as "adoption pending" and refuses to start.
16660
+ */
16661
+ adoptionPending: _null()
16655
16662
  });
16656
16663
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16657
16664
  var SecretRefsList = array(string());
@@ -16824,26 +16831,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16824
16831
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16825
16832
  owner: string().min(1),
16826
16833
  kind: RecordKindNameSchema
16827
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16828
- owner: string().min(1),
16829
- kind: RecordKindNameSchema,
16830
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16831
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16832
- complete: boolean().optional()
16833
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16834
- kind: "mutation",
16835
- auth: "admin"
16836
- }), method(object({
16837
- collection: string().min(1),
16838
- cursor: string().optional(),
16839
- limit: number().int().min(1).max(1e3).optional()
16840
- }), object({
16841
- rows: array(object({
16842
- id: string(),
16843
- data: record(string(), unknown())
16844
- })),
16845
- nextCursor: string().nullable()
16846
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16834
+ }), RecordQueryResultSchema, { auth: "admin" });
16847
16835
  /**
16848
16836
  * record-entries - the ONE admin surface for every list of user-created entries
16849
16837
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -69231,6 +69219,12 @@ Object.freeze({
69231
69219
  addonId: null,
69232
69220
  access: "view"
69233
69221
  },
69222
+ "deviceHistory.queryMany": {
69223
+ capName: "device-history",
69224
+ capScope: "system",
69225
+ addonId: null,
69226
+ access: "view"
69227
+ },
69234
69228
  "deviceHistory.queryNode": {
69235
69229
  capName: "device-history",
69236
69230
  capScope: "system",
@@ -74451,24 +74445,12 @@ Object.freeze({
74451
74445
  addonId: null,
74452
74446
  access: "create"
74453
74447
  },
74454
- "storageAdmin.adoptRecords": {
74455
- capName: "storage-admin",
74456
- capScope: "system",
74457
- addonId: null,
74458
- access: "create"
74459
- },
74460
74448
  "storageAdmin.dropCollection": {
74461
74449
  capName: "storage-admin",
74462
74450
  capScope: "system",
74463
74451
  addonId: null,
74464
74452
  access: "delete"
74465
74453
  },
74466
- "storageAdmin.isAdoptedLegacyTable": {
74467
- capName: "storage-admin",
74468
- capScope: "system",
74469
- addonId: null,
74470
- access: "view"
74471
- },
74472
74454
  "storageAdmin.listKinds": {
74473
74455
  capName: "storage-admin",
74474
74456
  capScope: "system",
@@ -74481,12 +74463,6 @@ Object.freeze({
74481
74463
  addonId: null,
74482
74464
  access: "view"
74483
74465
  },
74484
- "storageAdmin.readLegacyCollection": {
74485
- capName: "storage-admin",
74486
- capScope: "system",
74487
- addonId: null,
74488
- access: "view"
74489
- },
74490
74466
  "storageAdmin.readRecords": {
74491
74467
  capName: "storage-admin",
74492
74468
  capScope: "system",
@@ -78301,12 +78277,6 @@ Object.freeze({
78301
78277
  form: "single",
78302
78278
  optional: false
78303
78279
  }],
78304
- "storageAdmin.adoptRecords": [{
78305
- name: "records",
78306
- form: "object-array",
78307
- optional: false,
78308
- itemField: "deviceId"
78309
- }],
78310
78280
  "storageAdmin.readRecords": [{
78311
78281
  name: "deviceId",
78312
78282
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unifi",
3
- "version": "0.2.133",
3
+ "version": "0.2.135",
4
4
  "description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
5
5
  "keywords": [
6
6
  "camstack",