/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Resource } from "#models/Resource.js";
Resource.add({
  tag: "cluster",
  name: "TargetNavigator",
  pics: "TGTNAV",
  xref: "cluster\xA76.11",
  details: "This cluster provides an interface for UX navigation within a set of targets on a device or endpoint.\nThis cluster would be supported on Video Player devices or devices with navigable user interfaces. This cluster would also be supported on endpoints with navigable user interfaces such as a Content App. It supports listing a set of navigation targets, tracking and changing the current target.\nThe cluster server for Target Navigator is implemented by endpoints on a device that support UX navigation.\nWhen this cluster is implemented for a Content App endpoint, the Video Player device containing the endpoint shall launch the Content App when a client invokes the NavigateTarget command.",
  children: [
    {
      tag: "attribute",
      name: "TargetList",
      xref: "cluster\xA76.11.5.1",
      details: "Indicates a list of targets that can be navigated to within the experience presented to the user by the Endpoint (Video Player or Content App). The list shall NOT contain any entries with the same Identifier in the TargetInfoStruct object."
    },
    {
      tag: "attribute",
      name: "CurrentTarget",
      xref: "cluster\xA76.11.5.2",
      details: "Indicates the Identifier for the target which is currently in foreground on the corresponding Endpoint (Video Player or Content App), or 0xFF to indicate that no target is in the foreground.\nWhen not 0xFF, the CurrentTarget shall be an Identifier value contained within one of the TargetInfoStruct objects in the TargetList attribute."
    },
    {
      tag: "event",
      name: "TargetUpdated",
      xref: "cluster\xA76.11.7.1",
      details: "This event shall be generated when there is a change in either the active target or the list of available targets or both."
    },
    {
      tag: "command",
      name: "NavigateTarget",
      xref: "cluster\xA76.11.6.1",
      details: "Upon receipt, this shall navigation the UX to the target identified.",
      children: [
        {
          tag: "field",
          name: "Target",
          xref: "cluster\xA76.11.6.1.1",
          details: "This field shall indicate the Identifier for the target for UX navigation. The Target shall be an Identifier value contained within one of the TargetInfoStruct objects in the TargetList attribute."
        },
        {
          tag: "field",
          name: "Data",
          xref: "cluster\xA76.11.6.1.2",
          details: "This field shall indicate Optional app-specific data."
        }
      ]
    },
    {
      tag: "command",
      name: "NavigateTargetResponse",
      xref: "cluster\xA76.11.6.2",
      details: "This command shall be generated in response to NavigateTarget command.",
      children: [
        {
          tag: "field",
          name: "Status",
          xref: "cluster\xA76.11.6.2.1",
          details: "This field shall indicate the of the command."
        },
        {
          tag: "field",
          name: "Data",
          xref: "cluster\xA76.11.6.2.2",
          details: "This field shall indicate Optional app-specific data."
        }
      ]
    },
    {
      tag: "datatype",
      name: "StatusEnum",
      xref: "cluster\xA76.11.4.1",
      children: [
        { tag: "field", name: "Success", description: "Command succeeded" },
        {
          tag: "field",
          name: "TargetNotFound",
          description: "Requested target was not found in the TargetList"
        },
        { tag: "field", name: "NotAllowed", description: "Target request is not allowed in current state." }
      ]
    },
    {
      tag: "datatype",
      name: "TargetInfoStruct",
      xref: "cluster\xA76.11.4.2",
      details: "This indicates an object describing the navigable target.",
      children: [
        {
          tag: "field",
          name: "Identifier",
          xref: "cluster\xA76.11.4.2.1",
          details: "This field shall contain an unique id within the TargetList."
        },
        {
          tag: "field",
          name: "Name",
          xref: "cluster\xA76.11.4.2.2",
          details: "This field shall contain a name string for the TargetInfoStruct."
        }
      ]
    }
  ]
});
//# sourceMappingURL=target-navigator.resource.js.map
