@camstack/types 1.2.264 → 1.2.265
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/automation/recipe.d.ts +1 -1
- package/dist/capabilities/composer.cap.d.ts +328 -0
- package/dist/capabilities/control.cap.d.ts +4 -4
- package/dist/capabilities/core-blocks.cap.d.ts +2339 -0
- package/dist/capabilities/day-night.cap.d.ts +8 -8
- package/dist/capabilities/device-extension.cap.d.ts +8 -8
- package/dist/capabilities/index.d.ts +4 -2
- package/dist/capabilities/notification-rules.cap.d.ts +74 -74
- package/dist/capabilities/osd-manager.cap.d.ts +13 -13
- package/dist/composition/composition-graph.d.ts +36 -0
- package/dist/composition/composition-report.d.ts +264 -0
- package/dist/composition/composition.d.ts +362 -0
- package/dist/composition/evaluate-field.d.ts +63 -0
- package/dist/composition/examples.d.ts +10 -0
- package/dist/composition/expression-kinds.d.ts +36 -0
- package/dist/composition/index.d.ts +12 -0
- package/dist/composition/state-fields.d.ts +19 -0
- package/dist/composition/validate-composition.d.ts +46 -0
- package/dist/device/schema-fields.d.ts +3 -0
- package/dist/expression/builtins.d.ts +30 -2
- package/dist/generated/addon-api.d.ts +57 -0
- 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 +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1338 -79
- package/dist/index.mjs +1266 -80
- package/dist/notification/rule-kinds.d.ts +3 -2
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ import type { cameraGridLayoutCapability } from '../capabilities/camera-grid-lay
|
|
|
27
27
|
import type { cameraStreamsCapability } from '../capabilities/camera-streams.cap.js';
|
|
28
28
|
import type { climateControlCapability } from '../capabilities/climate-control.cap.js';
|
|
29
29
|
import type { colorCapability } from '../capabilities/color.cap.js';
|
|
30
|
+
import type { composerCapability } from '../capabilities/composer.cap.js';
|
|
30
31
|
import type { connectionTestCapability } from '../capabilities/connection-test.cap.js';
|
|
31
32
|
import type { consumablesCapability } from '../capabilities/consumables.cap.js';
|
|
32
33
|
import type { controlCapability } from '../capabilities/control.cap.js';
|
|
@@ -1413,6 +1414,27 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1413
1414
|
meta: object;
|
|
1414
1415
|
}>;
|
|
1415
1416
|
}>>;
|
|
1417
|
+
composer: TRPCBuiltRouter<{
|
|
1418
|
+
ctx: TrpcContext;
|
|
1419
|
+
meta: object;
|
|
1420
|
+
errorShape: AugmentedErrorShape;
|
|
1421
|
+
transformer: true;
|
|
1422
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
1423
|
+
applyBlocks: TRPCMutationProcedure<{
|
|
1424
|
+
input: {
|
|
1425
|
+
[x: string]: unknown;
|
|
1426
|
+
} & z.input<typeof composerCapability.methods.applyBlocks.input>;
|
|
1427
|
+
output: z.infer<typeof composerCapability.methods.applyBlocks.output>;
|
|
1428
|
+
meta: object;
|
|
1429
|
+
}>;
|
|
1430
|
+
getStates: TRPCQueryProcedure<{
|
|
1431
|
+
input: {
|
|
1432
|
+
[x: string]: unknown;
|
|
1433
|
+
} & z.input<typeof composerCapability.methods.getStates.input>;
|
|
1434
|
+
output: z.infer<typeof composerCapability.methods.getStates.output>;
|
|
1435
|
+
meta: object;
|
|
1436
|
+
}>;
|
|
1437
|
+
}>>;
|
|
1416
1438
|
connectionTest: TRPCBuiltRouter<{
|
|
1417
1439
|
ctx: TrpcContext;
|
|
1418
1440
|
meta: object;
|
|
@@ -1574,6 +1596,41 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1574
1596
|
output: z.infer<typeof coreBlocksCapability.methods.getTypeDefs.output>;
|
|
1575
1597
|
meta: object;
|
|
1576
1598
|
}>;
|
|
1599
|
+
createComposition: TRPCMutationProcedure<{
|
|
1600
|
+
input: {
|
|
1601
|
+
[x: string]: unknown;
|
|
1602
|
+
} & z.input<typeof coreBlocksCapability.methods.createComposition.input>;
|
|
1603
|
+
output: z.infer<typeof coreBlocksCapability.methods.createComposition.output>;
|
|
1604
|
+
meta: object;
|
|
1605
|
+
}>;
|
|
1606
|
+
updateComposition: TRPCMutationProcedure<{
|
|
1607
|
+
input: {
|
|
1608
|
+
[x: string]: unknown;
|
|
1609
|
+
} & z.input<typeof coreBlocksCapability.methods.updateComposition.input>;
|
|
1610
|
+
output: z.infer<typeof coreBlocksCapability.methods.updateComposition.output>;
|
|
1611
|
+
meta: object;
|
|
1612
|
+
}>;
|
|
1613
|
+
getComposition: TRPCQueryProcedure<{
|
|
1614
|
+
input: {
|
|
1615
|
+
[x: string]: unknown;
|
|
1616
|
+
} & z.input<typeof coreBlocksCapability.methods.getComposition.input>;
|
|
1617
|
+
output: z.infer<typeof coreBlocksCapability.methods.getComposition.output>;
|
|
1618
|
+
meta: object;
|
|
1619
|
+
}>;
|
|
1620
|
+
listCompositions: TRPCQueryProcedure<{
|
|
1621
|
+
input: {
|
|
1622
|
+
[x: string]: unknown;
|
|
1623
|
+
} & z.input<typeof coreBlocksCapability.methods.listCompositions.input>;
|
|
1624
|
+
output: z.infer<typeof coreBlocksCapability.methods.listCompositions.output>;
|
|
1625
|
+
meta: object;
|
|
1626
|
+
}>;
|
|
1627
|
+
validateComposition: TRPCMutationProcedure<{
|
|
1628
|
+
input: {
|
|
1629
|
+
[x: string]: unknown;
|
|
1630
|
+
} & z.input<typeof coreBlocksCapability.methods.validateComposition.input>;
|
|
1631
|
+
output: z.infer<typeof coreBlocksCapability.methods.validateComposition.output>;
|
|
1632
|
+
meta: object;
|
|
1633
|
+
}>;
|
|
1577
1634
|
}>>;
|
|
1578
1635
|
cover: TRPCBuiltRouter<{
|
|
1579
1636
|
ctx: TrpcContext;
|
|
@@ -30,6 +30,7 @@ export { cameraStreamsCapability } from '../capabilities/camera-streams.cap.js';
|
|
|
30
30
|
export { carbonMonoxideCapability } from '../capabilities/carbon-monoxide.cap.js';
|
|
31
31
|
export { climateControlCapability } from '../capabilities/climate-control.cap.js';
|
|
32
32
|
export { colorCapability } from '../capabilities/color.cap.js';
|
|
33
|
+
export { composerCapability } from '../capabilities/composer.cap.js';
|
|
33
34
|
export { connectionTestCapability } from '../capabilities/connection-test.cap.js';
|
|
34
35
|
export { connectivityCapability } from '../capabilities/connectivity.cap.js';
|
|
35
36
|
export { consumablesCapability } from '../capabilities/consumables.cap.js';
|
|
@@ -192,6 +193,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
192
193
|
readonly carbonMonoxide: "carbon-monoxide";
|
|
193
194
|
readonly climateControl: "climate-control";
|
|
194
195
|
readonly color: "color";
|
|
196
|
+
readonly composer: "composer";
|
|
195
197
|
readonly connectionTest: "connection-test";
|
|
196
198
|
readonly connectivity: "connectivity";
|
|
197
199
|
readonly consumables: "consumables";
|
|
@@ -367,6 +369,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
367
369
|
readonly carbonMonoxide: TRouter;
|
|
368
370
|
readonly climateControl: TRouter;
|
|
369
371
|
readonly color: TRouter;
|
|
372
|
+
readonly composer: TRouter;
|
|
370
373
|
readonly connectionTest: TRouter;
|
|
371
374
|
readonly connectivity: TRouter;
|
|
372
375
|
readonly consumables: TRouter;
|
|
@@ -497,8 +500,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
497
500
|
readonly zoneRules: TRouter;
|
|
498
501
|
readonly zones: TRouter;
|
|
499
502
|
}
|
|
500
|
-
/** Capability names whose mode is `singleton` (
|
|
501
|
-
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-admin-link", "device-adoption", "device-discovery", "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", "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-archive", "recording-export", "recording-onboard", "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"];
|
|
503
|
+
/** Capability names whose mode is `singleton` (131 caps). */
|
|
504
|
+
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", "composer", "connectivity", "consumables", "contact", "control", "core-blocks", "cover", "day-night", "decoder", "detection-pipeline", "device-admin-link", "device-adoption", "device-discovery", "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", "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-archive", "recording-export", "recording-onboard", "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"];
|
|
502
505
|
/** Union of singleton capability names (literal string union). */
|
|
503
506
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
504
507
|
/** Capability names whose mode is `collection` (31 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: 1185 method paths across 162 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -65,7 +65,7 @@ export interface SystemProxy {
|
|
|
65
65
|
readonly backup: Pick<InferProvider<typeof backupCapability>, 'listDestinations' | 'trigger' | 'listRuns' | 'cancel' | 'list' | 'listLocations' | 'getEntries' | 'restore' | 'delete' | 'listArchives' | 'upsertDestinationPolicy' | 'previewSchedule' | 'listSchedules' | 'upsertSchedule' | 'deleteSchedule'>;
|
|
66
66
|
readonly broker: Pick<InferProvider<typeof brokerCapability>, 'list' | 'get' | 'listProviders' | 'add' | 'remove' | 'testConnection' | 'getSettings' | 'setSettings' | 'getBrokerConfig' | 'getSettingsSchema' | 'testSettings' | 'publish' | 'subscribe' | 'unsubscribe' | 'getState' | 'getStatus'>;
|
|
67
67
|
readonly connectionTest: Pick<InferProvider<typeof connectionTestCapability>, 'testSettings' | 'describeTest'>;
|
|
68
|
-
readonly coreBlocks: Pick<InferProvider<typeof coreBlocksCapability>, 'list' | 'get' | 'create' | 'update' | 'delete' | 'setEnabled' | 'restart' | 'compile' | 'getTypeDefs'>;
|
|
68
|
+
readonly coreBlocks: Pick<InferProvider<typeof coreBlocksCapability>, 'list' | 'get' | 'create' | 'update' | 'delete' | 'setEnabled' | 'restart' | 'compile' | 'getTypeDefs' | 'createComposition' | 'updateComposition' | 'getComposition' | 'listCompositions' | 'validateComposition'>;
|
|
69
69
|
readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'supportsCodec' | 'getInfo' | 'createSession' | 'destroySession' | 'pushPacket' | 'openStream' | 'pullFrames' | 'pullHandles' | 'getFrame' | 'getShmStats' | 'updateConfig' | 'getStats' | 'listActiveSessions' | 'reprobeHwaccel'>;
|
|
70
70
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
71
71
|
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -143,6 +143,7 @@ export { AutomationActionSchema, AutomationConditionOperatorSchema, AutomationCo
|
|
|
143
143
|
export * from './cap-call-context.js';
|
|
144
144
|
export * from './capabilities/index.js';
|
|
145
145
|
export * from './device-extension/index.js';
|
|
146
|
+
export * from './composition/index.js';
|
|
146
147
|
export { APPLE_SA_TO_MACRO, AUDIO_MACRO_LABELS, getAudioMacroClassIds, mapAudioLabelToMacro, YAMNET_TO_MACRO, } from './catalogs/audio-classmap.js';
|
|
147
148
|
export { COCO_80_LABELS, COCO_TO_MACRO, DETECTION_MACRO_CLASSES, isDetectionMacroClass, MACRO_LABELS, } from './catalogs/coco-classmap.js';
|
|
148
149
|
export { DEVICE_STATE_READERS, readDeviceStateFrom, stateVocabularyFor, } from './catalogs/device-state-vocabulary.js';
|