<?xml version="1.0"?>
<!--
Copyright (c) 2023 Project CHIP Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configurator>
  <domain name="CHIP"/>
  <cluster>

    <name>Rainmaker</name>
    <domain>CHIP</domain>
    <code>0x131BFC00</code>
    <define>RAINMAKER_CLUSTER</define>

    <description>Attributes and commands for rainmaker cluster.</description>

    <globalAttribute side="either" code="0xFFFD" value="2"/>

    <attribute side="server" code="0x0000" define="STATUS" type="boolean" default="0">Status</attribute>
    <attribute side="server" code="0x0001" define="RMAKER_NODE_ID" type="char_string" length="40">RmakerNodeId</attribute>
    <attribute side="server" code="0x0002" define="CHALLENGE_RESPONSE" type="char_string" length="150">ChallengeResponse</attribute>
    <attribute side="server" code="0x0003" define="CHALLENGE" type="char_string" length="40" writable="true">Challenge</attribute>

    <command source="client" code="0x00" name="Configuration" optional="false">
      <description>Configuration command.</description>
      <arg name="ConfigurationArg" type="char_string"/>
    </command>

    <command source="client" code="0x01" name="SignData" optional="false">
      <description>SignData command.</description>
      <arg name="SignDataArg" type="char_string"/>
    </command>

  </cluster>
</configurator>
