{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "add_wireguard_peer",
  "type": "object",
  "properties": {
    "interface": {
      "type": "string"
    },
    "public_key": {
      "type": "string"
    },
    "allowed_address": {
      "type": "string",
      "description": "CIDR, comma-separated for multiple e.g. \"10.0.0.2/32\" or \"10.0.0.0/24,192.168.0.0/24\""
    },
    "endpoint_address": {
      "description": "remote host IP or hostname e.g. \"203.0.113.1\"",
      "type": "string"
    },
    "endpoint_port": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "preshared_key": {
      "type": "string"
    },
    "persistent_keepalive": {
      "description": "seconds as string e.g. \"25\"",
      "type": "string"
    },
    "name": {
      "description": "optional peer name label",
      "type": "string"
    },
    "private_key": {
      "description": "peer's private key (lets the router generate this peer's client config)",
      "type": "string"
    },
    "responder": {
      "description": "only respond to handshakes, never initiate (for road-warrior clients)",
      "type": "boolean"
    },
    "client_address": {
      "description": "client tunnel address(es) for the generated client config",
      "type": "string"
    },
    "client_dns": {
      "description": "DNS server(s) written into the generated client config",
      "type": "string"
    },
    "client_endpoint": {
      "description": "server endpoint host[:port] written into the generated client config",
      "type": "string"
    },
    "client_keepalive": {
      "description": "client persistent-keepalive for the generated config e.g. \"25s\"",
      "type": "string"
    },
    "client_listen_port": {
      "description": "listen-port written into the generated client config",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "client_mtu": {
      "description": "RouterOS 7.25+ MTU in generated client configuration",
      "type": "integer",
      "minimum": 576,
      "maximum": 65535
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "default": false,
      "type": "boolean"
    }
  },
  "required": ["interface", "public_key", "allowed_address", "disabled"],
  "additionalProperties": false
}
