@camstack/types 1.2.232 → 1.2.234
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 +4 -3
- package/dist/addon.mjs +4 -3
- package/dist/capabilities/cap-router-predicates.d.ts +37 -0
- package/dist/capabilities/capability-definition.d.ts +17 -1
- package/dist/capabilities/device-manager.cap.d.ts +18 -3
- package/dist/capabilities/index.d.ts +4 -4
- package/dist/capabilities/server-management.cap.d.ts +72 -5
- package/dist/capabilities/videoclips.cap.d.ts +198 -5
- package/dist/generated/addon-api.d.ts +7 -34
- package/dist/generated/capability-router-map.d.ts +4 -4
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/index.js +447 -22
- package/dist/index.mjs +443 -23
- package/dist/interfaces/config-ui.d.ts +1 -1
- package/dist/interfaces/kernel-abstractions.d.ts +14 -0
- package/dist/{sleep-CiR4z7r9.mjs → sleep-CopaBJss.mjs} +8 -0
- package/dist/{sleep-D7DPSeiv.js → sleep-DImve4HM.js} +8 -0
- package/package.json +1 -1
|
@@ -9059,6 +9059,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9059
9059
|
output: z.infer<typeof videoclipsCapability.methods.listClips.output>;
|
|
9060
9060
|
meta: object;
|
|
9061
9061
|
}>;
|
|
9062
|
+
listSources: TRPCQueryProcedure<{
|
|
9063
|
+
input: {
|
|
9064
|
+
[x: string]: unknown;
|
|
9065
|
+
} & z.input<typeof videoclipsCapability.methods.listSources.input>;
|
|
9066
|
+
output: z.infer<typeof videoclipsCapability.methods.listSources.output>;
|
|
9067
|
+
meta: object;
|
|
9068
|
+
}>;
|
|
9062
9069
|
getClipPlayback: TRPCQueryProcedure<{
|
|
9063
9070
|
input: {
|
|
9064
9071
|
[x: string]: unknown;
|
|
@@ -9791,23 +9798,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9791
9798
|
output: Record<string, string>;
|
|
9792
9799
|
meta: object;
|
|
9793
9800
|
}>;
|
|
9794
|
-
setDeviceCollectionFilter: import("@trpc/server").TRPCMutationProcedure<{
|
|
9795
|
-
input: {
|
|
9796
|
-
deviceId: string;
|
|
9797
|
-
capability: string;
|
|
9798
|
-
addonIds: string[];
|
|
9799
|
-
};
|
|
9800
|
-
output: void;
|
|
9801
|
-
meta: object;
|
|
9802
|
-
}>;
|
|
9803
|
-
clearDeviceCollectionFilter: import("@trpc/server").TRPCMutationProcedure<{
|
|
9804
|
-
input: {
|
|
9805
|
-
deviceId: string;
|
|
9806
|
-
capability: string;
|
|
9807
|
-
};
|
|
9808
|
-
output: void;
|
|
9809
|
-
meta: object;
|
|
9810
|
-
}>;
|
|
9811
9801
|
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9812
9802
|
listCapabilities: import("@trpc/server").TRPCQueryProcedure<{
|
|
9813
9803
|
input: void;
|
|
@@ -9870,23 +9860,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9870
9860
|
output: Record<string, string>;
|
|
9871
9861
|
meta: object;
|
|
9872
9862
|
}>;
|
|
9873
|
-
setDeviceCollectionFilter: import("@trpc/server").TRPCMutationProcedure<{
|
|
9874
|
-
input: {
|
|
9875
|
-
deviceId: string;
|
|
9876
|
-
capability: string;
|
|
9877
|
-
addonIds: string[];
|
|
9878
|
-
};
|
|
9879
|
-
output: void;
|
|
9880
|
-
meta: object;
|
|
9881
|
-
}>;
|
|
9882
|
-
clearDeviceCollectionFilter: import("@trpc/server").TRPCMutationProcedure<{
|
|
9883
|
-
input: {
|
|
9884
|
-
deviceId: string;
|
|
9885
|
-
capability: string;
|
|
9886
|
-
};
|
|
9887
|
-
output: void;
|
|
9888
|
-
meta: object;
|
|
9889
|
-
}>;
|
|
9890
9863
|
}>;
|
|
9891
9864
|
logs: import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
9892
9865
|
ctx: any;
|
|
@@ -488,12 +488,12 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
488
488
|
readonly zoneRules: TRouter;
|
|
489
489
|
readonly zones: TRouter;
|
|
490
490
|
}
|
|
491
|
-
/** Capability names whose mode is `singleton` (
|
|
492
|
-
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-grid-layout", "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", "navigation", "network-link", "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", "recording-export", "recording-signal", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "storage-migration", "stream-broker", "stream-catalog", "stream-params", "stream-signals", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vector-store", "vibration", "
|
|
491
|
+
/** Capability names whose mode is `singleton` (129 caps). */
|
|
492
|
+
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-grid-layout", "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", "navigation", "network-link", "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", "recording-export", "recording-signal", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "storage-migration", "stream-broker", "stream-catalog", "stream-params", "stream-signals", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vector-store", "vibration", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
493
493
|
/** Union of singleton capability names (literal string union). */
|
|
494
494
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
495
|
-
/** Capability names whose mode is `collection` (
|
|
496
|
-
export declare const COLLECTION_CAPABILITY_NAMES: readonly ["addon-pages-source", "addon-routes", "addon-widgets-source", "auth-provider", "broker", "connection-test", "custom-model-registry", "data-store-provider", "device-export", "device-provider", "embedding-encoder", "failure-contribution", "llm", "load-contribution", "log-channels", "log-destination", "login-method", "mesh-network", "mqtt-broker", "network-access", "notification-output", "oauth-integration", "smtp-provider", "storage-evictable", "storage-occupancy", "storage-provider", "turn-provider", "user-passkeys"];
|
|
495
|
+
/** Capability names whose mode is `collection` (29 caps). */
|
|
496
|
+
export declare const COLLECTION_CAPABILITY_NAMES: readonly ["addon-pages-source", "addon-routes", "addon-widgets-source", "auth-provider", "broker", "connection-test", "custom-model-registry", "data-store-provider", "device-export", "device-provider", "embedding-encoder", "failure-contribution", "llm", "load-contribution", "log-channels", "log-destination", "login-method", "mesh-network", "mqtt-broker", "network-access", "notification-output", "oauth-integration", "smtp-provider", "storage-evictable", "storage-occupancy", "storage-provider", "turn-provider", "user-passkeys", "videoclips"];
|
|
497
497
|
/** Union of collection capability names (literal string union). */
|
|
498
498
|
export type CollectionCapabilityName = typeof COLLECTION_CAPABILITY_NAMES[number];
|
|
499
499
|
/** Capability mode lookup at runtime — mirrors the `.cap.ts` definitions. */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* barrel (`ALL_CAPABILITY_DEFINITIONS`), which would cost ~144MB RSS per
|
|
9
9
|
* forked runner. See docs/decisions/adr-0028.md.
|
|
10
10
|
*
|
|
11
|
-
* Coverage:
|
|
11
|
+
* Coverage: 22 collection caps, 36 array methods.
|
|
12
12
|
*/
|
|
13
13
|
export declare const COLLECTION_ARRAY_METHODS: Readonly<Record<string, readonly string[]>>;
|
|
14
14
|
/**
|
|
@@ -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: 1057 method paths across 131 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 389 methods carry a device reference, of which
|
|
10
10
|
* 141 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|