@camstack/types 1.2.533 → 1.2.535
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 +33 -0
- package/dist/addon/base-addon.d.ts +1 -20
- package/dist/addon/notification-targets.d.ts +34 -9
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/addon-settings.cap.d.ts +0 -41
- package/dist/capabilities/capability-definition.d.ts +26 -2
- package/dist/capabilities/heat-pump-control.cap.d.ts +83 -0
- package/dist/capabilities/heat-pump-status.cap.d.ts +517 -0
- package/dist/capabilities/hero-layout.cap.d.ts +46 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/capabilities/integration-instances.cap.d.ts +22 -7
- package/dist/capabilities/integrations.cap.d.ts +13 -0
- package/dist/capabilities/smtp-provider.cap.d.ts +2 -10
- package/dist/client.js +24 -7
- package/dist/client.mjs +24 -7
- package/dist/{composition-BjHGoicU.js → composition-BxalDSTt.js} +1 -1
- package/dist/{composition-CXCX78IR.mjs → composition-C6TZGqUb.mjs} +1 -1
- package/dist/device/cap-vocabulary/entries/heat-pump.d.ts +4 -0
- package/dist/device/device-type.d.ts +5 -1
- package/dist/device/hero/build-hero-model.d.ts +2 -0
- package/dist/device/hero/climate-view.d.ts +4 -0
- package/dist/device/hero/hero-contributions-heat-pump.d.ts +2 -0
- package/dist/device/hero/hero-fragment.d.ts +4 -0
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +6 -0
- package/dist/device/hero/hero-model.d.ts +80 -1
- package/dist/device/hero/hero-row.d.ts +5 -0
- package/dist/device/hero/hero-scene.d.ts +4 -1
- package/dist/device/hero/index.d.ts +1 -1
- package/dist/{device-type-BaYa0UGS.js → device-type-BfvqqzRp.js} +4 -0
- package/dist/{device-type-CbDhVwFP.mjs → device-type-DTTZKB2I.mjs} +4 -0
- package/dist/generated/addon-api.d.ts +122 -17
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +5 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +2 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/i18n/camstack-error.d.ts +8 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1580 -208
- package/dist/index.mjs +1560 -208
- package/dist/interfaces/addon.d.ts +0 -6
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-ComzlWyT.js → sleep-CCAQ_PEp.js} +278 -99
- package/dist/{sleep-CS5Xp1iQ.mjs → sleep-DnVqHJc4.mjs} +267 -100
- package/package.json +1 -1
- package/dist/addon/integration-instance-ref.d.ts +0 -21
|
@@ -206,6 +206,8 @@ export { type GasStatus, GasStatusSchema, gasCapability, type IGasProvider } fro
|
|
|
206
206
|
export { type GroupCommandResult, GroupCommandResultSchema, type GroupCommands, GroupCommandsSchema, groupCommandsCapability, type IGroupCommandsProvider, } from './group-commands.cap.js';
|
|
207
207
|
export { type GroupActive, GroupActiveSchema, groupActiveCapability, type IGroupActiveProvider, } from './group-active.cap.js';
|
|
208
208
|
export { type GroupStatus, GroupStatusSchema, groupStatusCapability, type IGroupStatusProvider, } from './group-status.cap.js';
|
|
209
|
+
export { type HeatPumpCircuit, type HeatPumpCircuitKind, type HeatPumpEnergy, type HeatPumpOptionSetting, type HeatPumpPower, type HeatPumpRangeSetting, type HeatPumpStatus, type HeatPumpSystem, type HeatPumpTemperatures, type IHeatPumpStatusProvider, HEAT_PUMP_CIRCUIT_KINDS, HeatPumpCircuitKindSchema, HeatPumpCircuitSchema, HeatPumpEnergySchema, HeatPumpOptionSettingSchema, HeatPumpPowerSchema, HeatPumpRangeSettingSchema, HeatPumpStatusSchema, HeatPumpSystemSchema, HeatPumpTemperaturesSchema, heatPumpInstantCop, heatPumpStatusCapability, } from './heat-pump-status.cap.js';
|
|
210
|
+
export { type IHeatPumpControlProvider, heatPumpControlCapability, } from './heat-pump-control.cap.js';
|
|
209
211
|
export { type HeatingValveStatus, HeatingValveStatusSchema, heatingValveCapability, type IHeatingValveProvider, } from './heating-valve.cap.js';
|
|
210
212
|
export { type HumidifierStatus, HumidifierStatusSchema, humidifierCapability, type IHumidifierProvider, } from './humidifier.cap.js';
|
|
211
213
|
export { type HumiditySensorStatus, HumiditySensorStatusSchema, humiditySensorCapability, type IHumiditySensorProvider, } from './humidity-sensor.cap.js';
|
|
@@ -380,6 +382,8 @@ import type { groupActiveCapability } from './group-active.cap.js';
|
|
|
380
382
|
import type { groupCommandsCapability } from './group-commands.cap.js';
|
|
381
383
|
import type { groupStatusCapability } from './group-status.cap.js';
|
|
382
384
|
import type { heatingValveCapability } from './heating-valve.cap.js';
|
|
385
|
+
import type { heatPumpStatusCapability } from './heat-pump-status.cap.js';
|
|
386
|
+
import type { heatPumpControlCapability } from './heat-pump-control.cap.js';
|
|
383
387
|
import type { humidifierCapability } from './humidifier.cap.js';
|
|
384
388
|
import type { humiditySensorCapability } from './humidity-sensor.cap.js';
|
|
385
389
|
import type { imageCapability } from './image.cap.js';
|
|
@@ -485,6 +489,6 @@ import type { trainingProviderCapability } from './training-provider.cap.js';
|
|
|
485
489
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
486
490
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
487
491
|
import type { zonesCapability } from './zones.cap.js';
|
|
488
|
-
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
492
|
+
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
489
493
|
export type CapabilityName = AnyCapability['name'];
|
|
490
494
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -139,6 +139,7 @@ export declare const IntegrationInstanceDescriptionSchema: z.ZodObject<{
|
|
|
139
139
|
kind: z.ZodOptional<z.ZodString>;
|
|
140
140
|
}, z.core.$strip>;
|
|
141
141
|
}, z.core.$strip>>>;
|
|
142
|
+
userScoped: z.ZodOptional<z.ZodBoolean>;
|
|
142
143
|
}, z.core.$strip>;
|
|
143
144
|
export type IntegrationInstanceDescription = z.infer<typeof IntegrationInstanceDescriptionSchema>;
|
|
144
145
|
export declare const IntegrationInstanceStatusSchema: z.ZodObject<{
|
|
@@ -238,6 +239,7 @@ export declare const integrationInstancesCapability: {
|
|
|
238
239
|
kind: z.ZodOptional<z.ZodString>;
|
|
239
240
|
}, z.core.$strip>;
|
|
240
241
|
}, z.core.$strip>>>;
|
|
242
|
+
userScoped: z.ZodOptional<z.ZodBoolean>;
|
|
241
243
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
242
244
|
/** The form; `id: null` is the create form. */
|
|
243
245
|
readonly instanceFormSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -250,7 +252,7 @@ export declare const integrationInstancesCapability: {
|
|
|
250
252
|
}>>;
|
|
251
253
|
candidateStableId: z.ZodOptional<z.ZodString>;
|
|
252
254
|
}, z.core.$strip>, z.ZodCustom<ConfigUISchema, ConfigUISchema>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
253
|
-
readonly listInstances: import("./capability-definition.js").CapabilityMethodSchema<z.
|
|
255
|
+
readonly listInstances: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$loose>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
254
256
|
id: z.ZodString;
|
|
255
257
|
name: z.ZodString;
|
|
256
258
|
configured: z.ZodBoolean;
|
|
@@ -268,7 +270,9 @@ export declare const integrationInstancesCapability: {
|
|
|
268
270
|
label: z.ZodOptional<z.ZodString>;
|
|
269
271
|
}, z.core.$strip>>;
|
|
270
272
|
lastCheckedAt: z.ZodOptional<z.ZodNumber>;
|
|
271
|
-
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind
|
|
273
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind> & {
|
|
274
|
+
readonly caller: 'scoped';
|
|
275
|
+
};
|
|
272
276
|
readonly getInstance: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
273
277
|
id: z.ZodString;
|
|
274
278
|
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
@@ -289,7 +293,9 @@ export declare const integrationInstancesCapability: {
|
|
|
289
293
|
label: z.ZodOptional<z.ZodString>;
|
|
290
294
|
}, z.core.$strip>>;
|
|
291
295
|
lastCheckedAt: z.ZodOptional<z.ZodNumber>;
|
|
292
|
-
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind
|
|
296
|
+
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind> & {
|
|
297
|
+
readonly caller: 'scoped';
|
|
298
|
+
};
|
|
293
299
|
/**
|
|
294
300
|
* Insert the typed record. With `id` it is stored under that id (a duplicate id is refused);
|
|
295
301
|
* without one the PROVIDER mints it and answers it. `kind` picks one of `describe().kinds`.
|
|
@@ -311,14 +317,18 @@ export declare const integrationInstancesCapability: {
|
|
|
311
317
|
}, z.core.$strip>>;
|
|
312
318
|
}, z.core.$strip>, z.ZodObject<{
|
|
313
319
|
id: z.ZodString;
|
|
314
|
-
}, z.core.$strip>, "mutation"
|
|
320
|
+
}, z.core.$strip>, "mutation"> & {
|
|
321
|
+
readonly caller: 'scoped';
|
|
322
|
+
};
|
|
315
323
|
readonly updateInstance: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
316
324
|
id: z.ZodString;
|
|
317
325
|
name: z.ZodOptional<z.ZodString>;
|
|
318
326
|
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
319
327
|
}, z.core.$strip>, z.ZodObject<{
|
|
320
328
|
ok: z.ZodLiteral<true>;
|
|
321
|
-
}, z.core.$strip>, "mutation"
|
|
329
|
+
}, z.core.$strip>, "mutation"> & {
|
|
330
|
+
readonly caller: 'scoped';
|
|
331
|
+
};
|
|
322
332
|
/**
|
|
323
333
|
* Switch ONE instance on or off, for every role; a missing record is created from the addon's
|
|
324
334
|
* initial body. A row control, not a form field: `updateInstance.values` is the
|
|
@@ -329,7 +339,9 @@ export declare const integrationInstancesCapability: {
|
|
|
329
339
|
enabled: z.ZodBoolean;
|
|
330
340
|
}, z.core.$strip>, z.ZodObject<{
|
|
331
341
|
ok: z.ZodLiteral<true>;
|
|
332
|
-
}, z.core.$strip>, "mutation"
|
|
342
|
+
}, z.core.$strip>, "mutation"> & {
|
|
343
|
+
readonly caller: 'scoped';
|
|
344
|
+
};
|
|
333
345
|
/**
|
|
334
346
|
* Delete the record and its keychain refs together. For an instance that brings devices the hub
|
|
335
347
|
* also removes the integration's devices (their tombstones, D865), the registry row, and emits
|
|
@@ -339,7 +351,9 @@ export declare const integrationInstancesCapability: {
|
|
|
339
351
|
id: z.ZodString;
|
|
340
352
|
}, z.core.$strip>, z.ZodObject<{
|
|
341
353
|
ok: z.ZodLiteral<true>;
|
|
342
|
-
}, z.core.$strip>, "mutation"
|
|
354
|
+
}, z.core.$strip>, "mutation"> & {
|
|
355
|
+
readonly caller: 'scoped';
|
|
356
|
+
};
|
|
343
357
|
readonly testInstance: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
344
358
|
id: z.ZodNullable<z.ZodString>;
|
|
345
359
|
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -358,6 +372,7 @@ export declare const integrationInstancesCapability: {
|
|
|
358
372
|
detail: z.ZodOptional<z.ZodString>;
|
|
359
373
|
}, z.core.$strip>, "mutation"> & {
|
|
360
374
|
readonly providerOptional: true;
|
|
375
|
+
readonly caller: 'scoped';
|
|
361
376
|
};
|
|
362
377
|
};
|
|
363
378
|
};
|
|
@@ -21,6 +21,7 @@ declare const IntegrationWithStateSchema: z.ZodObject<{
|
|
|
21
21
|
addonId: z.ZodString;
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
enabled: z.ZodBoolean;
|
|
24
|
+
switchUnknown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
24
25
|
info: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
25
26
|
originStableId: z.ZodOptional<z.ZodString>;
|
|
26
27
|
createdAt: z.ZodNumber;
|
|
@@ -32,6 +33,7 @@ declare const IntegrationLiteSchema: z.ZodObject<{
|
|
|
32
33
|
addonId: z.ZodString;
|
|
33
34
|
name: z.ZodString;
|
|
34
35
|
enabled: z.ZodBoolean;
|
|
36
|
+
switchUnknown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
35
37
|
info: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
36
38
|
originStableId: z.ZodOptional<z.ZodString>;
|
|
37
39
|
createdAt: z.ZodNumber;
|
|
@@ -121,6 +123,7 @@ export declare const integrationsCapability: {
|
|
|
121
123
|
addonId: z.ZodString;
|
|
122
124
|
name: z.ZodString;
|
|
123
125
|
enabled: z.ZodBoolean;
|
|
126
|
+
switchUnknown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
124
127
|
info: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
125
128
|
originStableId: z.ZodOptional<z.ZodString>;
|
|
126
129
|
createdAt: z.ZodNumber;
|
|
@@ -134,6 +137,7 @@ export declare const integrationsCapability: {
|
|
|
134
137
|
addonId: z.ZodString;
|
|
135
138
|
name: z.ZodString;
|
|
136
139
|
enabled: z.ZodBoolean;
|
|
140
|
+
switchUnknown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
137
141
|
info: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
138
142
|
originStableId: z.ZodOptional<z.ZodString>;
|
|
139
143
|
createdAt: z.ZodNumber;
|
|
@@ -147,6 +151,7 @@ export declare const integrationsCapability: {
|
|
|
147
151
|
addonId: z.ZodString;
|
|
148
152
|
name: z.ZodString;
|
|
149
153
|
enabled: z.ZodBoolean;
|
|
154
|
+
switchUnknown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
150
155
|
info: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
151
156
|
originStableId: z.ZodOptional<z.ZodString>;
|
|
152
157
|
createdAt: z.ZodNumber;
|
|
@@ -162,11 +167,19 @@ export declare const integrationsCapability: {
|
|
|
162
167
|
addonId: z.ZodString;
|
|
163
168
|
name: z.ZodString;
|
|
164
169
|
enabled: z.ZodBoolean;
|
|
170
|
+
switchUnknown: z.ZodOptional<z.ZodLiteral<true>>;
|
|
165
171
|
info: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
166
172
|
originStableId: z.ZodOptional<z.ZodString>;
|
|
167
173
|
createdAt: z.ZodNumber;
|
|
168
174
|
updatedAt: z.ZodNumber;
|
|
169
175
|
}, z.core.$strip>, "mutation">;
|
|
176
|
+
/**
|
|
177
|
+
* Delete an integration from the hub side: its devices, its registry row and its record, and
|
|
178
|
+
* announce it. It works while the addon that owns the instance is down (installed but
|
|
179
|
+
* crashed), where `integration-instances.deleteInstance` has no provider to route to; with the
|
|
180
|
+
* provider up the record is removed through it as well. A fixed builtin and an instance a link
|
|
181
|
+
* names are refused first.
|
|
182
|
+
*/
|
|
170
183
|
readonly delete: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
171
184
|
id: z.ZodString;
|
|
172
185
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -18,6 +18,7 @@ declare const SendEmailResultSchema: z.ZodObject<{
|
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const SmtpStatusSchema: z.ZodObject<{
|
|
20
20
|
ready: z.ZodBoolean;
|
|
21
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
21
22
|
host: z.ZodString;
|
|
22
23
|
error: z.ZodOptional<z.ZodString>;
|
|
23
24
|
lastVerifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -44,20 +45,11 @@ export declare const smtpProviderCapability: {
|
|
|
44
45
|
accepted: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
45
46
|
rejected: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
46
47
|
}, z.core.$strip>, "mutation">;
|
|
47
|
-
/** Round-trip ping against the SMTP relay (EHLO + AUTH if configured).
|
|
48
|
-
* Used by the operator's "Test connection" button. */
|
|
49
|
-
readonly verify: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
50
|
-
instanceId: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
ready: z.ZodBoolean;
|
|
53
|
-
host: z.ZodString;
|
|
54
|
-
error: z.ZodOptional<z.ZodString>;
|
|
55
|
-
lastVerifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
56
|
-
}, z.core.$strip>, "mutation">;
|
|
57
48
|
readonly getStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
58
49
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
59
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
60
51
|
ready: z.ZodBoolean;
|
|
52
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
61
53
|
host: z.ZodString;
|
|
62
54
|
error: z.ZodOptional<z.ZodString>;
|
|
63
55
|
lastVerifiedAt: z.ZodOptional<z.ZodNumber>;
|
package/dist/client.js
CHANGED
|
@@ -947,12 +947,6 @@ function method(input, output, options) {
|
|
|
947
947
|
timeoutMs: options?.timeoutMs
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
/**
|
|
951
|
-
* A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
|
|
952
|
-
* on `InferProvider`. The `providerOptional: true` literal is what
|
|
953
|
-
* `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
|
|
954
|
-
* for when this is the honest answer and when it is a soft stub.
|
|
955
|
-
*/
|
|
956
950
|
function optionalMethod(input, output, options) {
|
|
957
951
|
return {
|
|
958
952
|
...method(input, output, options),
|
|
@@ -2001,6 +1995,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
2001
1995
|
* (`reboot`, `device-admin-link`). Products are NOT its children — they are
|
|
2002
1996
|
* adopted beside it — and its connection settings stay on the integration. */
|
|
2003
1997
|
DeviceType["Gateway"] = "gateway";
|
|
1998
|
+
/** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
|
|
1999
|
+
* water, cooling, solar), its system modes and its power. One main read-only
|
|
2000
|
+
* `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
|
|
2001
|
+
DeviceType["HeatPump"] = "heat-pump";
|
|
2004
2002
|
return DeviceType;
|
|
2005
2003
|
}({});
|
|
2006
2004
|
zod.z.enum(["new-session", "step-up"]);
|
|
@@ -28064,6 +28062,23 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28064
28062
|
const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
|
|
28065
28063
|
const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
|
|
28066
28064
|
const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
|
|
28065
|
+
const heatPumpControlInterface = {
|
|
28066
|
+
setSilentMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setSilentMode", "mutation", input),
|
|
28067
|
+
setAwayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAwayMode", "mutation", input),
|
|
28068
|
+
setAdditionalHeaterMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAdditionalHeaterMode", "mutation", input),
|
|
28069
|
+
setHolidayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setHolidayMode", "mutation", input),
|
|
28070
|
+
setCircuitOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitOperationMode", "mutation", input),
|
|
28071
|
+
setCircuitHeatCoolMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitHeatCoolMode", "mutation", input),
|
|
28072
|
+
setCircuitSummerWinter: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitSummerWinter", "mutation", input),
|
|
28073
|
+
setCircuitComfortSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitComfortSetpoint", "mutation", input),
|
|
28074
|
+
setCircuitEcoSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitEcoSetpoint", "mutation", input),
|
|
28075
|
+
setCircuitMaxFlowTemp: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitMaxFlowTemp", "mutation", input),
|
|
28076
|
+
setDhwOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwOperationMode", "mutation", input),
|
|
28077
|
+
setDhwTemperatureLevel: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwTemperatureLevel", "mutation", input),
|
|
28078
|
+
setDhwChargeDuration: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwChargeDuration", "mutation", input),
|
|
28079
|
+
startExtraHotWater: (input) => dispatch("heat-pump-control", "heatPumpControl", "startExtraHotWater", "mutation", input)
|
|
28080
|
+
};
|
|
28081
|
+
const heatPumpStatusInterface = { getStatus: (input) => dispatch("heat-pump-status", "heatPumpStatus", "getStatus", "query", input) };
|
|
28067
28082
|
const humidifierInterface = {
|
|
28068
28083
|
setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
|
|
28069
28084
|
setTargetHumidity: (input) => dispatch("humidifier", "humidifier", "setTargetHumidity", "mutation", input),
|
|
@@ -28665,6 +28680,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28665
28680
|
groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
|
|
28666
28681
|
groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
|
|
28667
28682
|
heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
|
|
28683
|
+
heatPumpStatus: createSliceHandle(stateSource, binding.deviceId, "heat-pump-status"),
|
|
28668
28684
|
humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
|
|
28669
28685
|
humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
|
|
28670
28686
|
image: createSliceHandle(stateSource, binding.deviceId, "image"),
|
|
@@ -28759,6 +28775,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28759
28775
|
...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
|
|
28760
28776
|
...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
|
|
28761
28777
|
...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
|
|
28778
|
+
...bound("heat-pump-control") ? { heatPumpControl: heatPumpControlInterface } : {},
|
|
28779
|
+
...bound("heat-pump-status") ? { heatPumpStatus: heatPumpStatusInterface } : {},
|
|
28762
28780
|
...bound("humidifier") ? { humidifier: humidifierInterface } : {},
|
|
28763
28781
|
...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
|
|
28764
28782
|
...bound("image") ? { image: imageInterface } : {},
|
|
@@ -29575,7 +29593,6 @@ function createSystemProxy(api) {
|
|
|
29575
29593
|
listScopedSettings: (input) => dispatch("addonSettings", "listScopedSettings", "query", input),
|
|
29576
29594
|
updateScopedSettings: (input) => dispatch("addonSettings", "updateScopedSettings", "mutation", input),
|
|
29577
29595
|
readScopedValues: (input) => dispatch("addonSettings", "readScopedValues", "query", input),
|
|
29578
|
-
getIntegrationFormSchema: (input) => dispatch("addonSettings", "getIntegrationFormSchema", "query", input),
|
|
29579
29596
|
getDeclaredSettingsKeys: (input) => dispatch("addonSettings", "getDeclaredSettingsKeys", "query", input),
|
|
29580
29597
|
unsetStoredSettingsKeys: (input) => dispatch("addonSettings", "unsetStoredSettingsKeys", "mutation", input)
|
|
29581
29598
|
},
|
package/dist/client.mjs
CHANGED
|
@@ -946,12 +946,6 @@ function method(input, output, options) {
|
|
|
946
946
|
timeoutMs: options?.timeoutMs
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
/**
|
|
950
|
-
* A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
|
|
951
|
-
* on `InferProvider`. The `providerOptional: true` literal is what
|
|
952
|
-
* `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
|
|
953
|
-
* for when this is the honest answer and when it is a soft stub.
|
|
954
|
-
*/
|
|
955
949
|
function optionalMethod(input, output, options) {
|
|
956
950
|
return {
|
|
957
951
|
...method(input, output, options),
|
|
@@ -2000,6 +1994,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
2000
1994
|
* (`reboot`, `device-admin-link`). Products are NOT its children — they are
|
|
2001
1995
|
* adopted beside it — and its connection settings stay on the integration. */
|
|
2002
1996
|
DeviceType["Gateway"] = "gateway";
|
|
1997
|
+
/** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
|
|
1998
|
+
* water, cooling, solar), its system modes and its power. One main read-only
|
|
1999
|
+
* `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
|
|
2000
|
+
DeviceType["HeatPump"] = "heat-pump";
|
|
2003
2001
|
return DeviceType;
|
|
2004
2002
|
}({});
|
|
2005
2003
|
z.enum(["new-session", "step-up"]);
|
|
@@ -28063,6 +28061,23 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28063
28061
|
const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
|
|
28064
28062
|
const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
|
|
28065
28063
|
const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
|
|
28064
|
+
const heatPumpControlInterface = {
|
|
28065
|
+
setSilentMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setSilentMode", "mutation", input),
|
|
28066
|
+
setAwayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAwayMode", "mutation", input),
|
|
28067
|
+
setAdditionalHeaterMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAdditionalHeaterMode", "mutation", input),
|
|
28068
|
+
setHolidayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setHolidayMode", "mutation", input),
|
|
28069
|
+
setCircuitOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitOperationMode", "mutation", input),
|
|
28070
|
+
setCircuitHeatCoolMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitHeatCoolMode", "mutation", input),
|
|
28071
|
+
setCircuitSummerWinter: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitSummerWinter", "mutation", input),
|
|
28072
|
+
setCircuitComfortSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitComfortSetpoint", "mutation", input),
|
|
28073
|
+
setCircuitEcoSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitEcoSetpoint", "mutation", input),
|
|
28074
|
+
setCircuitMaxFlowTemp: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitMaxFlowTemp", "mutation", input),
|
|
28075
|
+
setDhwOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwOperationMode", "mutation", input),
|
|
28076
|
+
setDhwTemperatureLevel: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwTemperatureLevel", "mutation", input),
|
|
28077
|
+
setDhwChargeDuration: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwChargeDuration", "mutation", input),
|
|
28078
|
+
startExtraHotWater: (input) => dispatch("heat-pump-control", "heatPumpControl", "startExtraHotWater", "mutation", input)
|
|
28079
|
+
};
|
|
28080
|
+
const heatPumpStatusInterface = { getStatus: (input) => dispatch("heat-pump-status", "heatPumpStatus", "getStatus", "query", input) };
|
|
28066
28081
|
const humidifierInterface = {
|
|
28067
28082
|
setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
|
|
28068
28083
|
setTargetHumidity: (input) => dispatch("humidifier", "humidifier", "setTargetHumidity", "mutation", input),
|
|
@@ -28664,6 +28679,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28664
28679
|
groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
|
|
28665
28680
|
groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
|
|
28666
28681
|
heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
|
|
28682
|
+
heatPumpStatus: createSliceHandle(stateSource, binding.deviceId, "heat-pump-status"),
|
|
28667
28683
|
humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
|
|
28668
28684
|
humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
|
|
28669
28685
|
image: createSliceHandle(stateSource, binding.deviceId, "image"),
|
|
@@ -28758,6 +28774,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28758
28774
|
...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
|
|
28759
28775
|
...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
|
|
28760
28776
|
...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
|
|
28777
|
+
...bound("heat-pump-control") ? { heatPumpControl: heatPumpControlInterface } : {},
|
|
28778
|
+
...bound("heat-pump-status") ? { heatPumpStatus: heatPumpStatusInterface } : {},
|
|
28761
28779
|
...bound("humidifier") ? { humidifier: humidifierInterface } : {},
|
|
28762
28780
|
...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
|
|
28763
28781
|
...bound("image") ? { image: imageInterface } : {},
|
|
@@ -29574,7 +29592,6 @@ function createSystemProxy(api) {
|
|
|
29574
29592
|
listScopedSettings: (input) => dispatch("addonSettings", "listScopedSettings", "query", input),
|
|
29575
29593
|
updateScopedSettings: (input) => dispatch("addonSettings", "updateScopedSettings", "mutation", input),
|
|
29576
29594
|
readScopedValues: (input) => dispatch("addonSettings", "readScopedValues", "query", input),
|
|
29577
|
-
getIntegrationFormSchema: (input) => dispatch("addonSettings", "getIntegrationFormSchema", "query", input),
|
|
29578
29595
|
getDeclaredSettingsKeys: (input) => dispatch("addonSettings", "getDeclaredSettingsKeys", "query", input),
|
|
29579
29596
|
unsetStoredSettingsKeys: (input) => dispatch("addonSettings", "unsetStoredSettingsKeys", "mutation", input)
|
|
29580
29597
|
},
|
|
@@ -112,7 +112,11 @@ export declare enum DeviceType {
|
|
|
112
112
|
* address, connection state) and the actions the box really supports
|
|
113
113
|
* (`reboot`, `device-admin-link`). Products are NOT its children — they are
|
|
114
114
|
* adopted beside it — and its connection settings stay on the integration. */
|
|
115
|
-
Gateway = "gateway"
|
|
115
|
+
Gateway = "gateway",
|
|
116
|
+
/** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
|
|
117
|
+
* water, cooling, solar), its system modes and its power. One main read-only
|
|
118
|
+
* `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
|
|
119
|
+
HeatPump = "heat-pump"
|
|
116
120
|
}
|
|
117
121
|
export declare enum DeviceFeature {
|
|
118
122
|
BatteryOperated = "battery-operated",
|
|
@@ -6,6 +6,8 @@ export interface HeroModelInput {
|
|
|
6
6
|
readonly role: string | null;
|
|
7
7
|
readonly name: string;
|
|
8
8
|
readonly online: boolean;
|
|
9
|
+
/** The integration or brand the device comes from ("Midea"); drawn as a chip when known. */
|
|
10
|
+
readonly integration?: string | null;
|
|
9
11
|
};
|
|
10
12
|
/** Kebab cap names the device is bound to. */
|
|
11
13
|
readonly caps: readonly string[];
|
|
@@ -33,6 +33,10 @@ export interface ClimateView {
|
|
|
33
33
|
/** The mode that "turn on" selects; `null` when the device lists none. */
|
|
34
34
|
readonly onMode: HvacMode | null;
|
|
35
35
|
}
|
|
36
|
+
/** A readable label for a fan speed name; an unknown one is shown as the device reported it. */
|
|
37
|
+
export declare function fanLabelOf(fan: string): HeroText;
|
|
38
|
+
/** The segment label of every available HVAC mode, keyed by the mode value. */
|
|
39
|
+
export declare function modeLabelsOf(modes: readonly HvacMode[]): Record<string, HeroText>;
|
|
36
40
|
export declare function modeLabelOf(mode: HvacMode): HeroText;
|
|
37
41
|
/** 22 -> "22", 22.3 -> "22.3": a trailing zero is noise on a thermostat. */
|
|
38
42
|
export declare function formatDegrees(value: number): string;
|
|
@@ -54,9 +54,13 @@ export interface HeroFragment {
|
|
|
54
54
|
readonly left?: readonly HeroSideTile[];
|
|
55
55
|
readonly right?: readonly HeroSideTile[];
|
|
56
56
|
};
|
|
57
|
+
/** The tiles are a fallback: a side keeps them only when no other cap put a tile there. */
|
|
58
|
+
readonly tilesFallback?: boolean;
|
|
57
59
|
/** What the scene is doing, when this cap knows. The first fragment that names a field wins. */
|
|
58
60
|
/** What the hero's headline says instead of the state word (a mode, a reading). The first fragment that names one wins; offline and unknown are never overridden. */
|
|
59
61
|
readonly title?: HeroText;
|
|
62
|
+
/** The scene's top line when it says more than the title ("Cooling · fan Auto"); the first fragment that names one wins. */
|
|
63
|
+
readonly caption?: HeroText;
|
|
60
64
|
readonly scene?: {
|
|
61
65
|
readonly mode?: HeroSceneMode;
|
|
62
66
|
readonly level?: number;
|
|
@@ -25,6 +25,7 @@ export declare const HERO_LAYOUT_BY_TYPE: {
|
|
|
25
25
|
readonly valve: HeroLayout;
|
|
26
26
|
readonly humidifier: HeroLayout;
|
|
27
27
|
readonly "water-heater": HeroLayout;
|
|
28
|
+
readonly "heat-pump": HeroLayout;
|
|
28
29
|
readonly fan: HeroLayout;
|
|
29
30
|
readonly "media-player": HeroLayout;
|
|
30
31
|
readonly "alarm-panel": HeroLayout;
|