{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/the-things-network/json-schema/the-things-network-v3-list-bands-response-schema.json",
  "title": "v3ListBandsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/the-things-network-configuration-api-openapi.yml#/components/schemas/v3ListBandsResponse",
  "type": "object",
  "properties": {
    "descriptions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ListBandsResponseVersionedBandDescription"
      }
    }
  },
  "$defs": {
    "BandDescriptionBandDataRate": {
      "type": "object",
      "properties": {
        "rate": {
          "$ref": "#/$defs/v3DataRate"
        }
      }
    },
    "BandDescriptionBeacon": {
      "type": "object",
      "properties": {
        "data_rate_index": {
          "$ref": "#/$defs/v3DataRateIndex"
        },
        "coding_rate": {
          "type": "string"
        },
        "frequencies": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uint64"
          }
        }
      }
    },
    "BandDescriptionDwellTime": {
      "type": "object",
      "properties": {
        "uplinks": {
          "type": "boolean"
        },
        "downlinks": {
          "type": "boolean"
        }
      }
    },
    "BandDescriptionRelayParametersRelayWORChannel": {
      "type": "object",
      "properties": {
        "frequency": {
          "type": "string",
          "format": "uint64"
        },
        "ack_frequency": {
          "type": "string",
          "format": "uint64"
        },
        "data_rate_index": {
          "$ref": "#/$defs/v3DataRateIndex"
        }
      }
    },
    "BandDescriptionRx2Parameters": {
      "type": "object",
      "properties": {
        "data_rate_index": {
          "$ref": "#/$defs/v3DataRateIndex"
        },
        "frequency": {
          "type": "string",
          "format": "uint64"
        }
      }
    },
    "BandDescriptionSubBandParameters": {
      "type": "object",
      "properties": {
        "min_frequency": {
          "type": "string",
          "format": "uint64"
        },
        "max_frequency": {
          "type": "string",
          "format": "uint64"
        },
        "duty_cycle": {
          "type": "number",
          "format": "float"
        },
        "max_eirp": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "ListBandsResponseVersionedBandDescription": {
      "type": "object",
      "properties": {
        "band": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/v3BandDescription"
          }
        }
      }
    },
    "v3ADRAckLimitExponent": {
      "type": "string",
      "enum": [
        "ADR_ACK_LIMIT_1",
        "ADR_ACK_LIMIT_2",
        "ADR_ACK_LIMIT_4",
        "ADR_ACK_LIMIT_8",
        "ADR_ACK_LIMIT_16",
        "ADR_ACK_LIMIT_32",
        "ADR_ACK_LIMIT_64",
        "ADR_ACK_LIMIT_128",
        "ADR_ACK_LIMIT_256",
        "ADR_ACK_LIMIT_512",
        "ADR_ACK_LIMIT_1024",
        "ADR_ACK_LIMIT_2048",
        "ADR_ACK_LIMIT_4096",
        "ADR_ACK_LIMIT_8192",
        "ADR_ACK_LIMIT_16384",
        "ADR_ACK_LIMIT_32768"
      ],
      "default": "ADR_ACK_LIMIT_1"
    },
    "v3BandDescription": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "beacon": {
          "$ref": "#/$defs/BandDescriptionBeacon"
        },
        "ping_slot_frequencies": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uint64"
          }
        },
        "max_uplink_channels": {
          "type": "integer",
          "format": "int64"
        },
        "uplink_channels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/v3BandDescriptionChannel"
          }
        },
        "max_downlink_channels": {
          "type": "integer",
          "format": "int64"
        },
        "downlink_channels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/v3BandDescriptionChannel"
          }
        },
        "sub_bands": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/BandDescriptionSubBandParameters"
          }
        },
        "data_rates": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/BandDescriptionBandDataRate"
          }
        },
        "freq_multiplier": {
          "type": "string",
          "format": "uint64"
        },
        "implements_cf_list": {
          "type": "boolean"
        },
        "cf_list_type": {
          "$ref": "#/$defs/v3CFListType"
        },
        "receive_delay_1": {
          "type": "string"
        },
        "receive_delay_2": {
          "type": "string"
        },
        "join_accept_delay_1": {
          "type": "string"
        },
        "join_accept_delay_2": {
          "type": "string"
        },
        "max_fcnt_gap": {
          "type": "string",
          "format": "uint64"
        },
        "supports_dynamic_adr": {
          "type": "boolean"
        },
        "adr_ack_limit": {
          "$ref": "#/$defs/v3ADRAckLimitExponent"
        },
        "min_retransmit_timeout": {
          "type": "string"
        },
        "max_retransmit_timeout": {
          "type": "string"
        },
        "tx_offset": {
          "type": "array",
          "items": {
            "type": "number",
            "format": "float"
          }
        },
        "max_adr_data_rate_index": {
          "$ref": "#/$defs/v3DataRateIndex"
        },
        "relay_forward_delay": {
          "type": "string"
        },
        "relay_receive_delay": {
          "type": "string"
        },
        "tx_param_setup_req_support": {
          "type": "boolean"
        },
        "default_max_eirp": {
          "type": "number",
          "format": "float"
        },
        "default_rx2_parameters": {
          "$ref": "#/$defs/BandDescriptionRx2Parameters"
        },
        "boot_dwell_time": {
          "$ref": "#/$defs/BandDescriptionDwellTime"
        },
        "relay": {
          "$ref": "#/$defs/v3BandDescriptionRelayParameters"
        }
      }
    },
    "v3BandDescriptionChannel": {
      "type": "object",
      "properties": {
        "frequency": {
          "type": "string",
          "format": "uint64"
        },
        "min_data_rate": {
          "$ref": "#/$defs/v3DataRateIndex"
        },
        "max_data_rate": {
          "$ref": "#/$defs/v3DataRateIndex"
        }
      }
    },
    "v3BandDescriptionRelayParameters": {
      "type": "object",
      "properties": {
        "wor_channels": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/BandDescriptionRelayParametersRelayWORChannel"
          }
        }
      }
    },
    "v3CFListType": {
      "type": "string",
      "enum": [
        "FREQUENCIES",
        "CHANNEL_MASKS"
      ],
      "default": "FREQUENCIES"
    },
    "v3DataRate": {
      "type": "object",
      "properties": {
        "lora": {
          "$ref": "#/$defs/v3LoRaDataRate"
        },
        "fsk": {
          "$ref": "#/$defs/v3FSKDataRate"
        },
        "lrfhss": {
          "$ref": "#/$defs/v3LRFHSSDataRate"
        }
      }
    },
    "v3DataRateIndex": {
      "type": "string",
      "enum": [
        "DATA_RATE_0",
        "DATA_RATE_1",
        "DATA_RATE_2",
        "DATA_RATE_3",
        "DATA_RATE_4",
        "DATA_RATE_5",
        "DATA_RATE_6",
        "DATA_RATE_7",
        "DATA_RATE_8",
        "DATA_RATE_9",
        "DATA_RATE_10",
        "DATA_RATE_11",
        "DATA_RATE_12",
        "DATA_RATE_13",
        "DATA_RATE_14",
        "DATA_RATE_15"
      ],
      "default": "DATA_RATE_0"
    },
    "v3FSKDataRate": {
      "type": "object",
      "properties": {
        "bit_rate": {
          "type": "integer",
          "format": "int64",
          "description": "Bit rate (bps)."
        }
      }
    },
    "v3LRFHSSDataRate": {
      "type": "object",
      "properties": {
        "modulation_type": {
          "type": "integer",
          "format": "int64"
        },
        "operating_channel_width": {
          "type": "integer",
          "format": "int64",
          "description": "Operating Channel Width (Hz)."
        },
        "coding_rate": {
          "type": "string"
        }
      }
    },
    "v3LoRaDataRate": {
      "type": "object",
      "properties": {
        "bandwidth": {
          "type": "integer",
          "format": "int64",
          "description": "Bandwidth (Hz)."
        },
        "spreading_factor": {
          "type": "integer",
          "format": "int64"
        },
        "coding_rate": {
          "type": "string"
        }
      }
    }
  }
}