@camstack/types 1.2.57 → 1.2.59
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/face-gallery.cap.d.ts +2 -0
- package/dist/capabilities/index.d.ts +5 -3
- package/dist/capabilities/osd-manager.cap.d.ts +54 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +26 -10
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +12 -0
- package/dist/capabilities/recording.cap.d.ts +30 -12
- package/dist/capabilities/storage-migration.cap.d.ts +105 -0
- package/dist/capabilities/terminal-session.cap.d.ts +88 -5
- package/dist/generated/addon-api.d.ts +159 -18
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-proxy.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +7 -5
- package/dist/index.js +415 -50
- package/dist/index.mjs +401 -51
- package/dist/interfaces/event-bus.d.ts +2 -2
- package/dist/interfaces/relocate.d.ts +179 -8
- package/dist/{sleep-EX1-qUVR.js → sleep-BszXLEvP.js} +10 -4
- package/dist/{sleep-CeuvKr4N.mjs → sleep-BxjBLp3L.mjs} +10 -4
- package/package.json +1 -1
|
@@ -98,6 +98,7 @@ import type { smtpProviderCapability } from '../capabilities/smtp-provider.cap.j
|
|
|
98
98
|
import type { snapshotCapability } from '../capabilities/snapshot.cap.js';
|
|
99
99
|
import type { ssoBridgeCapability } from '../capabilities/sso-bridge.cap.js';
|
|
100
100
|
import type { storageEvictableCapability } from '../capabilities/storage-evictable.cap.js';
|
|
101
|
+
import type { storageMigrationCapability } from '../capabilities/storage-migration.cap.js';
|
|
101
102
|
import type { storageProviderCapability } from '../capabilities/storage-provider.cap.js';
|
|
102
103
|
import type { storageCapability } from '../capabilities/storage.cap.js';
|
|
103
104
|
import type { streamBrokerCapability } from '../capabilities/stream-broker.cap.js';
|
|
@@ -4605,6 +4606,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4605
4606
|
output: z.infer<typeof osdManagerCapability.methods.clearSlotBinding.output>;
|
|
4606
4607
|
meta: object;
|
|
4607
4608
|
}>;
|
|
4609
|
+
copyDeviceConfiguration: TRPCMutationProcedure<{
|
|
4610
|
+
input: {
|
|
4611
|
+
[x: string]: unknown;
|
|
4612
|
+
} & z.input<typeof osdManagerCapability.methods.copyDeviceConfiguration.input>;
|
|
4613
|
+
output: z.infer<typeof osdManagerCapability.methods.copyDeviceConfiguration.output>;
|
|
4614
|
+
meta: object;
|
|
4615
|
+
}>;
|
|
4608
4616
|
previewSlot: TRPCMutationProcedure<{
|
|
4609
4617
|
input: {
|
|
4610
4618
|
[x: string]: unknown;
|
|
@@ -4878,25 +4886,46 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4878
4886
|
output: z.infer<typeof pipelineAnalyticsCapability.methods.deleteDeviceEvents.output>;
|
|
4879
4887
|
meta: object;
|
|
4880
4888
|
}>;
|
|
4881
|
-
|
|
4889
|
+
pauseForStorageMigration: TRPCMutationProcedure<{
|
|
4890
|
+
input: {
|
|
4891
|
+
[x: string]: unknown;
|
|
4892
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.pauseForStorageMigration.input>;
|
|
4893
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.pauseForStorageMigration.output>;
|
|
4894
|
+
meta: object;
|
|
4895
|
+
}>;
|
|
4896
|
+
resumeForStorageMigration: TRPCMutationProcedure<{
|
|
4897
|
+
input: {
|
|
4898
|
+
[x: string]: unknown;
|
|
4899
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.resumeForStorageMigration.input>;
|
|
4900
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.resumeForStorageMigration.output>;
|
|
4901
|
+
meta: object;
|
|
4902
|
+
}>;
|
|
4903
|
+
refreshStorageLocationsForMigration: TRPCMutationProcedure<{
|
|
4904
|
+
input: {
|
|
4905
|
+
[x: string]: unknown;
|
|
4906
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.refreshStorageLocationsForMigration.input>;
|
|
4907
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.refreshStorageLocationsForMigration.output>;
|
|
4908
|
+
meta: object;
|
|
4909
|
+
}>;
|
|
4910
|
+
startStorageMigrationMove: TRPCMutationProcedure<{
|
|
4882
4911
|
input: {
|
|
4883
4912
|
[x: string]: unknown;
|
|
4884
|
-
} & z.input<typeof pipelineAnalyticsCapability.methods.
|
|
4885
|
-
output: z.infer<typeof pipelineAnalyticsCapability.methods.
|
|
4913
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.startStorageMigrationMove.input>;
|
|
4914
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.startStorageMigrationMove.output>;
|
|
4886
4915
|
meta: object;
|
|
4887
4916
|
}>;
|
|
4888
|
-
|
|
4917
|
+
getStorageMigrationMoveStatus: TRPCQueryProcedure<{
|
|
4889
4918
|
input: {
|
|
4890
4919
|
[x: string]: unknown;
|
|
4891
|
-
} & z.input<typeof pipelineAnalyticsCapability.methods.
|
|
4892
|
-
output: z.infer<typeof pipelineAnalyticsCapability.methods.
|
|
4920
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.getStorageMigrationMoveStatus.input>;
|
|
4921
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.getStorageMigrationMoveStatus.output>;
|
|
4893
4922
|
meta: object;
|
|
4894
4923
|
}>;
|
|
4895
|
-
|
|
4924
|
+
cancelStorageMigrationMove: TRPCMutationProcedure<{
|
|
4896
4925
|
input: {
|
|
4897
4926
|
[x: string]: unknown;
|
|
4898
|
-
} & z.input<typeof pipelineAnalyticsCapability.methods.
|
|
4899
|
-
output: z.infer<typeof pipelineAnalyticsCapability.methods.
|
|
4927
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.cancelStorageMigrationMove.input>;
|
|
4928
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.cancelStorageMigrationMove.output>;
|
|
4900
4929
|
meta: object;
|
|
4901
4930
|
}>;
|
|
4902
4931
|
listOpsLog: TRPCQueryProcedure<{
|
|
@@ -5333,6 +5362,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5333
5362
|
output: z.infer<typeof DEVICE_SETTINGS_CONTRIBUTION_METHODS.applyDeviceSettingsPatch.output>;
|
|
5334
5363
|
meta: object;
|
|
5335
5364
|
}>;
|
|
5365
|
+
pauseForStorageMigration: TRPCMutationProcedure<{
|
|
5366
|
+
input: {
|
|
5367
|
+
[x: string]: unknown;
|
|
5368
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.pauseForStorageMigration.input>;
|
|
5369
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.pauseForStorageMigration.output>;
|
|
5370
|
+
meta: object;
|
|
5371
|
+
}>;
|
|
5372
|
+
resumeForStorageMigration: TRPCMutationProcedure<{
|
|
5373
|
+
input: {
|
|
5374
|
+
[x: string]: unknown;
|
|
5375
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.resumeForStorageMigration.input>;
|
|
5376
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.resumeForStorageMigration.output>;
|
|
5377
|
+
meta: object;
|
|
5378
|
+
}>;
|
|
5336
5379
|
assignPipeline: TRPCMutationProcedure<{
|
|
5337
5380
|
input: {
|
|
5338
5381
|
[x: string]: unknown;
|
|
@@ -6225,25 +6268,46 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6225
6268
|
output: z.infer<typeof recordingCapability.methods.renderClip.output>;
|
|
6226
6269
|
meta: object;
|
|
6227
6270
|
}>;
|
|
6228
|
-
|
|
6271
|
+
pauseForStorageMigration: TRPCMutationProcedure<{
|
|
6272
|
+
input: {
|
|
6273
|
+
[x: string]: unknown;
|
|
6274
|
+
} & z.input<typeof recordingCapability.methods.pauseForStorageMigration.input>;
|
|
6275
|
+
output: z.infer<typeof recordingCapability.methods.pauseForStorageMigration.output>;
|
|
6276
|
+
meta: object;
|
|
6277
|
+
}>;
|
|
6278
|
+
resumeForStorageMigration: TRPCMutationProcedure<{
|
|
6279
|
+
input: {
|
|
6280
|
+
[x: string]: unknown;
|
|
6281
|
+
} & z.input<typeof recordingCapability.methods.resumeForStorageMigration.input>;
|
|
6282
|
+
output: z.infer<typeof recordingCapability.methods.resumeForStorageMigration.output>;
|
|
6283
|
+
meta: object;
|
|
6284
|
+
}>;
|
|
6285
|
+
refreshStorageLocationsForMigration: TRPCMutationProcedure<{
|
|
6286
|
+
input: {
|
|
6287
|
+
[x: string]: unknown;
|
|
6288
|
+
} & z.input<typeof recordingCapability.methods.refreshStorageLocationsForMigration.input>;
|
|
6289
|
+
output: z.infer<typeof recordingCapability.methods.refreshStorageLocationsForMigration.output>;
|
|
6290
|
+
meta: object;
|
|
6291
|
+
}>;
|
|
6292
|
+
startStorageMigrationMove: TRPCMutationProcedure<{
|
|
6229
6293
|
input: {
|
|
6230
6294
|
[x: string]: unknown;
|
|
6231
|
-
} & z.input<typeof recordingCapability.methods.
|
|
6232
|
-
output: z.infer<typeof recordingCapability.methods.
|
|
6295
|
+
} & z.input<typeof recordingCapability.methods.startStorageMigrationMove.input>;
|
|
6296
|
+
output: z.infer<typeof recordingCapability.methods.startStorageMigrationMove.output>;
|
|
6233
6297
|
meta: object;
|
|
6234
6298
|
}>;
|
|
6235
|
-
|
|
6299
|
+
getStorageMigrationMoveStatus: TRPCQueryProcedure<{
|
|
6236
6300
|
input: {
|
|
6237
6301
|
[x: string]: unknown;
|
|
6238
|
-
} & z.input<typeof recordingCapability.methods.
|
|
6239
|
-
output: z.infer<typeof recordingCapability.methods.
|
|
6302
|
+
} & z.input<typeof recordingCapability.methods.getStorageMigrationMoveStatus.input>;
|
|
6303
|
+
output: z.infer<typeof recordingCapability.methods.getStorageMigrationMoveStatus.output>;
|
|
6240
6304
|
meta: object;
|
|
6241
6305
|
}>;
|
|
6242
|
-
|
|
6306
|
+
cancelStorageMigrationMove: TRPCMutationProcedure<{
|
|
6243
6307
|
input: {
|
|
6244
6308
|
[x: string]: unknown;
|
|
6245
|
-
} & z.input<typeof recordingCapability.methods.
|
|
6246
|
-
output: z.infer<typeof recordingCapability.methods.
|
|
6309
|
+
} & z.input<typeof recordingCapability.methods.cancelStorageMigrationMove.input>;
|
|
6310
|
+
output: z.infer<typeof recordingCapability.methods.cancelStorageMigrationMove.output>;
|
|
6247
6311
|
meta: object;
|
|
6248
6312
|
}>;
|
|
6249
6313
|
}>>;
|
|
@@ -6830,6 +6894,41 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6830
6894
|
meta: object;
|
|
6831
6895
|
}>;
|
|
6832
6896
|
}>>;
|
|
6897
|
+
storageMigration: TRPCBuiltRouter<{
|
|
6898
|
+
ctx: TrpcContext;
|
|
6899
|
+
meta: object;
|
|
6900
|
+
errorShape: AugmentedErrorShape;
|
|
6901
|
+
transformer: true;
|
|
6902
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
6903
|
+
plan: TRPCQueryProcedure<{
|
|
6904
|
+
input: {
|
|
6905
|
+
[x: string]: unknown;
|
|
6906
|
+
} & z.input<typeof storageMigrationCapability.methods.plan.input>;
|
|
6907
|
+
output: z.infer<typeof storageMigrationCapability.methods.plan.output>;
|
|
6908
|
+
meta: object;
|
|
6909
|
+
}>;
|
|
6910
|
+
start: TRPCMutationProcedure<{
|
|
6911
|
+
input: {
|
|
6912
|
+
[x: string]: unknown;
|
|
6913
|
+
} & z.input<typeof storageMigrationCapability.methods.start.input>;
|
|
6914
|
+
output: z.infer<typeof storageMigrationCapability.methods.start.output>;
|
|
6915
|
+
meta: object;
|
|
6916
|
+
}>;
|
|
6917
|
+
status: TRPCQueryProcedure<{
|
|
6918
|
+
input: {
|
|
6919
|
+
[x: string]: unknown;
|
|
6920
|
+
} & z.input<typeof storageMigrationCapability.methods.status.input>;
|
|
6921
|
+
output: z.infer<typeof storageMigrationCapability.methods.status.output>;
|
|
6922
|
+
meta: object;
|
|
6923
|
+
}>;
|
|
6924
|
+
cancel: TRPCMutationProcedure<{
|
|
6925
|
+
input: {
|
|
6926
|
+
[x: string]: unknown;
|
|
6927
|
+
} & z.input<typeof storageMigrationCapability.methods.cancel.input>;
|
|
6928
|
+
output: z.infer<typeof storageMigrationCapability.methods.cancel.output>;
|
|
6929
|
+
meta: object;
|
|
6930
|
+
}>;
|
|
6931
|
+
}>>;
|
|
6833
6932
|
storageProvider: TRPCBuiltRouter<{
|
|
6834
6933
|
ctx: TrpcContext;
|
|
6835
6934
|
meta: object;
|
|
@@ -7388,6 +7487,48 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
7388
7487
|
output: z.infer<typeof terminalSessionCapability.methods.listProfiles.output>;
|
|
7389
7488
|
meta: object;
|
|
7390
7489
|
}>;
|
|
7490
|
+
listInstances: TRPCQueryProcedure<{
|
|
7491
|
+
input: {
|
|
7492
|
+
nodeId?: string | undefined;
|
|
7493
|
+
} | undefined;
|
|
7494
|
+
output: z.infer<typeof terminalSessionCapability.methods.listInstances.output>;
|
|
7495
|
+
meta: object;
|
|
7496
|
+
}>;
|
|
7497
|
+
createInstance: TRPCMutationProcedure<{
|
|
7498
|
+
input: {
|
|
7499
|
+
[x: string]: unknown;
|
|
7500
|
+
} & z.input<typeof terminalSessionCapability.methods.createInstance.input>;
|
|
7501
|
+
output: z.infer<typeof terminalSessionCapability.methods.createInstance.output>;
|
|
7502
|
+
meta: object;
|
|
7503
|
+
}>;
|
|
7504
|
+
deleteInstance: TRPCMutationProcedure<{
|
|
7505
|
+
input: {
|
|
7506
|
+
[x: string]: unknown;
|
|
7507
|
+
} & z.input<typeof terminalSessionCapability.methods.deleteInstance.input>;
|
|
7508
|
+
output: z.infer<typeof terminalSessionCapability.methods.deleteInstance.output>;
|
|
7509
|
+
meta: object;
|
|
7510
|
+
}>;
|
|
7511
|
+
setInstanceEnabled: TRPCMutationProcedure<{
|
|
7512
|
+
input: {
|
|
7513
|
+
[x: string]: unknown;
|
|
7514
|
+
} & z.input<typeof terminalSessionCapability.methods.setInstanceEnabled.input>;
|
|
7515
|
+
output: z.infer<typeof terminalSessionCapability.methods.setInstanceEnabled.output>;
|
|
7516
|
+
meta: object;
|
|
7517
|
+
}>;
|
|
7518
|
+
listLegacyCameras: TRPCQueryProcedure<{
|
|
7519
|
+
input: {
|
|
7520
|
+
nodeId?: string | undefined;
|
|
7521
|
+
} | undefined;
|
|
7522
|
+
output: z.infer<typeof terminalSessionCapability.methods.listLegacyCameras.output>;
|
|
7523
|
+
meta: object;
|
|
7524
|
+
}>;
|
|
7525
|
+
adoptLegacyMonitor: TRPCMutationProcedure<{
|
|
7526
|
+
input: {
|
|
7527
|
+
[x: string]: unknown;
|
|
7528
|
+
} & z.input<typeof terminalSessionCapability.methods.adoptLegacyMonitor.input>;
|
|
7529
|
+
output: z.infer<typeof terminalSessionCapability.methods.adoptLegacyMonitor.output>;
|
|
7530
|
+
meta: object;
|
|
7531
|
+
}>;
|
|
7391
7532
|
listSessions: TRPCQueryProcedure<{
|
|
7392
7533
|
input: {
|
|
7393
7534
|
nodeId?: string | undefined;
|
|
@@ -120,6 +120,7 @@ export { snapshotCapability } from '../capabilities/snapshot.cap.js';
|
|
|
120
120
|
export { ssoBridgeCapability } from '../capabilities/sso-bridge.cap.js';
|
|
121
121
|
export { storageCapability } from '../capabilities/storage.cap.js';
|
|
122
122
|
export { storageEvictableCapability } from '../capabilities/storage-evictable.cap.js';
|
|
123
|
+
export { storageMigrationCapability } from '../capabilities/storage-migration.cap.js';
|
|
123
124
|
export { storageProviderCapability } from '../capabilities/storage-provider.cap.js';
|
|
124
125
|
export { streamBrokerCapability } from '../capabilities/stream-broker.cap.js';
|
|
125
126
|
export { streamCatalogCapability } from '../capabilities/stream-catalog.cap.js';
|
|
@@ -269,6 +270,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
269
270
|
readonly ssoBridge: "sso-bridge";
|
|
270
271
|
readonly storage: "storage";
|
|
271
272
|
readonly storageEvictable: "storage-evictable";
|
|
273
|
+
readonly storageMigration: "storage-migration";
|
|
272
274
|
readonly storageProvider: "storage-provider";
|
|
273
275
|
readonly streamBroker: "stream-broker";
|
|
274
276
|
readonly streamCatalog: "stream-catalog";
|
|
@@ -431,6 +433,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
431
433
|
readonly ssoBridge: TRouter;
|
|
432
434
|
readonly storage: TRouter;
|
|
433
435
|
readonly storageEvictable: TRouter;
|
|
436
|
+
readonly storageMigration: TRouter;
|
|
434
437
|
readonly storageProvider: TRouter;
|
|
435
438
|
readonly streamBroker: TRouter;
|
|
436
439
|
readonly streamCatalog: TRouter;
|
|
@@ -458,8 +461,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
458
461
|
readonly zoneRules: TRouter;
|
|
459
462
|
readonly zones: TRouter;
|
|
460
463
|
}
|
|
461
|
-
/** Capability names whose mode is `singleton` (
|
|
462
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ["accessories", "addon-pages", "addon-settings", "addon-widgets", "addons", "admin-ui", "air-quality-sensor", "alarm-panel", "alerts", "ambient-light-sensor", "audio-analysis", "audio-analyzer", "audio-codec", "audio-metrics", "automation-control", "backup", "battery", "binary", "brightness", "button", "camera-credentials", "camera-pipeline-config", "camera-streams", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "core-blocks", "cover", "day-night", "decoder", "detection-pipeline", "device-adoption", "device-discovery", "device-manager", "device-ops", "device-state", "device-status", "doorbell", "enum-sensor", "event-emitter", "events", "face-gallery", "fan-control", "feature-probe", "filesystem-browse", "flood", "gas", "humidifier", "humidity-sensor", "image", "image-settings", "integrations", "intercom", "lawn-mower-control", "llm-runtime", "local-network", "lock-control", "media-player", "metrics-provider", "model-convert", "model-distributor", "motion", "motion-detection", "motion-trigger", "motion-zones", "native-object-detection", "network-quality", "nodes", "notification-rules", "notifier", "numeric-sensor", "osd", "osd-manager", "pet-feeder", "pipeline-analytics", "pipeline-executor", "pipeline-orchestrator", "pipeline-runner", "plate-gallery", "platform-probe", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "reboot", "recording", "recordingExport", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "stream-broker", "stream-catalog", "stream-params", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vector-store", "vibration", "videoclips", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
464
|
+
/** Capability names whose mode is `singleton` (125 caps). */
|
|
465
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ["accessories", "addon-pages", "addon-settings", "addon-widgets", "addons", "admin-ui", "air-quality-sensor", "alarm-panel", "alerts", "ambient-light-sensor", "audio-analysis", "audio-analyzer", "audio-codec", "audio-metrics", "automation-control", "backup", "battery", "binary", "brightness", "button", "camera-credentials", "camera-pipeline-config", "camera-streams", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "core-blocks", "cover", "day-night", "decoder", "detection-pipeline", "device-adoption", "device-discovery", "device-manager", "device-ops", "device-state", "device-status", "doorbell", "enum-sensor", "event-emitter", "events", "face-gallery", "fan-control", "feature-probe", "filesystem-browse", "flood", "gas", "humidifier", "humidity-sensor", "image", "image-settings", "integrations", "intercom", "lawn-mower-control", "llm-runtime", "local-network", "lock-control", "media-player", "metrics-provider", "model-convert", "model-distributor", "motion", "motion-detection", "motion-trigger", "motion-zones", "native-object-detection", "network-quality", "nodes", "notification-rules", "notifier", "numeric-sensor", "osd", "osd-manager", "pet-feeder", "pipeline-analytics", "pipeline-executor", "pipeline-orchestrator", "pipeline-runner", "plate-gallery", "platform-probe", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "reboot", "recording", "recordingExport", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "storage-migration", "stream-broker", "stream-catalog", "stream-params", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vector-store", "vibration", "videoclips", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
463
466
|
/** Union of singleton capability names (literal string union). */
|
|
464
467
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
465
468
|
/** Capability names whose mode is `collection` (24 caps). */
|
|
@@ -271,7 +271,7 @@ export interface DeviceProxy {
|
|
|
271
271
|
readonly deviceExport: Pick<InferDeviceProxyCap<typeof deviceExportCapability>, 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
272
272
|
readonly deviceManager: Pick<InferDeviceProxyCap<typeof deviceManagerCapability>, 'loadConfig' | 'loadRuntimeState' | 'loadMeta' | 'setName' | 'setLocation' | 'setType' | 'setIntegrationId' | 'setLinkDeviceId' | 'setPrimaryChildEntityId' | 'setChildLayout' | 'setDisplay' | 'getWireableFields' | 'setRole' | 'applyInitialMeta' | 'setMetadata' | 'setDisabled' | 'getDevice' | 'getLinkedDevices' | 'getStreamSources' | 'getConfigSchema' | 'getSettingsSchema' | 'updateConfig' | 'enable' | 'disable' | 'remove' | 'getStreamProfileMap' | 'setStreamProfileMap' | 'probeStreams' | 'getBindings' | 'getAllBindings' | 'setWrapperActive' | 'getDeviceSettingsAggregate' | 'getDeviceLiveInfoAggregate' | 'getDeviceAggregate' | 'runDeviceAction' | 'updateDeviceField' | 'updateDeviceFieldsBatch' | 'testField' | 'getDeviceStatusAggregate' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
273
273
|
readonly deviceState: Pick<InferDeviceProxyCap<typeof deviceStateCapability>, 'getSnapshot' | 'getCapSlice' | 'setCapSlice'>;
|
|
274
|
-
readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'getFaceByTrack'>;
|
|
274
|
+
readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'listRecentFaces' | 'getFaceByTrack'>;
|
|
275
275
|
readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
|
|
276
276
|
readonly osdManager: Pick<InferDeviceProxyCap<typeof osdManagerCapability>, 'getDeviceOsd' | 'getSourceCatalog' | 'setSlotBinding' | 'clearSlotBinding' | 'previewSlot' | 'renderDevice'>;
|
|
277
277
|
readonly pipelineExecutor: Pick<InferDeviceProxyCap<typeof pipelineExecutorCapability>, 'runPipeline' | 'runPipelineBatch'>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 927 method paths across 123 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -38,6 +38,7 @@ import type { recordingExportCapability } from '../capabilities/recording-export
|
|
|
38
38
|
import type { serverManagementCapability } from '../capabilities/server-management.cap.js';
|
|
39
39
|
import type { settingsStoreCapability } from '../capabilities/settings-store.cap.js';
|
|
40
40
|
import type { storageCapability } from '../capabilities/storage.cap.js';
|
|
41
|
+
import type { storageMigrationCapability } from '../capabilities/storage-migration.cap.js';
|
|
41
42
|
import type { streamBrokerCapability } from '../capabilities/stream-broker.cap.js';
|
|
42
43
|
import type { systemCapability } from '../capabilities/system.cap.js';
|
|
43
44
|
import type { terminalSessionCapability } from '../capabilities/terminal-session.cap.js';
|
|
@@ -70,7 +71,7 @@ export interface SystemProxy {
|
|
|
70
71
|
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'removeByIntegration' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
|
|
71
72
|
readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
|
|
72
73
|
readonly deviceState: Pick<InferProvider<typeof deviceStateCapability>, 'getAllSnapshots'>;
|
|
73
|
-
readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'removeSample' | '
|
|
74
|
+
readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'removeSample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
|
|
74
75
|
readonly integrations: Pick<InferProvider<typeof integrationsCapability>, 'list' | 'get' | 'getByAddonId' | 'create' | 'update' | 'delete' | 'getSettings' | 'setSettings' | 'getAvailableTypes' | 'testConnection'>;
|
|
75
76
|
readonly llm: Pick<InferProvider<typeof llmCapability>, 'generate' | 'generateVision' | 'listProfileKinds' | 'listProfiles' | 'upsertProfile' | 'deleteProfile' | 'testProfile' | 'listModels' | 'getDefaults' | 'setDefault' | 'getUsage' | 'listModelCatalog' | 'listRuntimeNodes' | 'listNodeModels' | 'installModel' | 'deleteModel' | 'getRuntimeStatus' | 'startRuntime' | 'stopRuntime'>;
|
|
76
77
|
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch'>;
|
|
@@ -81,19 +82,20 @@ export interface SystemProxy {
|
|
|
81
82
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
82
83
|
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
83
84
|
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
84
|
-
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport'>;
|
|
85
|
+
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport' | 'copyDeviceConfiguration'>;
|
|
85
86
|
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
|
|
86
|
-
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
|
|
87
|
+
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
|
|
87
88
|
readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep'>;
|
|
88
89
|
readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
|
|
89
|
-
readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage' | 'listOpsLog' | '
|
|
90
|
+
readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage' | 'listOpsLog' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'refreshStorageLocationsForMigration' | 'startStorageMigrationMove' | 'getStorageMigrationMoveStatus' | 'cancelStorageMigrationMove'>;
|
|
90
91
|
readonly recordingExport: Pick<InferProvider<typeof recordingExportCapability>, 'getExport' | 'cancelExport' | 'deleteExport' | 'getDownloadUrl'>;
|
|
91
92
|
readonly serverManagement: Pick<InferProvider<typeof serverManagementCapability>, 'getServerPackageStatus' | 'checkServerUpdate' | 'applyServerUpdate' | 'rollbackServerUpdate' | 'restartServer'>;
|
|
92
93
|
readonly settingsStore: Pick<InferProvider<typeof settingsStoreCapability>, 'get' | 'set' | 'query' | 'insert' | 'update' | 'delete' | 'deleteWhere' | 'updateWhere' | 'count' | 'histogram' | 'isEmpty' | 'declareCollection'>;
|
|
93
94
|
readonly storage: Pick<InferProvider<typeof storageCapability>, 'resolve' | 'write' | 'read' | 'exists' | 'list' | 'delete' | 'getAvailableSpace' | 'beginUpload' | 'writeChunk' | 'finalizeUpload' | 'abortUpload' | 'beginDownload' | 'readChunk' | 'endDownload' | 'listLocations' | 'getDefaultLocation' | 'listLocationDeclarations' | 'upsertLocation' | 'deleteLocation' | 'testLocation' | 'listProviders' | 'testConfig'>;
|
|
95
|
+
readonly storageMigration: Pick<InferProvider<typeof storageMigrationCapability>, 'plan' | 'start' | 'status' | 'cancel'>;
|
|
94
96
|
readonly streamBroker: Pick<InferProvider<typeof streamBrokerCapability>, 'fetchEventMedia' | 'listAllCameraStreams' | 'listAllProfileSlots' | 'getBrokerStats' | 'probeStream' | 'listClients' | 'killClient' | 'getStreamUrl' | 'getStreamWithCodec' | 'releaseStreamWithCodec' | 'acquireEgressTranscode' | 'releaseEgressTranscode' | 'subscribeAudioChunks' | 'pullAudioChunks' | 'unsubscribeAudioChunks' | 'subscribeFrames' | 'pullFrameHandles' | 'unsubscribeFrames' | 'setPreBufferDuration' | 'getPreBufferInfo' | 'getRtspPort' | 'getAllRtspEntries' | 'getRtspEntry' | 'regenerateRtspToken' | 'setRtspEnabled' | 'isRtspEnabled'>;
|
|
95
97
|
readonly system: Pick<InferProvider<typeof systemCapability>, 'info' | 'health' | 'featureFlags' | 'networkAddresses' | 'getRetentionConfig' | 'setRetentionConfig' | 'forceRetentionCleanup'>;
|
|
96
|
-
readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listSessions' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
|
|
98
|
+
readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listInstances' | 'createInstance' | 'deleteInstance' | 'setInstanceEnabled' | 'listLegacyCameras' | 'adoptLegacyMonitor' | 'listSessions' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
|
|
97
99
|
readonly toast: Pick<InferProvider<typeof toastCapability>, 'onToast'>;
|
|
98
100
|
readonly turnProvider: Pick<InferProvider<typeof turnProviderCapability>, 'getTurnServers'>;
|
|
99
101
|
readonly userManagement: Pick<InferProvider<typeof userManagementCapability>, 'listUsers' | 'createUser' | 'updateUser' | 'deleteUser' | 'resetPassword' | 'setUserScopes' | 'validateCredentials' | 'listApiKeys' | 'createApiKey' | 'revokeApiKey' | 'validateApiKey' | 'createScopedToken' | 'revokeScopedToken' | 'validateScopedToken' | 'listScopedTokens' | 'setupTotp' | 'confirmTotp' | 'disableTotp' | 'getTotpStatus' | 'verifyTotp' | 'oauthIssueCode' | 'oauthExchangeCode' | 'oauthRefresh' | 'oauthVerifyAccessToken' | 'listOauthSessions' | 'revokeOauthSession'>;
|