@camstack/types 1.2.58 → 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/index.d.ts +5 -3
- 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 +152 -18
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +5 -3
- package/dist/index.js +383 -48
- package/dist/index.mjs +369 -49
- package/dist/interfaces/relocate.d.ts +179 -8
- package/dist/{sleep-DcLy1h8o.js → sleep-BszXLEvP.js} +6 -3
- package/dist/{sleep-m2HUob6m.mjs → sleep-BxjBLp3L.mjs} +6 -3
- 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';
|
|
@@ -4885,25 +4886,46 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4885
4886
|
output: z.infer<typeof pipelineAnalyticsCapability.methods.deleteDeviceEvents.output>;
|
|
4886
4887
|
meta: object;
|
|
4887
4888
|
}>;
|
|
4888
|
-
|
|
4889
|
+
pauseForStorageMigration: TRPCMutationProcedure<{
|
|
4889
4890
|
input: {
|
|
4890
4891
|
[x: string]: unknown;
|
|
4891
|
-
} & z.input<typeof pipelineAnalyticsCapability.methods.
|
|
4892
|
-
output: z.infer<typeof pipelineAnalyticsCapability.methods.
|
|
4892
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.pauseForStorageMigration.input>;
|
|
4893
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.pauseForStorageMigration.output>;
|
|
4893
4894
|
meta: object;
|
|
4894
4895
|
}>;
|
|
4895
|
-
|
|
4896
|
+
resumeForStorageMigration: TRPCMutationProcedure<{
|
|
4896
4897
|
input: {
|
|
4897
4898
|
[x: string]: unknown;
|
|
4898
|
-
} & z.input<typeof pipelineAnalyticsCapability.methods.
|
|
4899
|
-
output: z.infer<typeof pipelineAnalyticsCapability.methods.
|
|
4899
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.resumeForStorageMigration.input>;
|
|
4900
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.resumeForStorageMigration.output>;
|
|
4900
4901
|
meta: object;
|
|
4901
4902
|
}>;
|
|
4902
|
-
|
|
4903
|
+
refreshStorageLocationsForMigration: TRPCMutationProcedure<{
|
|
4903
4904
|
input: {
|
|
4904
4905
|
[x: string]: unknown;
|
|
4905
|
-
} & z.input<typeof pipelineAnalyticsCapability.methods.
|
|
4906
|
-
output: z.infer<typeof pipelineAnalyticsCapability.methods.
|
|
4906
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.refreshStorageLocationsForMigration.input>;
|
|
4907
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.refreshStorageLocationsForMigration.output>;
|
|
4908
|
+
meta: object;
|
|
4909
|
+
}>;
|
|
4910
|
+
startStorageMigrationMove: TRPCMutationProcedure<{
|
|
4911
|
+
input: {
|
|
4912
|
+
[x: string]: unknown;
|
|
4913
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.startStorageMigrationMove.input>;
|
|
4914
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.startStorageMigrationMove.output>;
|
|
4915
|
+
meta: object;
|
|
4916
|
+
}>;
|
|
4917
|
+
getStorageMigrationMoveStatus: TRPCQueryProcedure<{
|
|
4918
|
+
input: {
|
|
4919
|
+
[x: string]: unknown;
|
|
4920
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.getStorageMigrationMoveStatus.input>;
|
|
4921
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.getStorageMigrationMoveStatus.output>;
|
|
4922
|
+
meta: object;
|
|
4923
|
+
}>;
|
|
4924
|
+
cancelStorageMigrationMove: TRPCMutationProcedure<{
|
|
4925
|
+
input: {
|
|
4926
|
+
[x: string]: unknown;
|
|
4927
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.cancelStorageMigrationMove.input>;
|
|
4928
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.cancelStorageMigrationMove.output>;
|
|
4907
4929
|
meta: object;
|
|
4908
4930
|
}>;
|
|
4909
4931
|
listOpsLog: TRPCQueryProcedure<{
|
|
@@ -5340,6 +5362,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5340
5362
|
output: z.infer<typeof DEVICE_SETTINGS_CONTRIBUTION_METHODS.applyDeviceSettingsPatch.output>;
|
|
5341
5363
|
meta: object;
|
|
5342
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
|
+
}>;
|
|
5343
5379
|
assignPipeline: TRPCMutationProcedure<{
|
|
5344
5380
|
input: {
|
|
5345
5381
|
[x: string]: unknown;
|
|
@@ -6232,25 +6268,46 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6232
6268
|
output: z.infer<typeof recordingCapability.methods.renderClip.output>;
|
|
6233
6269
|
meta: object;
|
|
6234
6270
|
}>;
|
|
6235
|
-
|
|
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<{
|
|
6236
6293
|
input: {
|
|
6237
6294
|
[x: string]: unknown;
|
|
6238
|
-
} & z.input<typeof recordingCapability.methods.
|
|
6239
|
-
output: z.infer<typeof recordingCapability.methods.
|
|
6295
|
+
} & z.input<typeof recordingCapability.methods.startStorageMigrationMove.input>;
|
|
6296
|
+
output: z.infer<typeof recordingCapability.methods.startStorageMigrationMove.output>;
|
|
6240
6297
|
meta: object;
|
|
6241
6298
|
}>;
|
|
6242
|
-
|
|
6299
|
+
getStorageMigrationMoveStatus: TRPCQueryProcedure<{
|
|
6243
6300
|
input: {
|
|
6244
6301
|
[x: string]: unknown;
|
|
6245
|
-
} & z.input<typeof recordingCapability.methods.
|
|
6246
|
-
output: z.infer<typeof recordingCapability.methods.
|
|
6302
|
+
} & z.input<typeof recordingCapability.methods.getStorageMigrationMoveStatus.input>;
|
|
6303
|
+
output: z.infer<typeof recordingCapability.methods.getStorageMigrationMoveStatus.output>;
|
|
6247
6304
|
meta: object;
|
|
6248
6305
|
}>;
|
|
6249
|
-
|
|
6306
|
+
cancelStorageMigrationMove: TRPCMutationProcedure<{
|
|
6250
6307
|
input: {
|
|
6251
6308
|
[x: string]: unknown;
|
|
6252
|
-
} & z.input<typeof recordingCapability.methods.
|
|
6253
|
-
output: z.infer<typeof recordingCapability.methods.
|
|
6309
|
+
} & z.input<typeof recordingCapability.methods.cancelStorageMigrationMove.input>;
|
|
6310
|
+
output: z.infer<typeof recordingCapability.methods.cancelStorageMigrationMove.output>;
|
|
6254
6311
|
meta: object;
|
|
6255
6312
|
}>;
|
|
6256
6313
|
}>>;
|
|
@@ -6837,6 +6894,41 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6837
6894
|
meta: object;
|
|
6838
6895
|
}>;
|
|
6839
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
|
+
}>>;
|
|
6840
6932
|
storageProvider: TRPCBuiltRouter<{
|
|
6841
6933
|
ctx: TrpcContext;
|
|
6842
6934
|
meta: object;
|
|
@@ -7395,6 +7487,48 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
7395
7487
|
output: z.infer<typeof terminalSessionCapability.methods.listProfiles.output>;
|
|
7396
7488
|
meta: object;
|
|
7397
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
|
+
}>;
|
|
7398
7532
|
listSessions: TRPCQueryProcedure<{
|
|
7399
7533
|
input: {
|
|
7400
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). */
|
|
@@ -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';
|
|
@@ -83,17 +84,18 @@ export interface SystemProxy {
|
|
|
83
84
|
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
84
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'>;
|