@camstack/addon-provider-reolink 1.2.99 → 1.2.101
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 +52 -18
- package/dist/addon.mjs +52 -18
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8240,13 +8240,28 @@ var RecordingBandSchema = object({
|
|
|
8240
8240
|
end: string().regex(HHMM),
|
|
8241
8241
|
mode: RecordingBandModeSchema,
|
|
8242
8242
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
8243
|
+
/**
|
|
8244
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
8245
|
+
*
|
|
8246
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
8247
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
8248
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
8249
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
8250
|
+
* expression of the broker's retention, in different units, in a different
|
|
8251
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
8252
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
8253
|
+
* left to configure here.
|
|
8254
|
+
*
|
|
8255
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
8256
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
8257
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
8258
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
8259
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
8260
|
+
*/
|
|
8243
8261
|
preBufferSec: number().min(0).optional(),
|
|
8244
8262
|
postBufferSec: number().min(0).optional()
|
|
8245
8263
|
});
|
|
8246
|
-
({
|
|
8247
|
-
preBufferSec: 15,
|
|
8248
|
-
postBufferSec: 30
|
|
8249
|
-
}).postBufferSec * 1e3;
|
|
8264
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
8250
8265
|
/**
|
|
8251
8266
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
8252
8267
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -11104,12 +11119,30 @@ var BackupDestinationInfoSchema = object({
|
|
|
11104
11119
|
lastSuccessAt: number().optional(),
|
|
11105
11120
|
/** Newest-archive size from `manifests.json`, or undefined. */
|
|
11106
11121
|
lastSuccessSizeBytes: number().optional(),
|
|
11107
|
-
/**
|
|
11122
|
+
/**
|
|
11123
|
+
* Cron cadence(s) of the ENABLED schedules that fan out to this
|
|
11124
|
+
* destination, comma-joined. Absent when no enabled schedule targets it
|
|
11125
|
+
* — a destination nothing is scheduled to write to must not advertise a
|
|
11126
|
+
* cadence (D384). This is never the `backup_destination_policies.cron`
|
|
11127
|
+
* column: that per-location cron has scheduled nothing since 2026-07-28
|
|
11128
|
+
* and reading it made a destination with a DISABLED schedule claim a
|
|
11129
|
+
* nightly run.
|
|
11130
|
+
*/
|
|
11108
11131
|
cron: string().optional(),
|
|
11109
|
-
/** ms-epoch of next
|
|
11132
|
+
/** ms-epoch of the next firing across those schedules (earliest), if any. */
|
|
11110
11133
|
nextRunAt: number().optional(),
|
|
11111
|
-
/**
|
|
11112
|
-
|
|
11134
|
+
/**
|
|
11135
|
+
* ms-epoch of the last time a run ATTEMPTED to write here — success or
|
|
11136
|
+
* failure. Never a success stamp: pair it with `lastSuccessAt` (the
|
|
11137
|
+
* newest archive that actually landed) and `lastError`.
|
|
11138
|
+
*/
|
|
11139
|
+
lastAttemptAt: number().optional(),
|
|
11140
|
+
/**
|
|
11141
|
+
* Why the last attempt failed, verbatim. Absent when the last attempt
|
|
11142
|
+
* landed the archive. A destination that has never been written to has
|
|
11143
|
+
* neither this nor `lastAttemptAt`.
|
|
11144
|
+
*/
|
|
11145
|
+
lastError: string().optional()
|
|
11113
11146
|
});
|
|
11114
11147
|
/**
|
|
11115
11148
|
* Per-archive entry returned by `backup.listArchives({ destinationId })`.
|
|
@@ -11272,8 +11305,16 @@ var BackupScheduleSchema = object({
|
|
|
11272
11305
|
retentionCount: number().int().min(1).max(1e3),
|
|
11273
11306
|
/** Optional subset of source locations to include; omitted = all. */
|
|
11274
11307
|
dataSources: array(string()).readonly().optional(),
|
|
11275
|
-
/**
|
|
11276
|
-
|
|
11308
|
+
/**
|
|
11309
|
+
* ms-epoch of the last tick that FIRED this schedule. Stamped before the
|
|
11310
|
+
* archive runs (it is the dedupe anchor), so it says "attempted", never
|
|
11311
|
+
* "succeeded" — a run refused by every destination stamps it too.
|
|
11312
|
+
*/
|
|
11313
|
+
lastAttemptAt: number().optional(),
|
|
11314
|
+
/** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
|
|
11315
|
+
lastSuccessAt: number().optional(),
|
|
11316
|
+
/** Why the last fired run failed, verbatim. Absent when it succeeded. */
|
|
11317
|
+
lastError: string().optional(),
|
|
11277
11318
|
/** ms-epoch of next computed firing (read-only, filled on list). */
|
|
11278
11319
|
nextRunAt: number().optional()
|
|
11279
11320
|
});
|
|
@@ -11322,14 +11363,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
11322
11363
|
locationId: string(),
|
|
11323
11364
|
enabled: boolean(),
|
|
11324
11365
|
retentionCount: number().int().min(1).max(1e3),
|
|
11325
|
-
label: string().optional()
|
|
11326
|
-
/**
|
|
11327
|
-
* Per-destination cron expression. Empty string clears the
|
|
11328
|
-
* schedule (manual-only). Validated server-side via croner;
|
|
11329
|
-
* malformed expressions reject the upsert with an actionable
|
|
11330
|
-
* message.
|
|
11331
|
-
*/
|
|
11332
|
-
cron: string().optional()
|
|
11366
|
+
label: string().optional()
|
|
11333
11367
|
}), _void(), {
|
|
11334
11368
|
kind: "mutation",
|
|
11335
11369
|
auth: "admin"
|
package/dist/addon.mjs
CHANGED
|
@@ -8235,13 +8235,28 @@ var RecordingBandSchema = object({
|
|
|
8235
8235
|
end: string().regex(HHMM),
|
|
8236
8236
|
mode: RecordingBandModeSchema,
|
|
8237
8237
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
8238
|
+
/**
|
|
8239
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
8240
|
+
*
|
|
8241
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
8242
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
8243
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
8244
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
8245
|
+
* expression of the broker's retention, in different units, in a different
|
|
8246
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
8247
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
8248
|
+
* left to configure here.
|
|
8249
|
+
*
|
|
8250
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
8251
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
8252
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
8253
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
8254
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
8255
|
+
*/
|
|
8238
8256
|
preBufferSec: number().min(0).optional(),
|
|
8239
8257
|
postBufferSec: number().min(0).optional()
|
|
8240
8258
|
});
|
|
8241
|
-
({
|
|
8242
|
-
preBufferSec: 15,
|
|
8243
|
-
postBufferSec: 30
|
|
8244
|
-
}).postBufferSec * 1e3;
|
|
8259
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
8245
8260
|
/**
|
|
8246
8261
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
8247
8262
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -11099,12 +11114,30 @@ var BackupDestinationInfoSchema = object({
|
|
|
11099
11114
|
lastSuccessAt: number().optional(),
|
|
11100
11115
|
/** Newest-archive size from `manifests.json`, or undefined. */
|
|
11101
11116
|
lastSuccessSizeBytes: number().optional(),
|
|
11102
|
-
/**
|
|
11117
|
+
/**
|
|
11118
|
+
* Cron cadence(s) of the ENABLED schedules that fan out to this
|
|
11119
|
+
* destination, comma-joined. Absent when no enabled schedule targets it
|
|
11120
|
+
* — a destination nothing is scheduled to write to must not advertise a
|
|
11121
|
+
* cadence (D384). This is never the `backup_destination_policies.cron`
|
|
11122
|
+
* column: that per-location cron has scheduled nothing since 2026-07-28
|
|
11123
|
+
* and reading it made a destination with a DISABLED schedule claim a
|
|
11124
|
+
* nightly run.
|
|
11125
|
+
*/
|
|
11103
11126
|
cron: string().optional(),
|
|
11104
|
-
/** ms-epoch of next
|
|
11127
|
+
/** ms-epoch of the next firing across those schedules (earliest), if any. */
|
|
11105
11128
|
nextRunAt: number().optional(),
|
|
11106
|
-
/**
|
|
11107
|
-
|
|
11129
|
+
/**
|
|
11130
|
+
* ms-epoch of the last time a run ATTEMPTED to write here — success or
|
|
11131
|
+
* failure. Never a success stamp: pair it with `lastSuccessAt` (the
|
|
11132
|
+
* newest archive that actually landed) and `lastError`.
|
|
11133
|
+
*/
|
|
11134
|
+
lastAttemptAt: number().optional(),
|
|
11135
|
+
/**
|
|
11136
|
+
* Why the last attempt failed, verbatim. Absent when the last attempt
|
|
11137
|
+
* landed the archive. A destination that has never been written to has
|
|
11138
|
+
* neither this nor `lastAttemptAt`.
|
|
11139
|
+
*/
|
|
11140
|
+
lastError: string().optional()
|
|
11108
11141
|
});
|
|
11109
11142
|
/**
|
|
11110
11143
|
* Per-archive entry returned by `backup.listArchives({ destinationId })`.
|
|
@@ -11267,8 +11300,16 @@ var BackupScheduleSchema = object({
|
|
|
11267
11300
|
retentionCount: number().int().min(1).max(1e3),
|
|
11268
11301
|
/** Optional subset of source locations to include; omitted = all. */
|
|
11269
11302
|
dataSources: array(string()).readonly().optional(),
|
|
11270
|
-
/**
|
|
11271
|
-
|
|
11303
|
+
/**
|
|
11304
|
+
* ms-epoch of the last tick that FIRED this schedule. Stamped before the
|
|
11305
|
+
* archive runs (it is the dedupe anchor), so it says "attempted", never
|
|
11306
|
+
* "succeeded" — a run refused by every destination stamps it too.
|
|
11307
|
+
*/
|
|
11308
|
+
lastAttemptAt: number().optional(),
|
|
11309
|
+
/** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
|
|
11310
|
+
lastSuccessAt: number().optional(),
|
|
11311
|
+
/** Why the last fired run failed, verbatim. Absent when it succeeded. */
|
|
11312
|
+
lastError: string().optional(),
|
|
11272
11313
|
/** ms-epoch of next computed firing (read-only, filled on list). */
|
|
11273
11314
|
nextRunAt: number().optional()
|
|
11274
11315
|
});
|
|
@@ -11317,14 +11358,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
11317
11358
|
locationId: string(),
|
|
11318
11359
|
enabled: boolean(),
|
|
11319
11360
|
retentionCount: number().int().min(1).max(1e3),
|
|
11320
|
-
label: string().optional()
|
|
11321
|
-
/**
|
|
11322
|
-
* Per-destination cron expression. Empty string clears the
|
|
11323
|
-
* schedule (manual-only). Validated server-side via croner;
|
|
11324
|
-
* malformed expressions reject the upsert with an actionable
|
|
11325
|
-
* message.
|
|
11326
|
-
*/
|
|
11327
|
-
cron: string().optional()
|
|
11361
|
+
label: string().optional()
|
|
11328
11362
|
}), _void(), {
|
|
11329
11363
|
kind: "mutation",
|
|
11330
11364
|
auth: "admin"
|