@camstack/addon-export-hap 1.2.164 → 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.
- package/dist/hap-export.addon.js +37 -52
- package/dist/hap-export.addon.mjs +37 -52
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -5464,7 +5464,7 @@ var ZodIssueCode = {
|
|
|
5464
5464
|
var ZodFirstPartyTypeKind;
|
|
5465
5465
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5466
5466
|
//#endregion
|
|
5467
|
-
//#region ../types/dist/sleep-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
|
|
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" })
|
|
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
|
|
@@ -59053,9 +59041,24 @@ var NpuInfoSchema = object({
|
|
|
59053
59041
|
name: string().optional(),
|
|
59054
59042
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
59055
59043
|
});
|
|
59044
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
59056
59045
|
var CoralInfoSchema = object({
|
|
59057
59046
|
type: literal("coral-edgetpu"),
|
|
59058
|
-
bus
|
|
59047
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
59048
|
+
bus: string().optional(),
|
|
59049
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
59050
|
+
count: number().int().nonnegative().optional(),
|
|
59051
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
59052
|
+
units: array(object({
|
|
59053
|
+
bus: CoralBusSchema,
|
|
59054
|
+
count: number().int().nonnegative()
|
|
59055
|
+
})).readonly().optional(),
|
|
59056
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
59057
|
+
unavailable: array(object({
|
|
59058
|
+
bus: CoralBusSchema,
|
|
59059
|
+
count: number().int().nonnegative(),
|
|
59060
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
59061
|
+
})).readonly().optional()
|
|
59059
59062
|
});
|
|
59060
59063
|
var HardwareInfoSchema = object({
|
|
59061
59064
|
platform: HardwarePlatformSchema,
|
|
@@ -65080,6 +65083,12 @@ Object.freeze({
|
|
|
65080
65083
|
addonId: null,
|
|
65081
65084
|
access: "view"
|
|
65082
65085
|
},
|
|
65086
|
+
"deviceHistory.queryMany": {
|
|
65087
|
+
capName: "device-history",
|
|
65088
|
+
capScope: "system",
|
|
65089
|
+
addonId: null,
|
|
65090
|
+
access: "view"
|
|
65091
|
+
},
|
|
65083
65092
|
"deviceHistory.queryNode": {
|
|
65084
65093
|
capName: "device-history",
|
|
65085
65094
|
capScope: "system",
|
|
@@ -70300,24 +70309,12 @@ Object.freeze({
|
|
|
70300
70309
|
addonId: null,
|
|
70301
70310
|
access: "create"
|
|
70302
70311
|
},
|
|
70303
|
-
"storageAdmin.adoptRecords": {
|
|
70304
|
-
capName: "storage-admin",
|
|
70305
|
-
capScope: "system",
|
|
70306
|
-
addonId: null,
|
|
70307
|
-
access: "create"
|
|
70308
|
-
},
|
|
70309
70312
|
"storageAdmin.dropCollection": {
|
|
70310
70313
|
capName: "storage-admin",
|
|
70311
70314
|
capScope: "system",
|
|
70312
70315
|
addonId: null,
|
|
70313
70316
|
access: "delete"
|
|
70314
70317
|
},
|
|
70315
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
70316
|
-
capName: "storage-admin",
|
|
70317
|
-
capScope: "system",
|
|
70318
|
-
addonId: null,
|
|
70319
|
-
access: "view"
|
|
70320
|
-
},
|
|
70321
70318
|
"storageAdmin.listKinds": {
|
|
70322
70319
|
capName: "storage-admin",
|
|
70323
70320
|
capScope: "system",
|
|
@@ -70330,12 +70327,6 @@ Object.freeze({
|
|
|
70330
70327
|
addonId: null,
|
|
70331
70328
|
access: "view"
|
|
70332
70329
|
},
|
|
70333
|
-
"storageAdmin.readLegacyCollection": {
|
|
70334
|
-
capName: "storage-admin",
|
|
70335
|
-
capScope: "system",
|
|
70336
|
-
addonId: null,
|
|
70337
|
-
access: "view"
|
|
70338
|
-
},
|
|
70339
70330
|
"storageAdmin.readRecords": {
|
|
70340
70331
|
capName: "storage-admin",
|
|
70341
70332
|
capScope: "system",
|
|
@@ -74150,12 +74141,6 @@ Object.freeze({
|
|
|
74150
74141
|
form: "single",
|
|
74151
74142
|
optional: false
|
|
74152
74143
|
}],
|
|
74153
|
-
"storageAdmin.adoptRecords": [{
|
|
74154
|
-
name: "records",
|
|
74155
|
-
form: "object-array",
|
|
74156
|
-
optional: false,
|
|
74157
|
-
itemField: "deviceId"
|
|
74158
|
-
}],
|
|
74159
74144
|
"storageAdmin.readRecords": [{
|
|
74160
74145
|
name: "deviceId",
|
|
74161
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-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
17379
|
-
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
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" })
|
|
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
|
|
@@ -59043,9 +59031,24 @@ var NpuInfoSchema = object({
|
|
|
59043
59031
|
name: string().optional(),
|
|
59044
59032
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
59045
59033
|
});
|
|
59034
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
59046
59035
|
var CoralInfoSchema = object({
|
|
59047
59036
|
type: literal("coral-edgetpu"),
|
|
59048
|
-
bus
|
|
59037
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
59038
|
+
bus: string().optional(),
|
|
59039
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
59040
|
+
count: number().int().nonnegative().optional(),
|
|
59041
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
59042
|
+
units: array(object({
|
|
59043
|
+
bus: CoralBusSchema,
|
|
59044
|
+
count: number().int().nonnegative()
|
|
59045
|
+
})).readonly().optional(),
|
|
59046
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
59047
|
+
unavailable: array(object({
|
|
59048
|
+
bus: CoralBusSchema,
|
|
59049
|
+
count: number().int().nonnegative(),
|
|
59050
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
59051
|
+
})).readonly().optional()
|
|
59049
59052
|
});
|
|
59050
59053
|
var HardwareInfoSchema = object({
|
|
59051
59054
|
platform: HardwarePlatformSchema,
|
|
@@ -65070,6 +65073,12 @@ Object.freeze({
|
|
|
65070
65073
|
addonId: null,
|
|
65071
65074
|
access: "view"
|
|
65072
65075
|
},
|
|
65076
|
+
"deviceHistory.queryMany": {
|
|
65077
|
+
capName: "device-history",
|
|
65078
|
+
capScope: "system",
|
|
65079
|
+
addonId: null,
|
|
65080
|
+
access: "view"
|
|
65081
|
+
},
|
|
65073
65082
|
"deviceHistory.queryNode": {
|
|
65074
65083
|
capName: "device-history",
|
|
65075
65084
|
capScope: "system",
|
|
@@ -70290,24 +70299,12 @@ Object.freeze({
|
|
|
70290
70299
|
addonId: null,
|
|
70291
70300
|
access: "create"
|
|
70292
70301
|
},
|
|
70293
|
-
"storageAdmin.adoptRecords": {
|
|
70294
|
-
capName: "storage-admin",
|
|
70295
|
-
capScope: "system",
|
|
70296
|
-
addonId: null,
|
|
70297
|
-
access: "create"
|
|
70298
|
-
},
|
|
70299
70302
|
"storageAdmin.dropCollection": {
|
|
70300
70303
|
capName: "storage-admin",
|
|
70301
70304
|
capScope: "system",
|
|
70302
70305
|
addonId: null,
|
|
70303
70306
|
access: "delete"
|
|
70304
70307
|
},
|
|
70305
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
70306
|
-
capName: "storage-admin",
|
|
70307
|
-
capScope: "system",
|
|
70308
|
-
addonId: null,
|
|
70309
|
-
access: "view"
|
|
70310
|
-
},
|
|
70311
70308
|
"storageAdmin.listKinds": {
|
|
70312
70309
|
capName: "storage-admin",
|
|
70313
70310
|
capScope: "system",
|
|
@@ -70320,12 +70317,6 @@ Object.freeze({
|
|
|
70320
70317
|
addonId: null,
|
|
70321
70318
|
access: "view"
|
|
70322
70319
|
},
|
|
70323
|
-
"storageAdmin.readLegacyCollection": {
|
|
70324
|
-
capName: "storage-admin",
|
|
70325
|
-
capScope: "system",
|
|
70326
|
-
addonId: null,
|
|
70327
|
-
access: "view"
|
|
70328
|
-
},
|
|
70329
70320
|
"storageAdmin.readRecords": {
|
|
70330
70321
|
capName: "storage-admin",
|
|
70331
70322
|
capScope: "system",
|
|
@@ -74140,12 +74131,6 @@ Object.freeze({
|
|
|
74140
74131
|
form: "single",
|
|
74141
74132
|
optional: false
|
|
74142
74133
|
}],
|
|
74143
|
-
"storageAdmin.adoptRecords": [{
|
|
74144
|
-
name: "records",
|
|
74145
|
-
form: "object-array",
|
|
74146
|
-
optional: false,
|
|
74147
|
-
itemField: "deviceId"
|
|
74148
|
-
}],
|
|
74149
74134
|
"storageAdmin.readRecords": [{
|
|
74150
74135
|
name: "deviceId",
|
|
74151
74136
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
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",
|