/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /*** THIS FILE IS GENERATED, DO NOT EDIT ***/ import { IdentifyServer as BaseIdentifyServer } from "../behaviors/identify/IdentifyServer.js"; import { DoorLockServer as BaseDoorLockServer } from "../behaviors/door-lock/DoorLockServer.js"; import { MutableEndpoint } from "../endpoint/type/MutableEndpoint.js"; import { SupportedBehaviors } from "../endpoint/properties/SupportedBehaviors.js"; import { Identity } from "@matter/general"; /** * A Door Lock is a device used to secure a door. It is possible to actuate a door lock either by means of a manual or a * remote method. * * @see {@link MatterSpecification.v161.Device} ยง 8.1 */ export interface DoorLockDevice extends Identity {} export namespace DoorLockRequirements { /** * The Identify cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link IdentifyServer} for convenience. */ export const IdentifyServer = BaseIdentifyServer; /** * The DoorLock cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link DoorLockServer} for convenience. */ export const DoorLockServer = BaseDoorLockServer; /** * An implementation for each server cluster supported by the endpoint per the Matter specification. */ export const server = { mandatory: { Identify: IdentifyServer, DoorLock: DoorLockServer } }; } export const DoorLockDeviceDefinition = MutableEndpoint({ name: "DoorLock", deviceType: 0xa, deviceRevision: 4, requirements: DoorLockRequirements, behaviors: SupportedBehaviors( DoorLockRequirements.server.mandatory.Identify, DoorLockRequirements.server.mandatory.DoorLock ) }); Object.freeze(DoorLockDeviceDefinition); export const DoorLockDevice: DoorLockDevice = DoorLockDeviceDefinition;