@camstack/types 1.2.379 → 1.2.380
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.d.ts +1 -0
- package/dist/addon.js +57 -2
- package/dist/addon.mjs +5 -3
- package/dist/capabilities/caller-stamp.d.ts +12 -0
- package/dist/capabilities/index.d.ts +7 -2
- package/dist/capabilities/record-entries.cap.d.ts +84 -0
- package/dist/capabilities/records.cap.d.ts +399 -0
- package/dist/capabilities/storage-admin.cap.d.ts +246 -0
- package/dist/client.js +6 -0
- package/dist/client.mjs +6 -0
- package/dist/generated/addon-api.d.ts +177 -0
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +685 -2
- package/dist/index.mjs +617 -3
- package/dist/interfaces/addon.d.ts +13 -0
- package/dist/interfaces/event-bus.d.ts +32 -3
- package/dist/interfaces/storage.d.ts +1 -1
- package/dist/records/constants.d.ts +23 -0
- package/dist/records/entry-kind.d.ts +31 -0
- package/dist/records/errors.d.ts +81 -0
- package/dist/records/index.d.ts +6 -0
- package/dist/records/record-kind.d.ts +144 -0
- package/dist/records/records-access.d.ts +153 -0
- package/dist/records/secret-paths.d.ts +52 -0
- package/dist/{sleep-DQYi915G.js → sleep-CIGOw58l.js} +1503 -298
- package/dist/{sleep-D-Q2_Mcd.mjs → sleep-WsrozGDL.mjs} +999 -112
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -28075,6 +28075,12 @@ function createSystemProxy(api) {
|
|
|
28075
28075
|
assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
|
|
28076
28076
|
unassignPlates: (input) => dispatch("plateGallery", "unassignPlates", "mutation", input)
|
|
28077
28077
|
},
|
|
28078
|
+
recordEntries: {
|
|
28079
|
+
listEntryKinds: (input) => dispatch("recordEntries", "listEntryKinds", "query", input),
|
|
28080
|
+
listEntries: (input) => dispatch("recordEntries", "listEntries", "query", input),
|
|
28081
|
+
putEntry: (input) => dispatch("recordEntries", "putEntry", "mutation", input),
|
|
28082
|
+
deleteEntry: (input) => dispatch("recordEntries", "deleteEntry", "mutation", input)
|
|
28083
|
+
},
|
|
28078
28084
|
recordingArchive: {
|
|
28079
28085
|
getAvailabilityBatch: (input) => dispatch("recordingArchive", "getAvailabilityBatch", "query", input),
|
|
28080
28086
|
getDaysWithRecordingsBatch: (input) => dispatch("recordingArchive", "getDaysWithRecordingsBatch", "query", input),
|
|
@@ -105,11 +105,13 @@ import type { privacyMaskCapability } from '../capabilities/privacy-mask.cap.js'
|
|
|
105
105
|
import type { ptzAutotrackCapability } from '../capabilities/ptz-autotrack.cap.js';
|
|
106
106
|
import type { ptzCapability } from '../capabilities/ptz.cap.js';
|
|
107
107
|
import type { rebootCapability } from '../capabilities/reboot.cap.js';
|
|
108
|
+
import type { recordEntriesCapability } from '../capabilities/record-entries.cap.js';
|
|
108
109
|
import type { recordingArchiveCapability } from '../capabilities/recording-archive.cap.js';
|
|
109
110
|
import type { recordingExportCapability } from '../capabilities/recording-export.cap.js';
|
|
110
111
|
import type { recordingOnboardCapability } from '../capabilities/recording-onboard.cap.js';
|
|
111
112
|
import type { recordingSignalCapability } from '../capabilities/recording-signal.cap.js';
|
|
112
113
|
import type { recordingCapability } from '../capabilities/recording.cap.js';
|
|
114
|
+
import type { recordsCapability } from '../capabilities/records.cap.js';
|
|
113
115
|
import type { sceneMonitorCapability } from '../capabilities/scene-monitor.cap.js';
|
|
114
116
|
import type { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
115
117
|
import type { serverManagementCapability } from '../capabilities/server-management.cap.js';
|
|
@@ -7880,6 +7882,41 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
7880
7882
|
meta: object;
|
|
7881
7883
|
}>;
|
|
7882
7884
|
}>>;
|
|
7885
|
+
recordEntries: TRPCBuiltRouter<{
|
|
7886
|
+
ctx: TrpcContext;
|
|
7887
|
+
meta: object;
|
|
7888
|
+
errorShape: AugmentedErrorShape;
|
|
7889
|
+
transformer: true;
|
|
7890
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
7891
|
+
listEntryKinds: TRPCQueryProcedure<{
|
|
7892
|
+
input: {
|
|
7893
|
+
[x: string]: unknown;
|
|
7894
|
+
} & z.input<typeof recordEntriesCapability.methods.listEntryKinds.input>;
|
|
7895
|
+
output: z.infer<typeof recordEntriesCapability.methods.listEntryKinds.output>;
|
|
7896
|
+
meta: object;
|
|
7897
|
+
}>;
|
|
7898
|
+
listEntries: TRPCQueryProcedure<{
|
|
7899
|
+
input: {
|
|
7900
|
+
[x: string]: unknown;
|
|
7901
|
+
} & z.input<typeof recordEntriesCapability.methods.listEntries.input>;
|
|
7902
|
+
output: z.infer<typeof recordEntriesCapability.methods.listEntries.output>;
|
|
7903
|
+
meta: object;
|
|
7904
|
+
}>;
|
|
7905
|
+
putEntry: TRPCMutationProcedure<{
|
|
7906
|
+
input: {
|
|
7907
|
+
[x: string]: unknown;
|
|
7908
|
+
} & z.input<typeof recordEntriesCapability.methods.putEntry.input>;
|
|
7909
|
+
output: z.infer<typeof recordEntriesCapability.methods.putEntry.output>;
|
|
7910
|
+
meta: object;
|
|
7911
|
+
}>;
|
|
7912
|
+
deleteEntry: TRPCMutationProcedure<{
|
|
7913
|
+
input: {
|
|
7914
|
+
[x: string]: unknown;
|
|
7915
|
+
} & z.input<typeof recordEntriesCapability.methods.deleteEntry.input>;
|
|
7916
|
+
output: z.infer<typeof recordEntriesCapability.methods.deleteEntry.output>;
|
|
7917
|
+
meta: object;
|
|
7918
|
+
}>;
|
|
7919
|
+
}>>;
|
|
7883
7920
|
recording: TRPCBuiltRouter<{
|
|
7884
7921
|
ctx: TrpcContext;
|
|
7885
7922
|
meta: object;
|
|
@@ -8265,6 +8302,125 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
8265
8302
|
meta: object;
|
|
8266
8303
|
}>;
|
|
8267
8304
|
}>>;
|
|
8305
|
+
records: TRPCBuiltRouter<{
|
|
8306
|
+
ctx: TrpcContext;
|
|
8307
|
+
meta: object;
|
|
8308
|
+
errorShape: AugmentedErrorShape;
|
|
8309
|
+
transformer: true;
|
|
8310
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
8311
|
+
declareKinds: TRPCMutationProcedure<{
|
|
8312
|
+
input: {
|
|
8313
|
+
[x: string]: unknown;
|
|
8314
|
+
} & z.input<typeof recordsCapability.methods.declareKinds.input>;
|
|
8315
|
+
output: z.infer<typeof recordsCapability.methods.declareKinds.output>;
|
|
8316
|
+
meta: object;
|
|
8317
|
+
}>;
|
|
8318
|
+
get: TRPCQueryProcedure<{
|
|
8319
|
+
input: {
|
|
8320
|
+
[x: string]: unknown;
|
|
8321
|
+
} & z.input<typeof recordsCapability.methods.get.input>;
|
|
8322
|
+
output: z.infer<typeof recordsCapability.methods.get.output>;
|
|
8323
|
+
meta: object;
|
|
8324
|
+
}>;
|
|
8325
|
+
getMany: TRPCQueryProcedure<{
|
|
8326
|
+
input: {
|
|
8327
|
+
[x: string]: unknown;
|
|
8328
|
+
} & z.input<typeof recordsCapability.methods.getMany.input>;
|
|
8329
|
+
output: z.infer<typeof recordsCapability.methods.getMany.output>;
|
|
8330
|
+
meta: object;
|
|
8331
|
+
}>;
|
|
8332
|
+
secretRefs: TRPCQueryProcedure<{
|
|
8333
|
+
input: {
|
|
8334
|
+
[x: string]: unknown;
|
|
8335
|
+
} & z.input<typeof recordsCapability.methods.secretRefs.input>;
|
|
8336
|
+
output: z.infer<typeof recordsCapability.methods.secretRefs.output>;
|
|
8337
|
+
meta: object;
|
|
8338
|
+
}>;
|
|
8339
|
+
put: TRPCMutationProcedure<{
|
|
8340
|
+
input: {
|
|
8341
|
+
[x: string]: unknown;
|
|
8342
|
+
} & z.input<typeof recordsCapability.methods.put.input>;
|
|
8343
|
+
output: z.infer<typeof recordsCapability.methods.put.output>;
|
|
8344
|
+
meta: object;
|
|
8345
|
+
}>;
|
|
8346
|
+
putMany: TRPCMutationProcedure<{
|
|
8347
|
+
input: {
|
|
8348
|
+
[x: string]: unknown;
|
|
8349
|
+
} & z.input<typeof recordsCapability.methods.putMany.input>;
|
|
8350
|
+
output: z.infer<typeof recordsCapability.methods.putMany.output>;
|
|
8351
|
+
meta: object;
|
|
8352
|
+
}>;
|
|
8353
|
+
patch: TRPCMutationProcedure<{
|
|
8354
|
+
input: {
|
|
8355
|
+
[x: string]: unknown;
|
|
8356
|
+
} & z.input<typeof recordsCapability.methods.patch.input>;
|
|
8357
|
+
output: z.infer<typeof recordsCapability.methods.patch.output>;
|
|
8358
|
+
meta: object;
|
|
8359
|
+
}>;
|
|
8360
|
+
delete: TRPCMutationProcedure<{
|
|
8361
|
+
input: {
|
|
8362
|
+
[x: string]: unknown;
|
|
8363
|
+
} & z.input<typeof recordsCapability.methods.delete.input>;
|
|
8364
|
+
output: z.infer<typeof recordsCapability.methods.delete.output>;
|
|
8365
|
+
meta: object;
|
|
8366
|
+
}>;
|
|
8367
|
+
deleteMany: TRPCMutationProcedure<{
|
|
8368
|
+
input: {
|
|
8369
|
+
[x: string]: unknown;
|
|
8370
|
+
} & z.input<typeof recordsCapability.methods.deleteMany.input>;
|
|
8371
|
+
output: z.infer<typeof recordsCapability.methods.deleteMany.output>;
|
|
8372
|
+
meta: object;
|
|
8373
|
+
}>;
|
|
8374
|
+
query: TRPCQueryProcedure<{
|
|
8375
|
+
input: {
|
|
8376
|
+
[x: string]: unknown;
|
|
8377
|
+
} & z.input<typeof recordsCapability.methods.query.input>;
|
|
8378
|
+
output: z.infer<typeof recordsCapability.methods.query.output>;
|
|
8379
|
+
meta: object;
|
|
8380
|
+
}>;
|
|
8381
|
+
count: TRPCQueryProcedure<{
|
|
8382
|
+
input: {
|
|
8383
|
+
[x: string]: unknown;
|
|
8384
|
+
} & z.input<typeof recordsCapability.methods.count.input>;
|
|
8385
|
+
output: z.infer<typeof recordsCapability.methods.count.output>;
|
|
8386
|
+
meta: object;
|
|
8387
|
+
}>;
|
|
8388
|
+
histogram: TRPCQueryProcedure<{
|
|
8389
|
+
input: {
|
|
8390
|
+
[x: string]: unknown;
|
|
8391
|
+
} & z.input<typeof recordsCapability.methods.histogram.input>;
|
|
8392
|
+
output: z.infer<typeof recordsCapability.methods.histogram.output>;
|
|
8393
|
+
meta: object;
|
|
8394
|
+
}>;
|
|
8395
|
+
aggregate: TRPCQueryProcedure<{
|
|
8396
|
+
input: {
|
|
8397
|
+
[x: string]: unknown;
|
|
8398
|
+
} & z.input<typeof recordsCapability.methods.aggregate.input>;
|
|
8399
|
+
output: z.infer<typeof recordsCapability.methods.aggregate.output>;
|
|
8400
|
+
meta: object;
|
|
8401
|
+
}>;
|
|
8402
|
+
deleteWhere: TRPCMutationProcedure<{
|
|
8403
|
+
input: {
|
|
8404
|
+
[x: string]: unknown;
|
|
8405
|
+
} & z.input<typeof recordsCapability.methods.deleteWhere.input>;
|
|
8406
|
+
output: z.infer<typeof recordsCapability.methods.deleteWhere.output>;
|
|
8407
|
+
meta: object;
|
|
8408
|
+
}>;
|
|
8409
|
+
deleteDevice: TRPCMutationProcedure<{
|
|
8410
|
+
input: {
|
|
8411
|
+
[x: string]: unknown;
|
|
8412
|
+
} & z.input<typeof recordsCapability.methods.deleteDevice.input>;
|
|
8413
|
+
output: z.infer<typeof recordsCapability.methods.deleteDevice.output>;
|
|
8414
|
+
meta: object;
|
|
8415
|
+
}>;
|
|
8416
|
+
allocateId: TRPCMutationProcedure<{
|
|
8417
|
+
input: {
|
|
8418
|
+
[x: string]: unknown;
|
|
8419
|
+
} & z.input<typeof recordsCapability.methods.allocateId.input>;
|
|
8420
|
+
output: z.infer<typeof recordsCapability.methods.allocateId.output>;
|
|
8421
|
+
meta: object;
|
|
8422
|
+
}>;
|
|
8423
|
+
}>>;
|
|
8268
8424
|
sceneMonitor: TRPCBuiltRouter<{
|
|
8269
8425
|
ctx: TrpcContext;
|
|
8270
8426
|
meta: object;
|
|
@@ -8854,6 +9010,27 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
8854
9010
|
output: z.infer<typeof storageAdminCapability.methods.dropCollection.output>;
|
|
8855
9011
|
meta: object;
|
|
8856
9012
|
}>;
|
|
9013
|
+
listKinds: TRPCQueryProcedure<{
|
|
9014
|
+
input: {
|
|
9015
|
+
[x: string]: unknown;
|
|
9016
|
+
} & z.input<typeof storageAdminCapability.methods.listKinds.input>;
|
|
9017
|
+
output: z.infer<typeof storageAdminCapability.methods.listKinds.output>;
|
|
9018
|
+
meta: object;
|
|
9019
|
+
}>;
|
|
9020
|
+
readRecords: TRPCQueryProcedure<{
|
|
9021
|
+
input: {
|
|
9022
|
+
[x: string]: unknown;
|
|
9023
|
+
} & z.input<typeof storageAdminCapability.methods.readRecords.input>;
|
|
9024
|
+
output: z.infer<typeof storageAdminCapability.methods.readRecords.output>;
|
|
9025
|
+
meta: object;
|
|
9026
|
+
}>;
|
|
9027
|
+
adoptRecords: TRPCMutationProcedure<{
|
|
9028
|
+
input: {
|
|
9029
|
+
[x: string]: unknown;
|
|
9030
|
+
} & z.input<typeof storageAdminCapability.methods.adoptRecords.input>;
|
|
9031
|
+
output: z.infer<typeof storageAdminCapability.methods.adoptRecords.output>;
|
|
9032
|
+
meta: object;
|
|
9033
|
+
}>;
|
|
8857
9034
|
}>>;
|
|
8858
9035
|
storageEvictable: TRPCBuiltRouter<{
|
|
8859
9036
|
ctx: TrpcContext;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
12
12
|
* (~144MB RSS per runner — D28).
|
|
13
13
|
*
|
|
14
|
-
* Coverage:
|
|
14
|
+
* Coverage: 29 caps, 71 methods with defaults.
|
|
15
15
|
*/
|
|
16
16
|
export declare const CAP_INPUT_DEFAULTS: Readonly<Record<string, Readonly<Record<string, Readonly<Record<string, unknown>>>>>>;
|
|
17
17
|
/**
|
|
@@ -126,11 +126,13 @@ export { privacyMaskCapability } from '../capabilities/privacy-mask.cap.js';
|
|
|
126
126
|
export { ptzCapability } from '../capabilities/ptz.cap.js';
|
|
127
127
|
export { ptzAutotrackCapability } from '../capabilities/ptz-autotrack.cap.js';
|
|
128
128
|
export { rebootCapability } from '../capabilities/reboot.cap.js';
|
|
129
|
+
export { recordEntriesCapability } from '../capabilities/record-entries.cap.js';
|
|
129
130
|
export { recordingCapability } from '../capabilities/recording.cap.js';
|
|
130
131
|
export { recordingArchiveCapability } from '../capabilities/recording-archive.cap.js';
|
|
131
132
|
export { recordingExportCapability } from '../capabilities/recording-export.cap.js';
|
|
132
133
|
export { recordingOnboardCapability } from '../capabilities/recording-onboard.cap.js';
|
|
133
134
|
export { recordingSignalCapability } from '../capabilities/recording-signal.cap.js';
|
|
135
|
+
export { recordsCapability } from '../capabilities/records.cap.js';
|
|
134
136
|
export { sceneMonitorCapability } from '../capabilities/scene-monitor.cap.js';
|
|
135
137
|
export { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
136
138
|
export { serverManagementCapability } from '../capabilities/server-management.cap.js';
|
|
@@ -302,11 +304,13 @@ export declare const CAPABILITY_NAMES: {
|
|
|
302
304
|
readonly ptz: 'ptz';
|
|
303
305
|
readonly ptzAutotrack: 'ptz-autotrack';
|
|
304
306
|
readonly reboot: 'reboot';
|
|
307
|
+
readonly recordEntries: 'record-entries';
|
|
305
308
|
readonly recording: 'recording';
|
|
306
309
|
readonly recordingArchive: 'recording-archive';
|
|
307
310
|
readonly recordingExport: 'recording-export';
|
|
308
311
|
readonly recordingOnboard: 'recording-onboard';
|
|
309
312
|
readonly recordingSignal: 'recording-signal';
|
|
313
|
+
readonly records: 'records';
|
|
310
314
|
readonly sceneMonitor: 'scene-monitor';
|
|
311
315
|
readonly scriptRunner: 'script-runner';
|
|
312
316
|
readonly serverManagement: 'server-management';
|
|
@@ -491,11 +495,13 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
491
495
|
readonly ptz: TRouter;
|
|
492
496
|
readonly ptzAutotrack: TRouter;
|
|
493
497
|
readonly reboot: TRouter;
|
|
498
|
+
readonly recordEntries: TRouter;
|
|
494
499
|
readonly recording: TRouter;
|
|
495
500
|
readonly recordingArchive: TRouter;
|
|
496
501
|
readonly recordingExport: TRouter;
|
|
497
502
|
readonly recordingOnboard: TRouter;
|
|
498
503
|
readonly recordingSignal: TRouter;
|
|
504
|
+
readonly records: TRouter;
|
|
499
505
|
readonly sceneMonitor: TRouter;
|
|
500
506
|
readonly scriptRunner: TRouter;
|
|
501
507
|
readonly serverManagement: TRouter;
|
|
@@ -539,8 +545,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
539
545
|
readonly zoneRules: TRouter;
|
|
540
546
|
readonly zones: TRouter;
|
|
541
547
|
}
|
|
542
|
-
/** Capability names whose mode is `singleton` (
|
|
543
|
-
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', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-adoption', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-state', 'device-status', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'keychain', 'keychain-admin', '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', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'oidc-connections', '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-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'scene-monitor', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
548
|
+
/** Capability names whose mode is `singleton` (143 caps). */
|
|
549
|
+
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', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-adoption', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-state', 'device-status', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'keychain', 'keychain-admin', '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', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'oidc-connections', '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', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'scene-monitor', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
544
550
|
/** Union of singleton capability names (literal string union). */
|
|
545
551
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
546
552
|
/** Capability names whose mode is `collection` (34 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: 1367 method paths across 177 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
10
|
-
*
|
|
9
|
+
* Coverage: 534 methods carry a device reference, of which
|
|
10
|
+
* 179 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
13
13
|
* a numeric device field (targets[].deviceId) are all mapped; the matcher
|
|
@@ -39,6 +39,7 @@ import type { pipelineExecutorCapability } from '../capabilities/pipeline-execut
|
|
|
39
39
|
import type { pipelineOrchestratorCapability } from '../capabilities/pipeline-orchestrator.cap.js';
|
|
40
40
|
import type { pipelineRunnerCapability } from '../capabilities/pipeline-runner.cap.js';
|
|
41
41
|
import type { plateGalleryCapability } from '../capabilities/plate-gallery.cap.js';
|
|
42
|
+
import type { recordEntriesCapability } from '../capabilities/record-entries.cap.js';
|
|
42
43
|
import type { recordingArchiveCapability } from '../capabilities/recording-archive.cap.js';
|
|
43
44
|
import type { recordingExportCapability } from '../capabilities/recording-export.cap.js';
|
|
44
45
|
import type { serverManagementCapability } from '../capabilities/server-management.cap.js';
|
|
@@ -100,6 +101,7 @@ export interface SystemProxy {
|
|
|
100
101
|
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getNodeBenchmarkPreflight' | 'startNodeBenchmark' | 'getNodeBenchmarkStatus' | 'abortNodeBenchmark' | 'getNodeBenchmarkCandidates' | 'listNodeBenchmarkResults' | 'deleteNodeBenchmarkResult' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
|
|
101
102
|
readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep' | 'startNodeBench' | 'getNodeBenchStatus' | 'abortNodeBench'>;
|
|
102
103
|
readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
|
|
104
|
+
readonly recordEntries: Pick<InferProvider<typeof recordEntriesCapability>, 'listEntryKinds' | 'listEntries' | 'putEntry' | 'deleteEntry'>;
|
|
103
105
|
readonly recordingArchive: Pick<InferProvider<typeof recordingArchiveCapability>, 'getAvailabilityBatch' | 'getDaysWithRecordingsBatch' | 'getStorageUsage' | 'listOpsLog' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'refreshStorageLocationsForMigration' | 'startStorageMigrationMove' | 'getStorageMigrationMoveStatus' | 'cancelStorageMigrationMove' | 'relocateFootage' | 'listRelocateJobs' | 'getRelocateResidue' | 'reconcileLedgerAgainstDisk' | 'cancelRelocateJob' | 'planStorageRebalance' | 'startStorageRebalance' | 'getPlacement' | 'setDevicePlacement'>;
|
|
104
106
|
readonly recordingExport: Pick<InferProvider<typeof recordingExportCapability>, 'createExport' | 'getExport' | 'cancelExport' | 'deleteExport' | 'getDownloadUrl' | 'readExportBytes'>;
|
|
105
107
|
readonly serverManagement: Pick<InferProvider<typeof serverManagementCapability>, 'getServerPackageStatus' | 'checkServerUpdate' | 'applyServerUpdate' | 'rollbackServerUpdate' | 'restartServer'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export type { HydratedFieldEntry } from './interfaces/config-ui.js';
|
|
|
50
50
|
export { collectHydratedFieldEntries, collectHydratedFieldValues, hydrateSchema, resolveHydratedFieldValue, WELL_KNOWN_TAB_MAP, WELL_KNOWN_TABS, } from './interfaces/config-ui.js';
|
|
51
51
|
export { collectKeychainStoredKeys, collectSecretConfigKeys, isKeychainStoredField, isSecretConfigField, REDACTED_SECRET, schemaDeclaresAnyField, } from './interfaces/config-ui-secrets.js';
|
|
52
52
|
export * from './keychain/index.js';
|
|
53
|
+
export * from './records/index.js';
|
|
53
54
|
export * from './training/index.js';
|
|
54
55
|
export * from './retrain-review.js';
|
|
55
56
|
export { mergeSecretStatePaths, parseSecretStatePath, type SecretNode, type SecretTree, secretTreeFromPaths, secretTreeFromSchema, } from './addon/secret-paths.js';
|