@camstack/addon-export-hap 1.2.165 → 1.2.166

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.
@@ -5464,7 +5464,7 @@ var ZodIssueCode = {
5464
5464
  var ZodFirstPartyTypeKind;
5465
5465
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5466
5466
  //#endregion
5467
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5467
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5468
5468
  /**
5469
5469
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5470
5470
  * window to float samples (D455).
@@ -7945,7 +7945,13 @@ var RecordKindDeclarationSchema = object({
7945
7945
  secretPaths: array(string().min(1)).default([]),
7946
7946
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7947
7947
  secretArrayKeys: record(string(), string()).default({}),
7948
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7948
+ /**
7949
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7950
+ * migration. Nothing declares it any more and nothing reads it; the schema
7951
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7952
+ * (an orphaned kind is never redeclared) and an addon built before the
7953
+ * removal still sends it. Never set it.
7954
+ */
7949
7955
  adoptsFrom: string().min(1).optional(),
7950
7956
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7951
7957
  transactFamily: string().min(1).optional(),
@@ -17385,11 +17391,12 @@ var DeclareKindResultSchema = object({
17385
17391
  kindId: number().int(),
17386
17392
  state: RecordKindStateSchema,
17387
17393
  createdIndexes: array(string()),
17388
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17389
- adoptionPending: object({
17390
- legacyTable: string(),
17391
- legacyRows: number().int()
17392
- }).nullable()
17394
+ /**
17395
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17396
+ * it stays on the wire, null, because an addon built before the removal reads
17397
+ * an ABSENT field as "adoption pending" and refuses to start.
17398
+ */
17399
+ adoptionPending: _null()
17393
17400
  });
17394
17401
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17395
17402
  var SecretRefsList = array(string());
@@ -17562,26 +17569,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17562
17569
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17563
17570
  owner: string().min(1),
17564
17571
  kind: RecordKindNameSchema
17565
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17566
- owner: string().min(1),
17567
- kind: RecordKindNameSchema,
17568
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17569
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17570
- complete: boolean().optional()
17571
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17572
- kind: "mutation",
17573
- auth: "admin"
17574
- }), method(object({
17575
- collection: string().min(1),
17576
- cursor: string().optional(),
17577
- limit: number().int().min(1).max(1e3).optional()
17578
- }), object({
17579
- rows: array(object({
17580
- id: string(),
17581
- data: record(string(), unknown())
17582
- })),
17583
- nextCursor: string().nullable()
17584
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17572
+ }), RecordQueryResultSchema, { auth: "admin" });
17585
17573
  /**
17586
17574
  * record-entries - the ONE admin surface for every list of user-created entries
17587
17575
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -65095,6 +65083,12 @@ Object.freeze({
65095
65083
  addonId: null,
65096
65084
  access: "view"
65097
65085
  },
65086
+ "deviceHistory.queryMany": {
65087
+ capName: "device-history",
65088
+ capScope: "system",
65089
+ addonId: null,
65090
+ access: "view"
65091
+ },
65098
65092
  "deviceHistory.queryNode": {
65099
65093
  capName: "device-history",
65100
65094
  capScope: "system",
@@ -70315,24 +70309,12 @@ Object.freeze({
70315
70309
  addonId: null,
70316
70310
  access: "create"
70317
70311
  },
70318
- "storageAdmin.adoptRecords": {
70319
- capName: "storage-admin",
70320
- capScope: "system",
70321
- addonId: null,
70322
- access: "create"
70323
- },
70324
70312
  "storageAdmin.dropCollection": {
70325
70313
  capName: "storage-admin",
70326
70314
  capScope: "system",
70327
70315
  addonId: null,
70328
70316
  access: "delete"
70329
70317
  },
70330
- "storageAdmin.isAdoptedLegacyTable": {
70331
- capName: "storage-admin",
70332
- capScope: "system",
70333
- addonId: null,
70334
- access: "view"
70335
- },
70336
70318
  "storageAdmin.listKinds": {
70337
70319
  capName: "storage-admin",
70338
70320
  capScope: "system",
@@ -70345,12 +70327,6 @@ Object.freeze({
70345
70327
  addonId: null,
70346
70328
  access: "view"
70347
70329
  },
70348
- "storageAdmin.readLegacyCollection": {
70349
- capName: "storage-admin",
70350
- capScope: "system",
70351
- addonId: null,
70352
- access: "view"
70353
- },
70354
70330
  "storageAdmin.readRecords": {
70355
70331
  capName: "storage-admin",
70356
70332
  capScope: "system",
@@ -74165,12 +74141,6 @@ Object.freeze({
74165
74141
  form: "single",
74166
74142
  optional: false
74167
74143
  }],
74168
- "storageAdmin.adoptRecords": [{
74169
- name: "records",
74170
- form: "object-array",
74171
- optional: false,
74172
- itemField: "deviceId"
74173
- }],
74174
74144
  "storageAdmin.readRecords": [{
74175
74145
  name: "deviceId",
74176
74146
  form: "single",
@@ -5454,7 +5454,7 @@ var ZodIssueCode = {
5454
5454
  var ZodFirstPartyTypeKind;
5455
5455
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5456
5456
  //#endregion
5457
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5457
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5458
5458
  /**
5459
5459
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5460
5460
  * window to float samples (D455).
@@ -7935,7 +7935,13 @@ var RecordKindDeclarationSchema = object({
7935
7935
  secretPaths: array(string().min(1)).default([]),
7936
7936
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7937
7937
  secretArrayKeys: record(string(), string()).default({}),
7938
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7938
+ /**
7939
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7940
+ * migration. Nothing declares it any more and nothing reads it; the schema
7941
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7942
+ * (an orphaned kind is never redeclared) and an addon built before the
7943
+ * removal still sends it. Never set it.
7944
+ */
7939
7945
  adoptsFrom: string().min(1).optional(),
7940
7946
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7941
7947
  transactFamily: string().min(1).optional(),
@@ -17375,11 +17381,12 @@ var DeclareKindResultSchema = object({
17375
17381
  kindId: number().int(),
17376
17382
  state: RecordKindStateSchema,
17377
17383
  createdIndexes: array(string()),
17378
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17379
- adoptionPending: object({
17380
- legacyTable: string(),
17381
- legacyRows: number().int()
17382
- }).nullable()
17384
+ /**
17385
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17386
+ * it stays on the wire, null, because an addon built before the removal reads
17387
+ * an ABSENT field as "adoption pending" and refuses to start.
17388
+ */
17389
+ adoptionPending: _null()
17383
17390
  });
17384
17391
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17385
17392
  var SecretRefsList = array(string());
@@ -17552,26 +17559,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17552
17559
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17553
17560
  owner: string().min(1),
17554
17561
  kind: RecordKindNameSchema
17555
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17556
- owner: string().min(1),
17557
- kind: RecordKindNameSchema,
17558
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17559
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17560
- complete: boolean().optional()
17561
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17562
- kind: "mutation",
17563
- auth: "admin"
17564
- }), method(object({
17565
- collection: string().min(1),
17566
- cursor: string().optional(),
17567
- limit: number().int().min(1).max(1e3).optional()
17568
- }), object({
17569
- rows: array(object({
17570
- id: string(),
17571
- data: record(string(), unknown())
17572
- })),
17573
- nextCursor: string().nullable()
17574
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17562
+ }), RecordQueryResultSchema, { auth: "admin" });
17575
17563
  /**
17576
17564
  * record-entries - the ONE admin surface for every list of user-created entries
17577
17565
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -65085,6 +65073,12 @@ Object.freeze({
65085
65073
  addonId: null,
65086
65074
  access: "view"
65087
65075
  },
65076
+ "deviceHistory.queryMany": {
65077
+ capName: "device-history",
65078
+ capScope: "system",
65079
+ addonId: null,
65080
+ access: "view"
65081
+ },
65088
65082
  "deviceHistory.queryNode": {
65089
65083
  capName: "device-history",
65090
65084
  capScope: "system",
@@ -70305,24 +70299,12 @@ Object.freeze({
70305
70299
  addonId: null,
70306
70300
  access: "create"
70307
70301
  },
70308
- "storageAdmin.adoptRecords": {
70309
- capName: "storage-admin",
70310
- capScope: "system",
70311
- addonId: null,
70312
- access: "create"
70313
- },
70314
70302
  "storageAdmin.dropCollection": {
70315
70303
  capName: "storage-admin",
70316
70304
  capScope: "system",
70317
70305
  addonId: null,
70318
70306
  access: "delete"
70319
70307
  },
70320
- "storageAdmin.isAdoptedLegacyTable": {
70321
- capName: "storage-admin",
70322
- capScope: "system",
70323
- addonId: null,
70324
- access: "view"
70325
- },
70326
70308
  "storageAdmin.listKinds": {
70327
70309
  capName: "storage-admin",
70328
70310
  capScope: "system",
@@ -70335,12 +70317,6 @@ Object.freeze({
70335
70317
  addonId: null,
70336
70318
  access: "view"
70337
70319
  },
70338
- "storageAdmin.readLegacyCollection": {
70339
- capName: "storage-admin",
70340
- capScope: "system",
70341
- addonId: null,
70342
- access: "view"
70343
- },
70344
70320
  "storageAdmin.readRecords": {
70345
70321
  capName: "storage-admin",
70346
70322
  capScope: "system",
@@ -74155,12 +74131,6 @@ Object.freeze({
74155
74131
  form: "single",
74156
74132
  optional: false
74157
74133
  }],
74158
- "storageAdmin.adoptRecords": [{
74159
- name: "records",
74160
- form: "object-array",
74161
- optional: false,
74162
- itemField: "deviceId"
74163
- }],
74164
74134
  "storageAdmin.readRecords": [{
74165
74135
  name: "deviceId",
74166
74136
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.165",
3
+ "version": "1.2.166",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",