@camstack/types 1.2.548 → 1.2.550

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/addon/addon-instance.d.ts +24 -0
  3. package/dist/addon/build-addon-route-provider.d.ts +2 -0
  4. package/dist/addon.js +5 -5
  5. package/dist/addon.mjs +5 -5
  6. package/dist/automation/index.d.ts +4 -3
  7. package/dist/automation/recipe.d.ts +12105 -604
  8. package/dist/automation/scheduler.d.ts +7 -0
  9. package/dist/automation/step-runner.d.ts +70 -0
  10. package/dist/automation/trace.d.ts +252 -145
  11. package/dist/automation/wait-until.d.ts +32 -0
  12. package/dist/automation/when-site.d.ts +1 -1
  13. package/dist/capabilities/accessories.cap.d.ts +1 -1
  14. package/dist/capabilities/actions.cap.d.ts +1 -178
  15. package/dist/capabilities/addon-routes.cap.d.ts +3 -0
  16. package/dist/capabilities/battery.cap.d.ts +2 -2
  17. package/dist/capabilities/capability-definition.d.ts +47 -1
  18. package/dist/capabilities/climate-control.cap.d.ts +8 -1
  19. package/dist/capabilities/core-blocks.cap.d.ts +119 -8723
  20. package/dist/capabilities/customize-catalog.d.ts +3 -1
  21. package/dist/capabilities/customize-spec.d.ts +26 -2
  22. package/dist/capabilities/device-manager.cap.d.ts +6 -0
  23. package/dist/capabilities/event-emitter.cap.d.ts +99 -3
  24. package/dist/capabilities/event-vocabulary.d.ts +99 -0
  25. package/dist/capabilities/fan-control.cap.d.ts +248 -0
  26. package/dist/capabilities/fan-presets.cap.d.ts +172 -536
  27. package/dist/capabilities/group-active.cap.d.ts +1 -1
  28. package/dist/capabilities/group-commands.cap.d.ts +1 -1
  29. package/dist/capabilities/group-status.cap.d.ts +1 -1
  30. package/dist/capabilities/heating-valve.cap.d.ts +1 -1
  31. package/dist/capabilities/hero-layout.cap.d.ts +2 -0
  32. package/dist/capabilities/humidifier.cap.d.ts +5 -0
  33. package/dist/capabilities/humidity-sensor.cap.d.ts +1 -1
  34. package/dist/capabilities/index.d.ts +5 -4
  35. package/dist/capabilities/media-player.cap.d.ts +7 -0
  36. package/dist/capabilities/oauth-integration.cap.d.ts +8 -0
  37. package/dist/capabilities/pet-fountain.cap.d.ts +5 -0
  38. package/dist/capabilities/power-meter.cap.d.ts +5 -5
  39. package/dist/capabilities/power-source.cap.d.ts +5 -0
  40. package/dist/capabilities/running-state.cap.d.ts +2 -2
  41. package/dist/capabilities/schedulers.cap.d.ts +1 -178
  42. package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
  43. package/dist/capabilities/switch.cap.d.ts +1 -1
  44. package/dist/capabilities/temperature-sensor.cap.d.ts +1 -1
  45. package/dist/capabilities/timed-run.cap.d.ts +19 -5
  46. package/dist/capabilities/user-management.cap.d.ts +4 -0
  47. package/dist/capabilities/water-heater.cap.d.ts +7 -0
  48. package/dist/client.js +7 -11
  49. package/dist/client.mjs +7 -11
  50. package/dist/{composed-stable-id-DrGLxjVF.js → composed-stable-id-CDNLq7Y8.js} +27 -10
  51. package/dist/{composed-stable-id-DFNyOFzz.mjs → composed-stable-id-CPp3votu.mjs} +27 -10
  52. package/dist/composition/composition-report.d.ts +6 -0
  53. package/dist/composition/evaluate-field.d.ts +7 -0
  54. package/dist/composition/field-kinds.d.ts +12 -1
  55. package/dist/composition/helpers/index.d.ts +1 -1
  56. package/dist/composition/helpers/source-pick.d.ts +0 -5
  57. package/dist/composition/power-source-link.d.ts +15 -0
  58. package/dist/composition/state-fields.d.ts +2 -0
  59. package/dist/composition/validate-composition.d.ts +15 -1
  60. package/dist/device/base-device-provider.d.ts +13 -0
  61. package/dist/device/device-control-resolution.d.ts +1 -33
  62. package/dist/device/device-kind.d.ts +36 -0
  63. package/dist/device/device-management.d.ts +3 -0
  64. package/dist/device/device-type.d.ts +27 -10
  65. package/dist/device/hero/hero-fragment.d.ts +2 -0
  66. package/dist/device/hero/hero-layout.d.ts +1 -3
  67. package/dist/device/hero/hero-look.d.ts +18 -12
  68. package/dist/device/hero/hero-scene.d.ts +9 -3
  69. package/dist/device/index.d.ts +2 -1
  70. package/dist/device/power-switch.d.ts +82 -0
  71. package/dist/device/schema-fields.d.ts +10 -1
  72. package/dist/generated/addon-api.d.ts +7 -0
  73. package/dist/generated/addon-cap-facts.d.ts +1 -1
  74. package/dist/generated/cap-input-defaults.d.ts +1 -1
  75. package/dist/generated/collection-array-methods.d.ts +1 -1
  76. package/dist/generated/customize-catalog.d.ts +257 -8
  77. package/dist/generated/method-access-map.d.ts +1 -1
  78. package/dist/generated/method-device-selectors.d.ts +1 -1
  79. package/dist/{implemented-methods-M5aguGon.mjs → implemented-methods-5YMDeE3f.mjs} +1 -1
  80. package/dist/{implemented-methods-8AU92riC.js → implemented-methods-Cj65uy2F.js} +1 -1
  81. package/dist/index.d.ts +11 -6
  82. package/dist/index.js +2386 -494
  83. package/dist/index.mjs +2312 -488
  84. package/dist/interfaces/addon-routes.d.ts +13 -0
  85. package/dist/interfaces/config-ui.d.ts +15 -24
  86. package/dist/node.js +2 -2
  87. package/dist/node.mjs +2 -2
  88. package/dist/{sleep-D_NpiLFP.mjs → sleep-D0roI_CZ.mjs} +50 -1
  89. package/dist/{sleep-vzHEmsrO.js → sleep-dcR4vBFG.js} +50 -1
  90. package/package.json +1 -1
@@ -20,7 +20,7 @@ export declare const groupActiveCapability: {
20
20
  readonly scope: 'device';
21
21
  readonly deviceNative: true;
22
22
  readonly mode: 'singleton';
23
- readonly deviceTypes: readonly [DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate, DeviceType.Thermostat];
23
+ readonly deviceTypes: readonly [DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate];
24
24
  readonly methods: {};
25
25
  readonly status: {
26
26
  readonly schema: z.ZodObject<{
@@ -25,7 +25,7 @@ export declare const groupCommandsCapability: {
25
25
  readonly scope: 'device';
26
26
  readonly deviceNative: true;
27
27
  readonly mode: 'singleton';
28
- readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate];
28
+ readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate];
29
29
  readonly methods: {};
30
30
  readonly status: {
31
31
  readonly schema: z.ZodObject<{
@@ -18,7 +18,7 @@ export declare const groupStatusCapability: {
18
18
  readonly scope: 'device';
19
19
  readonly deviceNative: true;
20
20
  readonly mode: 'singleton';
21
- readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate];
21
+ readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate];
22
22
  readonly methods: {};
23
23
  readonly status: {
24
24
  readonly schema: z.ZodObject<{
@@ -11,7 +11,7 @@ export declare const heatingValveCapability: {
11
11
  readonly scope: 'device';
12
12
  readonly deviceNative: true;
13
13
  readonly mode: 'singleton';
14
- readonly deviceTypes: readonly [DeviceType.Thermostat];
14
+ readonly deviceTypes: readonly [DeviceType.Climate];
15
15
  readonly methods: {};
16
16
  readonly status: {
17
17
  readonly schema: z.ZodObject<{
@@ -782,8 +782,10 @@ export declare const heroLayoutCapability: {
782
782
  }>;
783
783
  }, z.core.$strip>>;
784
784
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
785
+ /** The fixed rows of a kind: the type, refined by the role (D1033 — a heater is a switch). */
785
786
  readonly getLayout: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
786
787
  deviceType: z.ZodString;
788
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
787
789
  }, z.core.$strip>, z.ZodObject<{
788
790
  type: z.ZodString;
789
791
  rows: z.ZodArray<z.ZodEnum<{
@@ -34,6 +34,11 @@ export declare const humidifierCapability: {
34
34
  readonly deviceNative: true;
35
35
  readonly mode: 'singleton';
36
36
  readonly deviceTypes: readonly [DeviceType.Humidifier];
37
+ readonly power: {
38
+ readonly kind: 'field';
39
+ readonly field: 'on';
40
+ readonly set: 'setOn';
41
+ };
37
42
  readonly methods: {
38
43
  readonly setOn: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
39
44
  deviceId: z.ZodNumber;
@@ -19,7 +19,7 @@ export declare const humiditySensorCapability: {
19
19
  readonly scope: 'device';
20
20
  readonly deviceNative: true;
21
21
  readonly mode: 'singleton';
22
- readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Thermostat];
22
+ readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Climate];
23
23
  readonly methods: {};
24
24
  readonly status: {
25
25
  readonly schema: z.ZodObject<{
@@ -36,7 +36,7 @@ export { BrokerGetStateInputSchema, BrokerPublishInputSchema, BrokerRegistryStat
36
36
  export { cameraPipelineConfigCapability, type ICameraPipelineConfigProvider, } from './camera-pipeline-config.cap.js';
37
37
  export { cameraStreamsCapability, type ICameraStreamsProvider, type PickedCamStream, PickedCamStreamSchema, type PickStreamPreferences, PickStreamPreferencesSchema, type PickStreamRequirements, PickStreamRequirementsSchema, type StreamCodec, StreamCodecSchema, } from './camera-streams.cap.js';
38
38
  export { emitsCollectionSelector, extractNestedAddonId, isArrayOutputSchema, isCollectionArrayMethod, isObjectInput, isVoidInput, kebabToCamel, looseSchema, objectInputDeclaresAddonId, objectInputDeclaresRequiredDeviceId, procedureAuthKey, resolveMethodAuth, } from './cap-router-predicates.js';
39
- export type { CapabilityDefinition, CapabilityEventSchema, CapabilityMethodAuth, CapabilityMethodCaller, CapabilityMethodKind, CapabilityMethodOptions, CapabilityMethodSchema, CapabilityMountHint, CapabilityMountKind, CapabilityStatusItemArray, CapabilityStatusKind, CapabilityStatusSchema, CapCaller, DeviceConfigDerivedFormUi, DeviceConfigSpec, DeviceConfigUiSpec, DeviceConfigWidgetUi, DeviceSettingsContribution, InferDeviceProxyCap, InferEvents, InferName, InferNativeProvider, InferProvider, InferRuntimeState, CapabilityHistory, CapabilityHistoryField, CapabilityHistoryItems, HistoryUnit, ProviderKind, RuntimeStateDurability, UiContribution, UiContributionKind, UiContributionRemote, } from './capability-definition.js';
39
+ export type { CapabilityDefinition, CapabilityEventSchema, CapabilityMethodAuth, CapabilityMethodCaller, CapabilityMethodKind, CapabilityMethodOptions, CapabilityMethodSchema, CapabilityMountHint, CapabilityMountKind, CapabilityStatusItemArray, CapabilityStatusKind, CapabilityStatusSchema, CapCaller, DeviceConfigDerivedFormUi, DeviceConfigSpec, DeviceConfigUiSpec, DeviceConfigWidgetUi, DeviceSettingsContribution, InferDeviceProxyCap, InferEvents, InferName, InferNativeProvider, InferProvider, InferRuntimeState, CapabilityHistory, CapabilityHistoryField, CapabilityPowerHint, PowerHintField, PowerHintMethods, PowerHintMode, CapabilityHistoryItems, HistoryUnit, ProviderKind, RuntimeStateDurability, UiContribution, UiContributionKind, UiContributionRemote, } from './capability-definition.js';
40
40
  export { DEFAULT_RUNTIME_STATE_DURABILITY, HISTORY_DEFAULT_MIN_INTERVAL_MS, HISTORY_UNIT_LABELS, historyItemFieldPath, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, event, expandCapMethods, isDeviceConfigCap, method, optionalMethod, PROVIDER_PIN_FIELD, resolveCapMount, } from './capability-definition.js';
41
41
  export { COMPOSER_RUNNER_ID, type ComposerApplyInput, ComposerApplyInputSchema, type ComposerApplyResult, ComposerApplyResultSchema, type ComposerBlock, ComposerBlockSchema, type ComposerBlockVerdict, ComposerBlockVerdictSchema, type ComposerUnreadableBlock, ComposerUnreadableBlockSchema, composerCapability, type IComposerProvider, type UnreleasedClaim, UnreleasedClaimSchema, } from './composer.cap.js';
42
42
  export { CORE_BLOCK_ADDON_PREFIX, CORE_BLOCKS_ADDON_ID, type CompositionBlockInput, CompositionBlockInputSchema, type CompositionBlockPatch, type CompositionCustomizationRead, CompositionCustomizationReadSchema, type CompositionGetRead, CompositionGetReadSchema, type CompositionListRead, CompositionListReadSchema, type CompositionStateRead, CompositionStateReadSchema, type CompositionView, CompositionViewSchema, type CoreBlock, type CoreBlockCompileInput, CoreBlockCompileInputSchema, type CoreBlockCompileResult, CoreBlockCompileResultSchema, type CoreBlockFiles, CoreBlockFilesSchema, type CoreBlockInput, CoreBlockInputFieldsSchema, CoreBlockInputSchema, type CoreBlockPlacement, CoreBlockPlacementSchema, CoreBlockSchema, type CoreBlockSource, type CoreBlockSourceKind, CoreBlockSourceSchema, type CoreBlockStatus, CoreBlockStatusSchema, coreBlockAddonId, coreBlockComposition, coreBlockIdFromAddonId, coreBlockSourceKind, coreBlocksCapability, DEFAULT_CORE_BLOCK_ENTRY, type ICoreBlocksProvider, normalizeCoreBlockWrite, resolveCoreBlockEntry, resolveCoreBlockFiles, } from './core-blocks.cap.js';
@@ -55,7 +55,7 @@ export { DEVICE_HISTORY_ENERGY_KEY, DEVICE_HISTORY_QUERY_MANY_MAX_ITEMS, DEVICE_
55
55
  export { type ApplianceRunDetail, ApplianceRunDetailSchema, DEVICE_RUNS_MAX_PAGE, type DeviceRun, type DeviceRunDetail, DeviceRunDetailSchema, type DeviceRunEnergyMethod, DeviceRunEnergyMethodSchema, type DeviceRunKind, DeviceRunKindSchema, type DeviceRunOutcome, DeviceRunOutcomeSchema, type DeviceRunPhase, DeviceRunPhaseSchema, DeviceRunSchema, type DeviceRunSource, DeviceRunSourceSchema, type DeviceRunState, DeviceRunStateSchema, type IDeviceRunsProvider, deviceRunsCapability, } from './device-runs.cap.js';
56
56
  export { DEVICE_TRANSITIONS_MAX_PAGE, DEVICE_TRANSITIONS_RECORD_BATCH_MAX, deviceTransitionsCapability, type IDeviceTransitionsProvider, type TransitionRecordResult, TransitionRecordResultSchema, type TransitionRefusalReason, TransitionRefusalReasonSchema, type TransitionsStatus, TransitionsStatusSchema, } from './device-transitions.cap.js';
57
57
  export { type DoNotDisturbStatus, DoNotDisturbStatusSchema, doNotDisturbCapability, type IDoNotDisturbProvider, } from './do-not-disturb.cap.js';
58
- export { type ITimedRunProvider, TIMED_RUN_DEVICE_TYPES, TIMED_RUN_LIMITS, type TimedRunActuator, TimedRunActuatorSchema, type TimedRunLimit, type TimedRunOptions, TimedRunOptionsSchema, type TimedRunQuickRun, TimedRunQuickRunSchema, type TimedRunRefusal, TimedRunRefusalSchema, type TimedRunResult, TimedRunResultSchema, type TimedRunSettingsPatch, TimedRunSettingsPatchSchema, type TimedRunStatus, TimedRunStatusSchema, type TimedRunUnit, TimedRunUnitSchema, timedRunCapability, timedRunLimitOf, timedRunMaxIn, timedRunQuickRun, timedRunRemaining, timedRunSeconds, } from './timed-run.cap.js';
58
+ export { type ITimedRunProvider, TIMED_RUN_DEVICE_TYPES, TIMED_RUN_DEVICE_ROLES, TIMED_RUN_HEATER_LIMIT, TIMED_RUN_PET_FOUNTAIN_LIMIT, type TimedRunActuator, TimedRunActuatorSchema, type TimedRunLimit, type TimedRunOptions, TimedRunOptionsSchema, type TimedRunQuickRun, TimedRunQuickRunSchema, type TimedRunRefusal, TimedRunRefusalSchema, type TimedRunResult, TimedRunResultSchema, type TimedRunSettingsPatch, TimedRunSettingsPatchSchema, type TimedRunStatus, TimedRunStatusSchema, type TimedRunUnit, TimedRunUnitSchema, timedRunCapability, timedRunLimitOf, timedRunMaxIn, timedRunQuickRun, timedRunRemaining, timedRunSeconds, } from './timed-run.cap.js';
59
59
  export { type DeviceCaStatus, DeviceCaStatusSchema, type DeviceCertificateSettings, DeviceCertificateSettingsSchema, deviceCredentialsCapability, type IDeviceCredentialsProvider, } from './device-credentials.cap.js';
60
60
  export { type HttpsLeafInfo, HttpsLeafInfoSchema, type INodeCertificatesProvider, type MeshLeafInfo, MeshLeafInfoSchema, type NodeHttpsState, NodeHttpsStateSchema, nodeCertificatesCapability, } from './node-certificates.cap.js';
61
61
  export { type IKeychainAdminProvider, KEYCHAIN_RESET_CONFIRMATION, type KeychainAdminSecret, KeychainAdminSecretSchema, type KeychainAuditAction, KeychainAuditActionSchema, type KeychainAuditEntry, KeychainAuditEntrySchema, type KeychainKeySource, type KeychainKeySourceKind, KeychainKeySourceKindSchema, KeychainKeySourceSchema, KEYCHAIN_RESET_TRIGGER_ACTOR, type KeychainResetRecord, KeychainResetRecordSchema, type KeychainSecretUsage, KeychainSecretUsageSchema, type KeychainStatus, KeychainStatusSchema, keychainAdminCapability, type SystemHeldSecretName, SystemHeldSecretNameSchema, } from './keychain-admin.cap.js';
@@ -170,7 +170,7 @@ export { type AutomationControlStatus, AutomationControlStatusSchema, automation
170
170
  export { type BatteryStatus, BatteryStatusSchema, batteryCapability, type IBatteryProvider, } from './battery.cap.js';
171
171
  export { type BinaryStatus, BinaryStatusSchema, binaryCapability, type IBinaryProvider, } from './binary.cap.js';
172
172
  export { type BrightnessStatus, BrightnessStatusSchema, brightnessCapability, type IBrightnessProvider, } from './brightness.cap.js';
173
- export { FAN_CAPTURE_FIELDS, FAN_CAPTURE_GROUPS, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, FAN_PRESET_STEPS_MAX, type FanCaptureField, FanCaptureFieldSchema, type FanCaptureGroup, FanCaptureGroupSchema, type FanCaptureItem, FanCaptureItemSchema, type FanCaptureOmission, FanCaptureOmissionSchema, type FanPreset, type FanPresetApplyResult, FanPresetApplyResultSchema, type FanPresetCaptureResult, FanPresetCaptureResultSchema, FanPresetSchema, type FanPresetStepResult, FanPresetStepResultSchema, type FanPresetsRefusal, FanPresetsRefusalSchema, type FanPresetsSetResult, FanPresetsSetResultSchema, type IFanPresetsProvider, fanPresetsCapability, } from './fan-presets.cap.js';
173
+ export { FAN_CAPTURE_FIELDS, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, type FanCaptureField, FanCaptureFieldSchema, type FanCaptureOmission, FanCaptureOmissionSchema, type FanPreset, type FanPresetApplyResult, FanPresetApplyResultSchema, type FanPresetAxis, FanPresetAxisSchema, type FanPresetCaptureResult, FanPresetCaptureResultSchema, type FanPresetFieldResult, FanPresetFieldResultSchema, FanPresetSchema, type FanPresetState, FanPresetStateSchema, type FanPresetsRefusal, FanPresetsRefusalSchema, type FanPresetsSetResult, FanPresetsSetResultSchema, type IFanPresetsProvider, fanPresetsCapability, } from './fan-presets.cap.js';
174
174
  export { type IRemoteProvider, REMOTE_CONFIG_REFUSALS, REMOTE_MAX_REPEAT, REMOTE_MEDIA_COMMANDS, REMOTE_REFUSAL_REASONS, type RemoteBoundCommand, type RemoteCommandList, RemoteCommandListSchema, RemoteBoundCommandSchema, type RemoteMediaCommand, type RemoteMediaCommandResult, RemoteMediaCommandResultSchema, RemoteMediaCommandSchema, type RemoteRefusalReason, RemoteRefusalReasonSchema, type RemoteSendResult, RemoteSendResultSchema, type RemoteSetConfigResult, RemoteSetConfigResultSchema, remoteCapability, } from './remote.cap.js';
175
175
  export { HERO_ROW_MODELS_MAX, heroLayoutCapability, type HeroLayoutRows, HeroLayoutRowsSchema, type IHeroLayoutProvider, } from './hero-layout.cap.js';
176
176
  export { type ITemplateProvider, TEMPLATE_WRITE_REFUSALS, type TemplateDeleteResult, TemplateDeleteResultSchema, type TemplateRecord, TemplateRecordSchema, type TemplateUser, TemplateUserSchema, type TemplateWriteResult, TemplateWriteResultSchema, templateCapability, } from './template.cap.js';
@@ -199,8 +199,9 @@ export { type DishwasherAccess, DishwasherAccessSchema, type DishwasherAvailabil
199
199
  export { DOORBELL_RISE_DEBOUNCE_MS, type DoorbellPressEvent, DoorbellPressEventSchema, type DoorbellStatus, DoorbellStatusSchema, doorbellCapability, type IDoorbellProvider, } from './doorbell.cap.js';
200
200
  export { type EnumSensorDateTimeFormat, EnumSensorDateTimeFormatSchema, type EnumSensorStatus, EnumSensorStatusSchema, enumSensorCapability, type IEnumSensorProvider, } from './enum-sensor.cap.js';
201
201
  export { type EventEmitterStatus, EventEmitterStatusSchema, type EventFire, EventFireSchema, eventEmitterCapability, type IEventEmitterProvider, } from './event-emitter.cap.js';
202
+ export { EVENT_VOCABULARY_KINDS, type EventVocabularyCarrier, type EventVocabularyEntry, EventVocabularyEntrySchema, type EventVocabularyField, EventVocabularyFieldSchema, type EventVocabularyKind, EventVocabularyKindSchema, type EventVocabularySource, EventVocabularySourceSchema, conventionalEventVocabulary, eventTypesOfVocabulary, findVocabularyEntry, plainEventVocabulary, readEventVocabulary, } from './event-vocabulary.js';
202
203
  export { type FaceCluster, type FaceInfo, type FaceSortDirection, type FaceSortField, faceGalleryCapability, type Identity, type IdentitySampleAudit, type IdentitySampleAuditRow, type IdentitySampleInfo, type IFaceGalleryProvider, type ListRecentFacesInput, type SuggestFaceClustersInput, } from './face-gallery.cap.js';
203
- export { type FanControlStatus, FanControlStatusSchema, type FanDirection, FanDirectionSchema, fanControlCapability, type IFanControlProvider, } from './fan-control.cap.js';
204
+ export { anyAxisOscillating, FAN_OSCILLATION_AXES, FAN_OSCILLATION_AXIS_LIMITS, FAN_OSCILLATION_AXIS_REFUSALS, FAN_OSCILLATION_AXIS_SETTABLE, fanAxisPath, type FanControlStatus, FanControlStatusSchema, type FanDirection, FanDirectionSchema, type FanOscillationAxes, FanOscillationAxesSchema, type FanOscillationAxis, type FanOscillationAxisField, FanOscillationAxisFieldSchema, type FanOscillationAxisLimit, type FanOscillationAxisName, FanOscillationAxisNameSchema, type FanOscillationAxisRefusal, FanOscillationAxisRefusalSchema, type FanOscillationAxisResult, FanOscillationAxisResultSchema, FanOscillationAxisSchema, fanControlCapability, type IFanControlProvider, type SetOscillationAxisInput, SetOscillationAxisInputSchema, } from './fan-control.cap.js';
204
205
  export { type FeatureProbeStatus, FeatureProbeStatusSchema, featureProbeCapability, type IFeatureProbeProvider, } from './feature-probe.cap.js';
205
206
  export { type FloodStatus, FloodStatusSchema, floodCapability, type IFloodProvider, } from './flood.cap.js';
206
207
  export { type GasStatus, GasStatusSchema, gasCapability, type IGasProvider } from './gas.cap.js';
@@ -117,6 +117,13 @@ export declare const mediaPlayerCapability: {
117
117
  readonly deviceNative: true;
118
118
  readonly mode: 'singleton';
119
119
  readonly deviceTypes: readonly [DeviceType.MediaPlayer];
120
+ readonly power: {
121
+ readonly kind: 'methods';
122
+ readonly field: 'state';
123
+ readonly offValues: readonly ["off", "standby"];
124
+ readonly on: 'turnOn';
125
+ readonly off: 'turnOff';
126
+ };
120
127
  readonly methods: {
121
128
  readonly turnOn: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
122
129
  deviceId: z.ZodNumber;
@@ -133,6 +133,10 @@ declare const OauthIntegrationDescriptorSchema: z.ZodObject<{
133
133
  requiresPkce: z.ZodOptional<z.ZodBoolean>;
134
134
  hubUrl: z.ZodOptional<z.ZodString>;
135
135
  refreshTokenTtlSec: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"never">]>>;
136
+ instances: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
+ id: z.ZodString;
138
+ displayName: z.ZodString;
139
+ }, z.core.$strip>>>;
136
140
  }, z.core.$strip>;
137
141
  export declare const oauthIntegrationCapability: {
138
142
  readonly name: 'oauth-integration';
@@ -205,6 +209,10 @@ export declare const oauthIntegrationCapability: {
205
209
  requiresPkce: z.ZodOptional<z.ZodBoolean>;
206
210
  hubUrl: z.ZodOptional<z.ZodString>;
207
211
  refreshTokenTtlSec: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"never">]>>;
212
+ instances: z.ZodOptional<z.ZodArray<z.ZodObject<{
213
+ id: z.ZodString;
214
+ displayName: z.ZodString;
215
+ }, z.core.$strip>>>;
208
216
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
209
217
  };
210
218
  };
@@ -50,6 +50,11 @@ export declare const petFountainCapability: {
50
50
  readonly deviceNative: true;
51
51
  readonly mode: 'singleton';
52
52
  readonly deviceTypes: readonly [DeviceType.PetFountain];
53
+ readonly power: {
54
+ readonly kind: 'field';
55
+ readonly field: 'pumpRunning';
56
+ readonly set: 'setPump';
57
+ };
53
58
  readonly methods: {
54
59
  /** Start or stop the pump. */
55
60
  readonly setPump: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
@@ -31,7 +31,7 @@ export declare const powerMeterCapability: {
31
31
  readonly scope: 'device';
32
32
  readonly deviceNative: true;
33
33
  readonly mode: 'singleton';
34
- readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater];
34
+ readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder];
35
35
  readonly deviceConfig: {
36
36
  readonly ui: {
37
37
  readonly kind: 'widget';
@@ -126,7 +126,7 @@ export declare const powerMeterCapability: {
126
126
  readonly cap: 'power-meter';
127
127
  readonly stateField: string;
128
128
  };
129
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Thermostat | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Heater | DeviceType.Dryer)[];
129
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
130
130
  readonly apply: 'add';
131
131
  readonly path: string;
132
132
  readonly sources: readonly [{
@@ -152,7 +152,7 @@ export declare const powerMeterCapability: {
152
152
  readonly cap: 'power-meter';
153
153
  readonly stateField: string;
154
154
  };
155
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Thermostat | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Heater | DeviceType.Dryer)[];
155
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
156
156
  readonly apply: 'add';
157
157
  readonly path: string;
158
158
  readonly sources: readonly [{
@@ -178,7 +178,7 @@ export declare const powerMeterCapability: {
178
178
  readonly cap: 'power-meter';
179
179
  readonly stateField: string;
180
180
  };
181
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Thermostat | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Heater | DeviceType.Dryer)[];
181
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
182
182
  readonly apply: 'add';
183
183
  readonly path: string;
184
184
  readonly sources: readonly [{
@@ -204,7 +204,7 @@ export declare const powerMeterCapability: {
204
204
  readonly cap: 'power-meter';
205
205
  readonly stateField: string;
206
206
  };
207
- readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Thermostat | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Heater | DeviceType.Dryer)[];
207
+ readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
208
208
  readonly apply: 'add';
209
209
  readonly path: string;
210
210
  readonly sources: readonly [{
@@ -32,6 +32,7 @@ export declare const PowerSourceRefusalReasonSchema: z.ZodEnum<{
32
32
  "no-power-source": "no-power-source";
33
33
  "restart-in-progress": "restart-in-progress";
34
34
  "switch-call-failed": "switch-call-failed";
35
+ "switch-is-actuator": "switch-is-actuator";
35
36
  "switch-missing": "switch-missing";
36
37
  "switch-offline": "switch-offline";
37
38
  "switch-unknown": "switch-unknown";
@@ -45,6 +46,7 @@ export declare const PowerSourceActionResultSchema: z.ZodDiscriminatedUnion<[z.Z
45
46
  "no-power-source": "no-power-source";
46
47
  "restart-in-progress": "restart-in-progress";
47
48
  "switch-call-failed": "switch-call-failed";
49
+ "switch-is-actuator": "switch-is-actuator";
48
50
  "switch-missing": "switch-missing";
49
51
  "switch-offline": "switch-offline";
50
52
  "switch-unknown": "switch-unknown";
@@ -98,6 +100,7 @@ export declare const powerSourceCapability: {
98
100
  "no-power-source": "no-power-source";
99
101
  "restart-in-progress": "restart-in-progress";
100
102
  "switch-call-failed": "switch-call-failed";
103
+ "switch-is-actuator": "switch-is-actuator";
101
104
  "switch-missing": "switch-missing";
102
105
  "switch-offline": "switch-offline";
103
106
  "switch-unknown": "switch-unknown";
@@ -116,6 +119,7 @@ export declare const powerSourceCapability: {
116
119
  "no-power-source": "no-power-source";
117
120
  "restart-in-progress": "restart-in-progress";
118
121
  "switch-call-failed": "switch-call-failed";
122
+ "switch-is-actuator": "switch-is-actuator";
119
123
  "switch-missing": "switch-missing";
120
124
  "switch-offline": "switch-offline";
121
125
  "switch-unknown": "switch-unknown";
@@ -134,6 +138,7 @@ export declare const powerSourceCapability: {
134
138
  "no-power-source": "no-power-source";
135
139
  "restart-in-progress": "restart-in-progress";
136
140
  "switch-call-failed": "switch-call-failed";
141
+ "switch-is-actuator": "switch-is-actuator";
137
142
  "switch-missing": "switch-missing";
138
143
  "switch-offline": "switch-offline";
139
144
  "switch-unknown": "switch-unknown";
@@ -23,7 +23,7 @@ export type RunningStateStatus = z.infer<typeof RunningStateStatusSchema>;
23
23
  * The cap itself stays on every type — a camera can still report running
24
24
  * natively; it just has no card.
25
25
  */
26
- export declare const RUNNING_CUSTOMIZE_DEVICE_TYPES: readonly [DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater];
26
+ export declare const RUNNING_CUSTOMIZE_DEVICE_TYPES: readonly [DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder];
27
27
  export declare const runningStateCapability: {
28
28
  readonly name: 'running-state';
29
29
  readonly scope: 'device';
@@ -92,7 +92,7 @@ export declare const runningStateCapability: {
92
92
  readonly cap: 'running-state';
93
93
  readonly stateField: 'running';
94
94
  };
95
- readonly deviceTypes: readonly [DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater];
95
+ readonly deviceTypes: readonly [DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder];
96
96
  readonly apply: 'add';
97
97
  readonly path: 'running';
98
98
  readonly sources: readonly [{
@@ -1491,184 +1491,7 @@ export declare const schedulersCapability: {
1491
1491
  readonly getTraces: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1492
1492
  schedulerId: z.ZodString;
1493
1493
  }, z.core.$strip>, z.ZodObject<{
1494
- traces: z.ZodArray<z.ZodObject<{
1495
- runId: z.ZodString;
1496
- startedAt: z.ZodNumber;
1497
- endedAt: z.ZodNumber;
1498
- trigger: z.ZodObject<{
1499
- kind: z.ZodString;
1500
- path: z.ZodOptional<z.ZodString>;
1501
- outcome: z.ZodEnum<{
1502
- fail: "fail";
1503
- pass: "pass";
1504
- }>;
1505
- reason: z.ZodString;
1506
- vars: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>;
1507
- hold: z.ZodOptional<z.ZodObject<{
1508
- phase: z.ZodEnum<{
1509
- cancelled: "cancelled";
1510
- fired: "fired";
1511
- pending: "pending";
1512
- reseeded: "reseeded";
1513
- }>;
1514
- ms: z.ZodNumber;
1515
- mode: z.ZodEnum<{
1516
- held: "held";
1517
- stable: "stable";
1518
- }>;
1519
- since: z.ZodOptional<z.ZodNumber>;
1520
- deadline: z.ZodOptional<z.ZodNumber>;
1521
- }, z.core.$strip>>;
1522
- }, z.core.$strip>;
1523
- conditions: z.ZodArray<z.ZodObject<{
1524
- path: z.ZodString;
1525
- kind: z.ZodEnum<{
1526
- all: "all";
1527
- any: "any";
1528
- condition: "condition";
1529
- detection: "detection";
1530
- "device-becomes": "device-becomes";
1531
- "device-event": "device-event";
1532
- "device-is": "device-is";
1533
- expression: "expression";
1534
- interval: "interval";
1535
- manual: "manual";
1536
- not: "not";
1537
- schedule: "schedule";
1538
- stationary: "stationary";
1539
- "stationary-present": "stationary-present";
1540
- "time-is": "time-is";
1541
- "triggered-by": "triggered-by";
1542
- }>;
1543
- outcome: z.ZodEnum<{
1544
- fail: "fail";
1545
- "not-evaluated": "not-evaluated";
1546
- pass: "pass";
1547
- }>;
1548
- reason: z.ZodString;
1549
- deviceId: z.ZodOptional<z.ZodNumber>;
1550
- cap: z.ZodOptional<z.ZodString>;
1551
- fieldPath: z.ZodOptional<z.ZodString>;
1552
- operator: z.ZodOptional<z.ZodString>;
1553
- expected: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>;
1554
- observed: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>;
1555
- }, z.core.$strip>>;
1556
- verdict: z.ZodOptional<z.ZodObject<{
1557
- mode: z.ZodDiscriminatedUnion<[z.ZodObject<{
1558
- mode: z.ZodLiteral<"single">;
1559
- }, z.core.$strip>, z.ZodObject<{
1560
- mode: z.ZodLiteral<"restart">;
1561
- }, z.core.$strip>, z.ZodObject<{
1562
- mode: z.ZodLiteral<"queued">;
1563
- max: z.ZodNumber;
1564
- }, z.core.$strip>, z.ZodObject<{
1565
- mode: z.ZodLiteral<"parallel">;
1566
- max: z.ZodNumber;
1567
- }, z.core.$strip>, z.ZodObject<{
1568
- mode: z.ZodLiteral<"cooldown">;
1569
- minutes: z.ZodNumber;
1570
- }, z.core.$strip>], "mode">;
1571
- decision: z.ZodEnum<{
1572
- bypass: "bypass";
1573
- cooldown: "cooldown";
1574
- drop: "drop";
1575
- queued: "queued";
1576
- restart: "restart";
1577
- run: "run";
1578
- }>;
1579
- reason: z.ZodString;
1580
- }, z.core.$strip>>;
1581
- steps: z.ZodArray<z.ZodObject<{
1582
- path: z.ZodString;
1583
- kind: z.ZodString;
1584
- cap: z.ZodOptional<z.ZodString>;
1585
- method: z.ZodOptional<z.ZodString>;
1586
- actionId: z.ZodOptional<z.ZodString>;
1587
- deviceId: z.ZodOptional<z.ZodNumber>;
1588
- devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1589
- deviceId: z.ZodNumber;
1590
- outcome: z.ZodEnum<{
1591
- error: "error";
1592
- ok: "ok";
1593
- }>;
1594
- message: z.ZodOptional<z.ZodString>;
1595
- }, z.core.$strip>>>;
1596
- startedAt: z.ZodOptional<z.ZodNumber>;
1597
- endedAt: z.ZodOptional<z.ZodNumber>;
1598
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>;
1599
- templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
1600
- condition: z.ZodOptional<z.ZodEnum<{
1601
- false: "false";
1602
- true: "true";
1603
- unknown: "unknown";
1604
- }>>;
1605
- conditionReason: z.ZodOptional<z.ZodString>;
1606
- outcome: z.ZodEnum<{
1607
- empty: "empty";
1608
- error: "error";
1609
- "not-run": "not-run";
1610
- ok: "ok";
1611
- skipped: "skipped";
1612
- }>;
1613
- message: z.ZodOptional<z.ZodString>;
1614
- else: z.ZodOptional<z.ZodArray<z.ZodObject<{
1615
- path: z.ZodString;
1616
- kind: z.ZodString;
1617
- cap: z.ZodOptional<z.ZodString>;
1618
- method: z.ZodOptional<z.ZodString>;
1619
- actionId: z.ZodOptional<z.ZodString>;
1620
- deviceId: z.ZodOptional<z.ZodNumber>;
1621
- devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1622
- deviceId: z.ZodNumber;
1623
- outcome: z.ZodEnum<{
1624
- error: "error";
1625
- ok: "ok";
1626
- }>;
1627
- message: z.ZodOptional<z.ZodString>;
1628
- }, z.core.$strip>>>;
1629
- startedAt: z.ZodOptional<z.ZodNumber>;
1630
- endedAt: z.ZodOptional<z.ZodNumber>;
1631
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>;
1632
- templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
1633
- condition: z.ZodOptional<z.ZodEnum<{
1634
- false: "false";
1635
- true: "true";
1636
- unknown: "unknown";
1637
- }>>;
1638
- conditionReason: z.ZodOptional<z.ZodString>;
1639
- outcome: z.ZodEnum<{
1640
- empty: "empty";
1641
- error: "error";
1642
- "not-run": "not-run";
1643
- ok: "ok";
1644
- skipped: "skipped";
1645
- }>;
1646
- message: z.ZodOptional<z.ZodString>;
1647
- }, z.core.$strip>>>;
1648
- }, z.core.$strip>>;
1649
- outcome: z.ZodEnum<{
1650
- aborted: "aborted";
1651
- failed: "failed";
1652
- ran: "ran";
1653
- "skipped-conditions": "skipped-conditions";
1654
- "skipped-cooldown": "skipped-cooldown";
1655
- "skipped-overlap": "skipped-overlap";
1656
- "skipped-trigger": "skipped-trigger";
1657
- }>;
1658
- repeat: z.ZodNumber;
1659
- lastAt: z.ZodNumber;
1660
- scheduler: z.ZodOptional<z.ZodEnum<{
1661
- "condition-false": "condition-false";
1662
- done: "done";
1663
- failed: "failed";
1664
- "gave-up": "gave-up";
1665
- held: "held";
1666
- inactive: "inactive";
1667
- missed: "missed";
1668
- overridden: "overridden";
1669
- "suspended-manual": "suspended-manual";
1670
- }>>;
1671
- }, z.core.$strip>>;
1494
+ traces: z.ZodArray<z.ZodType<import("../index.js").AutomationRunTrace, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationRunTrace, unknown>>>;
1672
1495
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
1673
1496
  };
1674
1497
  };
@@ -72,6 +72,7 @@ declare const SsoBridgeClaimsSchema: z.ZodObject<{
72
72
  }, z.core.$strip>], "type">>>>;
73
73
  redirectUri: z.ZodOptional<z.ZodString>;
74
74
  integrationId: z.ZodOptional<z.ZodString>;
75
+ instanceId: z.ZodOptional<z.ZodString>;
75
76
  jti: z.ZodOptional<z.ZodString>;
76
77
  codeChallenge: z.ZodOptional<z.ZodString>;
77
78
  sessionId: z.ZodOptional<z.ZodString>;
@@ -172,6 +173,7 @@ export declare const ssoBridgeCapability: {
172
173
  }, z.core.$strip>], "type">>>>;
173
174
  redirectUri: z.ZodOptional<z.ZodString>;
174
175
  integrationId: z.ZodOptional<z.ZodString>;
176
+ instanceId: z.ZodOptional<z.ZodString>;
175
177
  jti: z.ZodOptional<z.ZodString>;
176
178
  codeChallenge: z.ZodOptional<z.ZodString>;
177
179
  sessionId: z.ZodOptional<z.ZodString>;
@@ -257,6 +259,7 @@ export declare const ssoBridgeCapability: {
257
259
  }, z.core.$strip>], "type">>>>;
258
260
  redirectUri: z.ZodOptional<z.ZodString>;
259
261
  integrationId: z.ZodOptional<z.ZodString>;
262
+ instanceId: z.ZodOptional<z.ZodString>;
260
263
  jti: z.ZodOptional<z.ZodString>;
261
264
  codeChallenge: z.ZodOptional<z.ZodString>;
262
265
  sessionId: z.ZodOptional<z.ZodString>;
@@ -18,7 +18,7 @@ export declare const switchCapability: {
18
18
  readonly scope: 'device';
19
19
  readonly deviceNative: true;
20
20
  readonly mode: 'singleton';
21
- readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Heater];
21
+ readonly deviceTypes: readonly [DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan];
22
22
  readonly methods: {
23
23
  readonly setState: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
24
24
  deviceId: z.ZodNumber;
@@ -23,7 +23,7 @@ export declare const temperatureSensorCapability: {
23
23
  readonly scope: 'device';
24
24
  readonly deviceNative: true;
25
25
  readonly mode: 'singleton';
26
- readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Thermostat];
26
+ readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Climate];
27
27
  readonly methods: {};
28
28
  readonly status: {
29
29
  readonly schema: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { DeviceType } from '../device/device-type.js';
2
+ import { DeviceRole, DeviceType } from '../device/device-type.js';
3
3
  import { type InferProvider } from './capability-definition.js';
4
4
  /**
5
5
  * timed-run - run a device for a chosen time, then stop it (D993).
@@ -16,7 +16,7 @@ import { type InferProvider } from './capability-definition.js';
16
16
  * retried in a loop - D49); a future one is re-armed.
17
17
  *
18
18
  * What a device may be run for, and for how long at most, is per device type
19
- * ({@link TIMED_RUN_LIMITS}): the maximum is a safety bound, not a preference,
19
+ * and role ({@link timedRunLimitOf}): the maximum is a safety bound, not a preference,
20
20
  * so a request above it is REFUSED with a typed reason, never clamped.
21
21
  */
22
22
  export declare const TimedRunUnitSchema: z.ZodEnum<{
@@ -39,10 +39,23 @@ export interface TimedRunLimit {
39
39
  /** The one-tap run, in `unit`, until the operator sets this device's own. */
40
40
  readonly quickRunDefault: number;
41
41
  }
42
- /** The longest run, per device type. Only these types are offered `timed-run`. */
43
- export declare const TIMED_RUN_LIMITS: Readonly<Partial<Record<DeviceType, TimedRunLimit>>>;
42
+ /** A plug-in heater (switch + `switch-heater`): up to 3 h, in minutes. */
43
+ export declare const TIMED_RUN_HEATER_LIMIT: TimedRunLimit;
44
+ /** A pet fountain's pump: up to 5 min, in seconds. */
45
+ export declare const TIMED_RUN_PET_FOUNTAIN_LIMIT: TimedRunLimit;
46
+ /**
47
+ * The device types `timed-run` may be offered on. A `switch` is narrowed by
48
+ * role ({@link TIMED_RUN_DEVICE_ROLES}): only a plug-in heater runs on a timer.
49
+ */
44
50
  export declare const TIMED_RUN_DEVICE_TYPES: readonly DeviceType[];
45
- export declare function timedRunLimitOf(deviceType: DeviceType): TimedRunLimit | null;
51
+ /** The roles that make a device of these types timed-run-able (D1033). */
52
+ export declare const TIMED_RUN_DEVICE_ROLES: Readonly<Partial<Record<DeviceType, readonly DeviceRole[]>>>;
53
+ /**
54
+ * The longest run of a device, by its type AND role (D1033): a `switch` is a
55
+ * heater only with role `switch-heater`, a pet fountain always is what it is.
56
+ * `null` - the device is not offered `timed-run`.
57
+ */
58
+ export declare function timedRunLimitOf(deviceType: string, role: string | null | undefined): TimedRunLimit | null;
46
59
  /**
47
60
  * Whole units left on an armed run. Minutes and seconds both ceil, and a run
48
61
  * that has not expired yet never reads as zero.
@@ -122,6 +135,7 @@ export declare const timedRunCapability: {
122
135
  readonly kind: 'wrapper';
123
136
  readonly defaultActive: true;
124
137
  readonly deviceTypes: readonly DeviceType[];
138
+ readonly deviceRoles: Readonly<Partial<Record<DeviceType, readonly DeviceRole[]>>>;
125
139
  readonly deviceConfig: {
126
140
  readonly ui: {
127
141
  readonly kind: 'derived-form';
@@ -202,6 +202,7 @@ declare const OauthSessionSummarySchema: z.ZodObject<{
202
202
  userId: z.ZodString;
203
203
  username: z.ZodString;
204
204
  integrationId: z.ZodString;
205
+ instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
206
  scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
206
207
  type: z.ZodLiteral<"category">;
207
208
  target: z.ZodEnum<{
@@ -750,6 +751,7 @@ export declare const userManagementCapability: {
750
751
  }, z.core.$strip>, "mutation">;
751
752
  readonly oauthIssueCode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
752
753
  integrationId: z.ZodString;
754
+ instanceId: z.ZodOptional<z.ZodString>;
753
755
  userId: z.ZodString;
754
756
  username: z.ZodString;
755
757
  scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -876,6 +878,7 @@ export declare const userManagementCapability: {
876
878
  }>>;
877
879
  includeLinked: z.ZodOptional<z.ZodBoolean>;
878
880
  }, z.core.$strip>], "type">>>;
881
+ instanceId: z.ZodOptional<z.ZodString>;
879
882
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
880
883
  readonly listExternalIdentities: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
881
884
  userId: z.ZodString;
@@ -908,6 +911,7 @@ export declare const userManagementCapability: {
908
911
  userId: z.ZodString;
909
912
  username: z.ZodString;
910
913
  integrationId: z.ZodString;
914
+ instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
911
915
  scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
912
916
  type: z.ZodLiteral<"category">;
913
917
  target: z.ZodEnum<{
@@ -33,6 +33,13 @@ export declare const waterHeaterCapability: {
33
33
  readonly deviceNative: true;
34
34
  readonly mode: 'singleton';
35
35
  readonly deviceTypes: readonly [DeviceType.WaterHeater];
36
+ readonly power: {
37
+ readonly kind: 'mode';
38
+ readonly field: 'operationMode';
39
+ readonly offValue: 'off';
40
+ readonly set: 'setOperationMode';
41
+ readonly lastField: 'lastActiveMode';
42
+ };
36
43
  readonly methods: {
37
44
  readonly setTargetTemp: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
38
45
  deviceId: z.ZodNumber;