@camstack/addon-provider-onvif 1.2.48 → 1.2.49
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 +234 -73
- package/dist/addon.mjs +234 -73
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8095,6 +8095,13 @@ var MediaRelocateModeSchema = _enum([
|
|
|
8095
8095
|
]);
|
|
8096
8096
|
var RelocateMediaInputSchema = object({
|
|
8097
8097
|
toLocationId: string(),
|
|
8098
|
+
/**
|
|
8099
|
+
* Restrict the pass to rows currently on this location. Omitted / `'*'` =
|
|
8100
|
+
* every row that is not already on `toLocationId` (the historical
|
|
8101
|
+
* behaviour). A named source is what a from→to migration needs: without it
|
|
8102
|
+
* "move events off disk 2" also emptied disk 1.
|
|
8103
|
+
*/
|
|
8104
|
+
fromLocationId: string().optional(),
|
|
8098
8105
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8099
8106
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8100
8107
|
mode: MediaRelocateModeSchema.optional()
|
|
@@ -8162,6 +8169,19 @@ var StorageMigrationDestinationsSchema = object({
|
|
|
8162
8169
|
galleryMedia: string().min(1).optional()
|
|
8163
8170
|
}).refine((value) => Object.keys(value).length > 0, { message: "select at least one storage class" });
|
|
8164
8171
|
/**
|
|
8172
|
+
* Optional named source per class. Omitted = the class's current default
|
|
8173
|
+
* (the historical behaviour). A named source that is NOT the default is a
|
|
8174
|
+
* drain of that disk: bytes move, the default stays, and the source is
|
|
8175
|
+
* disabled when the move finishes.
|
|
8176
|
+
*/
|
|
8177
|
+
var StorageMigrationSourcesSchema = object({
|
|
8178
|
+
recordings: string().min(1).optional(),
|
|
8179
|
+
recordingsLow: string().min(1).optional(),
|
|
8180
|
+
eventMedia: string().min(1).optional(),
|
|
8181
|
+
backups: string().min(1).optional(),
|
|
8182
|
+
galleryMedia: string().min(1).optional()
|
|
8183
|
+
}).optional();
|
|
8184
|
+
/**
|
|
8165
8185
|
* How a migration sequences the cutover against the byte move.
|
|
8166
8186
|
*
|
|
8167
8187
|
* - `blocking` — the historical order: pause, move every byte, repoint,
|
|
@@ -8183,6 +8203,8 @@ var StorageMigrationModeSchema = _enum(["blocking", "nonBlocking"]);
|
|
|
8183
8203
|
/** Shared input for planning and starting an orchestrated storage migration. */
|
|
8184
8204
|
var StorageMigrationInputSchema = object({
|
|
8185
8205
|
destinations: StorageMigrationDestinationsSchema,
|
|
8206
|
+
/** Omitted = each class's current default. */
|
|
8207
|
+
sources: StorageMigrationSourcesSchema,
|
|
8186
8208
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8187
8209
|
/** Omitted = `blocking`, which stays the default. */
|
|
8188
8210
|
mode: StorageMigrationModeSchema.optional()
|
|
@@ -8262,6 +8284,13 @@ var StorageMigrationMoveSchema = object({
|
|
|
8262
8284
|
storageClass: StorageMigrationClassSchema,
|
|
8263
8285
|
fromLocationId: string(),
|
|
8264
8286
|
toLocationId: string(),
|
|
8287
|
+
/**
|
|
8288
|
+
* True when `from` was NOT the class default at plan time. The move still
|
|
8289
|
+
* copies bytes, but the default is left alone and the source is disabled
|
|
8290
|
+
* once the copy verifies. Absent on jobs planned before this field existed
|
|
8291
|
+
* — those jobs always repointed, which is `false`.
|
|
8292
|
+
*/
|
|
8293
|
+
freezeSource: boolean().optional(),
|
|
8265
8294
|
moverJobId: string().nullable(),
|
|
8266
8295
|
state: RelocateJobStateSchema.nullable(),
|
|
8267
8296
|
error: string().nullable(),
|
|
@@ -8275,6 +8304,7 @@ var StorageMigrationJobSchema = object({
|
|
|
8275
8304
|
* can tell a seconds-long cutover from a thirty-hour one. */
|
|
8276
8305
|
mode: StorageMigrationModeSchema,
|
|
8277
8306
|
destinations: StorageMigrationDestinationsSchema,
|
|
8307
|
+
sources: StorageMigrationSourcesSchema,
|
|
8278
8308
|
throttleMbps: number(),
|
|
8279
8309
|
moves: array(StorageMigrationMoveSchema),
|
|
8280
8310
|
pauseLeaseId: string().nullable(),
|
|
@@ -8300,6 +8330,7 @@ var StorageMigrationFindingSchema = object({
|
|
|
8300
8330
|
});
|
|
8301
8331
|
var StorageMigrationPlanSchema = object({
|
|
8302
8332
|
destinations: StorageMigrationDestinationsSchema,
|
|
8333
|
+
sources: StorageMigrationSourcesSchema,
|
|
8303
8334
|
/** The mode this plan was built for. A plan is only valid for its mode: the
|
|
8304
8335
|
* `eventMedia` seal gate and the single-cardinality refusal both depend on
|
|
8305
8336
|
* it. */
|
|
@@ -8307,7 +8338,8 @@ var StorageMigrationPlanSchema = object({
|
|
|
8307
8338
|
moves: array(object({
|
|
8308
8339
|
storageClass: StorageMigrationClassSchema,
|
|
8309
8340
|
fromLocationId: string(),
|
|
8310
|
-
toLocationId: string()
|
|
8341
|
+
toLocationId: string(),
|
|
8342
|
+
freezeSource: boolean().optional()
|
|
8311
8343
|
})),
|
|
8312
8344
|
findings: array(StorageMigrationFindingSchema)
|
|
8313
8345
|
});
|
|
@@ -8485,10 +8517,51 @@ var LedgerWalkReportSchema = object({
|
|
|
8485
8517
|
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8486
8518
|
var RelocatableMediaCountInputSchema = object({
|
|
8487
8519
|
toLocationId: string().min(1),
|
|
8520
|
+
/** Restrict the count to one source; omitted / `'*'` = every non-target row. */
|
|
8521
|
+
fromLocationId: string().optional(),
|
|
8488
8522
|
/** Omitted = `move`. */
|
|
8489
8523
|
mode: MediaRelocateModeSchema.optional()
|
|
8490
8524
|
});
|
|
8491
8525
|
/**
|
|
8526
|
+
* Operator cleanup of leftover analytics rows, optional debug media, and
|
|
8527
|
+
* ghost ledger entries on frozen footage locations.
|
|
8528
|
+
*
|
|
8529
|
+
* A pass is tens of minutes on a standing backlog. The hub method RETURNS
|
|
8530
|
+
* `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
|
|
8531
|
+
* is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
|
|
8532
|
+
* with no operator-visible status.
|
|
8533
|
+
*/
|
|
8534
|
+
var StorageCleanupPhaseSchema = _enum([
|
|
8535
|
+
"orphans",
|
|
8536
|
+
"debug-media",
|
|
8537
|
+
"ghost-ledger",
|
|
8538
|
+
"done",
|
|
8539
|
+
"failed",
|
|
8540
|
+
"cancelled"
|
|
8541
|
+
]);
|
|
8542
|
+
var StorageCleanupInputSchema = object({
|
|
8543
|
+
/** Also walk motion stills / track filmstrips. Off by default. */
|
|
8544
|
+
includeDebugMedia: boolean().optional() });
|
|
8545
|
+
var StorageCleanupJobSchema = object({
|
|
8546
|
+
jobId: string(),
|
|
8547
|
+
phase: StorageCleanupPhaseSchema,
|
|
8548
|
+
includeDebugMedia: boolean(),
|
|
8549
|
+
orphansReclaimed: number().int().nonnegative(),
|
|
8550
|
+
orphanBytesReclaimed: number().int().nonnegative(),
|
|
8551
|
+
debugMediaReclaimed: number().int().nonnegative(),
|
|
8552
|
+
debugMediaBytesReclaimed: number().int().nonnegative(),
|
|
8553
|
+
ghostsForgotten: number().int().nonnegative(),
|
|
8554
|
+
ghostBytesForgotten: number().int().nonnegative(),
|
|
8555
|
+
/** Short operator-facing line: current collection, pass, or location. */
|
|
8556
|
+
detail: string().nullable(),
|
|
8557
|
+
cancelRequested: boolean(),
|
|
8558
|
+
startedAt: number(),
|
|
8559
|
+
updatedAt: number(),
|
|
8560
|
+
finishedAt: number().nullable(),
|
|
8561
|
+
error: string().nullable()
|
|
8562
|
+
});
|
|
8563
|
+
var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
|
|
8564
|
+
/**
|
|
8492
8565
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8493
8566
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8494
8567
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8516,11 +8589,10 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
|
8516
8589
|
* The default location for a type uses `id === <type>:default` by
|
|
8517
8590
|
* convention (the bare type ref like `'backups'` resolves to it).
|
|
8518
8591
|
*
|
|
8519
|
-
* `isSystem
|
|
8520
|
-
*
|
|
8521
|
-
*
|
|
8522
|
-
*
|
|
8523
|
-
* deleting it is rejected at the cap level.
|
|
8592
|
+
* `isSystem` is a legacy persisted flag. Seed still creates the initial
|
|
8593
|
+
* `<type>:default` locations; the flag is no longer a lock, a badge, or a
|
|
8594
|
+
* prune selector. New writes leave it false. Deletion is gated on uniqueness
|
|
8595
|
+
* / last-enabled, not on this bit.
|
|
8524
8596
|
*/
|
|
8525
8597
|
var StorageLocationSchema = object({
|
|
8526
8598
|
id: string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
|
|
@@ -12837,6 +12909,12 @@ method(object({
|
|
|
12837
12909
|
}), _void(), {
|
|
12838
12910
|
kind: "mutation",
|
|
12839
12911
|
auth: "admin"
|
|
12912
|
+
}), method(object({
|
|
12913
|
+
from: string(),
|
|
12914
|
+
to: string()
|
|
12915
|
+
}), object({ moved: number() }), {
|
|
12916
|
+
kind: "mutation",
|
|
12917
|
+
auth: "admin"
|
|
12840
12918
|
}), method(object({
|
|
12841
12919
|
deviceId: number(),
|
|
12842
12920
|
disabled: boolean()
|
|
@@ -18767,46 +18845,6 @@ var RecentTracksPageSchema = object({
|
|
|
18767
18845
|
/** Cursor for the next page, or null when this page is the last. */
|
|
18768
18846
|
nextCursor: string().nullable()
|
|
18769
18847
|
});
|
|
18770
|
-
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
18771
|
-
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
18772
|
-
var AnalyticsGroupRecordSchema = object({
|
|
18773
|
-
id: string(),
|
|
18774
|
-
deviceId: number().int(),
|
|
18775
|
-
openedAt: number().int(),
|
|
18776
|
-
closedAt: number().int(),
|
|
18777
|
-
timestamp: number().int(),
|
|
18778
|
-
memberCount: number().int(),
|
|
18779
|
-
memberTrackIds: array(string()).readonly(),
|
|
18780
|
-
className: string(),
|
|
18781
|
-
classes: array(string()).readonly(),
|
|
18782
|
-
/** Relative event-media path, or null when the group has no picture yet. */
|
|
18783
|
-
mediaUrl: string().nullable(),
|
|
18784
|
-
singleton: boolean()
|
|
18785
|
-
});
|
|
18786
|
-
var AnalyticsGroupMemberSchema = object({
|
|
18787
|
-
trackId: string(),
|
|
18788
|
-
deviceId: number().int(),
|
|
18789
|
-
className: string(),
|
|
18790
|
-
firstSeen: number().int(),
|
|
18791
|
-
lastSeen: number().int(),
|
|
18792
|
-
mediaUrl: string().nullable()
|
|
18793
|
-
});
|
|
18794
|
-
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
18795
|
-
var ListGroupsQueryInput = object({
|
|
18796
|
-
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
18797
|
-
deviceIds: array(number()),
|
|
18798
|
-
/** Window lower bound on `closedAt` (inclusive). */
|
|
18799
|
-
since: number().optional(),
|
|
18800
|
-
/** Window upper bound on `openedAt` (inclusive). */
|
|
18801
|
-
until: number().optional(),
|
|
18802
|
-
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
18803
|
-
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
18804
|
-
cursor: string().optional()
|
|
18805
|
-
});
|
|
18806
|
-
var ListGroupsPageSchema = object({
|
|
18807
|
-
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
18808
|
-
nextCursor: string().nullable()
|
|
18809
|
-
});
|
|
18810
18848
|
var KEY_EVENTS_DEFAULT_LIMIT = 50;
|
|
18811
18849
|
var KEY_EVENTS_MAX_LIMIT = 200;
|
|
18812
18850
|
var KeyEventQueryInput = object({
|
|
@@ -18910,9 +18948,7 @@ var TrackCascadeCountsSchema = object({
|
|
|
18910
18948
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
18911
18949
|
plates: number().int(),
|
|
18912
18950
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
18913
|
-
embeddings: number().int()
|
|
18914
|
-
/** Group membership + group rows removed with their last member (best-effort). */
|
|
18915
|
-
groups: number().int()
|
|
18951
|
+
embeddings: number().int()
|
|
18916
18952
|
});
|
|
18917
18953
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
18918
18954
|
var DiskReconcileCountsSchema = object({
|
|
@@ -19082,6 +19118,47 @@ var RebuildStatusSchema = object({
|
|
|
19082
19118
|
/** Present when the pass ended by throwing. */
|
|
19083
19119
|
error: string().nullable()
|
|
19084
19120
|
});
|
|
19121
|
+
/**
|
|
19122
|
+
* Acknowledgement that a debug-media reclaim STARTED.
|
|
19123
|
+
*
|
|
19124
|
+
* The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
|
|
19125
|
+
* it runs detached and this returns immediately. Awaiting it is how the
|
|
19126
|
+
* `addons.custom` door hit the 60 s UDS deadline while the walk carried on
|
|
19127
|
+
* with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
|
|
19128
|
+
*/
|
|
19129
|
+
var MediaReclaimStartResultSchema = object({
|
|
19130
|
+
started: boolean(),
|
|
19131
|
+
/** True when a pass was already running; the new request is ignored. */
|
|
19132
|
+
alreadyRunning: boolean()
|
|
19133
|
+
});
|
|
19134
|
+
var MediaReclaimInputSchema = object({
|
|
19135
|
+
mode: _enum(["report", "reclaim"]).default("report"),
|
|
19136
|
+
scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
|
|
19137
|
+
deviceIds: array(number().int()).min(1).optional(),
|
|
19138
|
+
restart: boolean().optional(),
|
|
19139
|
+
pageSize: number().int().min(50).max(5e3).optional(),
|
|
19140
|
+
maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19141
|
+
maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19142
|
+
maxBytesPerRun: number().int().min(1).optional(),
|
|
19143
|
+
budgetMinutes: number().int().min(1).max(720).optional(),
|
|
19144
|
+
throttleBytesPerSec: number().int().min(64 * 1024).optional(),
|
|
19145
|
+
graceMinutes: number().int().min(1).max(10080).optional()
|
|
19146
|
+
});
|
|
19147
|
+
var MediaReclaimStatusSchema = object({
|
|
19148
|
+
running: boolean(),
|
|
19149
|
+
mode: _enum(["report", "reclaim"]).nullable(),
|
|
19150
|
+
totalExamined: number(),
|
|
19151
|
+
totalEligible: number(),
|
|
19152
|
+
totalReclaimed: number(),
|
|
19153
|
+
totalBytesReclaimed: number(),
|
|
19154
|
+
totalRefused: number(),
|
|
19155
|
+
/** Device+scope windows finished in this pass. */
|
|
19156
|
+
devicesDone: number(),
|
|
19157
|
+
complete: boolean().nullable(),
|
|
19158
|
+
startedAtMs: number().nullable(),
|
|
19159
|
+
finishedAtMs: number().nullable(),
|
|
19160
|
+
error: string().nullable()
|
|
19161
|
+
});
|
|
19085
19162
|
var ReplayFrameInputSchema = object({
|
|
19086
19163
|
timestamp: number(),
|
|
19087
19164
|
frame: PipelineRunResultBridge
|
|
@@ -19120,10 +19197,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19120
19197
|
* stationary registry). Default false: the timeline lists passages,
|
|
19121
19198
|
* not parking records (operator decision, 2026-08-15). */
|
|
19122
19199
|
includeStationary: boolean().optional()
|
|
19123
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
19124
|
-
deviceId: number(),
|
|
19125
|
-
groupId: string().min(1)
|
|
19126
|
-
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
19200
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
19127
19201
|
kind: "mutation",
|
|
19128
19202
|
auth: "admin"
|
|
19129
19203
|
}), 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({
|
|
@@ -19223,6 +19297,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19223
19297
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19224
19298
|
kind: "query",
|
|
19225
19299
|
auth: "admin"
|
|
19300
|
+
}), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
|
|
19301
|
+
kind: "mutation",
|
|
19302
|
+
auth: "admin"
|
|
19303
|
+
}), method(object({}), MediaReclaimStatusSchema, {
|
|
19304
|
+
kind: "query",
|
|
19305
|
+
auth: "admin"
|
|
19226
19306
|
}), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
|
|
19227
19307
|
kind: "query",
|
|
19228
19308
|
auth: "admin"
|
|
@@ -21297,7 +21377,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
21297
21377
|
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
21298
21378
|
kind: "mutation",
|
|
21299
21379
|
auth: "admin"
|
|
21300
|
-
})
|
|
21380
|
+
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
21381
|
+
kind: "mutation",
|
|
21382
|
+
auth: "admin"
|
|
21383
|
+
}), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
21384
|
+
kind: "mutation",
|
|
21385
|
+
auth: "admin"
|
|
21386
|
+
}), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
|
|
21301
21387
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
21302
21388
|
providerId: string().min(1),
|
|
21303
21389
|
displayName: string().min(1),
|
|
@@ -26717,6 +26803,33 @@ var RecordingRebalanceInputSchema = object({
|
|
|
26717
26803
|
minMoveGb: number().min(0).optional()
|
|
26718
26804
|
});
|
|
26719
26805
|
/**
|
|
26806
|
+
* Operator-facing placement of one camera onto a recordings location.
|
|
26807
|
+
*
|
|
26808
|
+
* `pinLocationId` is the operator instruction: a location id, or `null` for
|
|
26809
|
+
* Auto (the planner may move this camera). `locationId` is where high/mid
|
|
26810
|
+
* currently write — the plan, which may disagree with the pin when Auto.
|
|
26811
|
+
*/
|
|
26812
|
+
var RecordingDevicePlacementSchema = object({
|
|
26813
|
+
deviceId: number().int(),
|
|
26814
|
+
profile: string(),
|
|
26815
|
+
locationId: string()
|
|
26816
|
+
});
|
|
26817
|
+
var RecordingDevicePinSchema = object({
|
|
26818
|
+
deviceId: number().int(),
|
|
26819
|
+
/** Recordings-class location this camera is pinned to. */
|
|
26820
|
+
locationId: string()
|
|
26821
|
+
});
|
|
26822
|
+
var RecordingPlacementViewSchema = object({
|
|
26823
|
+
assignments: array(RecordingDevicePlacementSchema),
|
|
26824
|
+
pins: array(RecordingDevicePinSchema),
|
|
26825
|
+
defaultLocations: record(string(), string())
|
|
26826
|
+
});
|
|
26827
|
+
var RecordingSetDevicePlacementInputSchema = object({
|
|
26828
|
+
deviceId: number().int(),
|
|
26829
|
+
/** `null` = Auto. Otherwise a `recordings:*` location id. */
|
|
26830
|
+
locationId: string().nullable()
|
|
26831
|
+
});
|
|
26832
|
+
/**
|
|
26720
26833
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
26721
26834
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
26722
26835
|
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
@@ -26942,6 +27055,12 @@ method(object({
|
|
|
26942
27055
|
}), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
26943
27056
|
kind: "mutation",
|
|
26944
27057
|
auth: "admin"
|
|
27058
|
+
}), method(object({}), RecordingPlacementViewSchema, {
|
|
27059
|
+
kind: "query",
|
|
27060
|
+
auth: "admin"
|
|
27061
|
+
}), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
|
|
27062
|
+
kind: "mutation",
|
|
27063
|
+
auth: "admin"
|
|
26945
27064
|
});
|
|
26946
27065
|
/**
|
|
26947
27066
|
* `recording-export` cap — render a footage time range into a single downloadable
|
|
@@ -30722,6 +30841,12 @@ Object.freeze({
|
|
|
30722
30841
|
addonId: null,
|
|
30723
30842
|
access: "delete"
|
|
30724
30843
|
},
|
|
30844
|
+
"deviceManager.renameLocation": {
|
|
30845
|
+
capName: "device-manager",
|
|
30846
|
+
capScope: "system",
|
|
30847
|
+
addonId: null,
|
|
30848
|
+
access: "create"
|
|
30849
|
+
},
|
|
30725
30850
|
"deviceManager.runDeviceAction": {
|
|
30726
30851
|
capName: "device-manager",
|
|
30727
30852
|
capScope: "system",
|
|
@@ -32414,19 +32539,19 @@ Object.freeze({
|
|
|
32414
32539
|
addonId: null,
|
|
32415
32540
|
access: "view"
|
|
32416
32541
|
},
|
|
32417
|
-
"pipelineAnalytics.
|
|
32542
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
32418
32543
|
capName: "pipeline-analytics",
|
|
32419
32544
|
capScope: "device",
|
|
32420
32545
|
addonId: null,
|
|
32421
32546
|
access: "view"
|
|
32422
32547
|
},
|
|
32423
|
-
"pipelineAnalytics.
|
|
32548
|
+
"pipelineAnalytics.getKeyEventsBatch": {
|
|
32424
32549
|
capName: "pipeline-analytics",
|
|
32425
32550
|
capScope: "device",
|
|
32426
32551
|
addonId: null,
|
|
32427
32552
|
access: "view"
|
|
32428
32553
|
},
|
|
32429
|
-
"pipelineAnalytics.
|
|
32554
|
+
"pipelineAnalytics.getMediaReclaimStatus": {
|
|
32430
32555
|
capName: "pipeline-analytics",
|
|
32431
32556
|
capScope: "device",
|
|
32432
32557
|
addonId: null,
|
|
@@ -32516,12 +32641,6 @@ Object.freeze({
|
|
|
32516
32641
|
addonId: null,
|
|
32517
32642
|
access: "view"
|
|
32518
32643
|
},
|
|
32519
|
-
"pipelineAnalytics.listGroups": {
|
|
32520
|
-
capName: "pipeline-analytics",
|
|
32521
|
-
capScope: "device",
|
|
32522
|
-
addonId: null,
|
|
32523
|
-
access: "view"
|
|
32524
|
-
},
|
|
32525
32644
|
"pipelineAnalytics.listOpsLog": {
|
|
32526
32645
|
capName: "pipeline-analytics",
|
|
32527
32646
|
capScope: "device",
|
|
@@ -32606,6 +32725,12 @@ Object.freeze({
|
|
|
32606
32725
|
addonId: null,
|
|
32607
32726
|
access: "create"
|
|
32608
32727
|
},
|
|
32728
|
+
"pipelineAnalytics.reclaimDebugMedia": {
|
|
32729
|
+
capName: "pipeline-analytics",
|
|
32730
|
+
capScope: "device",
|
|
32731
|
+
addonId: null,
|
|
32732
|
+
access: "create"
|
|
32733
|
+
},
|
|
32609
32734
|
"pipelineAnalytics.reconcileFromDisk": {
|
|
32610
32735
|
capName: "pipeline-analytics",
|
|
32611
32736
|
capScope: "device",
|
|
@@ -33530,6 +33655,12 @@ Object.freeze({
|
|
|
33530
33655
|
addonId: null,
|
|
33531
33656
|
access: "view"
|
|
33532
33657
|
},
|
|
33658
|
+
"recording.getPlacement": {
|
|
33659
|
+
capName: "recording",
|
|
33660
|
+
capScope: "system",
|
|
33661
|
+
addonId: null,
|
|
33662
|
+
access: "view"
|
|
33663
|
+
},
|
|
33533
33664
|
"recording.getPlaybackManifest": {
|
|
33534
33665
|
capName: "recording",
|
|
33535
33666
|
capScope: "system",
|
|
@@ -33656,6 +33787,12 @@ Object.freeze({
|
|
|
33656
33787
|
addonId: null,
|
|
33657
33788
|
access: "create"
|
|
33658
33789
|
},
|
|
33790
|
+
"recording.setDevicePlacement": {
|
|
33791
|
+
capName: "recording",
|
|
33792
|
+
capScope: "system",
|
|
33793
|
+
addonId: null,
|
|
33794
|
+
access: "create"
|
|
33795
|
+
},
|
|
33659
33796
|
"recording.startStorageMigrationMove": {
|
|
33660
33797
|
capName: "recording",
|
|
33661
33798
|
capScope: "system",
|
|
@@ -34100,12 +34237,36 @@ Object.freeze({
|
|
|
34100
34237
|
addonId: null,
|
|
34101
34238
|
access: "create"
|
|
34102
34239
|
},
|
|
34240
|
+
"storageMigration.cleanupCancel": {
|
|
34241
|
+
capName: "storage-migration",
|
|
34242
|
+
capScope: "system",
|
|
34243
|
+
addonId: null,
|
|
34244
|
+
access: "create"
|
|
34245
|
+
},
|
|
34246
|
+
"storageMigration.cleanupStart": {
|
|
34247
|
+
capName: "storage-migration",
|
|
34248
|
+
capScope: "system",
|
|
34249
|
+
addonId: null,
|
|
34250
|
+
access: "create"
|
|
34251
|
+
},
|
|
34252
|
+
"storageMigration.cleanupStatus": {
|
|
34253
|
+
capName: "storage-migration",
|
|
34254
|
+
capScope: "system",
|
|
34255
|
+
addonId: null,
|
|
34256
|
+
access: "view"
|
|
34257
|
+
},
|
|
34103
34258
|
"storageMigration.drain": {
|
|
34104
34259
|
capName: "storage-migration",
|
|
34105
34260
|
capScope: "system",
|
|
34106
34261
|
addonId: null,
|
|
34107
34262
|
access: "create"
|
|
34108
34263
|
},
|
|
34264
|
+
"storageMigration.history": {
|
|
34265
|
+
capName: "storage-migration",
|
|
34266
|
+
capScope: "system",
|
|
34267
|
+
addonId: null,
|
|
34268
|
+
access: "view"
|
|
34269
|
+
},
|
|
34109
34270
|
"storageMigration.movers": {
|
|
34110
34271
|
capName: "storage-migration",
|
|
34111
34272
|
capScope: "system",
|
|
@@ -36102,11 +36263,6 @@ Object.freeze({
|
|
|
36102
36263
|
form: "single",
|
|
36103
36264
|
optional: true
|
|
36104
36265
|
}],
|
|
36105
|
-
"pipelineAnalytics.getGroup": [{
|
|
36106
|
-
name: "deviceId",
|
|
36107
|
-
form: "single",
|
|
36108
|
-
optional: false
|
|
36109
|
-
}],
|
|
36110
36266
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36111
36267
|
name: "deviceId",
|
|
36112
36268
|
form: "single",
|
|
@@ -36172,11 +36328,6 @@ Object.freeze({
|
|
|
36172
36328
|
form: "single",
|
|
36173
36329
|
optional: false
|
|
36174
36330
|
}],
|
|
36175
|
-
"pipelineAnalytics.listGroups": [{
|
|
36176
|
-
name: "deviceIds",
|
|
36177
|
-
form: "array",
|
|
36178
|
-
optional: false
|
|
36179
|
-
}],
|
|
36180
36331
|
"pipelineAnalytics.listOpsLog": [{
|
|
36181
36332
|
name: "deviceId",
|
|
36182
36333
|
form: "single",
|
|
@@ -36222,6 +36373,11 @@ Object.freeze({
|
|
|
36222
36373
|
form: "single",
|
|
36223
36374
|
optional: true
|
|
36224
36375
|
}],
|
|
36376
|
+
"pipelineAnalytics.reclaimDebugMedia": [{
|
|
36377
|
+
name: "deviceIds",
|
|
36378
|
+
form: "array",
|
|
36379
|
+
optional: true
|
|
36380
|
+
}],
|
|
36225
36381
|
"pipelineAnalytics.reconcileFromDisk": [{
|
|
36226
36382
|
name: "deviceId",
|
|
36227
36383
|
form: "single",
|
|
@@ -36587,6 +36743,11 @@ Object.freeze({
|
|
|
36587
36743
|
form: "single",
|
|
36588
36744
|
optional: false
|
|
36589
36745
|
}],
|
|
36746
|
+
"recording.setDevicePlacement": [{
|
|
36747
|
+
name: "deviceId",
|
|
36748
|
+
form: "single",
|
|
36749
|
+
optional: false
|
|
36750
|
+
}],
|
|
36590
36751
|
"recording.startStorageMigrationMove": [{
|
|
36591
36752
|
name: "deviceId",
|
|
36592
36753
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -8096,6 +8096,13 @@ var MediaRelocateModeSchema = _enum([
|
|
|
8096
8096
|
]);
|
|
8097
8097
|
var RelocateMediaInputSchema = object({
|
|
8098
8098
|
toLocationId: string(),
|
|
8099
|
+
/**
|
|
8100
|
+
* Restrict the pass to rows currently on this location. Omitted / `'*'` =
|
|
8101
|
+
* every row that is not already on `toLocationId` (the historical
|
|
8102
|
+
* behaviour). A named source is what a from→to migration needs: without it
|
|
8103
|
+
* "move events off disk 2" also emptied disk 1.
|
|
8104
|
+
*/
|
|
8105
|
+
fromLocationId: string().optional(),
|
|
8099
8106
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8100
8107
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8101
8108
|
mode: MediaRelocateModeSchema.optional()
|
|
@@ -8163,6 +8170,19 @@ var StorageMigrationDestinationsSchema = object({
|
|
|
8163
8170
|
galleryMedia: string().min(1).optional()
|
|
8164
8171
|
}).refine((value) => Object.keys(value).length > 0, { message: "select at least one storage class" });
|
|
8165
8172
|
/**
|
|
8173
|
+
* Optional named source per class. Omitted = the class's current default
|
|
8174
|
+
* (the historical behaviour). A named source that is NOT the default is a
|
|
8175
|
+
* drain of that disk: bytes move, the default stays, and the source is
|
|
8176
|
+
* disabled when the move finishes.
|
|
8177
|
+
*/
|
|
8178
|
+
var StorageMigrationSourcesSchema = object({
|
|
8179
|
+
recordings: string().min(1).optional(),
|
|
8180
|
+
recordingsLow: string().min(1).optional(),
|
|
8181
|
+
eventMedia: string().min(1).optional(),
|
|
8182
|
+
backups: string().min(1).optional(),
|
|
8183
|
+
galleryMedia: string().min(1).optional()
|
|
8184
|
+
}).optional();
|
|
8185
|
+
/**
|
|
8166
8186
|
* How a migration sequences the cutover against the byte move.
|
|
8167
8187
|
*
|
|
8168
8188
|
* - `blocking` — the historical order: pause, move every byte, repoint,
|
|
@@ -8184,6 +8204,8 @@ var StorageMigrationModeSchema = _enum(["blocking", "nonBlocking"]);
|
|
|
8184
8204
|
/** Shared input for planning and starting an orchestrated storage migration. */
|
|
8185
8205
|
var StorageMigrationInputSchema = object({
|
|
8186
8206
|
destinations: StorageMigrationDestinationsSchema,
|
|
8207
|
+
/** Omitted = each class's current default. */
|
|
8208
|
+
sources: StorageMigrationSourcesSchema,
|
|
8187
8209
|
throttleMbps: number().min(1).max(1e3).optional(),
|
|
8188
8210
|
/** Omitted = `blocking`, which stays the default. */
|
|
8189
8211
|
mode: StorageMigrationModeSchema.optional()
|
|
@@ -8263,6 +8285,13 @@ var StorageMigrationMoveSchema = object({
|
|
|
8263
8285
|
storageClass: StorageMigrationClassSchema,
|
|
8264
8286
|
fromLocationId: string(),
|
|
8265
8287
|
toLocationId: string(),
|
|
8288
|
+
/**
|
|
8289
|
+
* True when `from` was NOT the class default at plan time. The move still
|
|
8290
|
+
* copies bytes, but the default is left alone and the source is disabled
|
|
8291
|
+
* once the copy verifies. Absent on jobs planned before this field existed
|
|
8292
|
+
* — those jobs always repointed, which is `false`.
|
|
8293
|
+
*/
|
|
8294
|
+
freezeSource: boolean().optional(),
|
|
8266
8295
|
moverJobId: string().nullable(),
|
|
8267
8296
|
state: RelocateJobStateSchema.nullable(),
|
|
8268
8297
|
error: string().nullable(),
|
|
@@ -8276,6 +8305,7 @@ var StorageMigrationJobSchema = object({
|
|
|
8276
8305
|
* can tell a seconds-long cutover from a thirty-hour one. */
|
|
8277
8306
|
mode: StorageMigrationModeSchema,
|
|
8278
8307
|
destinations: StorageMigrationDestinationsSchema,
|
|
8308
|
+
sources: StorageMigrationSourcesSchema,
|
|
8279
8309
|
throttleMbps: number(),
|
|
8280
8310
|
moves: array(StorageMigrationMoveSchema),
|
|
8281
8311
|
pauseLeaseId: string().nullable(),
|
|
@@ -8301,6 +8331,7 @@ var StorageMigrationFindingSchema = object({
|
|
|
8301
8331
|
});
|
|
8302
8332
|
var StorageMigrationPlanSchema = object({
|
|
8303
8333
|
destinations: StorageMigrationDestinationsSchema,
|
|
8334
|
+
sources: StorageMigrationSourcesSchema,
|
|
8304
8335
|
/** The mode this plan was built for. A plan is only valid for its mode: the
|
|
8305
8336
|
* `eventMedia` seal gate and the single-cardinality refusal both depend on
|
|
8306
8337
|
* it. */
|
|
@@ -8308,7 +8339,8 @@ var StorageMigrationPlanSchema = object({
|
|
|
8308
8339
|
moves: array(object({
|
|
8309
8340
|
storageClass: StorageMigrationClassSchema,
|
|
8310
8341
|
fromLocationId: string(),
|
|
8311
|
-
toLocationId: string()
|
|
8342
|
+
toLocationId: string(),
|
|
8343
|
+
freezeSource: boolean().optional()
|
|
8312
8344
|
})),
|
|
8313
8345
|
findings: array(StorageMigrationFindingSchema)
|
|
8314
8346
|
});
|
|
@@ -8486,10 +8518,51 @@ var LedgerWalkReportSchema = object({
|
|
|
8486
8518
|
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8487
8519
|
var RelocatableMediaCountInputSchema = object({
|
|
8488
8520
|
toLocationId: string().min(1),
|
|
8521
|
+
/** Restrict the count to one source; omitted / `'*'` = every non-target row. */
|
|
8522
|
+
fromLocationId: string().optional(),
|
|
8489
8523
|
/** Omitted = `move`. */
|
|
8490
8524
|
mode: MediaRelocateModeSchema.optional()
|
|
8491
8525
|
});
|
|
8492
8526
|
/**
|
|
8527
|
+
* Operator cleanup of leftover analytics rows, optional debug media, and
|
|
8528
|
+
* ghost ledger entries on frozen footage locations.
|
|
8529
|
+
*
|
|
8530
|
+
* A pass is tens of minutes on a standing backlog. The hub method RETURNS
|
|
8531
|
+
* `{ jobId }` immediately; progress is `cleanupStatus`. Awaiting the work
|
|
8532
|
+
* is how `addons.custom` hit the 60 s UDS deadline while reclaim continued
|
|
8533
|
+
* with no operator-visible status.
|
|
8534
|
+
*/
|
|
8535
|
+
var StorageCleanupPhaseSchema = _enum([
|
|
8536
|
+
"orphans",
|
|
8537
|
+
"debug-media",
|
|
8538
|
+
"ghost-ledger",
|
|
8539
|
+
"done",
|
|
8540
|
+
"failed",
|
|
8541
|
+
"cancelled"
|
|
8542
|
+
]);
|
|
8543
|
+
var StorageCleanupInputSchema = object({
|
|
8544
|
+
/** Also walk motion stills / track filmstrips. Off by default. */
|
|
8545
|
+
includeDebugMedia: boolean().optional() });
|
|
8546
|
+
var StorageCleanupJobSchema = object({
|
|
8547
|
+
jobId: string(),
|
|
8548
|
+
phase: StorageCleanupPhaseSchema,
|
|
8549
|
+
includeDebugMedia: boolean(),
|
|
8550
|
+
orphansReclaimed: number().int().nonnegative(),
|
|
8551
|
+
orphanBytesReclaimed: number().int().nonnegative(),
|
|
8552
|
+
debugMediaReclaimed: number().int().nonnegative(),
|
|
8553
|
+
debugMediaBytesReclaimed: number().int().nonnegative(),
|
|
8554
|
+
ghostsForgotten: number().int().nonnegative(),
|
|
8555
|
+
ghostBytesForgotten: number().int().nonnegative(),
|
|
8556
|
+
/** Short operator-facing line: current collection, pass, or location. */
|
|
8557
|
+
detail: string().nullable(),
|
|
8558
|
+
cancelRequested: boolean(),
|
|
8559
|
+
startedAt: number(),
|
|
8560
|
+
updatedAt: number(),
|
|
8561
|
+
finishedAt: number().nullable(),
|
|
8562
|
+
error: string().nullable()
|
|
8563
|
+
});
|
|
8564
|
+
var StorageCleanupStatusInputSchema = object({ jobId: string().optional() });
|
|
8565
|
+
/**
|
|
8493
8566
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8494
8567
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8495
8568
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8517,11 +8590,10 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
|
8517
8590
|
* The default location for a type uses `id === <type>:default` by
|
|
8518
8591
|
* convention (the bare type ref like `'backups'` resolves to it).
|
|
8519
8592
|
*
|
|
8520
|
-
* `isSystem
|
|
8521
|
-
*
|
|
8522
|
-
*
|
|
8523
|
-
*
|
|
8524
|
-
* deleting it is rejected at the cap level.
|
|
8593
|
+
* `isSystem` is a legacy persisted flag. Seed still creates the initial
|
|
8594
|
+
* `<type>:default` locations; the flag is no longer a lock, a badge, or a
|
|
8595
|
+
* prune selector. New writes leave it false. Deletion is gated on uniqueness
|
|
8596
|
+
* / last-enabled, not on this bit.
|
|
8525
8597
|
*/
|
|
8526
8598
|
var StorageLocationSchema = object({
|
|
8527
8599
|
id: string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
|
|
@@ -12838,6 +12910,12 @@ method(object({
|
|
|
12838
12910
|
}), _void(), {
|
|
12839
12911
|
kind: "mutation",
|
|
12840
12912
|
auth: "admin"
|
|
12913
|
+
}), method(object({
|
|
12914
|
+
from: string(),
|
|
12915
|
+
to: string()
|
|
12916
|
+
}), object({ moved: number() }), {
|
|
12917
|
+
kind: "mutation",
|
|
12918
|
+
auth: "admin"
|
|
12841
12919
|
}), method(object({
|
|
12842
12920
|
deviceId: number(),
|
|
12843
12921
|
disabled: boolean()
|
|
@@ -18768,46 +18846,6 @@ var RecentTracksPageSchema = object({
|
|
|
18768
18846
|
/** Cursor for the next page, or null when this page is the last. */
|
|
18769
18847
|
nextCursor: string().nullable()
|
|
18770
18848
|
});
|
|
18771
|
-
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
18772
|
-
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
18773
|
-
var AnalyticsGroupRecordSchema = object({
|
|
18774
|
-
id: string(),
|
|
18775
|
-
deviceId: number().int(),
|
|
18776
|
-
openedAt: number().int(),
|
|
18777
|
-
closedAt: number().int(),
|
|
18778
|
-
timestamp: number().int(),
|
|
18779
|
-
memberCount: number().int(),
|
|
18780
|
-
memberTrackIds: array(string()).readonly(),
|
|
18781
|
-
className: string(),
|
|
18782
|
-
classes: array(string()).readonly(),
|
|
18783
|
-
/** Relative event-media path, or null when the group has no picture yet. */
|
|
18784
|
-
mediaUrl: string().nullable(),
|
|
18785
|
-
singleton: boolean()
|
|
18786
|
-
});
|
|
18787
|
-
var AnalyticsGroupMemberSchema = object({
|
|
18788
|
-
trackId: string(),
|
|
18789
|
-
deviceId: number().int(),
|
|
18790
|
-
className: string(),
|
|
18791
|
-
firstSeen: number().int(),
|
|
18792
|
-
lastSeen: number().int(),
|
|
18793
|
-
mediaUrl: string().nullable()
|
|
18794
|
-
});
|
|
18795
|
-
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
18796
|
-
var ListGroupsQueryInput = object({
|
|
18797
|
-
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
18798
|
-
deviceIds: array(number()),
|
|
18799
|
-
/** Window lower bound on `closedAt` (inclusive). */
|
|
18800
|
-
since: number().optional(),
|
|
18801
|
-
/** Window upper bound on `openedAt` (inclusive). */
|
|
18802
|
-
until: number().optional(),
|
|
18803
|
-
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
18804
|
-
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
18805
|
-
cursor: string().optional()
|
|
18806
|
-
});
|
|
18807
|
-
var ListGroupsPageSchema = object({
|
|
18808
|
-
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
18809
|
-
nextCursor: string().nullable()
|
|
18810
|
-
});
|
|
18811
18849
|
var KEY_EVENTS_DEFAULT_LIMIT = 50;
|
|
18812
18850
|
var KEY_EVENTS_MAX_LIMIT = 200;
|
|
18813
18851
|
var KeyEventQueryInput = object({
|
|
@@ -18911,9 +18949,7 @@ var TrackCascadeCountsSchema = object({
|
|
|
18911
18949
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
18912
18950
|
plates: number().int(),
|
|
18913
18951
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
18914
|
-
embeddings: number().int()
|
|
18915
|
-
/** Group membership + group rows removed with their last member (best-effort). */
|
|
18916
|
-
groups: number().int()
|
|
18952
|
+
embeddings: number().int()
|
|
18917
18953
|
});
|
|
18918
18954
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
18919
18955
|
var DiskReconcileCountsSchema = object({
|
|
@@ -19083,6 +19119,47 @@ var RebuildStatusSchema = object({
|
|
|
19083
19119
|
/** Present when the pass ended by throwing. */
|
|
19084
19120
|
error: string().nullable()
|
|
19085
19121
|
});
|
|
19122
|
+
/**
|
|
19123
|
+
* Acknowledgement that a debug-media reclaim STARTED.
|
|
19124
|
+
*
|
|
19125
|
+
* The pass is paced at ~2 MB/s over a standing 100 GB — tens of minutes — so
|
|
19126
|
+
* it runs detached and this returns immediately. Awaiting it is how the
|
|
19127
|
+
* `addons.custom` door hit the 60 s UDS deadline while the walk carried on
|
|
19128
|
+
* with no status. Poll {@link pipelineAnalyticsCapability.methods.getMediaReclaimStatus}.
|
|
19129
|
+
*/
|
|
19130
|
+
var MediaReclaimStartResultSchema = object({
|
|
19131
|
+
started: boolean(),
|
|
19132
|
+
/** True when a pass was already running; the new request is ignored. */
|
|
19133
|
+
alreadyRunning: boolean()
|
|
19134
|
+
});
|
|
19135
|
+
var MediaReclaimInputSchema = object({
|
|
19136
|
+
mode: _enum(["report", "reclaim"]).default("report"),
|
|
19137
|
+
scopes: array(_enum(["motion-still", "track-filmstrip"])).min(1).optional(),
|
|
19138
|
+
deviceIds: array(number().int()).min(1).optional(),
|
|
19139
|
+
restart: boolean().optional(),
|
|
19140
|
+
pageSize: number().int().min(50).max(5e3).optional(),
|
|
19141
|
+
maxRowsPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19142
|
+
maxReclaimPerDevice: number().int().min(1).max(5e5).optional(),
|
|
19143
|
+
maxBytesPerRun: number().int().min(1).optional(),
|
|
19144
|
+
budgetMinutes: number().int().min(1).max(720).optional(),
|
|
19145
|
+
throttleBytesPerSec: number().int().min(64 * 1024).optional(),
|
|
19146
|
+
graceMinutes: number().int().min(1).max(10080).optional()
|
|
19147
|
+
});
|
|
19148
|
+
var MediaReclaimStatusSchema = object({
|
|
19149
|
+
running: boolean(),
|
|
19150
|
+
mode: _enum(["report", "reclaim"]).nullable(),
|
|
19151
|
+
totalExamined: number(),
|
|
19152
|
+
totalEligible: number(),
|
|
19153
|
+
totalReclaimed: number(),
|
|
19154
|
+
totalBytesReclaimed: number(),
|
|
19155
|
+
totalRefused: number(),
|
|
19156
|
+
/** Device+scope windows finished in this pass. */
|
|
19157
|
+
devicesDone: number(),
|
|
19158
|
+
complete: boolean().nullable(),
|
|
19159
|
+
startedAtMs: number().nullable(),
|
|
19160
|
+
finishedAtMs: number().nullable(),
|
|
19161
|
+
error: string().nullable()
|
|
19162
|
+
});
|
|
19086
19163
|
var ReplayFrameInputSchema = object({
|
|
19087
19164
|
timestamp: number(),
|
|
19088
19165
|
frame: PipelineRunResultBridge
|
|
@@ -19121,10 +19198,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19121
19198
|
* stationary registry). Default false: the timeline lists passages,
|
|
19122
19199
|
* not parking records (operator decision, 2026-08-15). */
|
|
19123
19200
|
includeStationary: boolean().optional()
|
|
19124
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
19125
|
-
deviceId: number(),
|
|
19126
|
-
groupId: string().min(1)
|
|
19127
|
-
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
19201
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
19128
19202
|
kind: "mutation",
|
|
19129
19203
|
auth: "admin"
|
|
19130
19204
|
}), 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({
|
|
@@ -19224,6 +19298,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19224
19298
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19225
19299
|
kind: "query",
|
|
19226
19300
|
auth: "admin"
|
|
19301
|
+
}), method(MediaReclaimInputSchema, MediaReclaimStartResultSchema, {
|
|
19302
|
+
kind: "mutation",
|
|
19303
|
+
auth: "admin"
|
|
19304
|
+
}), method(object({}), MediaReclaimStatusSchema, {
|
|
19305
|
+
kind: "query",
|
|
19306
|
+
auth: "admin"
|
|
19227
19307
|
}), method(object({ deviceIds: array(number()).optional() }), TrainingExportSummarySchema, {
|
|
19228
19308
|
kind: "query",
|
|
19229
19309
|
auth: "admin"
|
|
@@ -21298,7 +21378,13 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
21298
21378
|
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
21299
21379
|
kind: "mutation",
|
|
21300
21380
|
auth: "admin"
|
|
21301
|
-
})
|
|
21381
|
+
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
21382
|
+
kind: "mutation",
|
|
21383
|
+
auth: "admin"
|
|
21384
|
+
}), method(StorageCleanupStatusInputSchema, StorageCleanupJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
21385
|
+
kind: "mutation",
|
|
21386
|
+
auth: "admin"
|
|
21387
|
+
}), method(object({}), array(StorageMigrationJobSchema).readonly(), { auth: "admin" });
|
|
21302
21388
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
21303
21389
|
providerId: string().min(1),
|
|
21304
21390
|
displayName: string().min(1),
|
|
@@ -26718,6 +26804,33 @@ var RecordingRebalanceInputSchema = object({
|
|
|
26718
26804
|
minMoveGb: number().min(0).optional()
|
|
26719
26805
|
});
|
|
26720
26806
|
/**
|
|
26807
|
+
* Operator-facing placement of one camera onto a recordings location.
|
|
26808
|
+
*
|
|
26809
|
+
* `pinLocationId` is the operator instruction: a location id, or `null` for
|
|
26810
|
+
* Auto (the planner may move this camera). `locationId` is where high/mid
|
|
26811
|
+
* currently write — the plan, which may disagree with the pin when Auto.
|
|
26812
|
+
*/
|
|
26813
|
+
var RecordingDevicePlacementSchema = object({
|
|
26814
|
+
deviceId: number().int(),
|
|
26815
|
+
profile: string(),
|
|
26816
|
+
locationId: string()
|
|
26817
|
+
});
|
|
26818
|
+
var RecordingDevicePinSchema = object({
|
|
26819
|
+
deviceId: number().int(),
|
|
26820
|
+
/** Recordings-class location this camera is pinned to. */
|
|
26821
|
+
locationId: string()
|
|
26822
|
+
});
|
|
26823
|
+
var RecordingPlacementViewSchema = object({
|
|
26824
|
+
assignments: array(RecordingDevicePlacementSchema),
|
|
26825
|
+
pins: array(RecordingDevicePinSchema),
|
|
26826
|
+
defaultLocations: record(string(), string())
|
|
26827
|
+
});
|
|
26828
|
+
var RecordingSetDevicePlacementInputSchema = object({
|
|
26829
|
+
deviceId: number().int(),
|
|
26830
|
+
/** `null` = Auto. Otherwise a `recordings:*` location id. */
|
|
26831
|
+
locationId: string().nullable()
|
|
26832
|
+
});
|
|
26833
|
+
/**
|
|
26721
26834
|
* Result of locating footage at a wall-clock instant for one device/profile.
|
|
26722
26835
|
* `segment` carries the covering segment's window; `gap` reports the forward
|
|
26723
26836
|
* nearest covered edge (`null` past the end of footage / when none exists)
|
|
@@ -26943,6 +27056,12 @@ method(object({
|
|
|
26943
27056
|
}), method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
|
|
26944
27057
|
kind: "mutation",
|
|
26945
27058
|
auth: "admin"
|
|
27059
|
+
}), method(object({}), RecordingPlacementViewSchema, {
|
|
27060
|
+
kind: "query",
|
|
27061
|
+
auth: "admin"
|
|
27062
|
+
}), method(RecordingSetDevicePlacementInputSchema, object({ ok: literal(true) }), {
|
|
27063
|
+
kind: "mutation",
|
|
27064
|
+
auth: "admin"
|
|
26946
27065
|
});
|
|
26947
27066
|
/**
|
|
26948
27067
|
* `recording-export` cap — render a footage time range into a single downloadable
|
|
@@ -30723,6 +30842,12 @@ Object.freeze({
|
|
|
30723
30842
|
addonId: null,
|
|
30724
30843
|
access: "delete"
|
|
30725
30844
|
},
|
|
30845
|
+
"deviceManager.renameLocation": {
|
|
30846
|
+
capName: "device-manager",
|
|
30847
|
+
capScope: "system",
|
|
30848
|
+
addonId: null,
|
|
30849
|
+
access: "create"
|
|
30850
|
+
},
|
|
30726
30851
|
"deviceManager.runDeviceAction": {
|
|
30727
30852
|
capName: "device-manager",
|
|
30728
30853
|
capScope: "system",
|
|
@@ -32415,19 +32540,19 @@ Object.freeze({
|
|
|
32415
32540
|
addonId: null,
|
|
32416
32541
|
access: "view"
|
|
32417
32542
|
},
|
|
32418
|
-
"pipelineAnalytics.
|
|
32543
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
32419
32544
|
capName: "pipeline-analytics",
|
|
32420
32545
|
capScope: "device",
|
|
32421
32546
|
addonId: null,
|
|
32422
32547
|
access: "view"
|
|
32423
32548
|
},
|
|
32424
|
-
"pipelineAnalytics.
|
|
32549
|
+
"pipelineAnalytics.getKeyEventsBatch": {
|
|
32425
32550
|
capName: "pipeline-analytics",
|
|
32426
32551
|
capScope: "device",
|
|
32427
32552
|
addonId: null,
|
|
32428
32553
|
access: "view"
|
|
32429
32554
|
},
|
|
32430
|
-
"pipelineAnalytics.
|
|
32555
|
+
"pipelineAnalytics.getMediaReclaimStatus": {
|
|
32431
32556
|
capName: "pipeline-analytics",
|
|
32432
32557
|
capScope: "device",
|
|
32433
32558
|
addonId: null,
|
|
@@ -32517,12 +32642,6 @@ Object.freeze({
|
|
|
32517
32642
|
addonId: null,
|
|
32518
32643
|
access: "view"
|
|
32519
32644
|
},
|
|
32520
|
-
"pipelineAnalytics.listGroups": {
|
|
32521
|
-
capName: "pipeline-analytics",
|
|
32522
|
-
capScope: "device",
|
|
32523
|
-
addonId: null,
|
|
32524
|
-
access: "view"
|
|
32525
|
-
},
|
|
32526
32645
|
"pipelineAnalytics.listOpsLog": {
|
|
32527
32646
|
capName: "pipeline-analytics",
|
|
32528
32647
|
capScope: "device",
|
|
@@ -32607,6 +32726,12 @@ Object.freeze({
|
|
|
32607
32726
|
addonId: null,
|
|
32608
32727
|
access: "create"
|
|
32609
32728
|
},
|
|
32729
|
+
"pipelineAnalytics.reclaimDebugMedia": {
|
|
32730
|
+
capName: "pipeline-analytics",
|
|
32731
|
+
capScope: "device",
|
|
32732
|
+
addonId: null,
|
|
32733
|
+
access: "create"
|
|
32734
|
+
},
|
|
32610
32735
|
"pipelineAnalytics.reconcileFromDisk": {
|
|
32611
32736
|
capName: "pipeline-analytics",
|
|
32612
32737
|
capScope: "device",
|
|
@@ -33531,6 +33656,12 @@ Object.freeze({
|
|
|
33531
33656
|
addonId: null,
|
|
33532
33657
|
access: "view"
|
|
33533
33658
|
},
|
|
33659
|
+
"recording.getPlacement": {
|
|
33660
|
+
capName: "recording",
|
|
33661
|
+
capScope: "system",
|
|
33662
|
+
addonId: null,
|
|
33663
|
+
access: "view"
|
|
33664
|
+
},
|
|
33534
33665
|
"recording.getPlaybackManifest": {
|
|
33535
33666
|
capName: "recording",
|
|
33536
33667
|
capScope: "system",
|
|
@@ -33657,6 +33788,12 @@ Object.freeze({
|
|
|
33657
33788
|
addonId: null,
|
|
33658
33789
|
access: "create"
|
|
33659
33790
|
},
|
|
33791
|
+
"recording.setDevicePlacement": {
|
|
33792
|
+
capName: "recording",
|
|
33793
|
+
capScope: "system",
|
|
33794
|
+
addonId: null,
|
|
33795
|
+
access: "create"
|
|
33796
|
+
},
|
|
33660
33797
|
"recording.startStorageMigrationMove": {
|
|
33661
33798
|
capName: "recording",
|
|
33662
33799
|
capScope: "system",
|
|
@@ -34101,12 +34238,36 @@ Object.freeze({
|
|
|
34101
34238
|
addonId: null,
|
|
34102
34239
|
access: "create"
|
|
34103
34240
|
},
|
|
34241
|
+
"storageMigration.cleanupCancel": {
|
|
34242
|
+
capName: "storage-migration",
|
|
34243
|
+
capScope: "system",
|
|
34244
|
+
addonId: null,
|
|
34245
|
+
access: "create"
|
|
34246
|
+
},
|
|
34247
|
+
"storageMigration.cleanupStart": {
|
|
34248
|
+
capName: "storage-migration",
|
|
34249
|
+
capScope: "system",
|
|
34250
|
+
addonId: null,
|
|
34251
|
+
access: "create"
|
|
34252
|
+
},
|
|
34253
|
+
"storageMigration.cleanupStatus": {
|
|
34254
|
+
capName: "storage-migration",
|
|
34255
|
+
capScope: "system",
|
|
34256
|
+
addonId: null,
|
|
34257
|
+
access: "view"
|
|
34258
|
+
},
|
|
34104
34259
|
"storageMigration.drain": {
|
|
34105
34260
|
capName: "storage-migration",
|
|
34106
34261
|
capScope: "system",
|
|
34107
34262
|
addonId: null,
|
|
34108
34263
|
access: "create"
|
|
34109
34264
|
},
|
|
34265
|
+
"storageMigration.history": {
|
|
34266
|
+
capName: "storage-migration",
|
|
34267
|
+
capScope: "system",
|
|
34268
|
+
addonId: null,
|
|
34269
|
+
access: "view"
|
|
34270
|
+
},
|
|
34110
34271
|
"storageMigration.movers": {
|
|
34111
34272
|
capName: "storage-migration",
|
|
34112
34273
|
capScope: "system",
|
|
@@ -36103,11 +36264,6 @@ Object.freeze({
|
|
|
36103
36264
|
form: "single",
|
|
36104
36265
|
optional: true
|
|
36105
36266
|
}],
|
|
36106
|
-
"pipelineAnalytics.getGroup": [{
|
|
36107
|
-
name: "deviceId",
|
|
36108
|
-
form: "single",
|
|
36109
|
-
optional: false
|
|
36110
|
-
}],
|
|
36111
36267
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36112
36268
|
name: "deviceId",
|
|
36113
36269
|
form: "single",
|
|
@@ -36173,11 +36329,6 @@ Object.freeze({
|
|
|
36173
36329
|
form: "single",
|
|
36174
36330
|
optional: false
|
|
36175
36331
|
}],
|
|
36176
|
-
"pipelineAnalytics.listGroups": [{
|
|
36177
|
-
name: "deviceIds",
|
|
36178
|
-
form: "array",
|
|
36179
|
-
optional: false
|
|
36180
|
-
}],
|
|
36181
36332
|
"pipelineAnalytics.listOpsLog": [{
|
|
36182
36333
|
name: "deviceId",
|
|
36183
36334
|
form: "single",
|
|
@@ -36223,6 +36374,11 @@ Object.freeze({
|
|
|
36223
36374
|
form: "single",
|
|
36224
36375
|
optional: true
|
|
36225
36376
|
}],
|
|
36377
|
+
"pipelineAnalytics.reclaimDebugMedia": [{
|
|
36378
|
+
name: "deviceIds",
|
|
36379
|
+
form: "array",
|
|
36380
|
+
optional: true
|
|
36381
|
+
}],
|
|
36226
36382
|
"pipelineAnalytics.reconcileFromDisk": [{
|
|
36227
36383
|
name: "deviceId",
|
|
36228
36384
|
form: "single",
|
|
@@ -36588,6 +36744,11 @@ Object.freeze({
|
|
|
36588
36744
|
form: "single",
|
|
36589
36745
|
optional: false
|
|
36590
36746
|
}],
|
|
36747
|
+
"recording.setDevicePlacement": [{
|
|
36748
|
+
name: "deviceId",
|
|
36749
|
+
form: "single",
|
|
36750
|
+
optional: false
|
|
36751
|
+
}],
|
|
36591
36752
|
"recording.startStorageMigrationMove": [{
|
|
36592
36753
|
name: "deviceId",
|
|
36593
36754
|
form: "single",
|