{
  "openapi": "3.0.3",
  "info": {
    "title": "Hitron CODA6X Console API (CODA-60 / CODA-57 class)",
    "version": "8.5.0.0.3b2",
    "description": "Complete, reverse-engineered description of the Hitron CODA6X console API\n(`/1/Device/...` and `/telemetry/...`) as served by the Fat-Free Framework\nPHP application in front of the RDK-B `cosa.so` TR-181 data model.\n\n**Provenance.** Derived from a signed CODA-60-class firmware image:\n`app/routes.ini`, every controller in `app/controllers/`, every model in\n`app/models/`, and live responses from a seeded mock of the same\napplication. It is not official Hitron documentation. Field names and\ncasing are reproduced exactly as the firmware emits them, including typos\nsuch as `Raidos_List` and `theroy_tx`.\n\n**Envelope.** Every JSON response is the controller's `output` array merged\nwith `errCode` and `errMsg` (`Controller::afterroute`). `errCode == \"000\"`\nmeans success. Any other code sets HTTP 400 unless the request carried an\napp session. Because PHP merges with `+`, payload keys win over the\nenvelope keys on collision.\n\n**Request encoding.** Controllers read `POST[\"model\"]`, a JSON *string*.\nSend `application/x-www-form-urlencoded` with one field named `model`\nwhose value is the JSON document, or send the JSON document directly when\nthe controller also reads `BODY` (`/1/Device/API/Register`). A JSON body\nmay include `\"_method\": \"PUT\" | \"DELETE\" | \"PATCH\"` to tunnel that verb\nthrough POST (`Controller::fake_restful`).\n\n**Auth.** In the analyzed build `check_session()` and `check_security()`\nare commented out, so read routes answer without a session. The code still\ncontains three header branches: `Ht-App-Auth` (base64 `appid:appuser`\nvendor token), `Cloud-Check-Api`, and `Lib-Rest-Api`. A normal browser\nsession is a `PHPSESSID` cookie obtained from `POST /1/Device/Users/Login`.\nTreat the three header schemes as vendor integration hooks, not as a\nsecurity boundary you can rely on.\n\n**JSONP.** Any route accepts `?callback=fn` and wraps the response in\n`fn(...)` with `Content-Type: application/Javascript`.\n\n**Errors.** Unknown parameters return `{\"errCode\":\"001\",\"errMsg\":\"Invalid\nParamters.\"}` (the misspelling is the firmware's) with HTTP 400. A method\nthe controller does not implement returns `errCode \"005\"`.\n\n**Trailing-slash quirk.** `/1/Device/Manage ` is registered with a trailing\nspace in `routes.ini`; clients should use `/1/Device/Manage` and accept the\nrouter's normalisation.\n",
    "license": {
      "name": "Private - Netquor internal",
      "url": "https://github.com/Netquor/hitron"
    },
    "contact": {
      "name": "Netquor",
      "url": "https://github.com/Netquor/hitron"
    }
  },
  "servers": [
    {
      "url": "http://192.168.100.1",
      "description": "Factory-default LAN address of a CODA6X gateway."
    },
    {
      "url": "http://coda6x.local",
      "description": "mDNS name used by some ISP builds."
    },
    {
      "url": "http://127.0.0.1:8080",
      "description": "The seeded mock bundled with the reverse-engineering workspace."
    }
  ],
  "tags": [
    {
      "name": "Menu",
      "description": "Navigation tree used by the web UI."
    },
    {
      "name": "Users",
      "description": "Login, logout, users, and CSRF helpers."
    },
    {
      "name": "CM",
      "description": "Cable modem, DOCSIS provisioning, RF channels, logs, and reboot."
    },
    {
      "name": "Router",
      "description": "Gateway system info, port forwarding, and port triggering."
    },
    {
      "name": "MTA",
      "description": "Embedded multimedia terminal adapter (voice lines)."
    },
    {
      "name": "WiFi",
      "description": "Radios, SSIDs, clients, access control, WPS, hotspot, and survey."
    },
    {
      "name": "Hosts",
      "description": "LAN host table and per-host firewall level."
    },
    {
      "name": "DHCP",
      "description": "LAN DHCP server and reservations."
    },
    {
      "name": "WAN",
      "description": "WAN addressing and DNS."
    },
    {
      "name": "MoCA",
      "description": "MoCA coax bridge configuration and status."
    },
    {
      "name": "DDNS",
      "description": "Dynamic DNS client."
    },
    {
      "name": "Firewall",
      "description": "Firewall level, filters, logs, and VPN passthrough."
    },
    {
      "name": "Diagnostics",
      "description": "Ping and traceroute."
    },
    {
      "name": "System",
      "description": "Time, advanced switch, USB, BBU, and remote management."
    },
    {
      "name": "Network",
      "description": "IP passthrough, GRE, VLAN, RIP, static routes, and IP mapping."
    },
    {
      "name": "Spectrum",
      "description": "DOCSIS spectrum analyser and constellation data."
    },
    {
      "name": "Telemetry",
      "description": "Device info, RF metrics, and PNM telemetry consumed by ISP tooling."
    },
    {
      "name": "Manage",
      "description": "Admin credentials."
    },
    {
      "name": "API",
      "description": "Vendor app registration and file upload."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Status and RF",
      "tags": [
        "CM",
        "Router",
        "MTA",
        "Spectrum",
        "Telemetry"
      ]
    },
    {
      "name": "LAN and wireless",
      "tags": [
        "WiFi",
        "Hosts",
        "DHCP",
        "WAN",
        "MoCA",
        "DDNS",
        "Network"
      ]
    },
    {
      "name": "Security and system",
      "tags": [
        "Firewall",
        "Diagnostics",
        "System",
        "Manage",
        "Users",
        "Menu",
        "API"
      ]
    }
  ],
  "security": [
    {
      "cookieAuth": []
    },
    {
      "appToken": []
    },
    {
      "cloudApi": []
    },
    {
      "libApi": []
    },
    {}
  ],
  "components": {
    "securitySchemes": {
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "PHPSESSID",
        "description": "Session cookie set by `POST /1/Device/Users/Login`."
      },
      "appToken": {
        "type": "apiKey",
        "in": "header",
        "name": "Ht-App-Auth",
        "description": "Base64 of `appid:appuser`, issued by `POST /1/Device/API/Register`."
      },
      "cloudApi": {
        "type": "apiKey",
        "in": "header",
        "name": "Cloud-Check-Api",
        "description": "ISP cloud integration marker; the branch is present but empty in this build."
      },
      "libApi": {
        "type": "apiKey",
        "in": "header",
        "name": "Lib-Rest-Api",
        "description": "Library integration marker; the session-app flag it used to set is commented out."
      }
    },
    "parameters": {
      "Menu": {
        "name": "menu",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "enum": [
            "Main",
            "Sub"
          ]
        }
      },
      "Info": {
        "name": "info",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Controller-specific selector. See each operation for the accepted values."
      },
      "InfoCM": {
        "name": "info",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "enum": [
            "Version",
            "DocsisProvision",
            "SysInfo",
            "UsInfo",
            "DsInfo",
            "DsOfdm",
            "UsOfdm",
            "Log",
            "LTEBackup",
            "Ready"
          ]
        }
      },
      "Action": {
        "name": "action",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "Id": {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Instance identifier from the corresponding list endpoint."
      },
      "IfName": {
        "name": "ifname",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Wireless interface name, e.g. `wlan0`, `wl0`, `wl1`, or an SSID index depending on build."
      },
      "Index": {
        "name": "index",
        "in": "path",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "description": "1-based radio index."
      },
      "Callback": {
        "name": "callback",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "JSONP callback name. Response becomes `callback(json)`."
      },
      "PortId": {
        "name": "portId",
        "in": "query",
        "required": true,
        "schema": {
          "type": "integer"
        },
        "description": "Downstream port identifier from `CM/DsInfo`."
      },
      "CentFreq": {
        "name": "centFreq",
        "in": "query",
        "required": true,
        "schema": {
          "type": "number",
          "format": "float"
        },
        "description": "Centre frequency in MHz."
      },
      "FromFreq": {
        "name": "fromFreq",
        "in": "query",
        "required": true,
        "schema": {
          "type": "number",
          "format": "float"
        },
        "description": "Start frequency in MHz."
      },
      "ToFreq": {
        "name": "toFreq",
        "in": "query",
        "required": true,
        "schema": {
          "type": "number",
          "format": "float"
        },
        "description": "End frequency in MHz."
      },
      "ModelForm": {
        "name": "model",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "JSON-encoded request document. Firmware reads this from the form body; documented here for completeness."
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Validation or dispatch failure. The body still uses the JSON envelope;\n`errCode` is `\"001\"` for invalid parameters, `\"005\"` for an\nunsupported method, and other controller-specific codes exist.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            },
            "examples": {
              "invalidParameter": {
                "value": {
                  "errCode": "001",
                  "errMsg": "Invalid Paramters."
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Login required, or the session expired.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Envelope"
            }
          }
        }
      }
    },
    "schemas": {
      "Envelope": {
        "type": "object",
        "description": "Base response envelope merged into every payload.",
        "required": [
          "errCode",
          "errMsg"
        ],
        "properties": {
          "errCode": {
            "type": "string",
            "description": "`\"000\"` on success.",
            "example": "000"
          },
          "errMsg": {
            "type": "string",
            "example": ""
          }
        },
        "additionalProperties": true
      },
      "MenuItem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer"
              },
              "mainIndex": {
                "type": "integer"
              },
              "subIndex": {
                "type": "integer"
              },
              "tagName": {
                "type": "string"
              },
              "langTagId": {
                "type": "string"
              },
              "visible": {
                "type": "boolean"
              },
              "selected": {
                "type": "boolean"
              },
              "hyperLink": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "MenuResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Menu_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MenuItem"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "User": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string"
              },
              "user_name": {
                "type": "string"
              },
              "curr_uid": {
                "type": "string"
              },
              "available": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "LoginRequest": {
        "type": "object",
        "required": [
          "username",
          "password"
        ],
        "properties": {
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string",
            "format": "password"
          }
        }
      },
      "LoginResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "success": {
                "type": "boolean"
              },
              "uid": {
                "type": "string"
              },
              "role": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DeviceVersion": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "modelName": {
                "type": "string",
                "example": "CODA-60"
              },
              "vendorName": {
                "type": "string",
                "example": "Hitron"
              },
              "hwVersion": {
                "type": "string",
                "example": "1A"
              },
              "swVersion": {
                "type": "string",
                "example": "8.5.0.0.3b2"
              },
              "serialNumber": {
                "type": "string",
                "example": "AN50258036AE"
              },
              "deploymentName": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RouterSysInfo": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "hwVersion": {
                "type": "string",
                "example": "1A"
              },
              "swVersion": {
                "type": "string",
                "example": "8.5.0.0.3b2"
              },
              "serialNumber": {
                "type": "string",
                "example": "AN50258036AE"
              },
              "systemTime": {
                "type": "string",
                "example": "Mon Apr 27, 2026, 15:07:57"
              },
              "rfMac": {
                "type": "string",
                "example": "B0:F5:30:87:C8:7C"
              },
              "systemUptime": {
                "type": "string",
                "example": "134h:54m:33s"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "CmSysInfo": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ntAccess": {
                "type": "string",
                "example": "Permitted"
              },
              "ip": {
                "type": "string",
                "example": "10.33.143.251 / 10.33.143.251"
              },
              "subMask": {
                "type": "string",
                "example": "255.255.192.0"
              },
              "gw": {
                "type": "string",
                "example": "10.33.128.1"
              },
              "lease": {
                "type": "string",
                "example": "D: 05 H: 00 M: 00 S: 00"
              },
              "Configname": {
                "type": "string",
                "example": "CBR8_Bundle2_Default-1.cfg"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DocsisProvision": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "hwInit": {
                "type": "string",
                "example": "Success"
              },
              "findDownstream": {
                "type": "string",
                "example": "Success"
              },
              "ranging": {
                "type": "string",
                "example": "Success"
              },
              "dhcp": {
                "type": "string",
                "example": "Success"
              },
              "timeOfday": {
                "type": "string",
                "example": "Success"
              },
              "downloadCfg": {
                "type": "string",
                "example": "Success"
              },
              "registration": {
                "type": "string",
                "example": "Success"
              },
              "bpiStatus": {
                "type": "string",
                "example": "AUTH:authorized, TEK:operational"
              },
              "eaeStatus": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DsChannel": {
        "type": "object",
        "description": "One SC-QAM downstream channel.",
        "properties": {
          "portId": {
            "type": "integer",
            "example": 25
          },
          "frequency": {
            "type": "string",
            "description": "Hz",
            "example": "267000000"
          },
          "modulation": {
            "type": "string",
            "example": "2"
          },
          "signalStrength": {
            "type": "string",
            "description": "dBmV",
            "example": "8.098"
          },
          "snr": {
            "type": "string",
            "description": "dB",
            "example": "43.377"
          },
          "channelId": {
            "type": "string",
            "example": "1"
          },
          "dsoctets": {
            "type": "string",
            "example": "34 * 2e32   1203911172"
          },
          "correcteds": {
            "type": "string",
            "example": "0"
          },
          "uncorrect": {
            "type": "string",
            "example": "0"
          }
        },
        "additionalProperties": true
      },
      "DsInfoResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Freq_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DsChannel"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "UsChannel": {
        "type": "object",
        "description": "One SC-QAM / ATDMA upstream channel.",
        "properties": {
          "portId": {
            "type": "string",
            "example": "1"
          },
          "frequency": {
            "type": "string",
            "description": "Hz",
            "example": "14000000"
          },
          "modtype": {
            "type": "string",
            "example": "64QAM"
          },
          "signalStrength": {
            "type": "string",
            "description": "dBmV",
            "example": "31.000"
          },
          "bandwidth": {
            "type": "string",
            "description": "Hz",
            "example": "6400000"
          },
          "channelId": {
            "type": "string",
            "example": "10"
          },
          "scdmaMode": {
            "type": "string",
            "example": "ATDMA"
          }
        },
        "additionalProperties": true
      },
      "UsInfoResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Freq_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UsChannel"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DsOfdmChannel": {
        "type": "object",
        "description": "One OFDM downstream channel. `index` is what the UI plots.",
        "properties": {
          "receive": {
            "type": "string"
          },
          "ffttype": {
            "type": "string",
            "example": "4K"
          },
          "Subcarr0freqFreq": {
            "type": "string",
            "description": "Hz",
            "example": "296600000"
          },
          "plclock": {
            "type": "string",
            "enum": [
              true,
              false
            ]
          },
          "ncplock": {
            "type": "string",
            "enum": [
              true,
              false
            ]
          },
          "mdc1lock": {
            "type": "string",
            "enum": [
              true,
              false
            ]
          },
          "plcpower": {
            "type": "string",
            "description": "dBmV",
            "example": "8.539063"
          },
          "SNR": {
            "type": "string",
            "description": "dB",
            "example": "48"
          },
          "dsoctets": {
            "type": "string"
          },
          "correcteds": {
            "type": "string"
          },
          "uncorrect": {
            "type": "string"
          },
          "index": {
            "type": "integer",
            "example": 1
          }
        },
        "additionalProperties": true
      },
      "DsOfdmResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Freq_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DsOfdmChannel"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "UsOfdmChannel": {
        "type": "object",
        "description": "One OFDMA upstream channel.",
        "properties": {
          "uschindex": {
            "type": "string",
            "example": "1"
          },
          "state": {
            "type": "string",
            "example": "OPERATE"
          },
          "frequency": {
            "type": "string",
            "description": "Hz",
            "example": "22000000"
          },
          "digAtten": {
            "type": "string",
            "description": "dB",
            "example": "0.5792"
          },
          "digAttenBo": {
            "type": "string"
          },
          "channelBw": {
            "type": "string",
            "description": "MHz",
            "example": "58.8000"
          },
          "repPower": {
            "type": "string",
            "description": "dBmV",
            "example": "48.6526"
          },
          "repPower1_6": {
            "type": "string",
            "description": "dBmV DOCSIS-3.0 equivalent",
            "example": "33.0000"
          },
          "fftVal": {
            "type": "string",
            "example": "2K"
          }
        },
        "additionalProperties": true
      },
      "UsOfdmResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Freq_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UsOfdmChannel"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DocsisLogEntry": {
        "type": "object",
        "properties": {
          "index": {
            "type": "string"
          },
          "time": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "event": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "DocsisLogResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Log_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DocsisLogEntry"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "LteBackup": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "LTE_Backup_Enable": {
                "type": "string"
              },
              "LTE_Backup_Mode": {
                "type": "string"
              },
              "LTE_Connection": {
                "type": "string"
              },
              "LTE_ISP": {
                "type": "string"
              },
              "LTE_IMSI": {
                "type": "string"
              },
              "LTE_APN": {
                "type": "string"
              },
              "LTE_APN_Username": {
                "type": "string"
              },
              "LTE_APN_Password": {
                "type": "string"
              },
              "LTE_APN_Authentication": {
                "type": "string"
              },
              "LTE_APN_Auto": {
                "type": "string"
              },
              "LTE_APN_ProfileName": {
                "type": "string"
              },
              "LTE_SignalStrength": {
                "type": "string"
              },
              "LTE_WANIP": {
                "type": "string"
              },
              "Dongle_Vendor": {
                "type": "string"
              },
              "Dongle_IMEI": {
                "type": "string"
              },
              "Dongle_HardwareVersion": {
                "type": "string"
              },
              "Dongle_SoftwareVersion": {
                "type": "string"
              },
              "Dongle_RX_Monthly": {
                "type": "string"
              },
              "Dongle_TX_Monthly": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "ReadyResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ready": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "PortForwardRule": {
        "type": "object",
        "properties": {
          "appName": {
            "type": "string"
          },
          "localIpAddr": {
            "type": "string"
          },
          "priStart": {
            "type": "string"
          },
          "priEnd": {
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "pubStart": {
            "type": "string"
          },
          "pubEnd": {
            "type": "string"
          },
          "remoteIpStar": {
            "type": "string"
          },
          "remoteIpEnd": {
            "type": "string"
          },
          "ruleOnOff": {
            "type": "string"
          },
          "enable": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "PortForwardRules": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PortForwardRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "PortForwardStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ipv4": {
                "type": "string"
              },
              "ipv6": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "PortTriggerRule": {
        "type": "object",
        "properties": {
          "appName": {
            "type": "string"
          },
          "priStart": {
            "type": "string"
          },
          "priEnd": {
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "pubStart": {
            "type": "string"
          },
          "pubEnd": {
            "type": "string"
          },
          "timeout": {
            "type": "string"
          },
          "twowayOnOff": {
            "type": "string"
          },
          "ruleOnOff": {
            "type": "string"
          },
          "enable": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "PortTriggerRules": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PortTriggerRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "PortTriggerStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ruleOnOff": {
                "type": "string"
              },
              "active": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "MtaStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "NumberOfSLIC": {
                "type": "string"
              },
              "voiceProtocol": {
                "type": "string"
              },
              "telDhcp": {
                "type": "string"
              },
              "telReg": {
                "type": "string"
              },
              "telSec": {
                "type": "string"
              },
              "telTftp": {
                "type": "string"
              },
              "Line1IMPU": {
                "type": "string"
              },
              "Line1RegState": {
                "type": "string"
              },
              "line1CallState": {
                "type": "string"
              },
              "Line2IMPU": {
                "type": "string"
              },
              "Line2RegState": {
                "type": "string"
              },
              "line2CallState": {
                "type": "string"
              },
              "Line3RegState": {
                "type": "string"
              },
              "line3CallState": {
                "type": "string"
              },
              "Line4RegState": {
                "type": "string"
              },
              "line4CallState": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "MtaDhcp": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "mtaMacAddr": {
                "type": "string"
              },
              "mtaIpAddr": {
                "type": "string"
              },
              "mtaSubmask": {
                "type": "string"
              },
              "mtaGw": {
                "type": "string"
              },
              "mtaPriDns": {
                "type": "string"
              },
              "mtaSecDns": {
                "type": "string"
              },
              "mtaFQDN": {
                "type": "string"
              },
              "mtaKr": {
                "type": "string"
              },
              "mtaLeaseT": {
                "type": "string"
              },
              "mtaProvT": {
                "type": "string"
              },
              "mtaSnmp": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "MtaLogEntry": {
        "type": "object",
        "properties": {
          "index": {
            "type": "string"
          },
          "time": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "event": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "MtaLog": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Log_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MtaLogEntry"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "MtaQualityMetricEntry": {
        "type": "object",
        "properties": {
          "Index": {
            "type": "string"
          },
          "Line": {
            "type": "string"
          },
          "Call_Start_Time": {
            "type": "string"
          },
          "Call_End_Time": {
            "type": "string"
          },
          "Call_Duration": {
            "type": "string"
          },
          "Remote_IP_Address": {
            "type": "string"
          },
          "SNR": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "MtaQualityMetric": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "QualityMetric_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MtaQualityMetricEntry"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiRadio": {
        "type": "object",
        "properties": {
          "Radio_URI": {
            "type": "string",
            "example": "/1/Device/WiFi/Radios/1"
          },
          "vendor": {
            "type": "string"
          },
          "modelName": {
            "type": "string",
            "example": "CODA6X"
          },
          "band": {
            "type": "string",
            "example": "2.4G"
          },
          "wlsOnOff": {
            "type": "string",
            "enum": [
              true,
              false
            ]
          },
          "wlsMode": {
            "type": "string",
            "nullable": true
          },
          "n_bandwidth": {
            "type": "string",
            "example": "20/40MHZ"
          },
          "wlsChannel": {
            "type": "integer"
          },
          "wlsSecChannel": {
            "type": "string"
          },
          "autoChannel": {
            "type": "string",
            "enum": [
              true,
              false
            ]
          },
          "wlsDfsOnOff": {
            "type": "string"
          },
          "wlsCurrentChannel": {
            "type": "string"
          },
          "wlsWpsOnOff": {
            "type": "string"
          },
          "wlsDcsOnOff": {
            "type": "string"
          },
          "countryRegion": {
            "type": "string"
          },
          "hasGuest": {
            "type": "integer"
          },
          "showWlsMBtn": {
            "type": "string"
          },
          "bandsteer": {
            "type": "string"
          },
          "ssid_list": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "ext": {
            "type": "string"
          },
          "bSomeItemsReadOnly": {
            "type": "string"
          },
          "igmpSnoop": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "WifiRadios": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RadioNumberOfEntries": {
                "type": "integer"
              },
              "Raidos_List": {
                "type": "array",
                "description": "Firmware spells the key `Raidos_List`.",
                "items": {
                  "$ref": "#/components/schemas/WifiRadio"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RadioAdvanced": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "bandsteering": {
                "type": "string",
                "enum": [
                  true,
                  false
                ]
              },
              "ssidName": {
                "type": "string"
              },
              "bgMode": {
                "type": "string"
              },
              "dfs": {
                "type": "string"
              },
              "enable11R": {
                "type": "string"
              },
              "igmpSnoop": {
                "type": "string"
              },
              "modelName": {
                "type": "string"
              },
              "modelType": {
                "type": "string"
              },
              "n_GuardInterval": {
                "type": "string"
              },
              "n_OperatingMode": {
                "type": "string"
              },
              "n_amsdu": {
                "type": "string"
              },
              "n_autoba": {
                "type": "string"
              },
              "n_badecline": {
                "type": "string"
              },
              "n_coexistence": {
                "type": "string"
              },
              "n_mcs": {
                "type": "string"
              },
              "n_rdg": {
                "type": "string"
              },
              "rx_stream": {
                "type": "string"
              },
              "tx_stream": {
                "type": "string"
              },
              "userType": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RadioAdvancedList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "AdvancedNumberOfEntries": {
                "type": "integer"
              },
              "Advanced_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RadioAdvanced"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "AtfConfig": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "enable": {
                "type": "string",
                "enum": [
                  true,
                  false
                ]
              },
              "airtime": {
                "type": "string",
                "description": "AirTimePercent for the AP group."
              },
              "strict": {
                "type": "string",
                "enum": [
                  true,
                  false
                ]
              },
              "atfPolicy": {
                "type": "string"
              },
              "atftype": {
                "type": "string"
              },
              "band": {
                "type": "string"
              },
              "wlsOnOff": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "AtfSsid": {
        "type": "object",
        "properties": {
          "band": {
            "type": "string"
          },
          "index": {
            "type": "string"
          },
          "ssid": {
            "type": "string"
          },
          "ssidatf": {
            "type": "string"
          },
          "wlsStatus": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "AtfSsidList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ATFSSID_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AtfSsid"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "AtfStation": {
        "type": "object",
        "properties": {
          "band": {
            "type": "string"
          },
          "index": {
            "type": "string"
          },
          "mac": {
            "type": "string"
          },
          "macatf": {
            "type": "string"
          },
          "wlsStatus": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "AtfStationList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ATFSTATION_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AtfStation"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Ssid": {
        "type": "object",
        "properties": {
          "SSID_URI": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ifName": {
            "type": "string"
          },
          "ssidName": {
            "type": "string"
          },
          "band": {
            "type": "string"
          },
          "bandsteer": {
            "type": "string"
          },
          "bssid": {
            "type": "string"
          },
          "enable": {
            "type": "string"
          },
          "securityMode": {
            "type": "string"
          },
          "SecuMode": {
            "type": "string"
          },
          "authMode": {
            "type": "string"
          },
          "encryptType": {
            "type": "string"
          },
          "passPhrase": {
            "type": "string",
            "format": "password"
          },
          "hiddenWepAtkip": {
            "type": "string"
          },
          "isPriSsid": {
            "type": "string"
          },
          "maxInactiveTime": {
            "type": "string"
          },
          "radio": {
            "type": "string"
          },
          "ssidSplit": {
            "type": "string"
          },
          "txKey": {
            "type": "string"
          },
          "visible": {
            "type": "string"
          },
          "wepShownOpt": {
            "type": "string"
          },
          "wlsEnable": {
            "type": "string"
          },
          "wlsMode": {
            "type": "string"
          },
          "wlswpsOnOff": {
            "type": "string"
          },
          "wmm": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "SsidList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "SSIDNumberOfEntries": {
                "type": "integer"
              },
              "SSIDs_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Ssid"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiClient": {
        "type": "object",
        "properties": {
          "aid": {
            "type": "string"
          },
          "band": {
            "type": "string"
          },
          "br": {
            "type": "string"
          },
          "bw": {
            "type": "string"
          },
          "ch": {
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "index": {
            "type": "string"
          },
          "mac": {
            "type": "string"
          },
          "pm": {
            "type": "string"
          },
          "rssi": {
            "type": "string"
          },
          "ssid": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "WifiClientList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ClientNumberOfEntries": {
                "type": "integer"
              },
              "Client_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WifiClient"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiStation": {
        "type": "object",
        "properties": {
          "aid": {
            "type": "string"
          },
          "bandwidth": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "mac": {
            "type": "string"
          },
          "phymode": {
            "type": "string"
          },
          "rssi": {
            "type": "string"
          },
          "rxRate": {
            "type": "string"
          },
          "txRate": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "WifiStationList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Stations_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WifiStation"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiSurveyEntry": {
        "type": "object",
        "properties": {
          "band": {
            "type": "string"
          },
          "bssid": {
            "type": "string"
          },
          "extch": {
            "type": "string"
          },
          "nt": {
            "type": "string"
          },
          "security": {
            "type": "string"
          },
          "signal": {
            "type": "string"
          },
          "ssidName": {
            "type": "string"
          },
          "wlsChannel": {
            "type": "string"
          },
          "wmode": {
            "type": "string"
          },
          "wps": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "WifiSurveyList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "SurveyNumberOfEntries": {
                "type": "integer"
              },
              "Survey_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WifiSurveyEntry"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiWps": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "wlsWpsOnOff": {
                "type": "string"
              },
              "wlsWpsMethod": {
                "type": "string"
              },
              "wlsWpsClientPin": {
                "type": "string"
              },
              "wlsWpsConfigured": {
                "type": "string"
              },
              "wlsWpsConfigured5g": {
                "type": "string"
              },
              "wlsWpsState24g": {
                "type": "string"
              },
              "wlsWpsState5g": {
                "type": "string"
              },
              "wlsWpsStatus": {
                "type": "string"
              },
              "wlsWpsTimeElapsed": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiHotspot": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Hotspot_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "ssidIndex": {
                      "type": "string"
                    },
                    "ssidname": {
                      "type": "string"
                    },
                    "band": {
                      "type": "string"
                    },
                    "bInused": {
                      "type": "string"
                    },
                    "bGretunnel": {
                      "type": "string"
                    },
                    "greOnOff": {
                      "type": "string"
                    },
                    "SnoopingOnOff": {
                      "type": "string"
                    },
                    "vlanSet": {
                      "type": "string"
                    },
                    "vlantag": {
                      "type": "string"
                    },
                    "comnum": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "GuestSsid": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "guestEnable": {
                "type": "string"
              },
              "enable": {
                "type": "string"
              },
              "guestSsidName": {
                "type": "string"
              },
              "guestSsidName5G": {
                "type": "string"
              },
              "ssidName": {
                "type": "string"
              },
              "ssidName5G": {
                "type": "string"
              },
              "pswd": {
                "type": "string",
                "format": "password"
              },
              "bssid": {
                "type": "string"
              },
              "bssid5G": {
                "type": "string"
              },
              "allowmax": {
                "type": "string"
              },
              "modelName": {
                "type": "string"
              },
              "adminGuestAccProvider": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiAccessControlStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "Disabled",
                  "Allow All",
                  "Allow Listed",
                  "Block Listed"
                ]
              },
              "blockType": {
                "type": "string"
              },
              "Status": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiAccessControlMacs": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Macs_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "hostName": {
                      "type": "string"
                    },
                    "macAddr": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "WifiRssi": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RSSI_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "hostID": {
                      "type": "string"
                    },
                    "ip": {
                      "type": "string"
                    },
                    "macAddr": {
                      "type": "string"
                    },
                    "rssi": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Host": {
        "type": "object",
        "properties": {
          "hostID": {
            "type": "string"
          },
          "hostName": {
            "type": "string"
          },
          "ip": {
            "type": "string"
          },
          "ipv6": {
            "type": "string"
          },
          "macAddr": {
            "type": "string"
          },
          "addressSource": {
            "type": "string"
          },
          "connectType": {
            "type": "string"
          },
          "deviceType": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "fwLevel": {
            "type": "string"
          },
          "groupID": {
            "type": "string"
          },
          "groupMaster": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "rssi": {
            "type": "string"
          },
          "rx": {
            "type": "string"
          },
          "tx": {
            "type": "string"
          },
          "theroy_rx": {
            "type": "string"
          },
          "theroy_tx": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "userID": {
            "type": "string"
          },
          "wlsMode": {
            "type": "string"
          },
          "leaseTimeRemaining": {
            "type": "string"
          },
          "Firewall": {
            "type": "string"
          },
          "Ssid": {
            "type": "string"
          },
          "KwdFilter_URI": {
            "type": "string"
          },
          "SrvFilter_URI": {
            "type": "string"
          },
          "TmFilter_URI": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "HostList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "HostNumberOfEntries": {
                "type": "integer"
              },
              "Hosts_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Host"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DefFwLevel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "defFwLevel": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DhcpLan": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "dhcpOnOff": {
                "type": "string"
              },
              "dhcpStarIp": {
                "type": "string"
              },
              "dhcpEndIp": {
                "type": "string"
              },
              "leasetime": {
                "type": "string"
              },
              "privateLanIp": {
                "type": "string"
              },
              "subMask": {
                "type": "string"
              },
              "uPnpOnOff": {
                "type": "string"
              },
              "dhcpPubOnOff": {
                "type": "string"
              },
              "dhcpPubStarIp": {
                "type": "string"
              },
              "dhcpPubEndIp": {
                "type": "string"
              },
              "publeasetime": {
                "type": "string"
              },
              "publicLanIp": {
                "type": "string"
              },
              "subPubMask": {
                "type": "string"
              },
              "showPublicLan": {
                "type": "string"
              },
              "bSomeItemsReadOnly": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DhcpReservation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "hostName": {
            "type": "string"
          },
          "ipAddr": {
            "type": "string"
          },
          "macAddr": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "DhcpReservationList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ReservationNumberOfEntries": {
                "type": "integer"
              },
              "Reservation_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DhcpReservation"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Wan": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "WanDHCPOnOff": {
                "type": "string"
              },
              "WanIp": {
                "type": "string"
              },
              "WanSubmask": {
                "type": "string"
              },
              "WanGw": {
                "type": "string"
              },
              "PriDNS": {
                "type": "string"
              },
              "SecDNS": {
                "type": "string"
              },
              "Wan6Ip": {
                "type": "string"
              },
              "Wan6Submask": {
                "type": "string"
              },
              "Wan6Gw": {
                "type": "string"
              },
              "Wan6DNS": {
                "type": "string"
              },
              "ipv6only": {
                "type": "string"
              },
              "supportDNS": {
                "type": "string"
              },
              "bSomeItemsReadOnly": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Dns": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "dnsProxyOnOff": {
                "type": "string"
              },
              "domainEnable": {
                "type": "string"
              },
              "domainSuffix": {
                "type": "string"
              },
              "lanDnsOnOff": {
                "type": "string"
              },
              "lanDnsV6Obtain": {
                "type": "string"
              },
              "landns1": {
                "type": "string"
              },
              "landns2": {
                "type": "string"
              },
              "landnsv6_1": {
                "type": "string"
              },
              "landnsv6_2": {
                "type": "string"
              },
              "proxyName1": {
                "type": "string"
              },
              "proxyName2": {
                "type": "string"
              },
              "bSomeItemsReadOnly": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Moca": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "moca_status": {
                "type": "string"
              },
              "fs_mode": {
                "type": "string"
              },
              "fs_channel": {
                "type": "string"
              },
              "txpower": {
                "type": "string"
              },
              "beaconpwr": {
                "type": "string"
              },
              "nctype": {
                "type": "string"
              },
              "mocaNTSecurity": {
                "type": "string"
              },
              "mocaMac": {
                "type": "string"
              },
              "coaxTx": {
                "type": "string"
              },
              "coaxRx": {
                "type": "string"
              },
              "mocaLink": {
                "type": "string"
              },
              "fwVersion": {
                "type": "string"
              },
              "fs_scan_start": {
                "type": "string"
              },
              "fs_scan_end": {
                "type": "string"
              },
              "password": {
                "type": "string",
                "format": "password"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Ddns": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ddnsOnOff": {
                "type": "string"
              },
              "ddnsSrvProvider": {
                "type": "string"
              },
              "ddnsHostnames": {
                "type": "string"
              },
              "ddnsUsername": {
                "type": "string"
              },
              "ddnsPassword": {
                "type": "string",
                "format": "password"
              },
              "ddnsUpdateInterval": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DdnsStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "lastUpdate": {
                "type": "string"
              },
              "ip": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "IpPass": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ippassEnable": {
                "type": "string"
              },
              "ippassMode": {
                "type": "string"
              },
              "ippassMac": {
                "type": "string"
              },
              "ippassPort": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Gre": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "greOnOff": {
                "type": "string"
              },
              "greMode": {
                "type": "string"
              },
              "greStaticIP": {
                "type": "string"
              },
              "greFQDN": {
                "type": "string"
              },
              "greInterface": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Vlan": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ethPort1": {
                "type": "string"
              },
              "ethPort2": {
                "type": "string"
              },
              "ethPort3": {
                "type": "string"
              },
              "ethPort4": {
                "type": "string"
              },
              "hotspotssid": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Rip": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "SupLanRip": {
                "type": "string"
              },
              "WanOrRf": {
                "type": "string"
              },
              "ripAuthType": {
                "type": "string"
              },
              "ripInterface": {
                "type": "string"
              },
              "ripInterval": {
                "type": "string"
              },
              "ripKey": {
                "type": "string"
              },
              "ripKeyID": {
                "type": "string"
              },
              "ripMetric": {
                "type": "string"
              },
              "ripNeighborD": {
                "type": "string"
              },
              "ripRecType": {
                "type": "string"
              },
              "ripSendType": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "StaticRoute": {
        "type": "object",
        "properties": {
          "RipOnOff": {
            "type": "string"
          },
          "Route_gateway": {
            "type": "string"
          },
          "Router_des": {
            "type": "string"
          },
          "Router_destIp": {
            "type": "string"
          },
          "Router_mask": {
            "type": "string"
          },
          "RuleOnOff": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "StaticRouteList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StaticRoute"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "IpMapping": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "LanIpAddr": {
            "type": "string"
          },
          "WanIpAddr": {
            "type": "string"
          },
          "ruleOnOff": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "IpMappingList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/IpMapping"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "IpMappingStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ipMapRulesOnOff": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "FirewallLevel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string"
              },
              "securityLevel": {
                "type": "string"
              },
              "customFirewall": {
                "type": "string"
              },
              "customHttp": {
                "type": "string"
              },
              "customIcmp": {
                "type": "string"
              },
              "customIdent": {
                "type": "string"
              },
              "customP2P": {
                "type": "string"
              },
              "extPingEnable": {
                "type": "string"
              },
              "extPingSupport": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "FirewallLevels": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Levels_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "desc": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "FirewallLog": {
        "type": "object",
        "properties": {
          "index": {
            "type": "string"
          },
          "event": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "FirewallLogs": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Log_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FirewallLog"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "FirewallVpn": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "vpnIpsecOnOff": {
                "type": "string"
              },
              "vpnL2tpOnOff": {
                "type": "string"
              },
              "vpnPptpOnOff": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "InboundRule": {
        "type": "object",
        "properties": {
          "appName": {
            "type": "string"
          },
          "localIp": {
            "type": "string"
          },
          "localOnOff": {
            "type": "string"
          },
          "portStart": {
            "type": "string"
          },
          "portEnd": {
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "remoteIp": {
            "type": "string"
          },
          "remoteOnOff": {
            "type": "string"
          },
          "ruleOnOff": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "InboundRules": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/InboundRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "InboundStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "IPv6FirewallOnOff": {
                "type": "string"
              },
              "IPv6LanIp": {
                "type": "string"
              },
              "IPv6PingOnOff": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "ServiceFilterStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "allRulesOnOff": {
                "type": "string"
              },
              "privateLanIp": {
                "type": "string"
              },
              "subMask": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "ServiceFilterRule": {
        "type": "object",
        "properties": {
          "appName": {
            "type": "string"
          },
          "managed": {
            "type": "string"
          },
          "port_start": {
            "type": "string"
          },
          "port_end": {
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "enable": {
            "type": "string"
          },
          "blockAllTime": {
            "type": "string"
          },
          "blockedWeekdays": {
            "type": "string"
          },
          "tacStartHour": {
            "type": "string"
          },
          "tacStartMin": {
            "type": "string"
          },
          "tacEndHour": {
            "type": "string"
          },
          "tacEndMin": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "ServiceFilterRules": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ServiceFilterRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "TrustRule": {
        "type": "object",
        "properties": {
          "btnStatus": {
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "trustIp": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "TrustRuleList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "TrustRules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TrustRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DeviceFilterType": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "blockType": {
                "type": "string",
                "enum": [
                  "Allow All",
                  "Allow Listed",
                  "Block Listed"
                ]
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DeviceFilterRule": {
        "type": "object",
        "properties": {
          "hostName": {
            "type": "string"
          },
          "macAddr": {
            "type": "string"
          },
          "enable": {
            "type": "string"
          },
          "blockAllTime": {
            "type": "string"
          },
          "blockedWeekdays": {
            "type": "string"
          },
          "tacStartHour": {
            "type": "string"
          },
          "tacStartMin": {
            "type": "string"
          },
          "tacEndHour": {
            "type": "string"
          },
          "tacEndMin": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "DeviceFilterRules": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DeviceFilterRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "KeywordFilterStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "kwdfilter": {
                "type": "string"
              },
              "privateLanIp": {
                "type": "string"
              },
              "subMask": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "KeywordFilterRule": {
        "type": "object",
        "properties": {
          "kwdName": {
            "type": "string"
          },
          "enable": {
            "type": "string"
          },
          "blockAllTime": {
            "type": "string"
          },
          "blockedWeekdays": {
            "type": "string"
          },
          "tacStartHour": {
            "type": "string"
          },
          "tacStartMin": {
            "type": "string"
          },
          "tacEndHour": {
            "type": "string"
          },
          "tacEndMin": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "KeywordFilterRules": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Rules_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/KeywordFilterRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "TimeFilterRule": {
        "type": "object",
        "properties": {
          "enable": {
            "type": "string"
          },
          "tz": {
            "type": "string"
          },
          "blockAllTime": {
            "type": "string"
          },
          "blockedWeekdays": {
            "type": "string"
          },
          "tacStartHour": {
            "type": "string"
          },
          "tacStartMin": {
            "type": "string"
          },
          "tacEndHour": {
            "type": "string"
          },
          "tacEndMin": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "TimeFilterList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Tms_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TimeFilterRule"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "DiagnosticsInput": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ModelName": {
                "type": "string"
              },
              "TestIpAddress": {
                "type": "string"
              },
              "UserType": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "PingResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "DiagnosticsState": {
                "type": "string"
              },
              "AverageResponseTime": {
                "type": "string"
              },
              "DataBlockSize": {
                "type": "string"
              },
              "FailureCount": {
                "type": "string"
              },
              "Host": {
                "type": "string"
              },
              "MaximumResponseTime": {
                "type": "string"
              },
              "MinimumResponseTime": {
                "type": "string"
              },
              "NumberOfRepetitions": {
                "type": "string"
              },
              "SuccessCount": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "TraceRouteHop": {
        "type": "object",
        "properties": {
          "hop": {
            "type": "string"
          },
          "ip": {
            "type": "string"
          },
          "rtt": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "TraceRouteResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "DiagnosticsState": {
                "type": "string"
              },
              "DSCP": {
                "type": "string"
              },
              "DataBlockSize": {
                "type": "string"
              },
              "Host": {
                "type": "string"
              },
              "MaxHopCount": {
                "type": "string"
              },
              "NumberOfTries": {
                "type": "string"
              },
              "ResponseTime": {
                "type": "string"
              },
              "Timeout": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "Hops_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TraceRouteHop"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "TimeInfo": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "TOD_Support": {
                "type": "string"
              },
              "todOnOff": {
                "type": "string"
              },
              "todTimeZone": {
                "type": "string"
              },
              "DST_Support": {
                "type": "string"
              },
              "daylightOnOff": {
                "type": "string"
              },
              "daylightTime": {
                "type": "string"
              },
              "sntpOnOff": {
                "type": "string"
              },
              "sntpSrvName": {
                "type": "string"
              },
              "sntpTimeZone": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "AdvancedSwitchPort": {
        "type": "object",
        "properties": {
          "portId": {
            "type": "integer"
          },
          "power": {
            "type": "string"
          },
          "neg": {
            "type": "string"
          },
          "speed": {
            "type": "string"
          },
          "duplex": {
            "type": "string"
          },
          "linked": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "AdvancedSwitch": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "advSwitch_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AdvancedSwitchPort"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "UsbInfo": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "btnSmbOnOff": {
                "type": "string",
                "enum": [
                  true,
                  false
                ]
              },
              "lanip": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "UsbDevice": {
        "type": "object",
        "description": "One Samba share backed by the attached USB disk.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "lanAddr": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "shareName": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "UsbDeviceList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "ListNumberOfEntries": {
                "type": "integer"
              },
              "DeviceAttach_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UsbDevice"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Bbu": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "battOnOff": {
                "type": "string"
              },
              "battInsert": {
                "type": "string"
              },
              "battCharge": {
                "type": "string"
              },
              "battRemain": {
                "type": "string"
              },
              "battPsm": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RemoteStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "allowAll": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RemoteAc": {
        "type": "object",
        "properties": {
          "HttpRuleOnOff": {
            "type": "string"
          },
          "HttpPort": {
            "type": "string"
          },
          "HttpsRuleOnOff": {
            "type": "string"
          },
          "HttpsPort": {
            "type": "string"
          },
          "SshRuleOnOff": {
            "type": "string"
          },
          "SshPort": {
            "type": "string"
          },
          "TelnetRuleOnOff": {
            "type": "string"
          },
          "TelnetPort": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "RemoteAcList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "AdminAc_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RemoteAc"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RemoteListEntry": {
        "type": "object",
        "properties": {
          "ipStart": {
            "type": "string"
          },
          "ipEndAddr": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "RemoteList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RuleNumberOfEntries": {
                "type": "integer"
              },
              "Remote_List": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RemoteListEntry"
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Health": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Health_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "hostID": {
                      "type": "string"
                    },
                    "typeID": {
                      "type": "string"
                    },
                    "resultID": {
                      "type": "string"
                    },
                    "SSID_ID": {
                      "type": "string"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "extra": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "HealthSettings": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "rssiThre": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "SpectrumFreqList": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Freq_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "portId": {
                      "type": "integer"
                    },
                    "frequency": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "SpectrumFreqPower": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "Power_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "frequency": {
                      "type": "number"
                    },
                    "power": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "SpectrumRtData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "RTData_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "frequency": {
                      "type": "number"
                    },
                    "power": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "SpectrumConstellation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "portId": {
                "type": "integer"
              },
              "Constellation_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "AssiaAgent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "AssiaAgent_List": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "enable": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "TelemetryDeviceInfo": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "device_id": {
                "type": "string"
              },
              "mso": {
                "type": "string"
              },
              "hw_model": {
                "type": "string"
              },
              "hw_manufacturer": {
                "type": "string"
              },
              "hardware_version": {
                "type": "string"
              },
              "software_version": {
                "type": "string"
              },
              "serial_number": {
                "type": "string"
              },
              "parent": {
                "type": "string"
              },
              "connect_type": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RfMetrics": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "mac": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "ds_channel": {
                "type": "string"
              },
              "us_channel": {
                "type": "string"
              },
              "ds_ofdm_channel": {
                "type": "string"
              },
              "us_ofdma_channel": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "Pnm": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "mac": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              },
              "rxmer": {
                "type": "string"
              },
              "ch_est_coef": {
                "type": "string"
              },
              "us_pre_eq": {
                "type": "string"
              },
              "mod_prof": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "ManageInfo": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "adminUsername": {
                "type": "string"
              },
              "username": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "MutationResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "success": {
                "type": "boolean"
              },
              "message": {
                "type": "string"
              },
              "error": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      },
      "RegisterRequest": {
        "type": "object",
        "required": [
          "appid",
          "seckey"
        ],
        "properties": {
          "appid": {
            "type": "string",
            "description": "Vendor application identifier."
          },
          "seckey": {
            "type": "string",
            "description": "RS256 JWT, signed by Hitron, containing `jti`, `iss=Hitron`, `vendor`, and `model`."
          }
        }
      },
      "RegisterResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "properties": {
              "token": {
                "type": "string"
              },
              "appid": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        ]
      }
    },
    "requestBodies": {
      "ModelBody": {
        "required": true,
        "description": "Firmware reads `POST[\"model\"]` and `json_decode`s it. Send the JSON as\na form field named `model`, or as a raw JSON body. Include\n`\"_method\":\"PUT\"|\"DELETE\"|\"PATCH\"` to tunnel a verb through POST.\n",
        "content": {
          "application/x-www-form-urlencoded": {
            "schema": {
              "type": "object",
              "required": [
                "model"
              ],
              "properties": {
                "model": {
                  "type": "string",
                  "description": "JSON-encoded request document.",
                  "example": "{\"ruleOnOff\":\"1\"}"
                }
              }
            }
          },
          "application/json": {
            "schema": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      }
    }
  },
  "paths": {
    "/1/Device/Menu/{menu}": {
      "get": {
        "tags": [
          "Menu"
        ],
        "operationId": "getMenu",
        "summary": "Return the navigation tree.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Menu"
          },
          {
            "$ref": "#/components/parameters/Callback"
          }
        ],
        "responses": {
          "200": {
            "description": "Menu entries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MenuResponse"
                },
                "examples": {
                  "main": {
                    "value": {
                      "errCode": "000",
                      "errMsg": "",
                      "Menu_List": [
                        {
                          "index": 1,
                          "tagName": "Status",
                          "langTagId": "Status",
                          "visible": true,
                          "selected": false,
                          "hyperLink": "status_overview"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        },
        "x-hitron-controller": "MenuCreater"
      }
    },
    "/1/Device/Users": {
      "get": {
        "tags": [
          "Users"
        ],
        "operationId": "listUsers",
        "summary": "List local users.",
        "responses": {
          "200": {
            "description": "User list.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "Users_List": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/User"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "createUser",
        "summary": "Create a local user.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      },
      "delete": {
        "tags": [
          "Users"
        ],
        "operationId": "deleteUser",
        "summary": "Delete a local user.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        },
        "x-hitron-controller": "UserAction"
      }
    },
    "/1/Device/Users/{action}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Action"
        }
      ],
      "get": {
        "tags": [
          "Users"
        ],
        "operationId": "userActionGet",
        "summary": "Read a login/user helper.",
        "description": "`action` is one of `LoginStatus`, `LoginConfig`, `CSRF`, `Name`,\n`Namecheck`, `Type`, `Manage`, `PswdReset`, `MsoAuth`. The same route\naccepts POST for state-changing actions.\n",
        "parameters": [
          {
            "name": "action",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "LoginStatus",
                "LoginConfig",
                "CSRF",
                "Name",
                "Namecheck",
                "Type",
                "Manage",
                "PswdReset",
                "MsoAuth"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Action result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "userActionPost",
        "summary": "Login, logout, and account actions.",
        "parameters": [
          {
            "name": "action",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "Login",
                "Logout",
                "LoginStatus",
                "LoginConfig",
                "CSRF",
                "Name",
                "Namecheck",
                "Type",
                "Manage",
                "PswdReset",
                "MsoAuth",
                "Password"
              ]
            }
          }
        ],
        "requestBody": {
          "description": "For `Login`, send `{\"username\":\"admin\",\"password\":\"...\"}`. For\n`Logout`, the body may be omitted. Other actions take the fields the\nmatching page submits (`name`, `available`, `check_pswd`, `fwLevel`,\n`gender`, `icon`, `idleTime`, `ip`, `kplgin`, `mac`).\n",
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "description": "JSON-encoded document"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action result; login sets `PHPSESSID`.",
            "headers": {
              "Set-Cookie": {
                "schema": {
                  "type": "string"
                },
                "description": "Session cookie."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        },
        "x-hitron-controller": "UserAction"
      }
    },
    "/1/Device/Users/{action}/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Action"
        },
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "userActionById",
        "summary": "Act on one user instance.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      },
      "delete": {
        "tags": [
          "Users"
        ],
        "operationId": "deleteUserById",
        "summary": "Delete one user instance.",
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/Version": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getCmVersion",
        "summary": "Model, hardware, software, and serial number.",
        "responses": {
          "200": {
            "description": "Version block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceVersion"
                }
              }
            }
          }
        },
        "x-hitron-auth-exempt": true
      }
    },
    "/1/Device/CM/DocsisProvision": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getDocsisProvision",
        "summary": "DOCSIS provisioning state machine.",
        "responses": {
          "200": {
            "description": "Provisioning steps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocsisProvision"
                },
                "examples": {
                  "provisioned": {
                    "value": {
                      "errCode": "000",
                      "errMsg": "",
                      "hwInit": "Success",
                      "findDownstream": "Success",
                      "ranging": "Success",
                      "dhcp": "Success",
                      "timeOfday": "Success",
                      "downloadCfg": "Success",
                      "registration": "Success",
                      "bpiStatus": "AUTH:authorized, TEK:operational"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/SysInfo": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getCmSysInfo",
        "summary": "CM WAN address, lease, and configuration file.",
        "responses": {
          "200": {
            "description": "CM system info.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CmSysInfo"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/DsInfo": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getDsInfo",
        "summary": "SC-QAM downstream channels.",
        "responses": {
          "200": {
            "description": "Downstream channel list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DsInfoResponse"
                },
                "examples": {
                  "channel": {
                    "value": {
                      "errCode": "000",
                      "errMsg": "",
                      "Freq_List": [
                        {
                          "portId": 25,
                          "frequency": "267000000",
                          "modulation": "2",
                          "signalStrength": "8.098",
                          "snr": "43.377",
                          "channelId": "1",
                          "dsoctets": "34 * 2e32   1203911172",
                          "correcteds": "0",
                          "uncorrect": "0"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/UsInfo": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getUsInfo",
        "summary": "SC-QAM / ATDMA upstream channels.",
        "responses": {
          "200": {
            "description": "Upstream channel list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsInfoResponse"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/DsOfdm": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getDsOfdm",
        "summary": "OFDM downstream channels, including PLC/NCP/MDC1 lock.",
        "responses": {
          "200": {
            "description": "OFDM downstream list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DsOfdmResponse"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/UsOfdm": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getUsOfdm",
        "summary": "OFDMA upstream channels.",
        "responses": {
          "200": {
            "description": "OFDMA upstream list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsOfdmResponse"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/Log": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getCmLog",
        "summary": "DOCSIS event log.",
        "responses": {
          "200": {
            "description": "Event log.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocsisLogResponse"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/LTEBackup": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getLteBackup",
        "summary": "LTE backup dongle and APN state.",
        "responses": {
          "200": {
            "description": "LTE backup block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LteBackup"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/CM/Ready": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getCmReady",
        "summary": "Poll whether the gateway finished booting.",
        "responses": {
          "200": {
            "description": "Ready state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadyResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/1/Device/CM/Reboot": {
      "post": {
        "tags": [
          "CM"
        ],
        "operationId": "rebootOrReset",
        "summary": "Reboot, factory reset, or immediate reset (destructive).",
        "description": "**Real device action.** The body selects the behaviour:\n\n| Body | Effect |\n| --- | --- |\n| `{\"reboot\":1}` | Sets `Device.DeviceInfo.X_HITRON_COM_MGMT.Reboot=true`; a backend process acts on it. |\n| `{\"factoryReset\":1}` | Sets `FactoryResult=true`; destroys configuration. |\n| `{\"restoreReset\":1}` | The handler itself runs `sync; ncpu_exec -e ht_reset_cmd.sh reboot; reboot`. Immediate and irreversible. |\n\nNo confirmation layer exists on the device; the exporter never calls this.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "{\"reboot\":1}"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reboot": {
                    "type": "integer",
                    "enum": [
                      1
                    ]
                  },
                  "factoryReset": {
                    "type": "integer",
                    "enum": [
                      1
                    ]
                  },
                  "restoreReset": {
                    "type": "integer",
                    "enum": [
                      1
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        },
        "x-hitron-destructive": true,
        "x-hitron-controller": "ModelInfo"
      }
    },
    "/1/Device/Router/SysInfo": {
      "get": {
        "tags": [
          "Router"
        ],
        "operationId": "getRouterSysInfo",
        "summary": "Gateway hardware, firmware, serial, RF MAC, and uptime.",
        "responses": {
          "200": {
            "description": "Router system info.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouterSysInfo"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Router/PortForward": {
      "get": {
        "tags": [
          "Router"
        ],
        "operationId": "listPortForwards",
        "summary": "List IPv4 port-forward rules.",
        "responses": {
          "200": {
            "description": "Rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortForwardRules"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Router"
        ],
        "operationId": "createPortForward",
        "summary": "Create a port-forward rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Router/PortForward/Status": {
      "get": {
        "tags": [
          "Router"
        ],
        "operationId": "getPortForwardStatus",
        "summary": "WAN addresses used when rendering the port-forward page.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortForwardStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Router/PortForward/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "Router"
        ],
        "operationId": "updatePortForward",
        "summary": "Update a port-forward rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Router"
        ],
        "operationId": "deletePortForward",
        "summary": "Delete a port-forward rule.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Router/PortTrigger": {
      "get": {
        "tags": [
          "Router"
        ],
        "operationId": "listPortTriggers",
        "summary": "List port-trigger rules.",
        "responses": {
          "200": {
            "description": "Rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortTriggerRules"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Router"
        ],
        "operationId": "createPortTrigger",
        "summary": "Create a port-trigger rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Router/PortTrigger/Status": {
      "get": {
        "tags": [
          "Router"
        ],
        "operationId": "getPortTriggerStatus",
        "summary": "Port-trigger runtime status.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortTriggerStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Router/PortTrigger/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "Router"
        ],
        "operationId": "updatePortTrigger",
        "summary": "Update a port-trigger rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Router"
        ],
        "operationId": "deletePortTrigger",
        "summary": "Delete a port-trigger rule.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Docsis/{info}": {
      "get": {
        "tags": [
          "CM"
        ],
        "operationId": "getDocsisLegacy",
        "summary": "Legacy DOCSIS route (declared but unimplemented in this build).",
        "description": "`routes.ini` maps this route to `DocsisInfo`, but no `DocsisInfo.php`\nexists in the analyzed firmware, so the route resolves to a 404. Kept\nin the spec so clients do not mistake the absence for a transport\nerror.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/Info"
          }
        ],
        "responses": {
          "404": {
            "description": "Controller class absent."
          }
        },
        "x-hitron-implemented": false
      }
    },
    "/1/Device/MTA/StatusInfo": {
      "get": {
        "tags": [
          "MTA"
        ],
        "operationId": "getMtaStatus",
        "summary": "Voice line registration and call state.",
        "responses": {
          "200": {
            "description": "MTA status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtaStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/MTA/StatusInfo/DhcpInfo": {
      "get": {
        "tags": [
          "MTA"
        ],
        "operationId": "getMtaDhcp",
        "summary": "MTA DHCP lease details.",
        "responses": {
          "200": {
            "description": "MTA DHCP block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtaDhcp"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/MTA/StatusInfo/Log": {
      "get": {
        "tags": [
          "MTA"
        ],
        "operationId": "getMtaLog",
        "summary": "MTA event log.",
        "responses": {
          "200": {
            "description": "MTA log.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtaLog"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/MTA/StatusInfo/QualityMetric": {
      "get": {
        "tags": [
          "MTA"
        ],
        "operationId": "getMtaQualityMetric",
        "summary": "Per-call voice quality metrics.",
        "responses": {
          "200": {
            "description": "Quality metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MtaQualityMetric"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifi",
        "summary": "Wireless subsystem summary.",
        "responses": {
          "200": {
            "description": "WiFi summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "wifiAction",
        "summary": "Run a WiFi action (`Save`, `Reload`, `BandSteering`, `GuestSSID`, `Hotspot`, `WPS`, `RSSIs`).",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/BandSteering": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getBandSteering",
        "summary": "Band-steering configuration.",
        "responses": {
          "200": {
            "description": "Band steering.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Envelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string"
                        },
                        "preferSSID": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "setBandSteering",
        "summary": "Enable or disable band steering.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/GuestSSID": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getGuestSsid",
        "summary": "Guest network configuration.",
        "responses": {
          "200": {
            "description": "Guest SSIDs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuestSsid"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "setGuestSsid",
        "summary": "Update guest network configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Hotspot": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getHotspot",
        "summary": "Hotspot / GRE tunnel configuration.",
        "responses": {
          "200": {
            "description": "Hotspot entries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiHotspot"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "setHotspot",
        "summary": "Update hotspot configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/RSSIs": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiRssis",
        "summary": "RSSI per associated host.",
        "responses": {
          "200": {
            "description": "RSSI list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiRssi"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/1/Device/WiFi/WPS": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWps",
        "summary": "WPS state.",
        "responses": {
          "200": {
            "description": "WPS block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiWps"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "setWps",
        "summary": "Configure or trigger WPS.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Radios": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "listRadios",
        "summary": "List wireless radios.",
        "responses": {
          "200": {
            "description": "Radio list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiRadios"
                },
                "examples": {
                  "radios": {
                    "value": {
                      "errCode": "000",
                      "errMsg": "",
                      "RadioNumberOfEntries": 2,
                      "Raidos_List": [
                        {
                          "vendor": "1",
                          "band": "2.4G",
                          "wlsOnOff": "ON",
                          "wlsMode": "4",
                          "n_bandwidth": "20/40MHZ",
                          "wlsChannel": 0,
                          "autoChannel": "ON",
                          "wlsCurrentChannel": "6",
                          "Radio_URI": "/1/Device/WiFi/Radios/1"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Radios/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "Advanced",
              "ATF",
              "ATFSSID",
              "ATFSTATION",
              "1",
              "2",
              "3",
              "4"
            ]
          },
          "description": "A sub-resource name, or a 1-based radio index."
        }
      ],
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getRadioInfo",
        "summary": "Read one radio, its advanced settings, or its ATF view.",
        "responses": {
          "200": {
            "description": "Radio detail. Shape depends on `info`.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WifiRadio"
                    },
                    {
                      "$ref": "#/components/schemas/RadioAdvanced"
                    },
                    {
                      "$ref": "#/components/schemas/RadioAdvancedList"
                    },
                    {
                      "$ref": "#/components/schemas/AtfConfig"
                    },
                    {
                      "$ref": "#/components/schemas/AtfSsidList"
                    },
                    {
                      "$ref": "#/components/schemas/AtfStationList"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "WiFi"
        ],
        "operationId": "updateRadio",
        "summary": "Update radio configuration (server-validated).",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        },
        "x-hitron-controller": "RadioInfo"
      }
    },
    "/1/Device/WiFi/Radios/{info}/{ifname}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "ATF"
            ]
          },
          "description": "Sub-resource. `ATF` returns airtime policy for a radio."
        },
        {
          "$ref": "#/components/parameters/IfName"
        }
      ],
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getRadioByInterface",
        "summary": "Read an ATF policy for one radio interface.",
        "responses": {
          "200": {
            "description": "ATF policy for the interface, or the radio detail.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AtfConfig"
                    },
                    {
                      "$ref": "#/components/schemas/WifiRadio"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/1/Device/WiFi/Radios/Survey": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiSurvey",
        "summary": "Neighbouring access points seen by the radios.",
        "responses": {
          "200": {
            "description": "Survey results.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiSurveyList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Radios/ATF/Stas/{atfif}": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getAtfStations",
        "summary": "ATF stations for one interface.",
        "parameters": [
          {
            "name": "atfif",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "ATF stations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AtfStationList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/SSIDs": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "listSsids",
        "summary": "List SSIDs across all radios.",
        "responses": {
          "200": {
            "description": "SSID list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsidList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/SSIDs/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "A 1-based SSID index, or the literal `version`."
        }
      ],
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getSsid",
        "summary": "Read one SSID or the SSID schema version.",
        "responses": {
          "200": {
            "description": "SSID or version block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ssid"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "updateSsid",
        "summary": "Update one SSID.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "WiFi"
        ],
        "operationId": "putSsid",
        "summary": "Update one SSID (PUT form).",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/SSIDs/{ifname}/{info}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/IfName"
        },
        {
          "$ref": "#/components/parameters/Info"
        }
      ],
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getSsidByInterface",
        "summary": "Read an SSID by interface name.",
        "responses": {
          "200": {
            "description": "SSID detail.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ssid"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Client": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "listWifiClients",
        "summary": "Associated wireless clients.",
        "responses": {
          "200": {
            "description": "Client list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiClientList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Client/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "A client index or the literal `SSIDs`."
        }
      ],
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiClient",
        "summary": "Read one client or the per-SSID client grouping.",
        "responses": {
          "200": {
            "description": "Client detail.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WifiClient"
                    },
                    {
                      "$ref": "#/components/schemas/WifiClientList"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Stations/{ifname}": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiStations",
        "summary": "Stations on one interface with PHY rates.",
        "parameters": [
          {
            "$ref": "#/components/parameters/IfName"
          }
        ],
        "responses": {
          "200": {
            "description": "Station list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiStationList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/AccessControl": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiAccessControl",
        "summary": "MAC access-control mode.",
        "responses": {
          "200": {
            "description": "Access control.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiAccessControlStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "setWifiAccessControl",
        "summary": "Update MAC access-control mode.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/AccessControl/Status": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiAccessControlStatus",
        "summary": "Access-control status.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiAccessControlStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/AccessControl/Mode": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiAccessControlMode",
        "summary": "Access-control mode.",
        "responses": {
          "200": {
            "description": "Mode.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiAccessControlStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "setWifiAccessControlMode",
        "summary": "Set access-control mode.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/AccessControl/Macs": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiAccessControlMacs",
        "summary": "MAC allow/block list.",
        "responses": {
          "200": {
            "description": "MAC list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiAccessControlMacs"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WiFi"
        ],
        "operationId": "addWifiAccessControlMac",
        "summary": "Add a MAC to the list.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "WiFi"
        ],
        "operationId": "deleteWifiAccessControlMac",
        "summary": "Remove a MAC from the list.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WiFi/Acl/{info}/{ifname}": {
      "get": {
        "tags": [
          "WiFi"
        ],
        "operationId": "getWifiAclByInterface",
        "summary": "Access-control rules for one interface.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Info"
          },
          {
            "$ref": "#/components/parameters/IfName"
          }
        ],
        "responses": {
          "200": {
            "description": "ACL detail.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WifiAccessControlMacs"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Hosts": {
      "get": {
        "tags": [
          "Hosts"
        ],
        "operationId": "listHosts",
        "summary": "LAN host table.",
        "responses": {
          "200": {
            "description": "Hosts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Hosts/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "DefFwLevel",
              "NtfyToken",
              "TimeStamp",
              "Clear"
            ]
          }
        }
      ],
      "get": {
        "tags": [
          "Hosts"
        ],
        "operationId": "getHostInfo",
        "summary": "Read host sub-resource.",
        "responses": {
          "200": {
            "description": "Sub-resource value.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DefFwLevel"
                    },
                    {
                      "$ref": "#/components/schemas/Envelope"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Hosts"
        ],
        "operationId": "hostAction",
        "summary": "Set a host sub-resource (`DefFwLevel`, `Clear`, `NtfyToken`, `TimeStamp`).",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Hosts/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "Hosts"
        ],
        "operationId": "updateHost",
        "summary": "Rename a host or change its icon/type/firewall level.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Hosts"
        ],
        "operationId": "deleteHost",
        "summary": "Remove a host from the table.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DHCP": {
      "get": {
        "tags": [
          "DHCP"
        ],
        "operationId": "getDhcp",
        "summary": "DHCP server configuration.",
        "responses": {
          "200": {
            "description": "DHCP block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DhcpLan"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DHCP/Lan": {
      "get": {
        "tags": [
          "DHCP"
        ],
        "operationId": "getDhcpLan",
        "summary": "LAN DHCP pool.",
        "responses": {
          "200": {
            "description": "LAN DHCP.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DhcpLan"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DHCP"
        ],
        "operationId": "setDhcpLan",
        "summary": "Update the LAN DHCP pool.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DHCP/WIFI": {
      "get": {
        "tags": [
          "DHCP"
        ],
        "operationId": "getDhcpWifi",
        "summary": "DHCP settings advertised to wireless clients.",
        "responses": {
          "200": {
            "description": "WiFi DHCP.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DhcpLan"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DHCP/Reservation": {
      "get": {
        "tags": [
          "DHCP"
        ],
        "operationId": "listDhcpReservations",
        "summary": "DHCP reservations.",
        "responses": {
          "200": {
            "description": "Reservations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DhcpReservationList"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DHCP"
        ],
        "operationId": "createDhcpReservation",
        "summary": "Create a reservation.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DHCP/Reservation/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "DHCP"
        ],
        "operationId": "updateDhcpReservation",
        "summary": "Update a reservation.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "DHCP"
        ],
        "operationId": "deleteDhcpReservation",
        "summary": "Delete a reservation.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/WAN": {
      "get": {
        "tags": [
          "WAN"
        ],
        "operationId": "getWan",
        "summary": "WAN IPv4/IPv6 addressing and DNS.",
        "responses": {
          "200": {
            "description": "WAN block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Wan"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DNS": {
      "get": {
        "tags": [
          "WAN"
        ],
        "operationId": "getDns",
        "summary": "DNS proxy and LAN domain configuration.",
        "responses": {
          "200": {
            "description": "DNS block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dns"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WAN"
        ],
        "operationId": "setDns",
        "summary": "Update DNS configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/MoCA": {
      "get": {
        "tags": [
          "MoCA"
        ],
        "operationId": "getMoca",
        "summary": "MoCA configuration and link status.",
        "responses": {
          "200": {
            "description": "MoCA block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Moca"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "MoCA"
        ],
        "operationId": "updateMoca",
        "summary": "Update MoCA configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DDNS": {
      "get": {
        "tags": [
          "DDNS"
        ],
        "operationId": "getDdns",
        "summary": "Dynamic DNS configuration.",
        "responses": {
          "200": {
            "description": "DDNS block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ddns"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DDNS"
        ],
        "operationId": "setDdns",
        "summary": "Update DDNS configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/DDNS/Status": {
      "get": {
        "tags": [
          "DDNS"
        ],
        "operationId": "getDdnsStatus",
        "summary": "Last DDNS update result.",
        "responses": {
          "200": {
            "description": "DDNS status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DdnsStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/IpPass": {
      "get": {
        "tags": [
          "Network"
        ],
        "operationId": "getIpPass",
        "summary": "IP passthrough configuration.",
        "responses": {
          "200": {
            "description": "IP passthrough.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IpPass"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Network"
        ],
        "operationId": "setIpPass",
        "summary": "Update IP passthrough.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/GRE": {
      "get": {
        "tags": [
          "Network"
        ],
        "operationId": "getGre",
        "summary": "GRE tunnel configuration.",
        "responses": {
          "200": {
            "description": "GRE block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Gre"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Network"
        ],
        "operationId": "setGre",
        "summary": "Update GRE configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Ether/VLAN": {
      "get": {
        "tags": [
          "Network"
        ],
        "operationId": "getVlan",
        "summary": "Per-port VLAN mapping.",
        "responses": {
          "200": {
            "description": "VLAN block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vlan"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Network"
        ],
        "operationId": "updateVlan",
        "summary": "Update VLAN mapping.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/RipInfo": {
      "get": {
        "tags": [
          "Network"
        ],
        "operationId": "getRip",
        "summary": "RIP configuration and status.",
        "responses": {
          "200": {
            "description": "RIP block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rip"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Network"
        ],
        "operationId": "setRip",
        "summary": "Update RIP configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/StaticRouteInfo": {
      "get": {
        "tags": [
          "Network"
        ],
        "operationId": "listStaticRoutes",
        "summary": "Static route table.",
        "responses": {
          "200": {
            "description": "Routes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StaticRouteList"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Network"
        ],
        "operationId": "createStaticRoute",
        "summary": "Create a static route.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/IpMappingInfo": {
      "get": {
        "tags": [
          "Network"
        ],
        "operationId": "listIpMappings",
        "summary": "NAT / IP mapping rules.",
        "responses": {
          "200": {
            "description": "Mappings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IpMappingList"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Network"
        ],
        "operationId": "createIpMapping",
        "summary": "Create an IP mapping rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/IpMappingInfo/Status": {
      "get": {
        "tags": [
          "Network"
        ],
        "operationId": "getIpMappingStatus",
        "summary": "Whether IP mapping is enabled.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IpMappingStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Health": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getHealth",
        "summary": "Wi-Fi health/self-test results per host.",
        "responses": {
          "200": {
            "description": "Health entries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Health/Settings": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getHealthSettings",
        "summary": "Health thresholds.",
        "responses": {
          "200": {
            "description": "Settings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthSettings"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "setHealthSettings",
        "summary": "Update the RSSI threshold.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/TempAccess/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "Assign",
              "Status"
            ]
          }
        }
      ],
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "tempAccess",
        "summary": "Grant or query app-scoped temporary host access.",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "{\"type\":\"0\",\"hostID\":\"h12\",\"time\":\"3600\"}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "For `Status`: `timeleft` and `status` (`\"2\"` active, `\"0\"`\ninactive). For `Assign`: an empty success envelope.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/1/Device/Firewall/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "Level",
              "Levels",
              "Logs",
              "VPN"
            ]
          }
        }
      ],
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "getFirewall",
        "summary": "Firewall level, level catalogue, logs, or VPN passthrough.",
        "responses": {
          "200": {
            "description": "Firewall detail.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/FirewallLevel"
                    },
                    {
                      "$ref": "#/components/schemas/FirewallLevels"
                    },
                    {
                      "$ref": "#/components/schemas/FirewallLogs"
                    },
                    {
                      "$ref": "#/components/schemas/FirewallVpn"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "setFirewall",
        "summary": "Set the firewall level, custom rules, or VPN passthrough.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/Inbound/Status": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "getInboundStatus",
        "summary": "IPv6 inbound firewall status.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/Inbound/Rules": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "listInboundRules",
        "summary": "IPv6 inbound rules.",
        "responses": {
          "200": {
            "description": "Rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundRules"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "createInboundRule",
        "summary": "Create an inbound rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/Inbound/Rules/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "Firewall"
        ],
        "operationId": "updateInboundRule",
        "summary": "Update an inbound rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Firewall"
        ],
        "operationId": "deleteInboundRule",
        "summary": "Delete an inbound rule.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/ServiceFilter/Status": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "getServiceFilterStatus",
        "summary": "Service-filter master switch.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceFilterStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/ServiceFilter/Rules": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "listServiceFilterRules",
        "summary": "Service-filter rules.",
        "responses": {
          "200": {
            "description": "Rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceFilterRules"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "createServiceFilterRule",
        "summary": "Create a service-filter rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/ServiceFilter/Rules/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "Firewall"
        ],
        "operationId": "updateServiceFilterRule",
        "summary": "Update a service-filter rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Firewall"
        ],
        "operationId": "deleteServiceFilterRule",
        "summary": "Delete a service-filter rule.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/ServiceFilter/TrustRules": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "listServiceFilterTrustRules",
        "summary": "Hosts trusted past the service filter.",
        "responses": {
          "200": {
            "description": "Trust rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustRuleList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/DeviceFilter/Type": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "getDeviceFilterType",
        "summary": "Device-filter mode.",
        "responses": {
          "200": {
            "description": "Mode.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceFilterType"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "setDeviceFilterType",
        "summary": "Set the device-filter mode.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/DeviceFilter/Rules": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "listDeviceFilterRules",
        "summary": "Device-filter rules.",
        "responses": {
          "200": {
            "description": "Rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceFilterRules"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "createDeviceFilterRule",
        "summary": "Create a device-filter rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/DeviceFilter/Rules/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "Firewall"
        ],
        "operationId": "updateDeviceFilterRule",
        "summary": "Update a device-filter rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Firewall"
        ],
        "operationId": "deleteDeviceFilterRule",
        "summary": "Delete a device-filter rule.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/KeywordFilter/Status": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "getKeywordFilterStatus",
        "summary": "Keyword-filter status.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeywordFilterStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/KeywordFilter/Rules": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "listKeywordFilterRules",
        "summary": "Keyword-filter rules.",
        "responses": {
          "200": {
            "description": "Rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeywordFilterRules"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "createKeywordFilterRule",
        "summary": "Create a keyword-filter rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/KeywordFilter/Rules/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Id"
        }
      ],
      "put": {
        "tags": [
          "Firewall"
        ],
        "operationId": "updateKeywordFilterRule",
        "summary": "Update a keyword-filter rule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Firewall"
        ],
        "operationId": "deleteKeywordFilterRule",
        "summary": "Delete a keyword-filter rule.",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/KeywordFilter/TrustRules": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "listKeywordFilterTrustRules",
        "summary": "Hosts trusted past the keyword filter.",
        "responses": {
          "200": {
            "description": "Trust rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustRuleList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/TimeFilter": {
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "listTimeFilters",
        "summary": "Time-of-day access schedules.",
        "responses": {
          "200": {
            "description": "Schedules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeFilterList"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "setTimeFilter",
        "summary": "Update a time-of-day schedule.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/KwdFilter/{info}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Info"
        }
      ],
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "getAppKeywordFilter",
        "summary": "App-facing keyword-filter view.",
        "responses": {
          "200": {
            "description": "Filter view.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "setAppKeywordFilter",
        "summary": "App-facing keyword-filter mutation.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Firewall/SrvFilter/{info}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Info"
        }
      ],
      "get": {
        "tags": [
          "Firewall"
        ],
        "operationId": "getAppServiceFilter",
        "summary": "App-facing service-filter view.",
        "responses": {
          "200": {
            "description": "Filter view.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Firewall"
        ],
        "operationId": "setAppServiceFilter",
        "summary": "App-facing service-filter mutation.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Diagnostics/Input": {
      "get": {
        "tags": [
          "Diagnostics"
        ],
        "operationId": "getDiagnosticsInput",
        "summary": "Defaults for the ping/traceroute forms.",
        "responses": {
          "200": {
            "description": "Input defaults.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiagnosticsInput"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Diagnostics/Ping": {
      "get": {
        "tags": [
          "Diagnostics"
        ],
        "operationId": "getPingResult",
        "summary": "Last ping result.",
        "responses": {
          "200": {
            "description": "Ping result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PingResult"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Diagnostics"
        ],
        "operationId": "runPing",
        "summary": "Run a ping.",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "{\"TestIpAddress\":\"8.8.8.8\"}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ping result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PingResult"
                }
              }
            }
          }
        },
        "x-hitron-shell-sink": true
      }
    },
    "/1/Device/Diagnostics/TraceRoute": {
      "get": {
        "tags": [
          "Diagnostics"
        ],
        "operationId": "getTraceRouteResult",
        "summary": "Last traceroute result.",
        "responses": {
          "200": {
            "description": "Traceroute result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TraceRouteResult"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Diagnostics"
        ],
        "operationId": "runTraceRoute",
        "summary": "Run a traceroute.",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "{\"TestIpAddress\":\"8.8.8.8\"}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Traceroute result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TraceRouteResult"
                }
              }
            }
          }
        },
        "x-hitron-shell-sink": true
      }
    },
    "/1/Device/Diagnostics/Cancel": {
      "post": {
        "tags": [
          "Diagnostics"
        ],
        "operationId": "cancelDiagnostics",
        "summary": "Cancel a running ping or traceroute.",
        "responses": {
          "200": {
            "description": "Cancelled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Time": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getTime",
        "summary": "Time source and timezone configuration.",
        "responses": {
          "200": {
            "description": "Time block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeInfo"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "System"
        ],
        "operationId": "updateTime",
        "summary": "Update time configuration.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "updateTimePost",
        "summary": "Update time configuration (POST form).",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Advanced/AdvancedSwitch": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getAdvancedSwitch",
        "summary": "Ethernet switch port state.",
        "responses": {
          "200": {
            "description": "Ports.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdvancedSwitch"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "setAdvancedSwitch",
        "summary": "Update switch port state.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/API/Register": {
      "post": {
        "tags": [
          "API"
        ],
        "operationId": "registerApp",
        "summary": "Exchange a signed vendor JWT for an app token.",
        "description": "Validates `seckey` as an RS256 JWT signed by Hitron, checks `iss ==\n\"Hitron\"`, `jti`, `vendor` membership in\n`Device.X_HITRON_COM_App.VendorList`, and returns a token stored under\n`Device.X_HITRON_COM_App.TokenList`. Use it as\n`Ht-App-Auth: base64(appid:appuser)`.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Token issued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        },
        "x-hitron-auth-exempt": true
      }
    },
    "/1/Device/USB": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getUsb",
        "summary": "USB storage service state.",
        "responses": {
          "200": {
            "description": "USB state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsbInfo"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/USB/DeviceList": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "listUsbDevices",
        "summary": "Attached USB storage devices.",
        "responses": {
          "200": {
            "description": "Devices.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsbDeviceList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/BBU": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getBbu",
        "summary": "Battery backup unit state.",
        "responses": {
          "200": {
            "description": "BBU block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bbu"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "setBbu",
        "summary": "Update BBU settings.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/AdminRemoteManagement/Status": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getRemoteManagementStatus",
        "summary": "Whether remote management is open to all.",
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteStatus"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/AdminRemoteManagement/AcList": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getRemoteManagementAc",
        "summary": "Remote management protocol/port matrix.",
        "responses": {
          "200": {
            "description": "Access-control matrix.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteAcList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/AdminRemoteManagement/RList": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getRemoteManagementList",
        "summary": "Source IP ranges allowed to manage remotely.",
        "responses": {
          "200": {
            "description": "Ranges.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/AdminRemoteManagement/Backup": {
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "backupConfiguration",
        "summary": "Trigger a configuration backup.",
        "responses": {
          "200": {
            "description": "Backup started",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/AdminRemoteManagement/Restore": {
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "restoreConfiguration",
        "summary": "Restore a configuration backup.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Restore result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        },
        "x-hitron-destructive": true
      }
    },
    "/1/Device/Spectrum": {
      "get": {
        "tags": [
          "Spectrum"
        ],
        "operationId": "getSpectrum",
        "summary": "Spectrum analyser availability and metadata.",
        "responses": {
          "200": {
            "description": "Spectrum metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Spectrum/FreqList": {
      "get": {
        "tags": [
          "Spectrum"
        ],
        "operationId": "getSpectrumFreqList",
        "summary": "Downstream ports available to the analyser.",
        "responses": {
          "200": {
            "description": "Port list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpectrumFreqList"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Spectrum/FreqPower": {
      "get": {
        "tags": [
          "Spectrum"
        ],
        "operationId": "getSpectrumFreqPower",
        "summary": "Power at a frequency range.",
        "parameters": [
          {
            "$ref": "#/components/parameters/CentFreq"
          },
          {
            "$ref": "#/components/parameters/FromFreq"
          },
          {
            "$ref": "#/components/parameters/ToFreq"
          }
        ],
        "responses": {
          "200": {
            "description": "Power samples.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpectrumFreqPower"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Spectrum/RTData": {
      "get": {
        "tags": [
          "Spectrum"
        ],
        "operationId": "getSpectrumRtData",
        "summary": "Real-time spectrum sweep.",
        "responses": {
          "200": {
            "description": "Sweep.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpectrumRtData"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Spectrum/Constellation": {
      "get": {
        "tags": [
          "Spectrum"
        ],
        "operationId": "getSpectrumConstellation",
        "summary": "Constellation points for one downstream port.",
        "parameters": [
          {
            "$ref": "#/components/parameters/PortId"
          }
        ],
        "responses": {
          "200": {
            "description": "Constellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpectrumConstellation"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Addons/AssiaAgent": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "getAssiaAgent",
        "summary": "Assia Wi-Fi optimization agent state.",
        "responses": {
          "200": {
            "description": "Agent state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssiaAgent"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "System"
        ],
        "operationId": "setAssiaAgent",
        "summary": "Enable or disable the Assia agent.",
        "requestBody": {
          "$ref": "#/components/requestBodies/ModelBody"
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Upload": {
      "post": {
        "tags": [
          "API"
        ],
        "operationId": "uploadConfig",
        "summary": "Upload a `.cfg` file to `/var/tmp`.",
        "description": "Accepts one multipart field named `file`. Only the `.cfg` extension is\nallowed. Returns `{\"error\":0,\"name\":\"...\"}` on success. This endpoint\nwrites to the device filesystem; treat it as destructive.\n",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Upload result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "oneOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "x-hitron-destructive": true
      }
    },
    "/1/Device/Manage": {
      "get": {
        "tags": [
          "Manage"
        ],
        "operationId": "getManage",
        "summary": "Current admin username.",
        "responses": {
          "200": {
            "description": "Manage block.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManageInfo"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Manage/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "Info",
              "Password",
              "Username"
            ]
          }
        }
      ],
      "get": {
        "tags": [
          "Manage"
        ],
        "operationId": "getManageInfo",
        "summary": "Read one credential sub-resource.",
        "responses": {
          "200": {
            "description": "Credential metadata (never the stored secret).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManageInfo"
                }
              }
            }
          }
        }
      }
    },
    "/1/Device/Manage/{action}": {
      "parameters": [
        {
          "name": "action",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "Password",
              "Username"
            ]
          }
        }
      ],
      "post": {
        "tags": [
          "Manage"
        ],
        "operationId": "changeCredentials",
        "summary": "Change the admin password or username.",
        "description": "`Password` expects `oldPassword`, `newPassword`,\n`newPasswordConfirm`, and optional `newUsername`. `Username` expects\n`newUsername`. Both write straight through to TR-181.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "{\"oldPassword\":\"admin\",\"newPassword\":\"...\",\"newPasswordConfirm\":\"...\"}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        },
        "x-hitron-destructive": true,
        "x-hitron-controller": "AdminPassword"
      }
    },
    "/telemetry/{info}": {
      "parameters": [
        {
          "name": "info",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "deviceinfo",
              "rfmetrics",
              "pnm"
            ]
          }
        }
      ],
      "get": {
        "tags": [
          "Telemetry"
        ],
        "operationId": "getTelemetry",
        "summary": "ISP telemetry: device identity, RF metrics, or PNM summary.",
        "responses": {
          "200": {
            "description": "Telemetry payload.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/TelemetryDeviceInfo"
                    },
                    {
                      "$ref": "#/components/schemas/RfMetrics"
                    },
                    {
                      "$ref": "#/components/schemas/Pnm"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Invalid sub-resource; the controller forces a 401 to avoid leaking shell paths."
          }
        }
      }
    },
    "/telemetry/pnm/{sub}": {
      "parameters": [
        {
          "name": "sub",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "rxmer",
              "ch_est_coef",
              "us_pre_eq",
              "mod_prof"
            ]
          }
        }
      ],
      "get": {
        "tags": [
          "Telemetry"
        ],
        "operationId": "getPnmDetail",
        "summary": "Per-subcarrier PNM data.",
        "responses": {
          "200": {
            "description": "PNM detail.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pnm"
                }
              }
            }
          },
          "401": {
            "description": "Invalid sub-resource."
          }
        }
      }
    }
  }
}
