@camstack/addon-export-hap 1.2.35 → 1.2.37
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 +76 -6
- package/dist/hap-export.addon.mjs +76 -6
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -84,7 +84,7 @@ function carryForward(base, existing, keys) {
|
|
|
84
84
|
return out;
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
|
-
//#region ../types/dist/event-category-
|
|
87
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
88
88
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
89
89
|
EventCategory["SystemBoot"] = "system.boot";
|
|
90
90
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -100,6 +100,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
100
100
|
*/
|
|
101
101
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
102
102
|
/**
|
|
103
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
104
|
+
* Emitted only when the material on disk actually changed, so an
|
|
105
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
106
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
107
|
+
*
|
|
108
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
109
|
+
*/
|
|
110
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
111
|
+
/**
|
|
103
112
|
* A newer addon or server-root package version was found by the
|
|
104
113
|
* authoritative registry check. Emitted once when any observed
|
|
105
114
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -19440,6 +19449,12 @@ var CameraStatusSchema = object({
|
|
|
19440
19449
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19441
19450
|
fetchedAt: number()
|
|
19442
19451
|
});
|
|
19452
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19453
|
+
"disabled",
|
|
19454
|
+
"unavailable",
|
|
19455
|
+
"cannot-host-camera-root",
|
|
19456
|
+
"accelerator-preferred"
|
|
19457
|
+
]);
|
|
19443
19458
|
var NodeInferenceDeviceSchema = object({
|
|
19444
19459
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19445
19460
|
key: string(),
|
|
@@ -19470,7 +19485,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19470
19485
|
* available per format; this is the stored selection that becomes the
|
|
19471
19486
|
* default for EVERY camera landing on this accelerator.
|
|
19472
19487
|
*/
|
|
19473
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19488
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19489
|
+
/**
|
|
19490
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19491
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19492
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19493
|
+
* never disagree with the election — deriving it in the UI from
|
|
19494
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19495
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19496
|
+
* "an accelerator is serving" predicate).
|
|
19497
|
+
*/
|
|
19498
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19474
19499
|
});
|
|
19475
19500
|
var NodeInferenceDevicesSchema = object({
|
|
19476
19501
|
nodeId: string(),
|
|
@@ -23264,7 +23289,12 @@ var ListResultSchema = object({
|
|
|
23264
23289
|
probedAt: number()
|
|
23265
23290
|
});
|
|
23266
23291
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23267
|
-
|
|
23292
|
+
/**
|
|
23293
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23294
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23295
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23296
|
+
*/
|
|
23297
|
+
var ConnectionEndpointSchema = object({
|
|
23268
23298
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23269
23299
|
label: string(),
|
|
23270
23300
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23307,7 +23337,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23307
23337
|
* ordering between polls.
|
|
23308
23338
|
*/
|
|
23309
23339
|
priority: number()
|
|
23310
|
-
})
|
|
23340
|
+
});
|
|
23341
|
+
/**
|
|
23342
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23343
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23344
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23345
|
+
*/
|
|
23346
|
+
var LocalPortSourceEnum = _enum([
|
|
23347
|
+
"server-config",
|
|
23348
|
+
"server-env",
|
|
23349
|
+
"caller-hint",
|
|
23350
|
+
"default"
|
|
23351
|
+
]);
|
|
23352
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23353
|
+
var AdvertisedLocalPortSchema = object({
|
|
23354
|
+
port: number().int().min(1).max(65535),
|
|
23355
|
+
source: LocalPortSourceEnum
|
|
23356
|
+
});
|
|
23357
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23358
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23359
|
+
/**
|
|
23360
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23361
|
+
* came from.
|
|
23362
|
+
*
|
|
23363
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23364
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23365
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23366
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23367
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23368
|
+
* `caller-hint` is the hub's own socket.
|
|
23369
|
+
*
|
|
23370
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23371
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23372
|
+
* `caller-hint`.
|
|
23373
|
+
*/
|
|
23374
|
+
localPort: AdvertisedLocalPortSchema
|
|
23375
|
+
});
|
|
23311
23376
|
/**
|
|
23312
23377
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23313
23378
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23328,8 +23393,13 @@ var AllowedAddressesSchema = object({
|
|
|
23328
23393
|
*/
|
|
23329
23394
|
addresses: array(string()).readonly() });
|
|
23330
23395
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23331
|
-
/**
|
|
23332
|
-
|
|
23396
|
+
/**
|
|
23397
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
23398
|
+
* written against the echoing contract keep working; the hub uses it
|
|
23399
|
+
* only when it cannot read its own port, and says so via
|
|
23400
|
+
* `localPort.source === 'caller-hint'`.
|
|
23401
|
+
*/
|
|
23402
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23333
23403
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23334
23404
|
* candidate. Default `true`. */
|
|
23335
23405
|
includeLoopback: boolean().optional(),
|
|
@@ -72,7 +72,7 @@ function carryForward(base, existing, keys) {
|
|
|
72
72
|
return out;
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region ../types/dist/event-category-
|
|
75
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
76
76
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
77
77
|
EventCategory["SystemBoot"] = "system.boot";
|
|
78
78
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -88,6 +88,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
88
88
|
*/
|
|
89
89
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
90
90
|
/**
|
|
91
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
92
|
+
* Emitted only when the material on disk actually changed, so an
|
|
93
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
94
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
95
|
+
*
|
|
96
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
97
|
+
*/
|
|
98
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
99
|
+
/**
|
|
91
100
|
* A newer addon or server-root package version was found by the
|
|
92
101
|
* authoritative registry check. Emitted once when any observed
|
|
93
102
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -19428,6 +19437,12 @@ var CameraStatusSchema = object({
|
|
|
19428
19437
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19429
19438
|
fetchedAt: number()
|
|
19430
19439
|
});
|
|
19440
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19441
|
+
"disabled",
|
|
19442
|
+
"unavailable",
|
|
19443
|
+
"cannot-host-camera-root",
|
|
19444
|
+
"accelerator-preferred"
|
|
19445
|
+
]);
|
|
19431
19446
|
var NodeInferenceDeviceSchema = object({
|
|
19432
19447
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19433
19448
|
key: string(),
|
|
@@ -19458,7 +19473,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19458
19473
|
* available per format; this is the stored selection that becomes the
|
|
19459
19474
|
* default for EVERY camera landing on this accelerator.
|
|
19460
19475
|
*/
|
|
19461
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19476
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19477
|
+
/**
|
|
19478
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19479
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19480
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19481
|
+
* never disagree with the election — deriving it in the UI from
|
|
19482
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19483
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19484
|
+
* "an accelerator is serving" predicate).
|
|
19485
|
+
*/
|
|
19486
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19462
19487
|
});
|
|
19463
19488
|
var NodeInferenceDevicesSchema = object({
|
|
19464
19489
|
nodeId: string(),
|
|
@@ -23252,7 +23277,12 @@ var ListResultSchema = object({
|
|
|
23252
23277
|
probedAt: number()
|
|
23253
23278
|
});
|
|
23254
23279
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23255
|
-
|
|
23280
|
+
/**
|
|
23281
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23282
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23283
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23284
|
+
*/
|
|
23285
|
+
var ConnectionEndpointSchema = object({
|
|
23256
23286
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23257
23287
|
label: string(),
|
|
23258
23288
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23295,7 +23325,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23295
23325
|
* ordering between polls.
|
|
23296
23326
|
*/
|
|
23297
23327
|
priority: number()
|
|
23298
|
-
})
|
|
23328
|
+
});
|
|
23329
|
+
/**
|
|
23330
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23331
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23332
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23333
|
+
*/
|
|
23334
|
+
var LocalPortSourceEnum = _enum([
|
|
23335
|
+
"server-config",
|
|
23336
|
+
"server-env",
|
|
23337
|
+
"caller-hint",
|
|
23338
|
+
"default"
|
|
23339
|
+
]);
|
|
23340
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23341
|
+
var AdvertisedLocalPortSchema = object({
|
|
23342
|
+
port: number().int().min(1).max(65535),
|
|
23343
|
+
source: LocalPortSourceEnum
|
|
23344
|
+
});
|
|
23345
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23346
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23347
|
+
/**
|
|
23348
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23349
|
+
* came from.
|
|
23350
|
+
*
|
|
23351
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23352
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23353
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23354
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23355
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23356
|
+
* `caller-hint` is the hub's own socket.
|
|
23357
|
+
*
|
|
23358
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23359
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23360
|
+
* `caller-hint`.
|
|
23361
|
+
*/
|
|
23362
|
+
localPort: AdvertisedLocalPortSchema
|
|
23363
|
+
});
|
|
23299
23364
|
/**
|
|
23300
23365
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23301
23366
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23316,8 +23381,13 @@ var AllowedAddressesSchema = object({
|
|
|
23316
23381
|
*/
|
|
23317
23382
|
addresses: array(string()).readonly() });
|
|
23318
23383
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23319
|
-
/**
|
|
23320
|
-
|
|
23384
|
+
/**
|
|
23385
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
23386
|
+
* written against the echoing contract keep working; the hub uses it
|
|
23387
|
+
* only when it cannot read its own port, and says so via
|
|
23388
|
+
* `localPort.source === 'caller-hint'`.
|
|
23389
|
+
*/
|
|
23390
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23321
23391
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23322
23392
|
* candidate. Default `true`. */
|
|
23323
23393
|
includeLoopback: boolean().optional(),
|
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.37",
|
|
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",
|