@camstack/addon-matter-broker 0.2.48 → 0.2.50
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 +236 -73
- package/dist/addon.mjs +236 -73
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8110,6 +8110,13 @@ var MediaRelocateModeSchema = _enum([
|
|
|
8110
8110
|
]);
|
|
8111
8111
|
var RelocateMediaInputSchema = object({
|
|
8112
8112
|
toLocationId: string$2(),
|
|
8113
|
+
/**
|
|
8114
|
+
* Restrict the pass to rows currently on this location. Omitted / `'*'` =
|
|
8115
|
+
* every row that is not already on `toLocationId` (the historical
|
|
8116
|
+
* behaviour). A named source is what a from→to migration needs: without it
|
|
8117
|
+
* "move events off disk 2" also emptied disk 1.
|
|
8118
|
+
*/
|
|
8119
|
+
fromLocationId: string$2().optional(),
|
|
8113
8120
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8114
8121
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8115
8122
|
mode: MediaRelocateModeSchema.optional()
|
|
@@ -8177,6 +8184,19 @@ var StorageMigrationDestinationsSchema = object({
|
|
|
8177
8184
|
galleryMedia: string$2().min(1).optional()
|
|
8178
8185
|
}).refine((value) => Object.keys(value).length > 0, { message: "select at least one storage class" });
|
|
8179
8186
|
/**
|
|
8187
|
+
* Optional named source per class. Omitted = the class's current default
|
|
8188
|
+
* (the historical behaviour). A named source that is NOT the default is a
|
|
8189
|
+
* drain of that disk: bytes move, the default stays, and the source is
|
|
8190
|
+
* disabled when the move finishes.
|
|
8191
|
+
*/
|
|
8192
|
+
var StorageMigrationSourcesSchema = object({
|
|
8193
|
+
recordings: string$2().min(1).optional(),
|
|
8194
|
+
recordingsLow: string$2().min(1).optional(),
|
|
8195
|
+
eventMedia: string$2().min(1).optional(),
|
|
8196
|
+
backups: string$2().min(1).optional(),
|
|
8197
|
+
galleryMedia: string$2().min(1).optional()
|
|
8198
|
+
}).optional();
|
|
8199
|
+
/**
|
|
8180
8200
|
* How a migration sequences the cutover against the byte move.
|
|
8181
8201
|
*
|
|
8182
8202
|
* - `blocking` — the historical order: pause, move every byte, repoint,
|
|
@@ -8198,6 +8218,8 @@ var StorageMigrationModeSchema = _enum(["blocking", "nonBlocking"]);
|
|
|
8198
8218
|
/** Shared input for planning and starting an orchestrated storage migration. */
|
|
8199
8219
|
var StorageMigrationInputSchema = object({
|
|
8200
8220
|
destinations: StorageMigrationDestinationsSchema,
|
|
8221
|
+
/** Omitted = each class's current default. */
|
|
8222
|
+
sources: StorageMigrationSourcesSchema,
|
|
8201
8223
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8202
8224
|
/** Omitted = `blocking`, which stays the default. */
|
|
8203
8225
|
mode: StorageMigrationModeSchema.optional()
|
|
@@ -8277,6 +8299,13 @@ var StorageMigrationMoveSchema = object({
|
|
|
8277
8299
|
storageClass: StorageMigrationClassSchema,
|
|
8278
8300
|
fromLocationId: string$2(),
|
|
8279
8301
|
toLocationId: string$2(),
|
|
8302
|
+
/**
|
|
8303
|
+
* True when `from` was NOT the class default at plan time. The move still
|
|
8304
|
+
* copies bytes, but the default is left alone and the source is disabled
|
|
8305
|
+
* once the copy verifies. Absent on jobs planned before this field existed
|
|
8306
|
+
* — those jobs always repointed, which is `false`.
|
|
8307
|
+
*/
|
|
8308
|
+
freezeSource: boolean().optional(),
|
|
8280
8309
|
moverJobId: string$2().nullable(),
|
|
8281
8310
|
state: RelocateJobStateSchema.nullable(),
|
|
8282
8311
|
error: string$2().nullable(),
|
|
@@ -8290,6 +8319,7 @@ var StorageMigrationJobSchema = object({
|
|
|
8290
8319
|
* can tell a seconds-long cutover from a thirty-hour one. */
|
|
8291
8320
|
mode: StorageMigrationModeSchema,
|
|
8292
8321
|
destinations: StorageMigrationDestinationsSchema,
|
|
8322
|
+
sources: StorageMigrationSourcesSchema,
|
|
8293
8323
|
throttleMbps: number(),
|
|
8294
8324
|
moves: array(StorageMigrationMoveSchema),
|
|
8295
8325
|
pauseLeaseId: string$2().nullable(),
|
|
@@ -8315,6 +8345,7 @@ var StorageMigrationFindingSchema = object({
|
|
|
8315
8345
|
});
|
|
8316
8346
|
var StorageMigrationPlanSchema = object({
|
|
8317
8347
|
destinations: StorageMigrationDestinationsSchema,
|
|
8348
|
+
sources: StorageMigrationSourcesSchema,
|
|
8318
8349
|
/** The mode this plan was built for. A plan is only valid for its mode: the
|
|
8319
8350
|
* `eventMedia` seal gate and the single-cardinality refusal both depend on
|
|
8320
8351
|
* it. */
|
|
@@ -8322,7 +8353,8 @@ var StorageMigrationPlanSchema = object({
|
|
|
8322
8353
|
moves: array(object({
|
|
8323
8354
|
storageClass: StorageMigrationClassSchema,
|
|
8324
8355
|
fromLocationId: string$2(),
|
|
8325
|
-
toLocationId: string$2()
|
|
8356
|
+
toLocationId: string$2(),
|
|
8357
|
+
freezeSource: boolean().optional()
|
|
8326
8358
|
})),
|
|
8327
8359
|
findings: array(StorageMigrationFindingSchema)
|
|
8328
8360
|
});
|
|
@@ -8500,10 +8532,51 @@ var LedgerWalkReportSchema = object({
|
|
|
8500
8532
|
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8501
8533
|
var RelocatableMediaCountInputSchema = object({
|
|
8502
8534
|
toLocationId: string$2().min(1),
|
|
8535
|
+
/** Restrict the count to one source; omitted / `'*'` = every non-target row. */
|
|
8536
|
+
fromLocationId: string$2().optional(),
|
|
8503
8537
|
/** Omitted = `move`. */
|
|
8504
8538
|
mode: MediaRelocateModeSchema.optional()
|
|
8505
8539
|
});
|
|
8506
8540
|
/**
|
|
8541
|
+
* Operator cleanup of leftover analytics rows, optional debug media, and
|
|
8542
|
+
* ghost ledger entries on frozen footage locations.
|
|
8543
|
+
*
|
|
8544
|
+
* A pass is tens of minutes on a standing backlog. The hub method RETURNS
|
|
8545
|
+
* `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
|
|
8546
|
+
* is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
|
|
8547
|
+
* with no operator-visible status.
|
|
8548
|
+
*/
|
|
8549
|
+
var StorageCleanupPhaseSchema = _enum([
|
|
8550
|
+
"orphans",
|
|
8551
|
+
"debug-media",
|
|
8552
|
+
"ghost-ledger",
|
|
8553
|
+
"done",
|
|
8554
|
+
"failed",
|
|
8555
|
+
"cancelled"
|
|
8556
|
+
]);
|
|
8557
|
+
var StorageCleanupInputSchema = object({
|
|
8558
|
+
/** Also walk motion stills / track filmstrips. Off by default. */
|
|
8559
|
+
includeDebugMedia: boolean().optional() });
|
|
8560
|
+
var StorageCleanupJobSchema = object({
|
|
8561
|
+
jobId: string$2(),
|
|
8562
|
+
phase: StorageCleanupPhaseSchema,
|
|
8563
|
+
includeDebugMedia: boolean(),
|
|
8564
|
+
orphansReclaimed: number().int().nonnegative(),
|
|
8565
|
+
orphanBytesReclaimed: number().int().nonnegative(),
|
|
8566
|
+
debugMediaReclaimed: number().int().nonnegative(),
|
|
8567
|
+
debugMediaBytesReclaimed: number().int().nonnegative(),
|
|
8568
|
+
ghostsForgotten: number().int().nonnegative(),
|
|
8569
|
+
ghostBytesForgotten: number().int().nonnegative(),
|
|
8570
|
+
/** Short operator-facing line: current collection, pass, or location. */
|
|
8571
|
+
detail: string$2().nullable(),
|
|
8572
|
+
cancelRequested: boolean(),
|
|
8573
|
+
startedAt: number(),
|
|
8574
|
+
updatedAt: number(),
|
|
8575
|
+
finishedAt: number().nullable(),
|
|
8576
|
+
error: string$2().nullable()
|
|
8577
|
+
});
|
|
8578
|
+
var StorageCleanupStatusInputSchema = object({ jobId: string$2().optional() });
|
|
8579
|
+
/**
|
|
8507
8580
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8508
8581
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8509
8582
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8531,11 +8604,10 @@ var StorageLocationTypeSchema = string$2().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
|
8531
8604
|
* The default location for a type uses `id === <type>:default` by
|
|
8532
8605
|
* convention (the bare type ref like `'backups'` resolves to it).
|
|
8533
8606
|
*
|
|
8534
|
-
* `isSystem
|
|
8535
|
-
*
|
|
8536
|
-
*
|
|
8537
|
-
*
|
|
8538
|
-
* deleting it is rejected at the cap level.
|
|
8607
|
+
* `isSystem` is a legacy persisted flag. Seed still creates the initial
|
|
8608
|
+
* `<type>:default` locations; the flag is no longer a lock, a badge, or a
|
|
8609
|
+
* prune selector. New writes leave it false. Deletion is gated on uniqueness
|
|
8610
|
+
* / last-enabled, not on this bit.
|
|
8539
8611
|
*/
|
|
8540
8612
|
var StorageLocationSchema = object({
|
|
8541
8613
|
id: string$2().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
|
|
@@ -13127,6 +13199,12 @@ method(object({
|
|
|
13127
13199
|
}), _void(), {
|
|
13128
13200
|
kind: "mutation",
|
|
13129
13201
|
auth: "admin"
|
|
13202
|
+
}), method(object({
|
|
13203
|
+
from: string$2(),
|
|
13204
|
+
to: string$2()
|
|
13205
|
+
}), object({ moved: number() }), {
|
|
13206
|
+
kind: "mutation",
|
|
13207
|
+
auth: "admin"
|
|
13130
13208
|
}), method(object({
|
|
13131
13209
|
deviceId: number(),
|
|
13132
13210
|
disabled: boolean()
|
|
@@ -15877,6 +15955,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15877
15955
|
"device-offline",
|
|
15878
15956
|
"device-disabled",
|
|
15879
15957
|
"device-enabled",
|
|
15958
|
+
"device-battery-low",
|
|
15959
|
+
"device-battery-normal",
|
|
15880
15960
|
"stream-online",
|
|
15881
15961
|
"stream-offline",
|
|
15882
15962
|
"node-online",
|
|
@@ -19135,46 +19215,6 @@ var RecentTracksPageSchema = object({
|
|
|
19135
19215
|
/** Cursor for the next page, or null when this page is the last. */
|
|
19136
19216
|
nextCursor: string$2().nullable()
|
|
19137
19217
|
});
|
|
19138
|
-
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
19139
|
-
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
19140
|
-
var AnalyticsGroupRecordSchema = object({
|
|
19141
|
-
id: string$2(),
|
|
19142
|
-
deviceId: number().int(),
|
|
19143
|
-
openedAt: number().int(),
|
|
19144
|
-
closedAt: number().int(),
|
|
19145
|
-
timestamp: number().int(),
|
|
19146
|
-
memberCount: number().int(),
|
|
19147
|
-
memberTrackIds: array(string$2()).readonly(),
|
|
19148
|
-
className: string$2(),
|
|
19149
|
-
classes: array(string$2()).readonly(),
|
|
19150
|
-
/** Relative event-media path, or null when the group has no picture yet. */
|
|
19151
|
-
mediaUrl: string$2().nullable(),
|
|
19152
|
-
singleton: boolean()
|
|
19153
|
-
});
|
|
19154
|
-
var AnalyticsGroupMemberSchema = object({
|
|
19155
|
-
trackId: string$2(),
|
|
19156
|
-
deviceId: number().int(),
|
|
19157
|
-
className: string$2(),
|
|
19158
|
-
firstSeen: number().int(),
|
|
19159
|
-
lastSeen: number().int(),
|
|
19160
|
-
mediaUrl: string$2().nullable()
|
|
19161
|
-
});
|
|
19162
|
-
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
19163
|
-
var ListGroupsQueryInput = object({
|
|
19164
|
-
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
19165
|
-
deviceIds: array(number()),
|
|
19166
|
-
/** Window lower bound on `closedAt` (inclusive). */
|
|
19167
|
-
since: number().optional(),
|
|
19168
|
-
/** Window upper bound on `openedAt` (inclusive). */
|
|
19169
|
-
until: number().optional(),
|
|
19170
|
-
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
19171
|
-
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19172
|
-
cursor: string$2().optional()
|
|
19173
|
-
});
|
|
19174
|
-
var ListGroupsPageSchema = object({
|
|
19175
|
-
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
19176
|
-
nextCursor: string$2().nullable()
|
|
19177
|
-
});
|
|
19178
19218
|
var KEY_EVENTS_DEFAULT_LIMIT = 50;
|
|
19179
19219
|
var KEY_EVENTS_MAX_LIMIT = 200;
|
|
19180
19220
|
var KeyEventQueryInput = object({
|
|
@@ -19278,9 +19318,7 @@ var TrackCascadeCountsSchema = object({
|
|
|
19278
19318
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
19279
19319
|
plates: number().int(),
|
|
19280
19320
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
19281
|
-
embeddings: number().int()
|
|
19282
|
-
/** Group membership + group rows removed with their last member (best-effort). */
|
|
19283
|
-
groups: number().int()
|
|
19321
|
+
embeddings: number().int()
|
|
19284
19322
|
});
|
|
19285
19323
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
19286
19324
|
var DiskReconcileCountsSchema = object({
|
|
@@ -19450,6 +19488,47 @@ var RebuildStatusSchema = object({
|
|
|
19450
19488
|
/** Present when the pass ended by throwing. */
|
|
19451
19489
|
error: string$2().nullable()
|
|
19452
19490
|
});
|
|
19491
|
+
/**
|
|
19492
|
+
* Acknowledgement that a debug-media reclaim STARTED.
|
|
19493
|
+
*
|
|
19494
|
+
* The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
|
|
19495
|
+
* it runs detached and this returns immediately. Awaiting it is how the
|
|
19496
|
+
* `addons.custom` door hit the 60 s UDS deadline while the walk carried on
|
|
19497
|
+
* with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
|
|
19498
|
+
*/
|
|
19499
|
+
var MediaReclaimStartResultSchema = object({
|
|
19500
|
+
started: boolean(),
|
|
19501
|
+
/** True when a pass was already running; the new request is ignored. */
|
|
19502
|
+
alreadyRunning: boolean()
|
|
19503
|
+
});
|
|
19504
|
+
var MediaReclaimInputSchema = object({
|
|
19505
|
+
mode: _enum(["report", "reclaim"]).default("report"),
|
|
19506
|
+
scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
|
|
19507
|
+
deviceIds: array(number().int()).min(1).optional(),
|
|
19508
|
+
restart: boolean().optional(),
|
|
19509
|
+
pageSize: number().int().min(50).max(5e3).optional(),
|
|
19510
|
+
maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19511
|
+
maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19512
|
+
maxBytesPerRun: number().int().min(1).optional(),
|
|
19513
|
+
budgetMinutes: number().int().min(1).max(720).optional(),
|
|
19514
|
+
throttleBytesPerSec: number().int().min(64 * 1024).optional(),
|
|
19515
|
+
graceMinutes: number().int().min(1).max(10080).optional()
|
|
19516
|
+
});
|
|
19517
|
+
var MediaReclaimStatusSchema = object({
|
|
19518
|
+
running: boolean(),
|
|
19519
|
+
mode: _enum(["report", "reclaim"]).nullable(),
|
|
19520
|
+
totalExamined: number(),
|
|
19521
|
+
totalEligible: number(),
|
|
19522
|
+
totalReclaimed: number(),
|
|
19523
|
+
totalBytesReclaimed: number(),
|
|
19524
|
+
totalRefused: number(),
|
|
19525
|
+
/** Device+scope windows finished in this pass. */
|
|
19526
|
+
devicesDone: number(),
|
|
19527
|
+
complete: boolean().nullable(),
|
|
19528
|
+
startedAtMs: number().nullable(),
|
|
19529
|
+
finishedAtMs: number().nullable(),
|
|
19530
|
+
error: string$2().nullable()
|
|
19531
|
+
});
|
|
19453
19532
|
var ReplayFrameInputSchema = object({
|
|
19454
19533
|
timestamp: number(),
|
|
19455
19534
|
frame: PipelineRunResultBridge
|
|
@@ -19488,10 +19567,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19488
19567
|
* stationary registry). Default false: the timeline lists passages,
|
|
19489
19568
|
* not parking records (operator decision, 2026-08-15). */
|
|
19490
19569
|
includeStationary: boolean().optional()
|
|
19491
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
19492
|
-
deviceId: number(),
|
|
19493
|
-
groupId: string$2().min(1)
|
|
19494
|
-
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
19570
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
19495
19571
|
kind: "mutation",
|
|
19496
19572
|
auth: "admin"
|
|
19497
19573
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -19591,6 +19667,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19591
19667
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19592
19668
|
kind: "query",
|
|
19593
19669
|
auth: "admin"
|
|
19670
|
+
}), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
|
|
19671
|
+
kind: "mutation",
|
|
19672
|
+
auth: "admin"
|
|
19673
|
+
}), method(object({}), MediaReclaimStatusSchema, {
|
|
19674
|
+
kind: "query",
|
|
19675
|
+
auth: "admin"
|
|
19594
19676
|
}), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
|
|
19595
19677
|
kind: "query",
|
|
19596
19678
|
auth: "admin"
|
|
@@ -21561,7 +21643,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
21561
21643
|
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string$2() }), {
|
|
21562
21644
|
kind: "mutation",
|
|
21563
21645
|
auth: "admin"
|
|
21564
|
-
})
|
|
21646
|
+
}), method(StorageCleanupInputSchema, object({ jobId: string$2() }), {
|
|
21647
|
+
kind: "mutation",
|
|
21648
|
+
auth: "admin"
|
|
21649
|
+
}), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string$2() }), object({ cancelled: boolean() }), {
|
|
21650
|
+
kind: "mutation",
|
|
21651
|
+
auth: "admin"
|
|
21652
|
+
}), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
|
|
21565
21653
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
21566
21654
|
providerId: string$2().min(1),
|
|
21567
21655
|
displayName: string$2().min(1),
|
|
@@ -28671,6 +28759,33 @@ var RecordingRebalanceInputSchema = object({
|
|
|
28671
28759
|
minMoveGb: number().min(0).optional()
|
|
28672
28760
|
});
|
|
28673
28761
|
/**
|
|
28762
|
+
* Operator-facing placement of one camera onto a recordings location.
|
|
28763
|
+
*
|
|
28764
|
+
* `pinLocationId` is the operator instruction: a location id, or `null` for
|
|
28765
|
+
* Auto (the planner may move this camera). `locationId` is where high/mid
|
|
28766
|
+
* currently write — the plan, which may disagree with the pin when Auto.
|
|
28767
|
+
*/
|
|
28768
|
+
var RecordingDevicePlacementSchema = object({
|
|
28769
|
+
deviceId: number().int(),
|
|
28770
|
+
profile: string$2(),
|
|
28771
|
+
locationId: string$2()
|
|
28772
|
+
});
|
|
28773
|
+
var RecordingDevicePinSchema = object({
|
|
28774
|
+
deviceId: number().int(),
|
|
28775
|
+
/** Recordings-class location this camera is pinned to. */
|
|
28776
|
+
locationId: string$2()
|
|
28777
|
+
});
|
|
28778
|
+
var RecordingPlacementViewSchema = object({
|
|
28779
|
+
assignments: array(RecordingDevicePlacementSchema),
|
|
28780
|
+
pins: array(RecordingDevicePinSchema),
|
|
28781
|
+
defaultLocations: record(string$2(), string$2())
|
|
28782
|
+
});
|
|
28783
|
+
var RecordingSetDevicePlacementInputSchema = object({
|
|
28784
|
+
deviceId: number().int(),
|
|
28785
|
+
/** `null` = Auto. Otherwise a `recordings:*` location id. */
|
|
28786
|
+
locationId: string$2().nullable()
|
|
28787
|
+
});
|
|
28788
|
+
/**
|
|
28674
28789
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
28675
28790
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
28676
28791
|
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
@@ -28896,6 +29011,12 @@ method(object({
|
|
|
28896
29011
|
}), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
28897
29012
|
kind: "mutation",
|
|
28898
29013
|
auth: "admin"
|
|
29014
|
+
}), method(object({}), RecordingPlacementViewSchema, {
|
|
29015
|
+
kind: "query",
|
|
29016
|
+
auth: "admin"
|
|
29017
|
+
}), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
|
|
29018
|
+
kind: "mutation",
|
|
29019
|
+
auth: "admin"
|
|
28899
29020
|
});
|
|
28900
29021
|
/**
|
|
28901
29022
|
* `recording-export` cap — render a footage time range into a single downloadable
|
|
@@ -33965,6 +34086,12 @@ Object.freeze({
|
|
|
33965
34086
|
addonId: null,
|
|
33966
34087
|
access: "delete"
|
|
33967
34088
|
},
|
|
34089
|
+
"deviceManager.renameLocation": {
|
|
34090
|
+
capName: "device-manager",
|
|
34091
|
+
capScope: "system",
|
|
34092
|
+
addonId: null,
|
|
34093
|
+
access: "create"
|
|
34094
|
+
},
|
|
33968
34095
|
"deviceManager.runDeviceAction": {
|
|
33969
34096
|
capName: "device-manager",
|
|
33970
34097
|
capScope: "system",
|
|
@@ -35657,19 +35784,19 @@ Object.freeze({
|
|
|
35657
35784
|
addonId: null,
|
|
35658
35785
|
access: "view"
|
|
35659
35786
|
},
|
|
35660
|
-
"pipelineAnalytics.
|
|
35787
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
35661
35788
|
capName: "pipeline-analytics",
|
|
35662
35789
|
capScope: "device",
|
|
35663
35790
|
addonId: null,
|
|
35664
35791
|
access: "view"
|
|
35665
35792
|
},
|
|
35666
|
-
"pipelineAnalytics.
|
|
35793
|
+
"pipelineAnalytics.getKeyEventsBatch": {
|
|
35667
35794
|
capName: "pipeline-analytics",
|
|
35668
35795
|
capScope: "device",
|
|
35669
35796
|
addonId: null,
|
|
35670
35797
|
access: "view"
|
|
35671
35798
|
},
|
|
35672
|
-
"pipelineAnalytics.
|
|
35799
|
+
"pipelineAnalytics.getMediaReclaimStatus": {
|
|
35673
35800
|
capName: "pipeline-analytics",
|
|
35674
35801
|
capScope: "device",
|
|
35675
35802
|
addonId: null,
|
|
@@ -35759,12 +35886,6 @@ Object.freeze({
|
|
|
35759
35886
|
addonId: null,
|
|
35760
35887
|
access: "view"
|
|
35761
35888
|
},
|
|
35762
|
-
"pipelineAnalytics.listGroups": {
|
|
35763
|
-
capName: "pipeline-analytics",
|
|
35764
|
-
capScope: "device",
|
|
35765
|
-
addonId: null,
|
|
35766
|
-
access: "view"
|
|
35767
|
-
},
|
|
35768
35889
|
"pipelineAnalytics.listOpsLog": {
|
|
35769
35890
|
capName: "pipeline-analytics",
|
|
35770
35891
|
capScope: "device",
|
|
@@ -35849,6 +35970,12 @@ Object.freeze({
|
|
|
35849
35970
|
addonId: null,
|
|
35850
35971
|
access: "create"
|
|
35851
35972
|
},
|
|
35973
|
+
"pipelineAnalytics.reclaimDebugMedia": {
|
|
35974
|
+
capName: "pipeline-analytics",
|
|
35975
|
+
capScope: "device",
|
|
35976
|
+
addonId: null,
|
|
35977
|
+
access: "create"
|
|
35978
|
+
},
|
|
35852
35979
|
"pipelineAnalytics.reconcileFromDisk": {
|
|
35853
35980
|
capName: "pipeline-analytics",
|
|
35854
35981
|
capScope: "device",
|
|
@@ -36773,6 +36900,12 @@ Object.freeze({
|
|
|
36773
36900
|
addonId: null,
|
|
36774
36901
|
access: "view"
|
|
36775
36902
|
},
|
|
36903
|
+
"recording.getPlacement": {
|
|
36904
|
+
capName: "recording",
|
|
36905
|
+
capScope: "system",
|
|
36906
|
+
addonId: null,
|
|
36907
|
+
access: "view"
|
|
36908
|
+
},
|
|
36776
36909
|
"recording.getPlaybackManifest": {
|
|
36777
36910
|
capName: "recording",
|
|
36778
36911
|
capScope: "system",
|
|
@@ -36899,6 +37032,12 @@ Object.freeze({
|
|
|
36899
37032
|
addonId: null,
|
|
36900
37033
|
access: "create"
|
|
36901
37034
|
},
|
|
37035
|
+
"recording.setDevicePlacement": {
|
|
37036
|
+
capName: "recording",
|
|
37037
|
+
capScope: "system",
|
|
37038
|
+
addonId: null,
|
|
37039
|
+
access: "create"
|
|
37040
|
+
},
|
|
36902
37041
|
"recording.startStorageMigrationMove": {
|
|
36903
37042
|
capName: "recording",
|
|
36904
37043
|
capScope: "system",
|
|
@@ -37343,12 +37482,36 @@ Object.freeze({
|
|
|
37343
37482
|
addonId: null,
|
|
37344
37483
|
access: "create"
|
|
37345
37484
|
},
|
|
37485
|
+
"storageMigration.cleanupCancel": {
|
|
37486
|
+
capName: "storage-migration",
|
|
37487
|
+
capScope: "system",
|
|
37488
|
+
addonId: null,
|
|
37489
|
+
access: "create"
|
|
37490
|
+
},
|
|
37491
|
+
"storageMigration.cleanupStart": {
|
|
37492
|
+
capName: "storage-migration",
|
|
37493
|
+
capScope: "system",
|
|
37494
|
+
addonId: null,
|
|
37495
|
+
access: "create"
|
|
37496
|
+
},
|
|
37497
|
+
"storageMigration.cleanupStatus": {
|
|
37498
|
+
capName: "storage-migration",
|
|
37499
|
+
capScope: "system",
|
|
37500
|
+
addonId: null,
|
|
37501
|
+
access: "view"
|
|
37502
|
+
},
|
|
37346
37503
|
"storageMigration.drain": {
|
|
37347
37504
|
capName: "storage-migration",
|
|
37348
37505
|
capScope: "system",
|
|
37349
37506
|
addonId: null,
|
|
37350
37507
|
access: "create"
|
|
37351
37508
|
},
|
|
37509
|
+
"storageMigration.history": {
|
|
37510
|
+
capName: "storage-migration",
|
|
37511
|
+
capScope: "system",
|
|
37512
|
+
addonId: null,
|
|
37513
|
+
access: "view"
|
|
37514
|
+
},
|
|
37352
37515
|
"storageMigration.movers": {
|
|
37353
37516
|
capName: "storage-migration",
|
|
37354
37517
|
capScope: "system",
|
|
@@ -39345,11 +39508,6 @@ Object.freeze({
|
|
|
39345
39508
|
form: "single",
|
|
39346
39509
|
optional: true
|
|
39347
39510
|
}],
|
|
39348
|
-
"pipelineAnalytics.getGroup": [{
|
|
39349
|
-
name: "deviceId",
|
|
39350
|
-
form: "single",
|
|
39351
|
-
optional: false
|
|
39352
|
-
}],
|
|
39353
39511
|
"pipelineAnalytics.getKeyEvents": [{
|
|
39354
39512
|
name: "deviceId",
|
|
39355
39513
|
form: "single",
|
|
@@ -39415,11 +39573,6 @@ Object.freeze({
|
|
|
39415
39573
|
form: "single",
|
|
39416
39574
|
optional: false
|
|
39417
39575
|
}],
|
|
39418
|
-
"pipelineAnalytics.listGroups": [{
|
|
39419
|
-
name: "deviceIds",
|
|
39420
|
-
form: "array",
|
|
39421
|
-
optional: false
|
|
39422
|
-
}],
|
|
39423
39576
|
"pipelineAnalytics.listOpsLog": [{
|
|
39424
39577
|
name: "deviceId",
|
|
39425
39578
|
form: "single",
|
|
@@ -39465,6 +39618,11 @@ Object.freeze({
|
|
|
39465
39618
|
form: "single",
|
|
39466
39619
|
optional: true
|
|
39467
39620
|
}],
|
|
39621
|
+
"pipelineAnalytics.reclaimDebugMedia": [{
|
|
39622
|
+
name: "deviceIds",
|
|
39623
|
+
form: "array",
|
|
39624
|
+
optional: true
|
|
39625
|
+
}],
|
|
39468
39626
|
"pipelineAnalytics.reconcileFromDisk": [{
|
|
39469
39627
|
name: "deviceId",
|
|
39470
39628
|
form: "single",
|
|
@@ -39830,6 +39988,11 @@ Object.freeze({
|
|
|
39830
39988
|
form: "single",
|
|
39831
39989
|
optional: false
|
|
39832
39990
|
}],
|
|
39991
|
+
"recording.setDevicePlacement": [{
|
|
39992
|
+
name: "deviceId",
|
|
39993
|
+
form: "single",
|
|
39994
|
+
optional: false
|
|
39995
|
+
}],
|
|
39833
39996
|
"recording.startStorageMigrationMove": [{
|
|
39834
39997
|
name: "deviceId",
|
|
39835
39998
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -8108,6 +8108,13 @@ var MediaRelocateModeSchema = _enum([
|
|
|
8108
8108
|
]);
|
|
8109
8109
|
var RelocateMediaInputSchema = object({
|
|
8110
8110
|
toLocationId: string$2(),
|
|
8111
|
+
/**
|
|
8112
|
+
* Restrict the pass to rows currently on this location. Omitted / `'*'` =
|
|
8113
|
+
* every row that is not already on `toLocationId` (the historical
|
|
8114
|
+
* behaviour). A named source is what a from→to migration needs: without it
|
|
8115
|
+
* "move events off disk 2" also emptied disk 1.
|
|
8116
|
+
*/
|
|
8117
|
+
fromLocationId: string$2().optional(),
|
|
8111
8118
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8112
8119
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8113
8120
|
mode: MediaRelocateModeSchema.optional()
|
|
@@ -8175,6 +8182,19 @@ var StorageMigrationDestinationsSchema = object({
|
|
|
8175
8182
|
galleryMedia: string$2().min(1).optional()
|
|
8176
8183
|
}).refine((value) => Object.keys(value).length > 0, { message: "select at least one storage class" });
|
|
8177
8184
|
/**
|
|
8185
|
+
* Optional named source per class. Omitted = the class's current default
|
|
8186
|
+
* (the historical behaviour). A named source that is NOT the default is a
|
|
8187
|
+
* drain of that disk: bytes move, the default stays, and the source is
|
|
8188
|
+
* disabled when the move finishes.
|
|
8189
|
+
*/
|
|
8190
|
+
var StorageMigrationSourcesSchema = object({
|
|
8191
|
+
recordings: string$2().min(1).optional(),
|
|
8192
|
+
recordingsLow: string$2().min(1).optional(),
|
|
8193
|
+
eventMedia: string$2().min(1).optional(),
|
|
8194
|
+
backups: string$2().min(1).optional(),
|
|
8195
|
+
galleryMedia: string$2().min(1).optional()
|
|
8196
|
+
}).optional();
|
|
8197
|
+
/**
|
|
8178
8198
|
* How a migration sequences the cutover against the byte move.
|
|
8179
8199
|
*
|
|
8180
8200
|
* - `blocking` — the historical order: pause, move every byte, repoint,
|
|
@@ -8196,6 +8216,8 @@ var StorageMigrationModeSchema = _enum(["blocking", "nonBlocking"]);
|
|
|
8196
8216
|
/** Shared input for planning and starting an orchestrated storage migration. */
|
|
8197
8217
|
var StorageMigrationInputSchema = object({
|
|
8198
8218
|
destinations: StorageMigrationDestinationsSchema,
|
|
8219
|
+
/** Omitted = each class's current default. */
|
|
8220
|
+
sources: StorageMigrationSourcesSchema,
|
|
8199
8221
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8200
8222
|
/** Omitted = `blocking`, which stays the default. */
|
|
8201
8223
|
mode: StorageMigrationModeSchema.optional()
|
|
@@ -8275,6 +8297,13 @@ var StorageMigrationMoveSchema = object({
|
|
|
8275
8297
|
storageClass: StorageMigrationClassSchema,
|
|
8276
8298
|
fromLocationId: string$2(),
|
|
8277
8299
|
toLocationId: string$2(),
|
|
8300
|
+
/**
|
|
8301
|
+
* True when `from` was NOT the class default at plan time. The move still
|
|
8302
|
+
* copies bytes, but the default is left alone and the source is disabled
|
|
8303
|
+
* once the copy verifies. Absent on jobs planned before this field existed
|
|
8304
|
+
* — those jobs always repointed, which is `false`.
|
|
8305
|
+
*/
|
|
8306
|
+
freezeSource: boolean().optional(),
|
|
8278
8307
|
moverJobId: string$2().nullable(),
|
|
8279
8308
|
state: RelocateJobStateSchema.nullable(),
|
|
8280
8309
|
error: string$2().nullable(),
|
|
@@ -8288,6 +8317,7 @@ var StorageMigrationJobSchema = object({
|
|
|
8288
8317
|
* can tell a seconds-long cutover from a thirty-hour one. */
|
|
8289
8318
|
mode: StorageMigrationModeSchema,
|
|
8290
8319
|
destinations: StorageMigrationDestinationsSchema,
|
|
8320
|
+
sources: StorageMigrationSourcesSchema,
|
|
8291
8321
|
throttleMbps: number(),
|
|
8292
8322
|
moves: array(StorageMigrationMoveSchema),
|
|
8293
8323
|
pauseLeaseId: string$2().nullable(),
|
|
@@ -8313,6 +8343,7 @@ var StorageMigrationFindingSchema = object({
|
|
|
8313
8343
|
});
|
|
8314
8344
|
var StorageMigrationPlanSchema = object({
|
|
8315
8345
|
destinations: StorageMigrationDestinationsSchema,
|
|
8346
|
+
sources: StorageMigrationSourcesSchema,
|
|
8316
8347
|
/** The mode this plan was built for. A plan is only valid for its mode: the
|
|
8317
8348
|
* `eventMedia` seal gate and the single-cardinality refusal both depend on
|
|
8318
8349
|
* it. */
|
|
@@ -8320,7 +8351,8 @@ var StorageMigrationPlanSchema = object({
|
|
|
8320
8351
|
moves: array(object({
|
|
8321
8352
|
storageClass: StorageMigrationClassSchema,
|
|
8322
8353
|
fromLocationId: string$2(),
|
|
8323
|
-
toLocationId: string$2()
|
|
8354
|
+
toLocationId: string$2(),
|
|
8355
|
+
freezeSource: boolean().optional()
|
|
8324
8356
|
})),
|
|
8325
8357
|
findings: array(StorageMigrationFindingSchema)
|
|
8326
8358
|
});
|
|
@@ -8498,10 +8530,51 @@ var LedgerWalkReportSchema = object({
|
|
|
8498
8530
|
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8499
8531
|
var RelocatableMediaCountInputSchema = object({
|
|
8500
8532
|
toLocationId: string$2().min(1),
|
|
8533
|
+
/** Restrict the count to one source; omitted / `'*'` = every non-target row. */
|
|
8534
|
+
fromLocationId: string$2().optional(),
|
|
8501
8535
|
/** Omitted = `move`. */
|
|
8502
8536
|
mode: MediaRelocateModeSchema.optional()
|
|
8503
8537
|
});
|
|
8504
8538
|
/**
|
|
8539
|
+
* Operator cleanup of leftover analytics rows, optional debug media, and
|
|
8540
|
+
* ghost ledger entries on frozen footage locations.
|
|
8541
|
+
*
|
|
8542
|
+
* A pass is tens of minutes on a standing backlog. The hub method RETURNS
|
|
8543
|
+
* `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
|
|
8544
|
+
* is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
|
|
8545
|
+
* with no operator-visible status.
|
|
8546
|
+
*/
|
|
8547
|
+
var StorageCleanupPhaseSchema = _enum([
|
|
8548
|
+
"orphans",
|
|
8549
|
+
"debug-media",
|
|
8550
|
+
"ghost-ledger",
|
|
8551
|
+
"done",
|
|
8552
|
+
"failed",
|
|
8553
|
+
"cancelled"
|
|
8554
|
+
]);
|
|
8555
|
+
var StorageCleanupInputSchema = object({
|
|
8556
|
+
/** Also walk motion stills / track filmstrips. Off by default. */
|
|
8557
|
+
includeDebugMedia: boolean().optional() });
|
|
8558
|
+
var StorageCleanupJobSchema = object({
|
|
8559
|
+
jobId: string$2(),
|
|
8560
|
+
phase: StorageCleanupPhaseSchema,
|
|
8561
|
+
includeDebugMedia: boolean(),
|
|
8562
|
+
orphansReclaimed: number().int().nonnegative(),
|
|
8563
|
+
orphanBytesReclaimed: number().int().nonnegative(),
|
|
8564
|
+
debugMediaReclaimed: number().int().nonnegative(),
|
|
8565
|
+
debugMediaBytesReclaimed: number().int().nonnegative(),
|
|
8566
|
+
ghostsForgotten: number().int().nonnegative(),
|
|
8567
|
+
ghostBytesForgotten: number().int().nonnegative(),
|
|
8568
|
+
/** Short operator-facing line: current collection, pass, or location. */
|
|
8569
|
+
detail: string$2().nullable(),
|
|
8570
|
+
cancelRequested: boolean(),
|
|
8571
|
+
startedAt: number(),
|
|
8572
|
+
updatedAt: number(),
|
|
8573
|
+
finishedAt: number().nullable(),
|
|
8574
|
+
error: string$2().nullable()
|
|
8575
|
+
});
|
|
8576
|
+
var StorageCleanupStatusInputSchema = object({ jobId: string$2().optional() });
|
|
8577
|
+
/**
|
|
8505
8578
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8506
8579
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8507
8580
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8529,11 +8602,10 @@ var StorageLocationTypeSchema = string$2().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
|
8529
8602
|
* The default location for a type uses `id === <type>:default` by
|
|
8530
8603
|
* convention (the bare type ref like `'backups'` resolves to it).
|
|
8531
8604
|
*
|
|
8532
|
-
* `isSystem
|
|
8533
|
-
*
|
|
8534
|
-
*
|
|
8535
|
-
*
|
|
8536
|
-
* deleting it is rejected at the cap level.
|
|
8605
|
+
* `isSystem` is a legacy persisted flag. Seed still creates the initial
|
|
8606
|
+
* `<type>:default` locations; the flag is no longer a lock, a badge, or a
|
|
8607
|
+
* prune selector. New writes leave it false. Deletion is gated on uniqueness
|
|
8608
|
+
* / last-enabled, not on this bit.
|
|
8537
8609
|
*/
|
|
8538
8610
|
var StorageLocationSchema = object({
|
|
8539
8611
|
id: string$2().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
|
|
@@ -13125,6 +13197,12 @@ method(object({
|
|
|
13125
13197
|
}), _void(), {
|
|
13126
13198
|
kind: "mutation",
|
|
13127
13199
|
auth: "admin"
|
|
13200
|
+
}), method(object({
|
|
13201
|
+
from: string$2(),
|
|
13202
|
+
to: string$2()
|
|
13203
|
+
}), object({ moved: number() }), {
|
|
13204
|
+
kind: "mutation",
|
|
13205
|
+
auth: "admin"
|
|
13128
13206
|
}), method(object({
|
|
13129
13207
|
deviceId: number(),
|
|
13130
13208
|
disabled: boolean()
|
|
@@ -15875,6 +15953,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15875
15953
|
"device-offline",
|
|
15876
15954
|
"device-disabled",
|
|
15877
15955
|
"device-enabled",
|
|
15956
|
+
"device-battery-low",
|
|
15957
|
+
"device-battery-normal",
|
|
15878
15958
|
"stream-online",
|
|
15879
15959
|
"stream-offline",
|
|
15880
15960
|
"node-online",
|
|
@@ -19133,46 +19213,6 @@ var RecentTracksPageSchema = object({
|
|
|
19133
19213
|
/** Cursor for the next page, or null when this page is the last. */
|
|
19134
19214
|
nextCursor: string$2().nullable()
|
|
19135
19215
|
});
|
|
19136
|
-
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
19137
|
-
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
19138
|
-
var AnalyticsGroupRecordSchema = object({
|
|
19139
|
-
id: string$2(),
|
|
19140
|
-
deviceId: number().int(),
|
|
19141
|
-
openedAt: number().int(),
|
|
19142
|
-
closedAt: number().int(),
|
|
19143
|
-
timestamp: number().int(),
|
|
19144
|
-
memberCount: number().int(),
|
|
19145
|
-
memberTrackIds: array(string$2()).readonly(),
|
|
19146
|
-
className: string$2(),
|
|
19147
|
-
classes: array(string$2()).readonly(),
|
|
19148
|
-
/** Relative event-media path, or null when the group has no picture yet. */
|
|
19149
|
-
mediaUrl: string$2().nullable(),
|
|
19150
|
-
singleton: boolean()
|
|
19151
|
-
});
|
|
19152
|
-
var AnalyticsGroupMemberSchema = object({
|
|
19153
|
-
trackId: string$2(),
|
|
19154
|
-
deviceId: number().int(),
|
|
19155
|
-
className: string$2(),
|
|
19156
|
-
firstSeen: number().int(),
|
|
19157
|
-
lastSeen: number().int(),
|
|
19158
|
-
mediaUrl: string$2().nullable()
|
|
19159
|
-
});
|
|
19160
|
-
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
19161
|
-
var ListGroupsQueryInput = object({
|
|
19162
|
-
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
19163
|
-
deviceIds: array(number()),
|
|
19164
|
-
/** Window lower bound on `closedAt` (inclusive). */
|
|
19165
|
-
since: number().optional(),
|
|
19166
|
-
/** Window upper bound on `openedAt` (inclusive). */
|
|
19167
|
-
until: number().optional(),
|
|
19168
|
-
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
19169
|
-
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19170
|
-
cursor: string$2().optional()
|
|
19171
|
-
});
|
|
19172
|
-
var ListGroupsPageSchema = object({
|
|
19173
|
-
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
19174
|
-
nextCursor: string$2().nullable()
|
|
19175
|
-
});
|
|
19176
19216
|
var KEY_EVENTS_DEFAULT_LIMIT = 50;
|
|
19177
19217
|
var KEY_EVENTS_MAX_LIMIT = 200;
|
|
19178
19218
|
var KeyEventQueryInput = object({
|
|
@@ -19276,9 +19316,7 @@ var TrackCascadeCountsSchema = object({
|
|
|
19276
19316
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
19277
19317
|
plates: number().int(),
|
|
19278
19318
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
19279
|
-
embeddings: number().int()
|
|
19280
|
-
/** Group membership + group rows removed with their last member (best-effort). */
|
|
19281
|
-
groups: number().int()
|
|
19319
|
+
embeddings: number().int()
|
|
19282
19320
|
});
|
|
19283
19321
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
19284
19322
|
var DiskReconcileCountsSchema = object({
|
|
@@ -19448,6 +19486,47 @@ var RebuildStatusSchema = object({
|
|
|
19448
19486
|
/** Present when the pass ended by throwing. */
|
|
19449
19487
|
error: string$2().nullable()
|
|
19450
19488
|
});
|
|
19489
|
+
/**
|
|
19490
|
+
* Acknowledgement that a debug-media reclaim STARTED.
|
|
19491
|
+
*
|
|
19492
|
+
* The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
|
|
19493
|
+
* it runs detached and this returns immediately. Awaiting it is how the
|
|
19494
|
+
* `addons.custom` door hit the 60 s UDS deadline while the walk carried on
|
|
19495
|
+
* with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
|
|
19496
|
+
*/
|
|
19497
|
+
var MediaReclaimStartResultSchema = object({
|
|
19498
|
+
started: boolean(),
|
|
19499
|
+
/** True when a pass was already running; the new request is ignored. */
|
|
19500
|
+
alreadyRunning: boolean()
|
|
19501
|
+
});
|
|
19502
|
+
var MediaReclaimInputSchema = object({
|
|
19503
|
+
mode: _enum(["report", "reclaim"]).default("report"),
|
|
19504
|
+
scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
|
|
19505
|
+
deviceIds: array(number().int()).min(1).optional(),
|
|
19506
|
+
restart: boolean().optional(),
|
|
19507
|
+
pageSize: number().int().min(50).max(5e3).optional(),
|
|
19508
|
+
maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19509
|
+
maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19510
|
+
maxBytesPerRun: number().int().min(1).optional(),
|
|
19511
|
+
budgetMinutes: number().int().min(1).max(720).optional(),
|
|
19512
|
+
throttleBytesPerSec: number().int().min(64 * 1024).optional(),
|
|
19513
|
+
graceMinutes: number().int().min(1).max(10080).optional()
|
|
19514
|
+
});
|
|
19515
|
+
var MediaReclaimStatusSchema = object({
|
|
19516
|
+
running: boolean(),
|
|
19517
|
+
mode: _enum(["report", "reclaim"]).nullable(),
|
|
19518
|
+
totalExamined: number(),
|
|
19519
|
+
totalEligible: number(),
|
|
19520
|
+
totalReclaimed: number(),
|
|
19521
|
+
totalBytesReclaimed: number(),
|
|
19522
|
+
totalRefused: number(),
|
|
19523
|
+
/** Device+scope windows finished in this pass. */
|
|
19524
|
+
devicesDone: number(),
|
|
19525
|
+
complete: boolean().nullable(),
|
|
19526
|
+
startedAtMs: number().nullable(),
|
|
19527
|
+
finishedAtMs: number().nullable(),
|
|
19528
|
+
error: string$2().nullable()
|
|
19529
|
+
});
|
|
19451
19530
|
var ReplayFrameInputSchema = object({
|
|
19452
19531
|
timestamp: number(),
|
|
19453
19532
|
frame: PipelineRunResultBridge
|
|
@@ -19486,10 +19565,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19486
19565
|
* stationary registry). Default false: the timeline lists passages,
|
|
19487
19566
|
* not parking records (operator decision, 2026-08-15). */
|
|
19488
19567
|
includeStationary: boolean().optional()
|
|
19489
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
19490
|
-
deviceId: number(),
|
|
19491
|
-
groupId: string$2().min(1)
|
|
19492
|
-
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
19568
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
19493
19569
|
kind: "mutation",
|
|
19494
19570
|
auth: "admin"
|
|
19495
19571
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -19589,6 +19665,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19589
19665
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19590
19666
|
kind: "query",
|
|
19591
19667
|
auth: "admin"
|
|
19668
|
+
}), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
|
|
19669
|
+
kind: "mutation",
|
|
19670
|
+
auth: "admin"
|
|
19671
|
+
}), method(object({}), MediaReclaimStatusSchema, {
|
|
19672
|
+
kind: "query",
|
|
19673
|
+
auth: "admin"
|
|
19592
19674
|
}), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
|
|
19593
19675
|
kind: "query",
|
|
19594
19676
|
auth: "admin"
|
|
@@ -21559,7 +21641,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
21559
21641
|
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string$2() }), {
|
|
21560
21642
|
kind: "mutation",
|
|
21561
21643
|
auth: "admin"
|
|
21562
|
-
})
|
|
21644
|
+
}), method(StorageCleanupInputSchema, object({ jobId: string$2() }), {
|
|
21645
|
+
kind: "mutation",
|
|
21646
|
+
auth: "admin"
|
|
21647
|
+
}), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string$2() }), object({ cancelled: boolean() }), {
|
|
21648
|
+
kind: "mutation",
|
|
21649
|
+
auth: "admin"
|
|
21650
|
+
}), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
|
|
21563
21651
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
21564
21652
|
providerId: string$2().min(1),
|
|
21565
21653
|
displayName: string$2().min(1),
|
|
@@ -28669,6 +28757,33 @@ var RecordingRebalanceInputSchema = object({
|
|
|
28669
28757
|
minMoveGb: number().min(0).optional()
|
|
28670
28758
|
});
|
|
28671
28759
|
/**
|
|
28760
|
+
* Operator-facing placement of one camera onto a recordings location.
|
|
28761
|
+
*
|
|
28762
|
+
* `pinLocationId` is the operator instruction: a location id, or `null` for
|
|
28763
|
+
* Auto (the planner may move this camera). `locationId` is where high/mid
|
|
28764
|
+
* currently write — the plan, which may disagree with the pin when Auto.
|
|
28765
|
+
*/
|
|
28766
|
+
var RecordingDevicePlacementSchema = object({
|
|
28767
|
+
deviceId: number().int(),
|
|
28768
|
+
profile: string$2(),
|
|
28769
|
+
locationId: string$2()
|
|
28770
|
+
});
|
|
28771
|
+
var RecordingDevicePinSchema = object({
|
|
28772
|
+
deviceId: number().int(),
|
|
28773
|
+
/** Recordings-class location this camera is pinned to. */
|
|
28774
|
+
locationId: string$2()
|
|
28775
|
+
});
|
|
28776
|
+
var RecordingPlacementViewSchema = object({
|
|
28777
|
+
assignments: array(RecordingDevicePlacementSchema),
|
|
28778
|
+
pins: array(RecordingDevicePinSchema),
|
|
28779
|
+
defaultLocations: record(string$2(), string$2())
|
|
28780
|
+
});
|
|
28781
|
+
var RecordingSetDevicePlacementInputSchema = object({
|
|
28782
|
+
deviceId: number().int(),
|
|
28783
|
+
/** `null` = Auto. Otherwise a `recordings:*` location id. */
|
|
28784
|
+
locationId: string$2().nullable()
|
|
28785
|
+
});
|
|
28786
|
+
/**
|
|
28672
28787
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
28673
28788
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
28674
28789
|
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
@@ -28894,6 +29009,12 @@ method(object({
|
|
|
28894
29009
|
}), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
28895
29010
|
kind: "mutation",
|
|
28896
29011
|
auth: "admin"
|
|
29012
|
+
}), method(object({}), RecordingPlacementViewSchema, {
|
|
29013
|
+
kind: "query",
|
|
29014
|
+
auth: "admin"
|
|
29015
|
+
}), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
|
|
29016
|
+
kind: "mutation",
|
|
29017
|
+
auth: "admin"
|
|
28897
29018
|
});
|
|
28898
29019
|
/**
|
|
28899
29020
|
* `recording-export` cap — render a footage time range into a single downloadable
|
|
@@ -33963,6 +34084,12 @@ Object.freeze({
|
|
|
33963
34084
|
addonId: null,
|
|
33964
34085
|
access: "delete"
|
|
33965
34086
|
},
|
|
34087
|
+
"deviceManager.renameLocation": {
|
|
34088
|
+
capName: "device-manager",
|
|
34089
|
+
capScope: "system",
|
|
34090
|
+
addonId: null,
|
|
34091
|
+
access: "create"
|
|
34092
|
+
},
|
|
33966
34093
|
"deviceManager.runDeviceAction": {
|
|
33967
34094
|
capName: "device-manager",
|
|
33968
34095
|
capScope: "system",
|
|
@@ -35655,19 +35782,19 @@ Object.freeze({
|
|
|
35655
35782
|
addonId: null,
|
|
35656
35783
|
access: "view"
|
|
35657
35784
|
},
|
|
35658
|
-
"pipelineAnalytics.
|
|
35785
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
35659
35786
|
capName: "pipeline-analytics",
|
|
35660
35787
|
capScope: "device",
|
|
35661
35788
|
addonId: null,
|
|
35662
35789
|
access: "view"
|
|
35663
35790
|
},
|
|
35664
|
-
"pipelineAnalytics.
|
|
35791
|
+
"pipelineAnalytics.getKeyEventsBatch": {
|
|
35665
35792
|
capName: "pipeline-analytics",
|
|
35666
35793
|
capScope: "device",
|
|
35667
35794
|
addonId: null,
|
|
35668
35795
|
access: "view"
|
|
35669
35796
|
},
|
|
35670
|
-
"pipelineAnalytics.
|
|
35797
|
+
"pipelineAnalytics.getMediaReclaimStatus": {
|
|
35671
35798
|
capName: "pipeline-analytics",
|
|
35672
35799
|
capScope: "device",
|
|
35673
35800
|
addonId: null,
|
|
@@ -35757,12 +35884,6 @@ Object.freeze({
|
|
|
35757
35884
|
addonId: null,
|
|
35758
35885
|
access: "view"
|
|
35759
35886
|
},
|
|
35760
|
-
"pipelineAnalytics.listGroups": {
|
|
35761
|
-
capName: "pipeline-analytics",
|
|
35762
|
-
capScope: "device",
|
|
35763
|
-
addonId: null,
|
|
35764
|
-
access: "view"
|
|
35765
|
-
},
|
|
35766
35887
|
"pipelineAnalytics.listOpsLog": {
|
|
35767
35888
|
capName: "pipeline-analytics",
|
|
35768
35889
|
capScope: "device",
|
|
@@ -35847,6 +35968,12 @@ Object.freeze({
|
|
|
35847
35968
|
addonId: null,
|
|
35848
35969
|
access: "create"
|
|
35849
35970
|
},
|
|
35971
|
+
"pipelineAnalytics.reclaimDebugMedia": {
|
|
35972
|
+
capName: "pipeline-analytics",
|
|
35973
|
+
capScope: "device",
|
|
35974
|
+
addonId: null,
|
|
35975
|
+
access: "create"
|
|
35976
|
+
},
|
|
35850
35977
|
"pipelineAnalytics.reconcileFromDisk": {
|
|
35851
35978
|
capName: "pipeline-analytics",
|
|
35852
35979
|
capScope: "device",
|
|
@@ -36771,6 +36898,12 @@ Object.freeze({
|
|
|
36771
36898
|
addonId: null,
|
|
36772
36899
|
access: "view"
|
|
36773
36900
|
},
|
|
36901
|
+
"recording.getPlacement": {
|
|
36902
|
+
capName: "recording",
|
|
36903
|
+
capScope: "system",
|
|
36904
|
+
addonId: null,
|
|
36905
|
+
access: "view"
|
|
36906
|
+
},
|
|
36774
36907
|
"recording.getPlaybackManifest": {
|
|
36775
36908
|
capName: "recording",
|
|
36776
36909
|
capScope: "system",
|
|
@@ -36897,6 +37030,12 @@ Object.freeze({
|
|
|
36897
37030
|
addonId: null,
|
|
36898
37031
|
access: "create"
|
|
36899
37032
|
},
|
|
37033
|
+
"recording.setDevicePlacement": {
|
|
37034
|
+
capName: "recording",
|
|
37035
|
+
capScope: "system",
|
|
37036
|
+
addonId: null,
|
|
37037
|
+
access: "create"
|
|
37038
|
+
},
|
|
36900
37039
|
"recording.startStorageMigrationMove": {
|
|
36901
37040
|
capName: "recording",
|
|
36902
37041
|
capScope: "system",
|
|
@@ -37341,12 +37480,36 @@ Object.freeze({
|
|
|
37341
37480
|
addonId: null,
|
|
37342
37481
|
access: "create"
|
|
37343
37482
|
},
|
|
37483
|
+
"storageMigration.cleanupCancel": {
|
|
37484
|
+
capName: "storage-migration",
|
|
37485
|
+
capScope: "system",
|
|
37486
|
+
addonId: null,
|
|
37487
|
+
access: "create"
|
|
37488
|
+
},
|
|
37489
|
+
"storageMigration.cleanupStart": {
|
|
37490
|
+
capName: "storage-migration",
|
|
37491
|
+
capScope: "system",
|
|
37492
|
+
addonId: null,
|
|
37493
|
+
access: "create"
|
|
37494
|
+
},
|
|
37495
|
+
"storageMigration.cleanupStatus": {
|
|
37496
|
+
capName: "storage-migration",
|
|
37497
|
+
capScope: "system",
|
|
37498
|
+
addonId: null,
|
|
37499
|
+
access: "view"
|
|
37500
|
+
},
|
|
37344
37501
|
"storageMigration.drain": {
|
|
37345
37502
|
capName: "storage-migration",
|
|
37346
37503
|
capScope: "system",
|
|
37347
37504
|
addonId: null,
|
|
37348
37505
|
access: "create"
|
|
37349
37506
|
},
|
|
37507
|
+
"storageMigration.history": {
|
|
37508
|
+
capName: "storage-migration",
|
|
37509
|
+
capScope: "system",
|
|
37510
|
+
addonId: null,
|
|
37511
|
+
access: "view"
|
|
37512
|
+
},
|
|
37350
37513
|
"storageMigration.movers": {
|
|
37351
37514
|
capName: "storage-migration",
|
|
37352
37515
|
capScope: "system",
|
|
@@ -39343,11 +39506,6 @@ Object.freeze({
|
|
|
39343
39506
|
form: "single",
|
|
39344
39507
|
optional: true
|
|
39345
39508
|
}],
|
|
39346
|
-
"pipelineAnalytics.getGroup": [{
|
|
39347
|
-
name: "deviceId",
|
|
39348
|
-
form: "single",
|
|
39349
|
-
optional: false
|
|
39350
|
-
}],
|
|
39351
39509
|
"pipelineAnalytics.getKeyEvents": [{
|
|
39352
39510
|
name: "deviceId",
|
|
39353
39511
|
form: "single",
|
|
@@ -39413,11 +39571,6 @@ Object.freeze({
|
|
|
39413
39571
|
form: "single",
|
|
39414
39572
|
optional: false
|
|
39415
39573
|
}],
|
|
39416
|
-
"pipelineAnalytics.listGroups": [{
|
|
39417
|
-
name: "deviceIds",
|
|
39418
|
-
form: "array",
|
|
39419
|
-
optional: false
|
|
39420
|
-
}],
|
|
39421
39574
|
"pipelineAnalytics.listOpsLog": [{
|
|
39422
39575
|
name: "deviceId",
|
|
39423
39576
|
form: "single",
|
|
@@ -39463,6 +39616,11 @@ Object.freeze({
|
|
|
39463
39616
|
form: "single",
|
|
39464
39617
|
optional: true
|
|
39465
39618
|
}],
|
|
39619
|
+
"pipelineAnalytics.reclaimDebugMedia": [{
|
|
39620
|
+
name: "deviceIds",
|
|
39621
|
+
form: "array",
|
|
39622
|
+
optional: true
|
|
39623
|
+
}],
|
|
39466
39624
|
"pipelineAnalytics.reconcileFromDisk": [{
|
|
39467
39625
|
name: "deviceId",
|
|
39468
39626
|
form: "single",
|
|
@@ -39828,6 +39986,11 @@ Object.freeze({
|
|
|
39828
39986
|
form: "single",
|
|
39829
39987
|
optional: false
|
|
39830
39988
|
}],
|
|
39989
|
+
"recording.setDevicePlacement": [{
|
|
39990
|
+
name: "deviceId",
|
|
39991
|
+
form: "single",
|
|
39992
|
+
optional: false
|
|
39993
|
+
}],
|
|
39831
39994
|
"recording.startStorageMigrationMove": [{
|
|
39832
39995
|
name: "deviceId",
|
|
39833
39996
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-matter-broker",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.50",
|
|
4
4
|
"description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|