@camstack/addon-export-hap 1.2.88 → 1.2.90
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 +158 -141
- package/dist/hap-export.addon.mjs +158 -141
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -8281,111 +8281,6 @@ var CameraSwitchGroupSchema = object({
|
|
|
8281
8281
|
fetchedAt: number()
|
|
8282
8282
|
});
|
|
8283
8283
|
/**
|
|
8284
|
-
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
8285
|
-
* an addon declares its channels in.
|
|
8286
|
-
*
|
|
8287
|
-
* ## Two axes, deliberately separated
|
|
8288
|
-
*
|
|
8289
|
-
* - **DECLARATION** — which channels exist. Only the addon knows:
|
|
8290
|
-
* `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
|
|
8291
|
-
* baichuan/handshake. A hand-wired central list rots at the first addition,
|
|
8292
|
-
* and rots silently. So a channel is declared where it is consulted, and the
|
|
8293
|
-
* `log-channels` capability enumerates the declarations.
|
|
8294
|
-
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
8295
|
-
* thing: the logging settings document on the `system` cap. Two authorities
|
|
8296
|
-
* over the values is the exact defect
|
|
8297
|
-
* `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
|
|
8298
|
-
* remove; re-introducing it from the cure side would be grotesque.
|
|
8299
|
-
*
|
|
8300
|
-
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
8301
|
-
* a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
|
|
8302
|
-
* the hot path with a value somebody actually read, and by
|
|
8303
|
-
* {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
|
|
8304
|
-
* never reaches here, so it can neither disarm an armed channel nor arm a
|
|
8305
|
-
* disarmed one (D49).
|
|
8306
|
-
*
|
|
8307
|
-
* ## The canonical call shape
|
|
8308
|
-
*
|
|
8309
|
-
* ```ts
|
|
8310
|
-
* if (CH_RTP.on && CH_RTP.wants(deviceId)) {
|
|
8311
|
-
* CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
|
|
8312
|
-
* }
|
|
8313
|
-
* ```
|
|
8314
|
-
*
|
|
8315
|
-
* `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
|
|
8316
|
-
* read. Disarmed, a call site costs one load and one branch, and the `extras`
|
|
8317
|
-
* object literal is never constructed because it lives inside the branch. It
|
|
8318
|
-
* is the same shape already proven in production at `stream-broker.ts:1650`,
|
|
8319
|
-
* and the same discipline `LoggingGate.allowsDestination` uses for the
|
|
8320
|
-
* destination floor (measured at 1.93 ns/call when off).
|
|
8321
|
-
*
|
|
8322
|
-
* ## Why a channel emits at `info`
|
|
8323
|
-
*
|
|
8324
|
-
* `loki-logging.addon.ts` pins the destination default at `info` and
|
|
8325
|
-
* `loki-destination.ts` drops everything below it, so a line emitted at
|
|
8326
|
-
* `debug` never reaches Loki and the hub's in-memory ring only holds ~35
|
|
8327
|
-
* minutes. A diagnostic that cannot be read an hour later is worse than no
|
|
8328
|
-
* diagnostic, because it looks done. {@link LogChannelGate.log} therefore
|
|
8329
|
-
* emits at the channel's declared level, whose schema floor is `info`.
|
|
8330
|
-
*/
|
|
8331
|
-
/**
|
|
8332
|
-
* The level a channel writes at once armed.
|
|
8333
|
-
*
|
|
8334
|
-
* `debug` is absent ON PURPOSE and not by omission: below `info` the line does
|
|
8335
|
-
* not leave the process for Loki, and the whole point of arming a channel is
|
|
8336
|
-
* to read it later.
|
|
8337
|
-
*/
|
|
8338
|
-
var LogChannelLevelSchema = _enum([
|
|
8339
|
-
"info",
|
|
8340
|
-
"warn",
|
|
8341
|
-
"error"
|
|
8342
|
-
]);
|
|
8343
|
-
/**
|
|
8344
|
-
* What an addon declares about one channel. No value, no state — a
|
|
8345
|
-
* declaration is inert.
|
|
8346
|
-
*/
|
|
8347
|
-
var LogChannelDescriptorSchema = object({
|
|
8348
|
-
/**
|
|
8349
|
-
* Dotted `area.thing`, unique across the workspace. `area` is conventionally
|
|
8350
|
-
* the addon's short name so an operator reading a channel list can tell who
|
|
8351
|
-
* owns it without a second lookup.
|
|
8352
|
-
*/
|
|
8353
|
-
name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
|
|
8354
|
-
/** One sentence: what the operator will SEE after arming it. */
|
|
8355
|
-
description: string().min(1),
|
|
8356
|
-
/** The level its lines are emitted at. Never below `info`. */
|
|
8357
|
-
defaultLevel: LogChannelLevelSchema,
|
|
8358
|
-
/**
|
|
8359
|
-
* Whether this channel can be narrowed to a camera.
|
|
8360
|
-
*
|
|
8361
|
-
* `true` is a PROMISE with two halves, and both must hold: the gate is
|
|
8362
|
-
* consulted with the numeric device id, AND every line the channel admits
|
|
8363
|
-
* carries `tags: { deviceId }` with that same numeric id. The second half is
|
|
8364
|
-
* what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
|
|
8365
|
-
* keeps `deviceId` out of the stream labels for cardinality, so the tag in
|
|
8366
|
-
* the body is the only way to filter.
|
|
8367
|
-
*
|
|
8368
|
-
* A channel whose lines carry the device only in `meta` (or not at all) is
|
|
8369
|
-
* declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
|
|
8370
|
-
* the operator narrows to one camera, sees nothing, and concludes the code
|
|
8371
|
-
* path was never taken.
|
|
8372
|
-
*/
|
|
8373
|
-
perDevice: boolean()
|
|
8374
|
-
});
|
|
8375
|
-
/**
|
|
8376
|
-
* An armed window over one channel, as the document hands it to a mirror.
|
|
8377
|
-
*
|
|
8378
|
-
* A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
|
|
8379
|
-
* expires by itself, which is the one failure a boolean cannot avoid.
|
|
8380
|
-
*/
|
|
8381
|
-
var LogChannelWindowSchema = object({
|
|
8382
|
-
channel: string().min(1),
|
|
8383
|
-
/** Epoch ms the window closes at. */
|
|
8384
|
-
armedUntilMs: number(),
|
|
8385
|
-
/** `null` = every camera. A non-empty list narrows to those numeric ids. */
|
|
8386
|
-
deviceIds: array(number().int()).readonly().nullable()
|
|
8387
|
-
});
|
|
8388
|
-
/**
|
|
8389
8284
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8390
8285
|
* recordings and events management surfaces.
|
|
8391
8286
|
*
|
|
@@ -9331,8 +9226,11 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
|
9331
9226
|
* `STORAGE_LOCATION_CARDINALITY` map has been removed.
|
|
9332
9227
|
*
|
|
9333
9228
|
* `id` is a stable namespaced string of the form `<type>:<slug>`.
|
|
9334
|
-
* The
|
|
9335
|
-
*
|
|
9229
|
+
* The seed names its first instance `<type>:default` — a NAME, not a flag.
|
|
9230
|
+
* There is no default location any more (D383): `enabled` is the whole write
|
|
9231
|
+
* model, and a bare type ref resolves to the sole location of the type, or —
|
|
9232
|
+
* transitionally, only while legacy NULL-stamped rows exist — to the row whose
|
|
9233
|
+
* slug is `default`.
|
|
9336
9234
|
*
|
|
9337
9235
|
* `isSystem` is a legacy persisted flag. Seed still creates the initial
|
|
9338
9236
|
* `<type>:default` locations; the flag is no longer a lock, a badge, or a
|
|
@@ -9353,21 +9251,20 @@ var StorageLocationSchema = object({
|
|
|
9353
9251
|
* flag at upsert time, not here (the schema is provider-agnostic).
|
|
9354
9252
|
*/
|
|
9355
9253
|
nodeId: string().optional(),
|
|
9356
|
-
isDefault: boolean().default(false),
|
|
9357
9254
|
isSystem: boolean().default(false),
|
|
9358
9255
|
/**
|
|
9359
|
-
*
|
|
9360
|
-
*
|
|
9361
|
-
*
|
|
9362
|
-
*
|
|
9363
|
-
*
|
|
9256
|
+
* THE write switch, and the only one (D383). `enabled: true` means every
|
|
9257
|
+
* consumer that chooses a write target for this type may write here, and all
|
|
9258
|
+
* enabled locations of a type are used TOGETHER; `false` means read-only —
|
|
9259
|
+
* still read, still played back, still age-swept, still drained, never
|
|
9260
|
+
* written.
|
|
9364
9261
|
*
|
|
9365
|
-
* OPTIONAL
|
|
9366
|
-
*
|
|
9367
|
-
*
|
|
9368
|
-
*
|
|
9369
|
-
*
|
|
9370
|
-
*
|
|
9262
|
+
* OPTIONAL only for the wire: an upsert that omits it means "leave what is
|
|
9263
|
+
* stored" on an update and "born inert unless it is the first location of its
|
|
9264
|
+
* type" on a create. On a PERSISTED row absence is legacy and it means
|
|
9265
|
+
* enabled — {@link isLocationEnabled} is the one place that says so, and the
|
|
9266
|
+
* orchestrator stamps every flagless row `true` once at hydrate so absence
|
|
9267
|
+
* stops existing rather than being re-derived on every read.
|
|
9371
9268
|
*/
|
|
9372
9269
|
enabled: boolean().optional(),
|
|
9373
9270
|
/** COMPUTED at read time by the orchestrator (statfs of the backing volume
|
|
@@ -9380,10 +9277,12 @@ var StorageLocationSchema = object({
|
|
|
9380
9277
|
createdAt: number(),
|
|
9381
9278
|
updatedAt: number()
|
|
9382
9279
|
});
|
|
9280
|
+
object({ isDefault: boolean().optional() });
|
|
9383
9281
|
/**
|
|
9384
9282
|
* Reference accepted by consumer-facing `api.storage.*` calls.
|
|
9385
9283
|
* Either:
|
|
9386
|
-
* - a `StorageLocationType` (e.g. `'backups'`) →
|
|
9284
|
+
* - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
|
|
9285
|
+
* (transitionally, the `<type>:default`-slugged row when several exist)
|
|
9387
9286
|
* - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
|
|
9388
9287
|
*
|
|
9389
9288
|
* The orchestrator's `resolveRef(ref)` handles both cases.
|
|
@@ -9559,6 +9458,111 @@ var DecoderSessionConfigSchema = object({
|
|
|
9559
9458
|
*/
|
|
9560
9459
|
debug: boolean().optional()
|
|
9561
9460
|
});
|
|
9461
|
+
/**
|
|
9462
|
+
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
9463
|
+
* an addon declares its channels in.
|
|
9464
|
+
*
|
|
9465
|
+
* ## Two axes, deliberately separated
|
|
9466
|
+
*
|
|
9467
|
+
* - **DECLARATION** — which channels exist. Only the addon knows:
|
|
9468
|
+
* `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
|
|
9469
|
+
* baichuan/handshake. A hand-wired central list rots at the first addition,
|
|
9470
|
+
* and rots silently. So a channel is declared where it is consulted, and the
|
|
9471
|
+
* `log-channels` capability enumerates the declarations.
|
|
9472
|
+
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
9473
|
+
* thing: the logging settings document on the `system` cap. Two authorities
|
|
9474
|
+
* over the values is the exact defect
|
|
9475
|
+
* `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
|
|
9476
|
+
* remove; re-introducing it from the cure side would be grotesque.
|
|
9477
|
+
*
|
|
9478
|
+
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
9479
|
+
* a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
|
|
9480
|
+
* the hot path with a value somebody actually read, and by
|
|
9481
|
+
* {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
|
|
9482
|
+
* never reaches here, so it can neither disarm an armed channel nor arm a
|
|
9483
|
+
* disarmed one (D49).
|
|
9484
|
+
*
|
|
9485
|
+
* ## The canonical call shape
|
|
9486
|
+
*
|
|
9487
|
+
* ```ts
|
|
9488
|
+
* if (CH_RTP.on && CH_RTP.wants(deviceId)) {
|
|
9489
|
+
* CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
|
|
9490
|
+
* }
|
|
9491
|
+
* ```
|
|
9492
|
+
*
|
|
9493
|
+
* `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
|
|
9494
|
+
* read. Disarmed, a call site costs one load and one branch, and the `extras`
|
|
9495
|
+
* object literal is never constructed because it lives inside the branch. It
|
|
9496
|
+
* is the same shape already proven in production at `stream-broker.ts:1650`,
|
|
9497
|
+
* and the same discipline `LoggingGate.allowsDestination` uses for the
|
|
9498
|
+
* destination floor (measured at 1.93 ns/call when off).
|
|
9499
|
+
*
|
|
9500
|
+
* ## Why a channel emits at `info`
|
|
9501
|
+
*
|
|
9502
|
+
* `loki-logging.addon.ts` pins the destination default at `info` and
|
|
9503
|
+
* `loki-destination.ts` drops everything below it, so a line emitted at
|
|
9504
|
+
* `debug` never reaches Loki and the hub's in-memory ring only holds ~35
|
|
9505
|
+
* minutes. A diagnostic that cannot be read an hour later is worse than no
|
|
9506
|
+
* diagnostic, because it looks done. {@link LogChannelGate.log} therefore
|
|
9507
|
+
* emits at the channel's declared level, whose schema floor is `info`.
|
|
9508
|
+
*/
|
|
9509
|
+
/**
|
|
9510
|
+
* The level a channel writes at once armed.
|
|
9511
|
+
*
|
|
9512
|
+
* `debug` is absent ON PURPOSE and not by omission: below `info` the line does
|
|
9513
|
+
* not leave the process for Loki, and the whole point of arming a channel is
|
|
9514
|
+
* to read it later.
|
|
9515
|
+
*/
|
|
9516
|
+
var LogChannelLevelSchema = _enum([
|
|
9517
|
+
"info",
|
|
9518
|
+
"warn",
|
|
9519
|
+
"error"
|
|
9520
|
+
]);
|
|
9521
|
+
/**
|
|
9522
|
+
* What an addon declares about one channel. No value, no state — a
|
|
9523
|
+
* declaration is inert.
|
|
9524
|
+
*/
|
|
9525
|
+
var LogChannelDescriptorSchema = object({
|
|
9526
|
+
/**
|
|
9527
|
+
* Dotted `area.thing`, unique across the workspace. `area` is conventionally
|
|
9528
|
+
* the addon's short name so an operator reading a channel list can tell who
|
|
9529
|
+
* owns it without a second lookup.
|
|
9530
|
+
*/
|
|
9531
|
+
name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
|
|
9532
|
+
/** One sentence: what the operator will SEE after arming it. */
|
|
9533
|
+
description: string().min(1),
|
|
9534
|
+
/** The level its lines are emitted at. Never below `info`. */
|
|
9535
|
+
defaultLevel: LogChannelLevelSchema,
|
|
9536
|
+
/**
|
|
9537
|
+
* Whether this channel can be narrowed to a camera.
|
|
9538
|
+
*
|
|
9539
|
+
* `true` is a PROMISE with two halves, and both must hold: the gate is
|
|
9540
|
+
* consulted with the numeric device id, AND every line the channel admits
|
|
9541
|
+
* carries `tags: { deviceId }` with that same numeric id. The second half is
|
|
9542
|
+
* what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
|
|
9543
|
+
* keeps `deviceId` out of the stream labels for cardinality, so the tag in
|
|
9544
|
+
* the body is the only way to filter.
|
|
9545
|
+
*
|
|
9546
|
+
* A channel whose lines carry the device only in `meta` (or not at all) is
|
|
9547
|
+
* declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
|
|
9548
|
+
* the operator narrows to one camera, sees nothing, and concludes the code
|
|
9549
|
+
* path was never taken.
|
|
9550
|
+
*/
|
|
9551
|
+
perDevice: boolean()
|
|
9552
|
+
});
|
|
9553
|
+
/**
|
|
9554
|
+
* An armed window over one channel, as the document hands it to a mirror.
|
|
9555
|
+
*
|
|
9556
|
+
* A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
|
|
9557
|
+
* expires by itself, which is the one failure a boolean cannot avoid.
|
|
9558
|
+
*/
|
|
9559
|
+
var LogChannelWindowSchema = object({
|
|
9560
|
+
channel: string().min(1),
|
|
9561
|
+
/** Epoch ms the window closes at. */
|
|
9562
|
+
armedUntilMs: number(),
|
|
9563
|
+
/** `null` = every camera. A non-empty list narrows to those numeric ids. */
|
|
9564
|
+
deviceIds: array(number().int()).readonly().nullable()
|
|
9565
|
+
});
|
|
9562
9566
|
function pickPreferredRtspEntry(entries, pref, deviceId, options = {}) {
|
|
9563
9567
|
if (entries.length === 0) return null;
|
|
9564
9568
|
const prefix = `${deviceId}/`;
|
|
@@ -11269,12 +11273,30 @@ var BackupDestinationInfoSchema = object({
|
|
|
11269
11273
|
lastSuccessAt: number().optional(),
|
|
11270
11274
|
/** Newest-archive size from `manifests.json`, or undefined. */
|
|
11271
11275
|
lastSuccessSizeBytes: number().optional(),
|
|
11272
|
-
/**
|
|
11276
|
+
/**
|
|
11277
|
+
* Cron cadence(s) of the ENABLED schedules that fan out to this
|
|
11278
|
+
* destination, comma-joined. Absent when no enabled schedule targets it
|
|
11279
|
+
* — a destination nothing is scheduled to write to must not advertise a
|
|
11280
|
+
* cadence (D384). This is never the `backup_destination_policies.cron`
|
|
11281
|
+
* column: that per-location cron has scheduled nothing since 2026-07-28
|
|
11282
|
+
* and reading it made a destination with a DISABLED schedule claim a
|
|
11283
|
+
* nightly run.
|
|
11284
|
+
*/
|
|
11273
11285
|
cron: string().optional(),
|
|
11274
|
-
/** ms-epoch of next
|
|
11286
|
+
/** ms-epoch of the next firing across those schedules (earliest), if any. */
|
|
11275
11287
|
nextRunAt: number().optional(),
|
|
11276
|
-
/**
|
|
11277
|
-
|
|
11288
|
+
/**
|
|
11289
|
+
* ms-epoch of the last time a run ATTEMPTED to write here — success or
|
|
11290
|
+
* failure. Never a success stamp: pair it with `lastSuccessAt` (the
|
|
11291
|
+
* newest archive that actually landed) and `lastError`.
|
|
11292
|
+
*/
|
|
11293
|
+
lastAttemptAt: number().optional(),
|
|
11294
|
+
/**
|
|
11295
|
+
* Why the last attempt failed, verbatim. Absent when the last attempt
|
|
11296
|
+
* landed the archive. A destination that has never been written to has
|
|
11297
|
+
* neither this nor `lastAttemptAt`.
|
|
11298
|
+
*/
|
|
11299
|
+
lastError: string().optional()
|
|
11278
11300
|
});
|
|
11279
11301
|
/**
|
|
11280
11302
|
* Per-archive entry returned by `backup.listArchives({ destinationId })`.
|
|
@@ -11437,8 +11459,16 @@ var BackupScheduleSchema = object({
|
|
|
11437
11459
|
retentionCount: number().int().min(1).max(1e3),
|
|
11438
11460
|
/** Optional subset of source locations to include; omitted = all. */
|
|
11439
11461
|
dataSources: array(string()).readonly().optional(),
|
|
11440
|
-
/**
|
|
11441
|
-
|
|
11462
|
+
/**
|
|
11463
|
+
* ms-epoch of the last tick that FIRED this schedule. Stamped before the
|
|
11464
|
+
* archive runs (it is the dedupe anchor), so it says "attempted", never
|
|
11465
|
+
* "succeeded" — a run refused by every destination stamps it too.
|
|
11466
|
+
*/
|
|
11467
|
+
lastAttemptAt: number().optional(),
|
|
11468
|
+
/** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
|
|
11469
|
+
lastSuccessAt: number().optional(),
|
|
11470
|
+
/** Why the last fired run failed, verbatim. Absent when it succeeded. */
|
|
11471
|
+
lastError: string().optional(),
|
|
11442
11472
|
/** ms-epoch of next computed firing (read-only, filled on list). */
|
|
11443
11473
|
nextRunAt: number().optional()
|
|
11444
11474
|
});
|
|
@@ -11487,14 +11517,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
11487
11517
|
locationId: string(),
|
|
11488
11518
|
enabled: boolean(),
|
|
11489
11519
|
retentionCount: number().int().min(1).max(1e3),
|
|
11490
|
-
label: string().optional()
|
|
11491
|
-
/**
|
|
11492
|
-
* Per-destination cron expression. Empty string clears the
|
|
11493
|
-
* schedule (manual-only). Validated server-side via croner;
|
|
11494
|
-
* malformed expressions reject the upsert with an actionable
|
|
11495
|
-
* message.
|
|
11496
|
-
*/
|
|
11497
|
-
cron: string().optional()
|
|
11520
|
+
label: string().optional()
|
|
11498
11521
|
}), _void(), {
|
|
11499
11522
|
kind: "mutation",
|
|
11500
11523
|
auth: "admin"
|
|
@@ -22339,7 +22362,7 @@ method(object({
|
|
|
22339
22362
|
downloadId: string(),
|
|
22340
22363
|
offset: number(),
|
|
22341
22364
|
length: number()
|
|
22342
|
-
}), _instanceof(Uint8Array)), method(object({ downloadId: string() }), _void(), { kind: "mutation" }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(
|
|
22365
|
+
}), _instanceof(Uint8Array)), method(object({ downloadId: string() }), _void(), { kind: "mutation" }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
|
|
22343
22366
|
createdAt: true,
|
|
22344
22367
|
updatedAt: true
|
|
22345
22368
|
}), StorageLocationSchema, {
|
|
@@ -35261,12 +35284,6 @@ Object.freeze({
|
|
|
35261
35284
|
addonId: null,
|
|
35262
35285
|
access: "view"
|
|
35263
35286
|
},
|
|
35264
|
-
"storage.getDefaultLocation": {
|
|
35265
|
-
capName: "storage",
|
|
35266
|
-
capScope: "system",
|
|
35267
|
-
addonId: null,
|
|
35268
|
-
access: "view"
|
|
35269
|
-
},
|
|
35270
35287
|
"storage.list": {
|
|
35271
35288
|
capName: "storage",
|
|
35272
35289
|
capScope: "system",
|
|
@@ -8269,111 +8269,6 @@ var CameraSwitchGroupSchema = object({
|
|
|
8269
8269
|
fetchedAt: number()
|
|
8270
8270
|
});
|
|
8271
8271
|
/**
|
|
8272
|
-
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
8273
|
-
* an addon declares its channels in.
|
|
8274
|
-
*
|
|
8275
|
-
* ## Two axes, deliberately separated
|
|
8276
|
-
*
|
|
8277
|
-
* - **DECLARATION** — which channels exist. Only the addon knows:
|
|
8278
|
-
* `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
|
|
8279
|
-
* baichuan/handshake. A hand-wired central list rots at the first addition,
|
|
8280
|
-
* and rots silently. So a channel is declared where it is consulted, and the
|
|
8281
|
-
* `log-channels` capability enumerates the declarations.
|
|
8282
|
-
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
8283
|
-
* thing: the logging settings document on the `system` cap. Two authorities
|
|
8284
|
-
* over the values is the exact defect
|
|
8285
|
-
* `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
|
|
8286
|
-
* remove; re-introducing it from the cure side would be grotesque.
|
|
8287
|
-
*
|
|
8288
|
-
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
8289
|
-
* a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
|
|
8290
|
-
* the hot path with a value somebody actually read, and by
|
|
8291
|
-
* {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
|
|
8292
|
-
* never reaches here, so it can neither disarm an armed channel nor arm a
|
|
8293
|
-
* disarmed one (D49).
|
|
8294
|
-
*
|
|
8295
|
-
* ## The canonical call shape
|
|
8296
|
-
*
|
|
8297
|
-
* ```ts
|
|
8298
|
-
* if (CH_RTP.on && CH_RTP.wants(deviceId)) {
|
|
8299
|
-
* CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
|
|
8300
|
-
* }
|
|
8301
|
-
* ```
|
|
8302
|
-
*
|
|
8303
|
-
* `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
|
|
8304
|
-
* read. Disarmed, a call site costs one load and one branch, and the `extras`
|
|
8305
|
-
* object literal is never constructed because it lives inside the branch. It
|
|
8306
|
-
* is the same shape already proven in production at `stream-broker.ts:1650`,
|
|
8307
|
-
* and the same discipline `LoggingGate.allowsDestination` uses for the
|
|
8308
|
-
* destination floor (measured at 1.93 ns/call when off).
|
|
8309
|
-
*
|
|
8310
|
-
* ## Why a channel emits at `info`
|
|
8311
|
-
*
|
|
8312
|
-
* `loki-logging.addon.ts` pins the destination default at `info` and
|
|
8313
|
-
* `loki-destination.ts` drops everything below it, so a line emitted at
|
|
8314
|
-
* `debug` never reaches Loki and the hub's in-memory ring only holds ~35
|
|
8315
|
-
* minutes. A diagnostic that cannot be read an hour later is worse than no
|
|
8316
|
-
* diagnostic, because it looks done. {@link LogChannelGate.log} therefore
|
|
8317
|
-
* emits at the channel's declared level, whose schema floor is `info`.
|
|
8318
|
-
*/
|
|
8319
|
-
/**
|
|
8320
|
-
* The level a channel writes at once armed.
|
|
8321
|
-
*
|
|
8322
|
-
* `debug` is absent ON PURPOSE and not by omission: below `info` the line does
|
|
8323
|
-
* not leave the process for Loki, and the whole point of arming a channel is
|
|
8324
|
-
* to read it later.
|
|
8325
|
-
*/
|
|
8326
|
-
var LogChannelLevelSchema = _enum([
|
|
8327
|
-
"info",
|
|
8328
|
-
"warn",
|
|
8329
|
-
"error"
|
|
8330
|
-
]);
|
|
8331
|
-
/**
|
|
8332
|
-
* What an addon declares about one channel. No value, no state — a
|
|
8333
|
-
* declaration is inert.
|
|
8334
|
-
*/
|
|
8335
|
-
var LogChannelDescriptorSchema = object({
|
|
8336
|
-
/**
|
|
8337
|
-
* Dotted `area.thing`, unique across the workspace. `area` is conventionally
|
|
8338
|
-
* the addon's short name so an operator reading a channel list can tell who
|
|
8339
|
-
* owns it without a second lookup.
|
|
8340
|
-
*/
|
|
8341
|
-
name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
|
|
8342
|
-
/** One sentence: what the operator will SEE after arming it. */
|
|
8343
|
-
description: string().min(1),
|
|
8344
|
-
/** The level its lines are emitted at. Never below `info`. */
|
|
8345
|
-
defaultLevel: LogChannelLevelSchema,
|
|
8346
|
-
/**
|
|
8347
|
-
* Whether this channel can be narrowed to a camera.
|
|
8348
|
-
*
|
|
8349
|
-
* `true` is a PROMISE with two halves, and both must hold: the gate is
|
|
8350
|
-
* consulted with the numeric device id, AND every line the channel admits
|
|
8351
|
-
* carries `tags: { deviceId }` with that same numeric id. The second half is
|
|
8352
|
-
* what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
|
|
8353
|
-
* keeps `deviceId` out of the stream labels for cardinality, so the tag in
|
|
8354
|
-
* the body is the only way to filter.
|
|
8355
|
-
*
|
|
8356
|
-
* A channel whose lines carry the device only in `meta` (or not at all) is
|
|
8357
|
-
* declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
|
|
8358
|
-
* the operator narrows to one camera, sees nothing, and concludes the code
|
|
8359
|
-
* path was never taken.
|
|
8360
|
-
*/
|
|
8361
|
-
perDevice: boolean()
|
|
8362
|
-
});
|
|
8363
|
-
/**
|
|
8364
|
-
* An armed window over one channel, as the document hands it to a mirror.
|
|
8365
|
-
*
|
|
8366
|
-
* A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
|
|
8367
|
-
* expires by itself, which is the one failure a boolean cannot avoid.
|
|
8368
|
-
*/
|
|
8369
|
-
var LogChannelWindowSchema = object({
|
|
8370
|
-
channel: string().min(1),
|
|
8371
|
-
/** Epoch ms the window closes at. */
|
|
8372
|
-
armedUntilMs: number(),
|
|
8373
|
-
/** `null` = every camera. A non-empty list narrows to those numeric ids. */
|
|
8374
|
-
deviceIds: array(number().int()).readonly().nullable()
|
|
8375
|
-
});
|
|
8376
|
-
/**
|
|
8377
8272
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8378
8273
|
* recordings and events management surfaces.
|
|
8379
8274
|
*
|
|
@@ -9319,8 +9214,11 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
|
9319
9214
|
* `STORAGE_LOCATION_CARDINALITY` map has been removed.
|
|
9320
9215
|
*
|
|
9321
9216
|
* `id` is a stable namespaced string of the form `<type>:<slug>`.
|
|
9322
|
-
* The
|
|
9323
|
-
*
|
|
9217
|
+
* The seed names its first instance `<type>:default` — a NAME, not a flag.
|
|
9218
|
+
* There is no default location any more (D383): `enabled` is the whole write
|
|
9219
|
+
* model, and a bare type ref resolves to the sole location of the type, or —
|
|
9220
|
+
* transitionally, only while legacy NULL-stamped rows exist — to the row whose
|
|
9221
|
+
* slug is `default`.
|
|
9324
9222
|
*
|
|
9325
9223
|
* `isSystem` is a legacy persisted flag. Seed still creates the initial
|
|
9326
9224
|
* `<type>:default` locations; the flag is no longer a lock, a badge, or a
|
|
@@ -9341,21 +9239,20 @@ var StorageLocationSchema = object({
|
|
|
9341
9239
|
* flag at upsert time, not here (the schema is provider-agnostic).
|
|
9342
9240
|
*/
|
|
9343
9241
|
nodeId: string().optional(),
|
|
9344
|
-
isDefault: boolean().default(false),
|
|
9345
9242
|
isSystem: boolean().default(false),
|
|
9346
9243
|
/**
|
|
9347
|
-
*
|
|
9348
|
-
*
|
|
9349
|
-
*
|
|
9350
|
-
*
|
|
9351
|
-
*
|
|
9244
|
+
* THE write switch, and the only one (D383). `enabled: true` means every
|
|
9245
|
+
* consumer that chooses a write target for this type may write here, and all
|
|
9246
|
+
* enabled locations of a type are used TOGETHER; `false` means read-only —
|
|
9247
|
+
* still read, still played back, still age-swept, still drained, never
|
|
9248
|
+
* written.
|
|
9352
9249
|
*
|
|
9353
|
-
* OPTIONAL
|
|
9354
|
-
*
|
|
9355
|
-
*
|
|
9356
|
-
*
|
|
9357
|
-
*
|
|
9358
|
-
*
|
|
9250
|
+
* OPTIONAL only for the wire: an upsert that omits it means "leave what is
|
|
9251
|
+
* stored" on an update and "born inert unless it is the first location of its
|
|
9252
|
+
* type" on a create. On a PERSISTED row absence is legacy and it means
|
|
9253
|
+
* enabled — {@link isLocationEnabled} is the one place that says so, and the
|
|
9254
|
+
* orchestrator stamps every flagless row `true` once at hydrate so absence
|
|
9255
|
+
* stops existing rather than being re-derived on every read.
|
|
9359
9256
|
*/
|
|
9360
9257
|
enabled: boolean().optional(),
|
|
9361
9258
|
/** COMPUTED at read time by the orchestrator (statfs of the backing volume
|
|
@@ -9368,10 +9265,12 @@ var StorageLocationSchema = object({
|
|
|
9368
9265
|
createdAt: number(),
|
|
9369
9266
|
updatedAt: number()
|
|
9370
9267
|
});
|
|
9268
|
+
object({ isDefault: boolean().optional() });
|
|
9371
9269
|
/**
|
|
9372
9270
|
* Reference accepted by consumer-facing `api.storage.*` calls.
|
|
9373
9271
|
* Either:
|
|
9374
|
-
* - a `StorageLocationType` (e.g. `'backups'`) →
|
|
9272
|
+
* - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
|
|
9273
|
+
* (transitionally, the `<type>:default`-slugged row when several exist)
|
|
9375
9274
|
* - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
|
|
9376
9275
|
*
|
|
9377
9276
|
* The orchestrator's `resolveRef(ref)` handles both cases.
|
|
@@ -9547,6 +9446,111 @@ var DecoderSessionConfigSchema = object({
|
|
|
9547
9446
|
*/
|
|
9548
9447
|
debug: boolean().optional()
|
|
9549
9448
|
});
|
|
9449
|
+
/**
|
|
9450
|
+
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
9451
|
+
* an addon declares its channels in.
|
|
9452
|
+
*
|
|
9453
|
+
* ## Two axes, deliberately separated
|
|
9454
|
+
*
|
|
9455
|
+
* - **DECLARATION** — which channels exist. Only the addon knows:
|
|
9456
|
+
* `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
|
|
9457
|
+
* baichuan/handshake. A hand-wired central list rots at the first addition,
|
|
9458
|
+
* and rots silently. So a channel is declared where it is consulted, and the
|
|
9459
|
+
* `log-channels` capability enumerates the declarations.
|
|
9460
|
+
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
9461
|
+
* thing: the logging settings document on the `system` cap. Two authorities
|
|
9462
|
+
* over the values is the exact defect
|
|
9463
|
+
* `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
|
|
9464
|
+
* remove; re-introducing it from the cure side would be grotesque.
|
|
9465
|
+
*
|
|
9466
|
+
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
9467
|
+
* a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
|
|
9468
|
+
* the hot path with a value somebody actually read, and by
|
|
9469
|
+
* {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
|
|
9470
|
+
* never reaches here, so it can neither disarm an armed channel nor arm a
|
|
9471
|
+
* disarmed one (D49).
|
|
9472
|
+
*
|
|
9473
|
+
* ## The canonical call shape
|
|
9474
|
+
*
|
|
9475
|
+
* ```ts
|
|
9476
|
+
* if (CH_RTP.on && CH_RTP.wants(deviceId)) {
|
|
9477
|
+
* CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
|
|
9478
|
+
* }
|
|
9479
|
+
* ```
|
|
9480
|
+
*
|
|
9481
|
+
* `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
|
|
9482
|
+
* read. Disarmed, a call site costs one load and one branch, and the `extras`
|
|
9483
|
+
* object literal is never constructed because it lives inside the branch. It
|
|
9484
|
+
* is the same shape already proven in production at `stream-broker.ts:1650`,
|
|
9485
|
+
* and the same discipline `LoggingGate.allowsDestination` uses for the
|
|
9486
|
+
* destination floor (measured at 1.93 ns/call when off).
|
|
9487
|
+
*
|
|
9488
|
+
* ## Why a channel emits at `info`
|
|
9489
|
+
*
|
|
9490
|
+
* `loki-logging.addon.ts` pins the destination default at `info` and
|
|
9491
|
+
* `loki-destination.ts` drops everything below it, so a line emitted at
|
|
9492
|
+
* `debug` never reaches Loki and the hub's in-memory ring only holds ~35
|
|
9493
|
+
* minutes. A diagnostic that cannot be read an hour later is worse than no
|
|
9494
|
+
* diagnostic, because it looks done. {@link LogChannelGate.log} therefore
|
|
9495
|
+
* emits at the channel's declared level, whose schema floor is `info`.
|
|
9496
|
+
*/
|
|
9497
|
+
/**
|
|
9498
|
+
* The level a channel writes at once armed.
|
|
9499
|
+
*
|
|
9500
|
+
* `debug` is absent ON PURPOSE and not by omission: below `info` the line does
|
|
9501
|
+
* not leave the process for Loki, and the whole point of arming a channel is
|
|
9502
|
+
* to read it later.
|
|
9503
|
+
*/
|
|
9504
|
+
var LogChannelLevelSchema = _enum([
|
|
9505
|
+
"info",
|
|
9506
|
+
"warn",
|
|
9507
|
+
"error"
|
|
9508
|
+
]);
|
|
9509
|
+
/**
|
|
9510
|
+
* What an addon declares about one channel. No value, no state — a
|
|
9511
|
+
* declaration is inert.
|
|
9512
|
+
*/
|
|
9513
|
+
var LogChannelDescriptorSchema = object({
|
|
9514
|
+
/**
|
|
9515
|
+
* Dotted `area.thing`, unique across the workspace. `area` is conventionally
|
|
9516
|
+
* the addon's short name so an operator reading a channel list can tell who
|
|
9517
|
+
* owns it without a second lookup.
|
|
9518
|
+
*/
|
|
9519
|
+
name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
|
|
9520
|
+
/** One sentence: what the operator will SEE after arming it. */
|
|
9521
|
+
description: string().min(1),
|
|
9522
|
+
/** The level its lines are emitted at. Never below `info`. */
|
|
9523
|
+
defaultLevel: LogChannelLevelSchema,
|
|
9524
|
+
/**
|
|
9525
|
+
* Whether this channel can be narrowed to a camera.
|
|
9526
|
+
*
|
|
9527
|
+
* `true` is a PROMISE with two halves, and both must hold: the gate is
|
|
9528
|
+
* consulted with the numeric device id, AND every line the channel admits
|
|
9529
|
+
* carries `tags: { deviceId }` with that same numeric id. The second half is
|
|
9530
|
+
* what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
|
|
9531
|
+
* keeps `deviceId` out of the stream labels for cardinality, so the tag in
|
|
9532
|
+
* the body is the only way to filter.
|
|
9533
|
+
*
|
|
9534
|
+
* A channel whose lines carry the device only in `meta` (or not at all) is
|
|
9535
|
+
* declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
|
|
9536
|
+
* the operator narrows to one camera, sees nothing, and concludes the code
|
|
9537
|
+
* path was never taken.
|
|
9538
|
+
*/
|
|
9539
|
+
perDevice: boolean()
|
|
9540
|
+
});
|
|
9541
|
+
/**
|
|
9542
|
+
* An armed window over one channel, as the document hands it to a mirror.
|
|
9543
|
+
*
|
|
9544
|
+
* A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
|
|
9545
|
+
* expires by itself, which is the one failure a boolean cannot avoid.
|
|
9546
|
+
*/
|
|
9547
|
+
var LogChannelWindowSchema = object({
|
|
9548
|
+
channel: string().min(1),
|
|
9549
|
+
/** Epoch ms the window closes at. */
|
|
9550
|
+
armedUntilMs: number(),
|
|
9551
|
+
/** `null` = every camera. A non-empty list narrows to those numeric ids. */
|
|
9552
|
+
deviceIds: array(number().int()).readonly().nullable()
|
|
9553
|
+
});
|
|
9550
9554
|
function pickPreferredRtspEntry(entries, pref, deviceId, options = {}) {
|
|
9551
9555
|
if (entries.length === 0) return null;
|
|
9552
9556
|
const prefix = `${deviceId}/`;
|
|
@@ -11257,12 +11261,30 @@ var BackupDestinationInfoSchema = object({
|
|
|
11257
11261
|
lastSuccessAt: number().optional(),
|
|
11258
11262
|
/** Newest-archive size from `manifests.json`, or undefined. */
|
|
11259
11263
|
lastSuccessSizeBytes: number().optional(),
|
|
11260
|
-
/**
|
|
11264
|
+
/**
|
|
11265
|
+
* Cron cadence(s) of the ENABLED schedules that fan out to this
|
|
11266
|
+
* destination, comma-joined. Absent when no enabled schedule targets it
|
|
11267
|
+
* — a destination nothing is scheduled to write to must not advertise a
|
|
11268
|
+
* cadence (D384). This is never the `backup_destination_policies.cron`
|
|
11269
|
+
* column: that per-location cron has scheduled nothing since 2026-07-28
|
|
11270
|
+
* and reading it made a destination with a DISABLED schedule claim a
|
|
11271
|
+
* nightly run.
|
|
11272
|
+
*/
|
|
11261
11273
|
cron: string().optional(),
|
|
11262
|
-
/** ms-epoch of next
|
|
11274
|
+
/** ms-epoch of the next firing across those schedules (earliest), if any. */
|
|
11263
11275
|
nextRunAt: number().optional(),
|
|
11264
|
-
/**
|
|
11265
|
-
|
|
11276
|
+
/**
|
|
11277
|
+
* ms-epoch of the last time a run ATTEMPTED to write here — success or
|
|
11278
|
+
* failure. Never a success stamp: pair it with `lastSuccessAt` (the
|
|
11279
|
+
* newest archive that actually landed) and `lastError`.
|
|
11280
|
+
*/
|
|
11281
|
+
lastAttemptAt: number().optional(),
|
|
11282
|
+
/**
|
|
11283
|
+
* Why the last attempt failed, verbatim. Absent when the last attempt
|
|
11284
|
+
* landed the archive. A destination that has never been written to has
|
|
11285
|
+
* neither this nor `lastAttemptAt`.
|
|
11286
|
+
*/
|
|
11287
|
+
lastError: string().optional()
|
|
11266
11288
|
});
|
|
11267
11289
|
/**
|
|
11268
11290
|
* Per-archive entry returned by `backup.listArchives({ destinationId })`.
|
|
@@ -11425,8 +11447,16 @@ var BackupScheduleSchema = object({
|
|
|
11425
11447
|
retentionCount: number().int().min(1).max(1e3),
|
|
11426
11448
|
/** Optional subset of source locations to include; omitted = all. */
|
|
11427
11449
|
dataSources: array(string()).readonly().optional(),
|
|
11428
|
-
/**
|
|
11429
|
-
|
|
11450
|
+
/**
|
|
11451
|
+
* ms-epoch of the last tick that FIRED this schedule. Stamped before the
|
|
11452
|
+
* archive runs (it is the dedupe anchor), so it says "attempted", never
|
|
11453
|
+
* "succeeded" — a run refused by every destination stamps it too.
|
|
11454
|
+
*/
|
|
11455
|
+
lastAttemptAt: number().optional(),
|
|
11456
|
+
/** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
|
|
11457
|
+
lastSuccessAt: number().optional(),
|
|
11458
|
+
/** Why the last fired run failed, verbatim. Absent when it succeeded. */
|
|
11459
|
+
lastError: string().optional(),
|
|
11430
11460
|
/** ms-epoch of next computed firing (read-only, filled on list). */
|
|
11431
11461
|
nextRunAt: number().optional()
|
|
11432
11462
|
});
|
|
@@ -11475,14 +11505,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
11475
11505
|
locationId: string(),
|
|
11476
11506
|
enabled: boolean(),
|
|
11477
11507
|
retentionCount: number().int().min(1).max(1e3),
|
|
11478
|
-
label: string().optional()
|
|
11479
|
-
/**
|
|
11480
|
-
* Per-destination cron expression. Empty string clears the
|
|
11481
|
-
* schedule (manual-only). Validated server-side via croner;
|
|
11482
|
-
* malformed expressions reject the upsert with an actionable
|
|
11483
|
-
* message.
|
|
11484
|
-
*/
|
|
11485
|
-
cron: string().optional()
|
|
11508
|
+
label: string().optional()
|
|
11486
11509
|
}), _void(), {
|
|
11487
11510
|
kind: "mutation",
|
|
11488
11511
|
auth: "admin"
|
|
@@ -22327,7 +22350,7 @@ method(object({
|
|
|
22327
22350
|
downloadId: string(),
|
|
22328
22351
|
offset: number(),
|
|
22329
22352
|
length: number()
|
|
22330
|
-
}), _instanceof(Uint8Array)), method(object({ downloadId: string() }), _void(), { kind: "mutation" }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(
|
|
22353
|
+
}), _instanceof(Uint8Array)), method(object({ downloadId: string() }), _void(), { kind: "mutation" }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
|
|
22331
22354
|
createdAt: true,
|
|
22332
22355
|
updatedAt: true
|
|
22333
22356
|
}), StorageLocationSchema, {
|
|
@@ -35249,12 +35272,6 @@ Object.freeze({
|
|
|
35249
35272
|
addonId: null,
|
|
35250
35273
|
access: "view"
|
|
35251
35274
|
},
|
|
35252
|
-
"storage.getDefaultLocation": {
|
|
35253
|
-
capName: "storage",
|
|
35254
|
-
capScope: "system",
|
|
35255
|
-
addonId: null,
|
|
35256
|
-
access: "view"
|
|
35257
|
-
},
|
|
35258
35275
|
"storage.list": {
|
|
35259
35276
|
capName: "storage",
|
|
35260
35277
|
capScope: "system",
|
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.90",
|
|
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",
|