@camstack/types 1.2.539 → 1.2.541

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 (58) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/addon.js +44 -12
  3. package/dist/addon.mjs +44 -12
  4. package/dist/capabilities/capability-definition.d.ts +4 -0
  5. package/dist/capabilities/climate-control.cap.d.ts +18 -6
  6. package/dist/capabilities/cluster-update.cap.d.ts +376 -0
  7. package/dist/capabilities/cover.cap.d.ts +9 -3
  8. package/dist/capabilities/device-manager.cap.d.ts +117 -0
  9. package/dist/capabilities/device-search.d.ts +168 -0
  10. package/dist/capabilities/fan-control.cap.d.ts +12 -4
  11. package/dist/capabilities/hero-layout.cap.d.ts +4 -0
  12. package/dist/capabilities/hub-address.d.ts +10 -0
  13. package/dist/capabilities/index.d.ts +8 -5
  14. package/dist/capabilities/lock-control.cap.d.ts +3 -1
  15. package/dist/capabilities/media-player.cap.d.ts +48 -16
  16. package/dist/capabilities/notification-output.cap.d.ts +40 -0
  17. package/dist/capabilities/notification-rules.cap.d.ts +366 -0
  18. package/dist/capabilities/osd-manager.cap.d.ts +40 -277
  19. package/dist/capabilities/valve.cap.d.ts +3 -1
  20. package/dist/client.d.ts +2 -1
  21. package/dist/client.js +94 -8
  22. package/dist/client.mjs +94 -9
  23. package/dist/{composed-stable-id-C3J6LxC9.js → composed-stable-id-BtaMj_W7.js} +4 -0
  24. package/dist/{composed-stable-id-DLcPInGv.mjs → composed-stable-id-jnvhwGoH.mjs} +4 -0
  25. package/dist/device/container-primary-child.d.ts +39 -4
  26. package/dist/device/device-binding.d.ts +6 -0
  27. package/dist/device/device-feature-requirements.d.ts +137 -0
  28. package/dist/device/device-management.d.ts +9 -0
  29. package/dist/device/device-type.d.ts +5 -1
  30. package/dist/device/hero/hero-model.d.ts +14 -0
  31. package/dist/device/implemented-methods.d.ts +6 -0
  32. package/dist/device/linked-device-resolve.d.ts +2 -0
  33. package/dist/expression/device-template.d.ts +31 -1
  34. package/dist/generated/addon-api.d.ts +50 -7
  35. package/dist/generated/capability-router-map.d.ts +5 -2
  36. package/dist/generated/collection-array-methods.d.ts +1 -1
  37. package/dist/generated/device-proxy.d.ts +2 -2
  38. package/dist/generated/method-access-map.d.ts +1 -1
  39. package/dist/generated/method-device-selectors.d.ts +2 -2
  40. package/dist/generated/system-proxy.d.ts +3 -1
  41. package/dist/{composition-BcVAbtBc.js → implemented-methods-C_iV6BiP.js} +17 -1
  42. package/dist/{composition-BFJq1Y88.mjs → implemented-methods-OitwyO1Y.mjs} +12 -2
  43. package/dist/index.d.ts +7 -3
  44. package/dist/index.js +1231 -444
  45. package/dist/index.mjs +944 -203
  46. package/dist/interfaces/addon.d.ts +7 -0
  47. package/dist/interfaces/event-bus.d.ts +2 -0
  48. package/dist/migrations/api/migration-api.v1.d.ts +11 -0
  49. package/dist/migrations/api/migration-api.v1.schema.d.ts +25 -0
  50. package/dist/node.d.ts +1 -0
  51. package/dist/node.js +26 -25
  52. package/dist/node.mjs +3 -3
  53. package/dist/notification/degrade-engine.d.ts +7 -1
  54. package/dist/notification/notification-fields.d.ts +69 -0
  55. package/dist/notification/timelapse-rule.d.ts +69 -0
  56. package/dist/{sleep-VrfKAAGN.mjs → sleep-Cw1uUXvl.mjs} +5 -2
  57. package/dist/{sleep-DgCXXFc3.js → sleep-PfAAmxV-.js} +5 -2
  58. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -243,7 +243,7 @@ export { BaseDeviceProvider, toDeviceSummary } from './device/base-device-provid
243
243
  export type { BatteryPresence, BatteryPresenceInput } from './device/battery-presence.js';
244
244
  export { BATTERY_UNREACHABLE_AFTER_MS, deriveBatteryPresence, isBatteryPresenceFault, } from './device/battery-presence.js';
245
245
  export type { ICameraDevice, StreamSourceEntry } from './device/camera-device.js';
246
- export { applyPrimaryChildRule, CONTAINER_CHILD_PRIORITY, CONTAINER_PRIMARY_CHILD_RULES, type AppliedPrimaryChildRule, type ContainerChildRef, type ContainerPrimaryChildRule, type ContainerPrimaryDeclaration, resolveContainerPrimaryChild, } from './device/container-primary-child.js';
246
+ export { applyPrimaryChildPreference, applyPrimaryChildRule, CONTAINER_CHILD_PRIORITY, CONTAINER_PRIMARY_CHILD_RULES, primaryChildPreferenceOf, type AppliedPrimaryChildRule, type ContainerChildRef, type ContainerPreferenceSource, type ContainerPrimaryChildPreference, type ContainerPrimaryChildRule, type ContainerPrimaryDeclaration, resolveContainerPrimaryChild, } from './device/container-primary-child.js';
247
247
  export { expandContainer, legacyAutoLinkIds, type LinkCandidate, } from './device/linked-device-resolve.js';
248
248
  export type { DeclarationPlacement, DeclaredDeviceOutcome, DeclaredDevicePorts, DeclaredDeviceRow, DeclaredDevicesResult, DeclaredDevicesSpec, DeclaredInstanceSeed, DeclaredIntegrationRef, DeclaredIntegrationRow, DeviceDeclaration, SeedableInstances, } from './device/declared-device.js';
249
249
  export { DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DeclaredDevices, declarationOwnerNodeId, seedInstanceOnce, } from './device/declared-device.js';
@@ -271,6 +271,9 @@ export { DeviceRuntimeState } from './device/device-runtime-state.js';
271
271
  export type { SliceEventBus, SliceHandle, SliceHandleApi, SliceHandleSource, } from './device/device-state-handle.js';
272
272
  export { createEventBusSliceSource, createLazyTrpcSource, createMirrorSource, createSliceHandle, } from './device/device-state-handle.js';
273
273
  export { ChargingStatus, DeviceFeature, DeviceRole, DeviceType, featuresOfBoundCaps, } from './device/device-type.js';
274
+ export type { CapBackedFeature, FeatureAuthority, FeatureDerivation, FeatureMissing, FeatureRequirement, FeatureSupplier, ReportedFeature, } from './device/device-feature-requirements.js';
275
+ export { DEVICE_FEATURE_REQUIREMENTS, deriveFeatureProvenance, isKernelDerivedFeature, reconcileReportedFeatures, settleDeviceFeatures, } from './device/device-feature-requirements.js';
276
+ export { implementedMethodsOf } from './device/implemented-methods.js';
274
277
  export { APPLIANCE_EXPORT, type ApplianceExportDecision, type ApplianceExportEcosystem, type ApplianceExported, type ApplianceNotExported, type PlugApplianceType, PLUG_APPLIANCE_TYPES, applianceExport, isPlugApplianceType, } from './device/appliance-export.js';
275
278
  export type { IBatteryOperated, IDoorbellButton, INativeSnapshot, IPanTiltZoom, IRebootable, ITwoWayAudio, } from './device/features.js';
276
279
  export type { IconCategoryId, IconEntry, IconHit, IconKey, } from './device/icon-catalog.js';
@@ -296,8 +299,8 @@ export { collectZodSecretPaths, isZodSecret, SECRET_META } from './device/zod-se
296
299
  export { EventCategory, isOwnerOnlyEventCategory, OWNER_ONLY_EVENT_CATEGORIES, publicEventCategories, } from './enums/event-category.js';
297
300
  export * from './enums/index.js';
298
301
  export type { CompileResult, EvaluateExpressionSourceResult, ExpressionBinaryOperator, ExpressionBindingSource, ExpressionBuiltin, ExpressionEvalHooks, ExpressionEvalOptions, ExpressionFieldBinding, ExpressionGlobalBinding, ExpressionLiteralBinding, ExpressionLogicalOperator, ExpressionNode, ExpressionNodePath, ExpressionSource, ExpressionSourceInput, ExpressionUnaryOperator, ExpressionValue, CountCallState, RoseCallState, StatefulCallState, StatefulCallInvocation, StatefulExpressionEnvironment, StatefulExpressionMemory, StatefulExpressionBuiltin, Keyword, ParsedExpression, Punctuator, Token, } from './expression/index.js';
299
- export { DEVICE_TEMPLATE_BUDGET_MS, DEVICE_TEMPLATE_FILTERS, DEVICE_TEMPLATE_MAX_LENGTH, DEVICE_TEMPLATE_MAX_OUTPUT, DEVICE_TEMPLATE_UNAVAILABLE, DEVICE_TEMPLATE_REFUSAL_REASONS, DEVICE_TEMPLATE_TRACE_REASONS, DeviceTemplateRefusalSchema, DeviceTemplateRenderSchema, DeviceTemplateSchema, DeviceTemplateTraceEntrySchema, resolveTemplateRef, templateCapKey, } from './expression/device-template.js';
300
- export type { DeviceTemplateFilter, DeviceTemplateRef, DeviceTemplateRefusal, DeviceTemplateRefusalReason, DeviceTemplateRender, DeviceTemplateTraceEntry, DeviceTemplateTraceReason, DeviceTemplateView, ResolvedTemplateRef, } from './expression/device-template.js';
302
+ export { DEVICE_TEMPLATE_BUDGET_MS, DEVICE_TEMPLATE_FILTERS, DEVICE_TEMPLATE_MAX_LENGTH, DEVICE_TEMPLATE_MAX_OUTPUT, DEVICE_TEMPLATE_NOW_ALIAS, DEVICE_TEMPLATE_THIS_ALIAS, DEVICE_TEMPLATE_VALUES_CAP, DEVICE_TEMPLATE_UNAVAILABLE, DEVICE_TEMPLATE_REFUSAL_REASONS, DEVICE_TEMPLATE_TRACE_REASONS, DeviceTemplateRefusalSchema, DeviceTemplateRenderSchema, DeviceTemplateSchema, DeviceTemplateThisDeviceSchema, DeviceTemplateTraceEntrySchema, DeviceTemplateValueSchema, resolveTemplateRef, templateCapKey, } from './expression/device-template.js';
303
+ export type { DeviceTemplateFilter, DeviceTemplateRef, DeviceTemplateRefusal, DeviceTemplateRefusalReason, DeviceTemplateRender, DeviceTemplateThisDevice, DeviceTemplateTraceEntry, DeviceTemplateTraceReason, DeviceTemplateView, ResolvedTemplateRef, } from './expression/device-template.js';
301
304
  export { compileExpression, compileExpressionSafe, cloneStatefulExpressionMemory, createExpressionScope, createStatefulExpressionMemory, EXPRESSION_BUILTIN_NAMES, EXPRESSION_BUILTINS, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, evaluateAst, evaluateCount, disarmRoseMemory, evaluateExpressionSource, evaluateRose, evaluateStatefulExpressionCall, isStatefulBuiltin, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, parseExpression, RESERVED_BINDING_NAMES, toExpressionValue, tokenize, validateExpressionSource, } from './expression/index.js';
302
305
  export type { AddonApi, AppRouter } from './generated/addon-api.js';
303
306
  export type { CapNameWithStatus, CapStatusTypeMap } from './generated/cap-status-types.js';
@@ -350,6 +353,7 @@ export { isAudioClassName, isBaseConditionKey, knownValues, NC_BASE_CONDITION_KE
350
353
  export { type PreparedAction, type PreparedAttachment, type PreparedNotification, prepareNotification, type ResolvedLevel, } from './notification/degrade-engine.js';
351
354
  export { isRootRelativeUrl, type PublicEndpointReader, type PublicEndpointReading, type PublicEndpointSource, publicEndpointReaderFrom, type ResolveAttachmentUrlsDeps, resolveAttachmentUrls, } from './notification/attachment-url.js';
352
355
  export { deliveryParamsDeclaredBy, resolveDeliveryParams } from './notification/delivery-params.js';
356
+ export { attachmentKindsOf, deliverableFields, fieldSupportForTargets, NOTIFICATION_FIELDS, priorityLevelsOf, targetAttachmentAllows, type NotificationFieldSupport, type NotificationFieldTarget, sanitizeTargetOverride, } from './notification/notification-fields.js';
353
357
  export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
354
358
  export { conditionExclusionReason, conditionVisibleForKind, defaultDeliveryForSection, droppedConditionsForKind, isAudioRule, isOccupancyRule, isSystemDelivery, isSystemRuleKind, kindsForDiscriminator, NC_AUDIO_SEED, NC_CAMERA_SCOPE_CAP_NAME, NC_OCCUPANCY_DEFAULTS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_SECTIONS, NC_SYSTEM_DELIVERY, NC_SYSTEM_RULE_KINDS, type NcDroppedCondition, type NcKindVisibilitySubject, type NcRuleEditorSection, type NcRuleEditorSectionKey, type NcRuleKind, type NcRuleKindSpec, type NcRuleOwningSectionKey, type NcRuleSection, type NcRuleSectionKey, type NcRuleConditionsSubject, type NcRuleSectionSubject, type NcRuleSeed, parseRuleSection, ruleDeviceCompatCapNames, ruleDeviceCompatCapQueries, ruleEditorSectionsForKind, ruleGroupingApplies, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, systemFamilyOfKind, systemRuleKindOf, } from './notification/rule-kinds.js';
355
359
  export { imageModesForKind, legacyImageMode, NC_MEDIA_IMAGE_MODES, type NcMediaRuleSubject, ncMediaPolicyError, normalizeNcMediaPolicy, resolveNcMediaImage, ruleTriggerZoneIds, subjectHasPath, } from './notification/media-image.js';