{
  "definitions": {
    "HotClient": {
      "description": "Options handed to the browser runtime through its entry query.",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "transport": {
          "description": "Which transport the runtime speaks: `sse` or `ws`, or a module that exports a client class of your own, which is used in place of the built-in one. Defaults to the resolved `hot.transport`.",
          "anyOf": [
            {
              "enum": ["sse", "ws"]
            },
            {
              "type": "string",
              "minLength": 1
            }
          ]
        },
        "url": {
          "description": "Where the runtime connects: a path, an absolute url for an endpoint reached on another origin or through a proxy, or the parts of one that differ, with the rest resolved in the page, which is the only place the rest is known. Defaults to the resolved `hot.path`.",
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "protocol": {
                  "description": "The scheme the runtime connects over. Unset, or `auto`, follows the page — and a page served over TLS then gets a secure connection, because a browser refuses a plaintext one from it. Set explicitly, it is honoured as given; the one exception is a `hostname` naming every interface, which is resolved to the page's host and takes the page's scheme with it. Only whether the scheme is the secure one carries over, since the two transports do not share one.",
                  "anyOf": [
                    {
                      "enum": ["auto"]
                    },
                    {
                      "type": "string",
                      "minLength": 1
                    }
                  ]
                },
                "hostname": {
                  "description": "The host the runtime connects to. An address a server listens on to mean every interface (`0.0.0.0`, `::`) is not somewhere a page can connect, so it resolves to the page's own host.",
                  "type": "string",
                  "minLength": 1
                },
                "port": {
                  "description": "The port the runtime connects to. `0` means a port the server picked, which resolves to the page's own.",
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "minLength": 1
                    }
                  ]
                },
                "pathname": {
                  "description": "The path the runtime connects to. Defaults to the resolved `hot.path`.",
                  "type": "string"
                },
                "username": {
                  "description": "The username the runtime authenticates with.",
                  "type": "string"
                },
                "password": {
                  "description": "The password the runtime authenticates with. Sent only alongside a username, since basic authentication has no empty one.",
                  "type": "string"
                }
              }
            }
          ]
        },
        "name": {
          "description": "Limit the runtime to one compilation's builds. Defaults to the compilation's own name.",
          "type": "string"
        },
        "overlay": {
          "description": "Show build problems and uncaught runtime errors in an overlay.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "object"
            }
          ]
        },
        "progress": {
          "description": "Show an indicator while a rebuild is in progress.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "enum": ["circular", "linear"]
            }
          ]
        },
        "apply": {
          "description": "What a build does to the page: `hmr` applies the update and reloads if it cannot be applied, `hmr-only` applies it and stops with a message if it cannot, `reload` loads the page again on a build that changed something, and `nothing` leaves the page alone until you reload it.",
          "enum": ["hmr", "hmr-only", "reload", "nothing"]
        },
        "connect": {
          "description": "Whether to connect when the entry runs, and how the connection is held open. `false` does not connect; an object sets `retries` and `timeout`.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "retries": {
                  "description": "How many times to reconnect before giving up. Server-Sent Events keep trying for as long as the page is open unless this is set, since a dev server is expected to come back.",
                  "type": "number",
                  "minimum": 0
                },
                "timeout": {
                  "description": "How long silence is tolerated before reconnecting, in milliseconds. Server-Sent Events only: their heartbeat arrives as data the client can see, whereas a WebSocket's is a protocol ping the browser answers without telling JavaScript.",
                  "type": "number",
                  "minimum": 1
                }
              }
            }
          ]
        },
        "pageParamPrefix": {
          "description": "Prefix of the page-url parameters that override `apply` for a single page, as in `?webpack-dev-middleware-hot=false`.",
          "type": "string",
          "minLength": 1
        },
        "logging": {
          "description": "Logger level in the browser, or an object carrying the level and the name every message is labelled with in the console — a package embedding this runtime is the one a developer would report a problem to, so it can say its own name.",
          "anyOf": [
            {
              "enum": ["none", "error", "warn", "info", "log", "verbose"]
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "level": {
                  "enum": ["none", "error", "warn", "info", "log", "verbose"]
                },
                "name": {
                  "description": "What every message is labelled with in the console. Defaults to this package's name.",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          ]
        },
        "dynamicPublicPath": {
          "description": "Prefix the endpoint path with the bundle's public path at runtime.",
          "type": "boolean"
        }
      }
    },
    "CorsOrigin": {
      "description": "An origin, written as a browser sends it (scheme, host and port, no trailing slash), several of them, a pattern, or a function asked about each.",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "instanceof": "RegExp"
        },
        {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "instanceof": "RegExp"
              }
            ]
          },
          "minItems": 1
        },
        {
          "instanceof": "Function"
        }
      ]
    }
  },
  "type": "object",
  "properties": {
    "cache": {
      "description": "How responses are cached.",
      "link": "https://github.com/webpack/webpack-dev-middleware#cache",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "etag": {
          "description": "Enable or disable etag generation.",
          "enum": ["weak", "strong"]
        },
        "lastModified": {
          "description": "Enable or disable `Last-Modified` header. Uses the file system's last modified value.",
          "type": "boolean"
        },
        "control": {
          "description": "Enable or disable setting `Cache-Control` response header.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "object",
              "properties": {
                "maxAge": {
                  "type": "number"
                },
                "immutable": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "immutable": {
          "description": "Enable or disable setting `Cache-Control: public, max-age=31536000, immutable` response header for immutable assets (i.e. asset with a hash in file name like `image.a4c12bde.jpg`).",
          "type": "boolean"
        }
      }
    },
    "mime": {
      "description": "How a file's media type is decided.",
      "link": "https://github.com/webpack/webpack-dev-middleware#mime",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "types": {
          "description": "Allows a user to register custom mime types or extension mappings.",
          "type": "object"
        },
        "default": {
          "description": "Allows a user to register a default mime type when we can't determine the content type.",
          "type": "string"
        }
      }
    },
    "mimeTypes": {
      "description": "Allows a user to register custom mime types or extension mappings.",
      "link": "https://github.com/webpack/webpack-dev-middleware#mimetypes",
      "type": "object"
    },
    "mimeTypeDefault": {
      "description": "Allows a user to register a default mime type when we can't determine the content type.",
      "link": "https://github.com/webpack/webpack-dev-middleware#mimetypedefault",
      "type": "string"
    },
    "writeToDisk": {
      "description": "Allows to write generated files on disk.",
      "link": "https://github.com/webpack/webpack-dev-middleware#writetodisk",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "instanceof": "Function"
        }
      ]
    },
    "methods": {
      "description": "Allows to pass the list of HTTP request methods accepted by the middleware.",
      "link": "https://github.com/webpack/webpack-dev-middleware#methods",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "headers": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "key": {
                "description": "key of header.",
                "type": "string"
              },
              "value": {
                "description": "value of header.",
                "type": "string"
              }
            }
          },
          "minItems": 1
        },
        {
          "type": "object"
        },
        {
          "instanceof": "Function"
        }
      ],
      "description": "Allows to pass custom HTTP headers on each request",
      "link": "https://github.com/webpack/webpack-dev-middleware#headers"
    },
    "publicPath": {
      "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
      "link": "https://github.com/webpack/webpack-dev-middleware#publicpath",
      "anyOf": [
        {
          "enum": ["auto"]
        },
        {
          "type": "string"
        },
        {
          "instanceof": "Function"
        }
      ]
    },
    "stats": {
      "description": "Stats options object or preset name.",
      "link": "https://github.com/webpack/webpack-dev-middleware#stats",
      "anyOf": [
        {
          "enum": [
            "none",
            "summary",
            "errors-only",
            "errors-warnings",
            "minimal",
            "normal",
            "detailed",
            "verbose"
          ]
        },
        {
          "type": "boolean"
        },
        {
          "type": "object",
          "additionalProperties": true
        }
      ]
    },
    "serverSideRender": {
      "description": "Instructs the module to enable or disable the server-side rendering mode.",
      "link": "https://github.com/webpack/webpack-dev-middleware#serversiderender",
      "type": "boolean"
    },
    "outputFileSystem": {
      "description": "Set the default file system which will be used by webpack as primary destination of generated files.",
      "link": "https://github.com/webpack/webpack-dev-middleware#outputfilesystem",
      "type": "object"
    },
    "index": {
      "description": "Allows to serve an index of the directory.",
      "link": "https://github.com/webpack/webpack-dev-middleware#index",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string",
          "minLength": 1
        }
      ]
    },
    "modifyResponseData": {
      "description": "Allows to set up a callback to change the response data.",
      "link": "https://github.com/webpack/webpack-dev-middleware#modifyresponsedata",
      "instanceof": "Function"
    },
    "etag": {
      "description": "Enable or disable etag generation.",
      "link": "https://github.com/webpack/webpack-dev-middleware#etag",
      "enum": ["weak", "strong"]
    },
    "lastModified": {
      "description": "Enable or disable `Last-Modified` header. Uses the file system's last modified value.",
      "link": "https://github.com/webpack/webpack-dev-middleware#lastmodified",
      "type": "boolean"
    },
    "cacheControl": {
      "description": "Enable or disable setting `Cache-Control` response header.",
      "link": "https://github.com/webpack/webpack-dev-middleware#cachecontrol",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "object",
          "properties": {
            "maxAge": {
              "type": "number"
            },
            "immutable": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "cacheImmutable": {
      "description": "Enable or disable setting `Cache-Control: public, max-age=31536000, immutable` response header for immutable assets (i.e. asset with a hash in file name like `image.a4c12bde.jpg`).",
      "link": "https://github.com/webpack/webpack-dev-middleware#cacheimmutable",
      "type": "boolean"
    },
    "forwardError": {
      "description": "Enable or disable forwarding errors to next middleware.",
      "link": "https://github.com/webpack/webpack-dev-middleware#forwarderrors",
      "type": "boolean"
    },
    "hot": {
      "description": "Enable hot module replacement over a Server-Sent Events or WebSocket endpoint.",
      "link": "https://github.com/webpack/webpack-dev-middleware#hot",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "transport": {
              "description": "How events reach the clients: `sse`, `ws` (needs the optional `ws` dependency and the upgrades of an HTTP server: hand the server to the middleware's `attach(server)`, or pass each upgrade to `handleUpgrade(req, socket, head)`), or a function building a transport of your own.",
              "anyOf": [
                {
                  "enum": ["sse", "ws"]
                },
                {
                  "instanceof": "Function"
                }
              ]
            },
            "path": {
              "description": "The path the endpoint is served at. Must start with a slash and carry no query string or fragment.",
              "type": "string",
              "pattern": "^/[^?#]*$"
            },
            "heartbeat": {
              "description": "Heartbeat interval (in milliseconds) used to keep the connection alive.",
              "type": "number",
              "minimum": 1
            },
            "ws": {
              "description": "Options for the `ws` server behind the `ws` transport: compression, payload limits, `verifyClient`, or a `port` or a `server` of its own to listen on instead of answering the upgrades it is handed. `path`, `noServer` and `clientTracking` are the middleware's and are ignored here.",
              "link": "https://github.com/webpack/webpack-dev-middleware#hot",
              "type": "object",
              "additionalProperties": true
            },
            "progress": {
              "description": "Publish compilation progress events to the clients.",
              "type": "boolean"
            },
            "token": {
              "description": "A secret the injected client carries and, unless `required` is `false`, the endpoint requires, so reaching the stream takes something a page has to have been given rather than a header the browser may not send. `true` mints one per run, a string uses that one — for a client of your own that has to build the url itself — `false` requires none, and `{ required: false }` hands one to the injected client without requiring it. Defaults to `false`, because requiring one would refuse a client this middleware did not inject; `true` in the next major release.",
              "link": "https://github.com/webpack/webpack-dev-middleware#hottoken",
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string",
                  "minLength": 1
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "value": {
                      "description": "The token: `true` (the default) mints one per run, a string uses that one.",
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "minLength": 1
                        }
                      ]
                    },
                    "required": {
                      "description": "Whether the endpoint refuses a client without the token (default `true`). `false` still hands it to the injected client, for a server that checks it itself through `onConnect` alongside policy of its own.",
                      "type": "boolean"
                    }
                  }
                }
              ]
            },
            "cors": {
              "description": "Which origins may read the Server-Sent Events endpoint from a page on another one. Local origins only by default. `true` grants every origin, which lets any site the developer has open read the build's errors, including the source frames webpack puts in them.",
              "link": "https://github.com/webpack/webpack-dev-middleware#hotcors",
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "$ref": "#/definitions/CorsOrigin"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "origin": {
                      "description": "Which origins may read it, as Vite and `expressjs/cors` are configured.",
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "$ref": "#/definitions/CorsOrigin"
                        }
                      ]
                    }
                  }
                }
              ]
            },
            "statsOptions": {
              "description": "Deprecated, do not use, will be removed in the next major release. Use the `stats` option instead, which decides whether a payload carries errors and warnings.",
              "type": "object",
              "additionalProperties": true
            },
            "inject": {
              "description": "What is added to the compilation: `all` (the default) adds the runtime — this package's client and overlay — and HotModuleReplacementPlugin; `plugin` adds only the plugin, for a page that wires a client of its own; `client` adds only the runtime, for a configuration that applies the plugin itself; `none` adds nothing.",
              "link": "https://github.com/webpack/webpack-dev-middleware#hotinject",
              "enum": ["all", "plugin", "client", "none"]
            },
            "client": {
              "description": "Options handed to the browser runtime through its entry query.",
              "link": "https://github.com/webpack/webpack-dev-middleware#hot",
              "$ref": "#/definitions/HotClient"
            }
          }
        }
      ]
    }
  },
  "additionalProperties": false
}
