@camstack/types 1.2.540 → 1.2.542
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/CHANGELOG.md +18 -4
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/cluster-update.cap.d.ts +376 -0
- package/dist/capabilities/device-manager.cap.d.ts +103 -0
- package/dist/capabilities/device-search.d.ts +168 -0
- package/dist/capabilities/hero-layout.cap.d.ts +69 -299
- package/dist/capabilities/hub-address.d.ts +10 -0
- package/dist/capabilities/index.d.ts +6 -3
- package/dist/capabilities/notification-rules.cap.d.ts +115 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js +54 -8
- package/dist/client.mjs +54 -9
- package/dist/device/container-primary-child.d.ts +39 -4
- package/dist/device/device-management.d.ts +9 -0
- package/dist/device/hero/hero-model.d.ts +57 -553
- package/dist/device/hero/hero-row.d.ts +76 -69
- package/dist/device/hero/index.d.ts +1 -1
- package/dist/device/linked-device-resolve.d.ts +2 -0
- package/dist/generated/addon-api.d.ts +43 -0
- 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/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +3 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +592 -29
- package/dist/index.mjs +562 -30
- package/dist/notification/degrade-engine.d.ts +7 -1
- package/dist/notification/notification-fields.d.ts +20 -2
- package/dist/notification/timelapse-rule.d.ts +69 -0
- package/dist/{sleep-Dz1P6--1.mjs → sleep-Cw1uUXvl.mjs} +3 -0
- package/dist/{sleep-DPMn-Sik.js → sleep-PfAAmxV-.js} +3 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export { HERO_CAP_CONTRIBUTIONS, type HeroContribution, } from './hero-contribut
|
|
|
5
5
|
export type { HeroContext, HeroFragment, StateReading, StateSource, } from './hero-fragment.js';
|
|
6
6
|
export { HERO_LAYOUT_BY_TYPE, HERO_LAYOUT_DEFAULT, resolveHeroLayout, type HeroLayout, } from './hero-layout.js';
|
|
7
7
|
export { allHeroLooks, HERO_LOOK_BY_ROLE, HERO_LOOK_BY_TYPE, HERO_LOOK_DEFAULT, resolveHeroLook, } from './hero-look.js';
|
|
8
|
-
export { HERO_ROW_IDS, HERO_ROW_LABELS, heroArgsWithValue, type HeroAction, type HeroArgs, type HeroBackground, type HeroBadge, type HeroCall, type HeroConfirm, type HeroConsumableItem, type HeroConsumablesSlot, type HeroConsumptionSlot, type HeroControl, type HeroDetail, type HeroFact, type HeroSideTile, type HeroSideTiles, type HeroModel, type HeroOwnPowerSlot, type HeroPowerSupplySlot, type HeroProvenance, type HeroRemoteSlot, type HeroRow, type HeroRowId, type HeroTimedRunSlot, } from './hero-model.js';
|
|
8
|
+
export { HERO_ROW_IDS, HERO_ROW_LABELS, heroArgsWithValue, type HeroAction, type HeroArgs, type HeroBackground, type HeroBadge, type HeroCall, type HeroConfirm, type HeroConsumableItem, type HeroConsumablesSlot, type HeroConsumptionSlot, type HeroControl, type HeroDetail, type HeroFact, type HeroSideTile, type HeroSideTiles, type HeroModel, type HeroOwnPowerSlot, type HeroPowerSupplySlot, type HeroProvenance, type HeroRemoteSlot, REMOTE_OPEN_ACTION_ID, type HeroRow, type HeroRowId, type HeroTimedRunSlot, } from './hero-model.js';
|
|
9
9
|
export { HERO_ANIMATIONS, HERO_BACKGROUNDS, HERO_STATES, HERO_TONES, type HeroAnimation, type HeroBackgroundToken, type HeroLook, type HeroState, type HeroTone, type StateLook, } from './hero-state.js';
|
|
10
10
|
export { HERO_SCENE_BY_ROLE, HERO_SCENE_BY_TYPE, HERO_SCENES, HERO_SCENE_MODES, resolveHeroSceneId, type HeroScene, type HeroSceneId, type HeroSceneMode, } from './hero-scene.js';
|
|
11
11
|
export { HeroRowModelSchema, projectDeviceRow, type HeroRowModel, } from './hero-row.js';
|
|
@@ -25,6 +25,8 @@ export interface LinkCandidate {
|
|
|
25
25
|
readonly stableId: string;
|
|
26
26
|
/** The container's own operator pick, when one was made. */
|
|
27
27
|
readonly primaryChildEntityId?: string | null;
|
|
28
|
+
/** The container's provider-declared preference (accessory `childKey`s). A JSON column. */
|
|
29
|
+
readonly primaryChildPreference?: readonly string[] | null;
|
|
28
30
|
/**
|
|
29
31
|
* The child's `DeviceRole`. Ranked ABOVE `type` when a container picks the
|
|
30
32
|
* child it stands for, because `DeviceType` cannot tell a door contact from a
|
|
@@ -31,6 +31,7 @@ import type { cameraCredentialsCapability } from '../capabilities/camera-credent
|
|
|
31
31
|
import type { cameraGridLayoutCapability } from '../capabilities/camera-grid-layout.cap.js';
|
|
32
32
|
import type { cameraStreamsCapability } from '../capabilities/camera-streams.cap.js';
|
|
33
33
|
import type { climateControlCapability } from '../capabilities/climate-control.cap.js';
|
|
34
|
+
import type { clusterUpdateCapability } from '../capabilities/cluster-update.cap.js';
|
|
34
35
|
import type { colorCapability } from '../capabilities/color.cap.js';
|
|
35
36
|
import type { composerCapability } from '../capabilities/composer.cap.js';
|
|
36
37
|
import type { consumablesCapability } from '../capabilities/consumables.cap.js';
|
|
@@ -1603,6 +1604,34 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1603
1604
|
meta: object;
|
|
1604
1605
|
}>;
|
|
1605
1606
|
}>>;
|
|
1607
|
+
clusterUpdate: TRPCBuiltRouter<{
|
|
1608
|
+
ctx: TrpcContext;
|
|
1609
|
+
meta: object;
|
|
1610
|
+
errorShape: AugmentedErrorShape;
|
|
1611
|
+
transformer: true;
|
|
1612
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
1613
|
+
previewClusterUpdate: TRPCQueryProcedure<{
|
|
1614
|
+
input: {
|
|
1615
|
+
[x: string]: unknown;
|
|
1616
|
+
} & z.input<typeof clusterUpdateCapability.methods.previewClusterUpdate.input>;
|
|
1617
|
+
output: z.infer<typeof clusterUpdateCapability.methods.previewClusterUpdate.output>;
|
|
1618
|
+
meta: object;
|
|
1619
|
+
}>;
|
|
1620
|
+
startClusterUpdate: TRPCMutationProcedure<{
|
|
1621
|
+
input: {
|
|
1622
|
+
[x: string]: unknown;
|
|
1623
|
+
} & z.input<typeof clusterUpdateCapability.methods.startClusterUpdate.input>;
|
|
1624
|
+
output: z.infer<typeof clusterUpdateCapability.methods.startClusterUpdate.output>;
|
|
1625
|
+
meta: object;
|
|
1626
|
+
}>;
|
|
1627
|
+
getClusterUpdateJob: TRPCQueryProcedure<{
|
|
1628
|
+
input: {
|
|
1629
|
+
[x: string]: unknown;
|
|
1630
|
+
} & z.input<typeof clusterUpdateCapability.methods.getClusterUpdateJob.input>;
|
|
1631
|
+
output: z.infer<typeof clusterUpdateCapability.methods.getClusterUpdateJob.output>;
|
|
1632
|
+
meta: object;
|
|
1633
|
+
}>;
|
|
1634
|
+
}>>;
|
|
1606
1635
|
color: TRPCBuiltRouter<{
|
|
1607
1636
|
ctx: TrpcContext;
|
|
1608
1637
|
meta: object;
|
|
@@ -2733,6 +2762,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2733
2762
|
output: z.infer<typeof deviceManagerCapability.methods.setChildLayout.output>;
|
|
2734
2763
|
meta: object;
|
|
2735
2764
|
}>;
|
|
2765
|
+
setPrimaryChildPreference: TRPCMutationProcedure<{
|
|
2766
|
+
input: {
|
|
2767
|
+
[x: string]: unknown;
|
|
2768
|
+
} & z.input<typeof deviceManagerCapability.methods.setPrimaryChildPreference.input>;
|
|
2769
|
+
output: z.infer<typeof deviceManagerCapability.methods.setPrimaryChildPreference.output>;
|
|
2770
|
+
meta: object;
|
|
2771
|
+
}>;
|
|
2736
2772
|
setDisplay: TRPCMutationProcedure<{
|
|
2737
2773
|
input: {
|
|
2738
2774
|
[x: string]: unknown;
|
|
@@ -2894,6 +2930,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2894
2930
|
output: z.infer<typeof deviceManagerCapability.methods.listAll.output>;
|
|
2895
2931
|
meta: object;
|
|
2896
2932
|
}>;
|
|
2933
|
+
search: TRPCQueryProcedure<{
|
|
2934
|
+
input: {
|
|
2935
|
+
[x: string]: unknown;
|
|
2936
|
+
} & z.input<typeof deviceManagerCapability.methods.search.input>;
|
|
2937
|
+
output: z.infer<typeof deviceManagerCapability.methods.search.output>;
|
|
2938
|
+
meta: object;
|
|
2939
|
+
}>;
|
|
2897
2940
|
getDevice: TRPCQueryProcedure<{
|
|
2898
2941
|
input: {
|
|
2899
2942
|
[x: string]: unknown;
|
|
@@ -34,6 +34,7 @@ export { cameraPipelineConfigCapability } from '../capabilities/camera-pipeline-
|
|
|
34
34
|
export { cameraStreamsCapability } from '../capabilities/camera-streams.cap.js';
|
|
35
35
|
export { carbonMonoxideCapability } from '../capabilities/carbon-monoxide.cap.js';
|
|
36
36
|
export { climateControlCapability } from '../capabilities/climate-control.cap.js';
|
|
37
|
+
export { clusterUpdateCapability } from '../capabilities/cluster-update.cap.js';
|
|
37
38
|
export { colorCapability } from '../capabilities/color.cap.js';
|
|
38
39
|
export { composerCapability } from '../capabilities/composer.cap.js';
|
|
39
40
|
export { connectivityCapability } from '../capabilities/connectivity.cap.js';
|
|
@@ -240,6 +241,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
240
241
|
readonly cameraStreams: 'camera-streams';
|
|
241
242
|
readonly carbonMonoxide: 'carbon-monoxide';
|
|
242
243
|
readonly climateControl: 'climate-control';
|
|
244
|
+
readonly clusterUpdate: 'cluster-update';
|
|
243
245
|
readonly color: 'color';
|
|
244
246
|
readonly composer: 'composer';
|
|
245
247
|
readonly connectivity: 'connectivity';
|
|
@@ -459,6 +461,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
459
461
|
readonly cameraStreams: TRouter;
|
|
460
462
|
readonly carbonMonoxide: TRouter;
|
|
461
463
|
readonly climateControl: TRouter;
|
|
464
|
+
readonly clusterUpdate: TRouter;
|
|
462
465
|
readonly color: TRouter;
|
|
463
466
|
readonly composer: TRouter;
|
|
464
467
|
readonly connectivity: TRouter;
|
|
@@ -629,8 +632,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
629
632
|
readonly zoneRules: TRouter;
|
|
630
633
|
readonly zones: TRouter;
|
|
631
634
|
}
|
|
632
|
-
/** Capability names whose mode is `singleton` (
|
|
633
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', '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-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heat-pump-control', 'heat-pump-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'migrations', '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', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'running-state', 'scene-monitor', 'schedulers', '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', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
635
|
+
/** Capability names whose mode is `singleton` (166 caps). */
|
|
636
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', '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', 'cluster-update', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heat-pump-control', 'heat-pump-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'migrations', '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', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'running-state', 'scene-monitor', 'schedulers', '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', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
634
637
|
/** Union of singleton capability names (literal string union). */
|
|
635
638
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
636
639
|
/** Capability names whose mode is `collection` (40 caps). */
|
|
@@ -346,7 +346,7 @@ export interface DeviceProxy {
|
|
|
346
346
|
readonly deviceAdoption: Pick<InferDeviceProxyCap<typeof deviceAdoptionCapability>, 'getStatus'>;
|
|
347
347
|
readonly deviceExport: Pick<InferDeviceProxyCap<typeof deviceExportCapability>, 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
348
348
|
readonly deviceHistory: Pick<InferDeviceProxyCap<typeof deviceHistoryCapability>, 'listSeries' | 'query' | 'getDeviceEnabled' | 'setDeviceEnabled'>;
|
|
349
|
-
readonly deviceManager: Pick<InferDeviceProxyCap<typeof deviceManagerCapability>, 'loadConfig' | 'loadRuntimeState' | 'loadMeta' | 'setName' | 'setAlias' | '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' | 'setWrapperActive' | 'getWrapperActivation' | 'getDeviceSettingsAggregate' | 'getDeviceLiveInfoAggregate' | 'getDeviceAggregate' | 'runDeviceAction' | 'updateDeviceField' | 'updateDeviceFieldsBatch' | 'testField' | 'getDeviceStatusAggregate'>;
|
|
349
|
+
readonly deviceManager: Pick<InferDeviceProxyCap<typeof deviceManagerCapability>, 'loadConfig' | 'loadRuntimeState' | 'loadMeta' | 'setName' | 'setAlias' | 'setLocation' | 'setType' | 'setIntegrationId' | 'setLinkDeviceId' | 'setPrimaryChildEntityId' | 'setChildLayout' | 'setPrimaryChildPreference' | 'setDisplay' | 'getWireableFields' | 'setRole' | 'applyInitialMeta' | 'setMetadata' | 'setDisabled' | 'getDevice' | 'getLinkedDevices' | 'getStreamSources' | 'getConfigSchema' | 'getSettingsSchema' | 'updateConfig' | 'enable' | 'disable' | 'remove' | 'getStreamProfileMap' | 'setStreamProfileMap' | 'probeStreams' | 'getBindings' | 'setWrapperActive' | 'getWrapperActivation' | 'getDeviceSettingsAggregate' | 'getDeviceLiveInfoAggregate' | 'getDeviceAggregate' | 'runDeviceAction' | 'updateDeviceField' | 'updateDeviceFieldsBatch' | 'testField' | 'getDeviceStatusAggregate'>;
|
|
350
350
|
readonly deviceState: Pick<InferDeviceProxyCap<typeof deviceStateCapability>, 'getSnapshot' | 'getCapSlice' | 'setCapSlice' | 'claimFields' | 'patchOwnedFields' | 'releaseClaim' | 'getNativeCapSlice'>;
|
|
351
351
|
readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'listRecentFaces' | 'getFaceByTrack'>;
|
|
352
352
|
readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
|
|
@@ -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: 1487 method paths across 206 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -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: 617 methods carry a device reference, of which
|
|
10
|
+
* 195 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
|
|
@@ -13,6 +13,7 @@ import type { backupCapability } from '../capabilities/backup.cap.js';
|
|
|
13
13
|
import type { boardKeySourceCapability } from '../capabilities/board-key-source.cap.js';
|
|
14
14
|
import type { brokerCapability } from '../capabilities/broker.cap.js';
|
|
15
15
|
import type { calendarsCapability } from '../capabilities/calendars.cap.js';
|
|
16
|
+
import type { clusterUpdateCapability } from '../capabilities/cluster-update.cap.js';
|
|
16
17
|
import type { coreBlocksCapability } from '../capabilities/core-blocks.cap.js';
|
|
17
18
|
import type { decoderCapability } from '../capabilities/decoder.cap.js';
|
|
18
19
|
import type { deviceAdoptionCapability } from '../capabilities/device-adoption.cap.js';
|
|
@@ -85,13 +86,14 @@ export interface SystemProxy {
|
|
|
85
86
|
readonly boardKeySource: Pick<InferProvider<typeof boardKeySourceCapability>, 'listSources' | 'listBoards' | 'getBoardKey'>;
|
|
86
87
|
readonly broker: Pick<InferProvider<typeof brokerCapability>, 'getBrokerConfig' | 'publish' | 'subscribe' | 'unsubscribe' | 'getState' | 'getStatus'>;
|
|
87
88
|
readonly calendars: Pick<InferProvider<typeof calendarsCapability>, 'listCalendars' | 'listEvents' | 'getPreferences' | 'setCalendarPreference'>;
|
|
89
|
+
readonly clusterUpdate: Pick<InferProvider<typeof clusterUpdateCapability>, 'previewClusterUpdate' | 'startClusterUpdate' | 'getClusterUpdateJob'>;
|
|
88
90
|
readonly coreBlocks: Pick<InferProvider<typeof coreBlocksCapability>, 'list' | 'get' | 'create' | 'update' | 'delete' | 'setEnabled' | 'restart' | 'compile' | 'getBlockSettings' | 'updateBlockSettings' | 'migrateRawSecrets' | 'getTypeDefs' | 'createComposition' | 'updateComposition' | 'getComposition' | 'listCompositions' | 'getCustomization' | 'listComposableCaps' | 'validateComposition' | 'reportAutomationRun' | 'getAutomationRunState' | 'getTraces'>;
|
|
89
91
|
readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'getInfo' | 'reprobeHwaccel'>;
|
|
90
92
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
91
93
|
readonly deviceCredentials: Pick<InferProvider<typeof deviceCredentialsCapability>, 'listDeviceCredentials' | 'startEnrollment' | 'revokeDeviceCredential' | 'getDeviceCertificateSettings' | 'setDeviceCertificateSettings' | 'deleteDeviceCredential' | 'getDeviceCaStatus' | 'renameDeviceCredential'>;
|
|
92
94
|
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listInstances' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice' | 'listSupportedEntityKinds' | 'listExposedEntities' | 'exposeEntity' | 'unexposeEntity'>;
|
|
93
95
|
readonly deviceHistory: Pick<InferProvider<typeof deviceHistoryCapability>, 'listNodeSeries' | 'queryNode' | 'queryMany' | 'declareSeries' | 'record' | 'recordBuckets' | 'getStatus' | 'listOrphanSeries' | 'deleteOrphanSeries'>;
|
|
94
|
-
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'migrateDevice' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'renderDeviceTemplates' | 'checkDeviceTemplates' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'renameLocation' | 'listLocationIcons' | 'setLocationIcon' | 'listLocationDescriptions' | 'setLocationDescription' | 'listSiteZones' | 'setSiteZone' | 'removeSiteZone' | 'renameSiteZone' | 'setLocationZone' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'getChildrenBatch' | 'getLinkedDevicesBatch' | 'listDeletedSince' | 'cleanupDeletedDevicesData' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listDeviceIdsByCaps' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'listDiscoveryProposals' | 'dismissDiscoveryProposal' | 'reportDiscoveryObservations' | 'runDiscoverySweep' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
|
|
96
|
+
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'migrateDevice' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'renderDeviceTemplates' | 'checkDeviceTemplates' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'renameLocation' | 'listLocationIcons' | 'setLocationIcon' | 'listLocationDescriptions' | 'setLocationDescription' | 'listSiteZones' | 'setSiteZone' | 'removeSiteZone' | 'renameSiteZone' | 'setLocationZone' | 'listPersistedByAddon' | 'listAll' | 'search' | 'getChildren' | 'getChildrenBatch' | 'getLinkedDevicesBatch' | 'listDeletedSince' | 'cleanupDeletedDevicesData' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listDeviceIdsByCaps' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'listDiscoveryProposals' | 'dismissDiscoveryProposal' | 'reportDiscoveryObservations' | 'runDiscoverySweep' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
|
|
95
97
|
readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'reloadDevice' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryModes' | 'classifyDiscoveryHits' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
|
|
96
98
|
readonly deviceState: Pick<InferProvider<typeof deviceStateCapability>, 'getAllSnapshots' | 'listClaims'>;
|
|
97
99
|
readonly displayPalette: Pick<InferProvider<typeof displayPaletteCapability>, 'getPalette' | 'listPresets' | 'setPalette'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ export { BaseDeviceProvider, toDeviceSummary } from './device/base-device-provid
|
|
|
243
243
|
export type { BatteryPresence, BatteryPresenceInput } from './device/battery-presence.js';
|
|
244
244
|
export { BATTERY_UNREACHABLE_AFTER_MS, deriveBatteryPresence, isBatteryPresenceFault, } from './device/battery-presence.js';
|
|
245
245
|
export type { ICameraDevice, StreamSourceEntry } from './device/camera-device.js';
|
|
246
|
-
export { applyPrimaryChildRule, CONTAINER_CHILD_PRIORITY, CONTAINER_PRIMARY_CHILD_RULES, type AppliedPrimaryChildRule, type ContainerChildRef, type ContainerPrimaryChildRule, type ContainerPrimaryDeclaration, resolveContainerPrimaryChild, } from './device/container-primary-child.js';
|
|
246
|
+
export { applyPrimaryChildPreference, applyPrimaryChildRule, CONTAINER_CHILD_PRIORITY, CONTAINER_PRIMARY_CHILD_RULES, primaryChildPreferenceOf, type AppliedPrimaryChildRule, type ContainerChildRef, type ContainerPreferenceSource, type ContainerPrimaryChildPreference, type ContainerPrimaryChildRule, type ContainerPrimaryDeclaration, resolveContainerPrimaryChild, } from './device/container-primary-child.js';
|
|
247
247
|
export { expandContainer, legacyAutoLinkIds, type LinkCandidate, } from './device/linked-device-resolve.js';
|
|
248
248
|
export type { DeclarationPlacement, DeclaredDeviceOutcome, DeclaredDevicePorts, DeclaredDeviceRow, DeclaredDevicesResult, DeclaredDevicesSpec, DeclaredInstanceSeed, DeclaredIntegrationRef, DeclaredIntegrationRow, DeviceDeclaration, SeedableInstances, } from './device/declared-device.js';
|
|
249
249
|
export { DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DeclaredDevices, declarationOwnerNodeId, seedInstanceOnce, } from './device/declared-device.js';
|
|
@@ -353,7 +353,7 @@ export { isAudioClassName, isBaseConditionKey, knownValues, NC_BASE_CONDITION_KE
|
|
|
353
353
|
export { type PreparedAction, type PreparedAttachment, type PreparedNotification, prepareNotification, type ResolvedLevel, } from './notification/degrade-engine.js';
|
|
354
354
|
export { isRootRelativeUrl, type PublicEndpointReader, type PublicEndpointReading, type PublicEndpointSource, publicEndpointReaderFrom, type ResolveAttachmentUrlsDeps, resolveAttachmentUrls, } from './notification/attachment-url.js';
|
|
355
355
|
export { deliveryParamsDeclaredBy, resolveDeliveryParams } from './notification/delivery-params.js';
|
|
356
|
-
export { deliverableFields, fieldSupportForTargets, NOTIFICATION_FIELDS, type NotificationFieldSupport, type NotificationFieldTarget, sanitizeTargetOverride, } from './notification/notification-fields.js';
|
|
356
|
+
export { attachmentKindsOf, deliverableFields, fieldSupportForTargets, NOTIFICATION_FIELDS, priorityLevelsOf, targetAttachmentAllows, type NotificationFieldSupport, type NotificationFieldTarget, sanitizeTargetOverride, } from './notification/notification-fields.js';
|
|
357
357
|
export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
|
|
358
358
|
export { conditionExclusionReason, conditionVisibleForKind, defaultDeliveryForSection, droppedConditionsForKind, isAudioRule, isOccupancyRule, isSystemDelivery, isSystemRuleKind, kindsForDiscriminator, NC_AUDIO_SEED, NC_CAMERA_SCOPE_CAP_NAME, NC_OCCUPANCY_DEFAULTS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SYSTEM_DELIVERY, NC_SYSTEM_RULE_KINDS, type NcDroppedCondition, type NcKindVisibilitySubject, type NcRuleEditorSection, type NcRuleEditorSectionKey, type NcRuleKind, type NcRuleKindSpec, type NcRuleOwningSectionKey, type NcRuleSection, type NcRuleSectionKey, type NcRuleConditionsSubject, type NcRuleSectionSubject, type NcRuleSeed, parseRuleSection, ruleDeviceCompatCapNames, ruleDeviceCompatCapQueries, ruleEditorSectionsForKind, ruleGroupingApplies, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, systemFamilyOfKind, systemRuleKindOf, } from './notification/rule-kinds.js';
|
|
359
359
|
export { imageModesForKind, legacyImageMode, NC_MEDIA_IMAGE_MODES, type NcMediaRuleSubject, ncMediaPolicyError, normalizeNcMediaPolicy, resolveNcMediaImage, ruleTriggerZoneIds, subjectHasPath, } from './notification/media-image.js';
|