{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dioad.github.io/connect/schema/agent.schema.json",
  "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.Config",
  "$defs": {
    "github.com.dioad.auth.http.OIDCServerConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects a provider-specific behaviour. Accepted values are \"github\", \"githubactions\", \"keycloak\", \"flyio\" and \"aws\". Leave empty for a generic OIDC provider discovered from URL."
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`url` is the OIDC issuer URL, for example \"https://accounts.example.com\". Provider metadata and signing keys are discovered from it."
        },
        "keycloak-realm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`keycloak-realm` is the Keycloak realm name. It is only used when Type is \"keycloak\"."
        },
        "client-id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`client-id` is the OAuth 2.0 client identifier registered with the provider."
        },
        "client-secret": {
          "type": "string",
          "description": "`client-secret` is the OAuth 2.0 client secret, used for the client credentials flow. Set at most one of ClientSecret and ClientSecretFile."
        },
        "client-secret-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`client-secret-file` is the path to a file containing the client secret, for example a mounted container secret. Surrounding whitespace is trimmed. The file is read when the token source is built, not when the config is validated; an unreadable or empty file is an error. Set at most one of ClientSecret and ClientSecretFile."
        },
        "audience": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`audience` is the audience requested for issued tokens. It is required by platform identity providers such as \"githubactions\", \"flyio\" and \"aws\" and ignored by providers that do not support it."
        },
        "token-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`token-file` is the path to a file used to persist the interactive login token between runs. When set, the token is loaded from the file and refreshed with its refresh token once it expires."
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig",
          "description": "`tls-client` configures TLS for connections to the provider, such as a custom CA bundle."
        },
        "scopes": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "redirect-uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "token-cookie": {
          "$ref": "#/$defs/github.com.dioad.auth.http.middleware.oidc.CookieConfig"
        },
        "state-cookie": {
          "$ref": "#/$defs/github.com.dioad.auth.http.middleware.oidc.CookieConfig"
        },
        "refresh-cookie": {
          "$ref": "#/$defs/github.com.dioad.auth.http.middleware.oidc.CookieConfig"
        },
        "token-expiry": {
          "$ref": "#/$defs/github.com.dioad.auth.http.middleware.oidc.CookieConfig"
        },
        "redirect-cookie": {
          "$ref": "#/$defs/github.com.dioad.auth.http.middleware.oidc.CookieConfig"
        },
        "id-token-cookie": {
          "$ref": "#/$defs/github.com.dioad.auth.http.middleware.oidc.CookieConfig"
        },
        "refresh-window": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration"
        },
        "login-path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "logout-path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "allow-insecure-cookies": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-insecure-cookies` disables the default Secure attribute on session cookies, allowing them to be sent over plain HTTP. Session cookies carry live OAuth access and refresh tokens, so this must only be set for local HTTP development — never in production. Mirrors oidc.ValidatorConfig.AllowInsecureHMAC's explicit-opt-in shape."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "OIDCServerConfig combines OIDC provider credentials with the login/session middleware settings (redirect-uri, cookies, login/logout paths) needed to complete a login when \"type: oidc\" is used as a server's sole auth gate."
    },
    "github.com.dioad.auth.http.ServerConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects the auth handler explicitly: \"github\", \"basic\", \"hmac\", \"jwt\", \"oidc\". When set it takes precedence over zero-value detection. An unrecognised Type returns an error from NewHandler."
        },
        "basic": {
          "$ref": "#/$defs/github.com.dioad.auth.http.basic.ServerConfig"
        },
        "github": {
          "$ref": "#/$defs/github.com.dioad.auth.http.github.ServerConfig"
        },
        "hmac": {
          "$ref": "#/$defs/github.com.dioad.auth.http.hmac.ServerConfig"
        },
        "jwt": {
          "$ref": "#/$defs/github.com.dioad.auth.jwt.ValidatorConfig"
        },
        "oidc": {
          "$ref": "#/$defs/github.com.dioad.auth.http.OIDCServerConfig"
        },
        "providers": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServerConfig represents the authentication configuration for an HTTP server."
    },
    "github.com.dioad.auth.http.basic.ServerConfig": {
      "properties": {
        "allow-insecure-http": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "htpasswd-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "users": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "realm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "throttle": {
          "$ref": "#/$defs/github.com.dioad.auth.http.basic.ThrottleConfig",
          "description": "`throttle` limits failed logins per client address. It is enabled by default; see ThrottleConfig for the limits."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServerConfig configures HTTP Basic authentication for a server."
    },
    "github.com.dioad.auth.http.basic.ThrottleConfig": {
      "properties": {
        "disabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`disabled` turns failed-login throttling off. By default throttling is on."
        },
        "max-failures": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-failures` is the number of rejected logins allowed within Window before the client address is locked out. Defaults to 10."
        },
        "window": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`window` is how long a failed login counts towards MaxFailures. Defaults to 5 minutes."
        },
        "lockout": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`lockout` is how long a client address is rejected with 429 once MaxFailures is reached, even if it then supplies the right password. Defaults to 5 minutes."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ThrottleConfig limits failed logins per client address to slow down password guessing. Throttling is enabled unless Disabled is set."
    },
    "github.com.dioad.auth.http.github.ServerConfig": {
      "properties": {
        "allow-insecure-http": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "client-id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "client-secret": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "config-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`config-file` containing ClientID and ClientSecret"
        },
        "principals": {
          "$ref": "#/$defs/github.com.dioad.net.authz.PrincipalACLConfig"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServerConfig contains configuration for a GitHub authentication server."
    },
    "github.com.dioad.auth.http.hmac.ServerConfig": {
      "properties": {
        "allow-insecure-http": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "shared-key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "Inline shared key used to HMAC with value from HTTPHeader"
        },
        "signed-headers": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "HTTP Headers to include in the HMAC calculation."
        },
        "timestamp-header": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "HTTP Header to use for the timestamp (default: X-Timestamp)"
        },
        "max-timestamp-diff": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "Maximum allowed time difference for the timestamp (default: 5m)"
        },
        "max-future-timestamp-diff": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "Maximum allowed time difference for future timestamps (default: 30s) This should be smaller than MaxTimestampDiff to prevent pre-signed replay attacks. A smaller value is appropriate since it only needs to account for clock skew."
        },
        "max-request-size": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "Maximum request size in bytes (default: 10 MB)"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServerConfig contains configuration for an HMAC authentication server."
    },
    "github.com.dioad.auth.http.middleware.oidc.CookieConfig": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "secure": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "max-age": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "CookieConfig configures a single session cookie's name, scope, and lifetime."
    },
    "github.com.dioad.auth.jwt.ValidatorConfig": {
      "properties": {
        "issuer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`issuer` is the expected token \"iss\" claim. Signing keys are discovered from its JWKS endpoint. Required."
        },
        "audiences": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`audiences` lists the accepted values of the token \"aud\" claim. A token is accepted if it carries at least one of them."
        },
        "signature_algorithm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`signature_algorithm` is a single accepted signing algorithm, for example \"RS256\". Ignored when SignatureAlgorithms is set."
        },
        "signature_algorithms": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`signature_algorithms` lists the accepted signing algorithms, for example \"RS256\", \"ES256\". Takes precedence over SignatureAlgorithm."
        },
        "cache_ttl_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`cache_ttl_seconds` is how long, in seconds, discovered signing keys are cached. Defaults to 300 when unset or not positive."
        },
        "allowed_clock_skew_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`allowed_clock_skew_seconds` is the tolerance, in seconds, applied to the token \"exp\", \"nbf\" and \"iat\" claims. Defaults to 60 when unset or not positive."
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`debug` enables debug logging of each token validation attempt and its outcome. Intended for troubleshooting."
        },
        "claim_predicates": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ],
          "description": "`claim_predicates` restricts which tokens are accepted by their claims. Each key is a claim name and its value is the required claim value; an array claim matches when it contains the value. All entries must match. Use the reserved keys \"and\" and \"or\", each holding a list of such maps, for nested combinations."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ValidatorConfig contains configuration for a JWT token validator."
    },
    "github.com.dioad.auth.oidc.ClientConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects a provider-specific behaviour. Accepted values are \"github\", \"githubactions\", \"keycloak\", \"flyio\" and \"aws\". Leave empty for a generic OIDC provider discovered from URL."
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`url` is the OIDC issuer URL, for example \"https://accounts.example.com\". Provider metadata and signing keys are discovered from it."
        },
        "keycloak-realm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`keycloak-realm` is the Keycloak realm name. It is only used when Type is \"keycloak\"."
        },
        "client-id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`client-id` is the OAuth 2.0 client identifier registered with the provider."
        },
        "client-secret": {
          "type": "string",
          "description": "`client-secret` is the OAuth 2.0 client secret, used for the client credentials flow. Set at most one of ClientSecret and ClientSecretFile."
        },
        "client-secret-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`client-secret-file` is the path to a file containing the client secret, for example a mounted container secret. Surrounding whitespace is trimmed. The file is read when the token source is built, not when the config is validated; an unreadable or empty file is an error. Set at most one of ClientSecret and ClientSecretFile."
        },
        "audience": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`audience` is the audience requested for issued tokens. It is required by platform identity providers such as \"githubactions\", \"flyio\" and \"aws\" and ignored by providers that do not support it."
        },
        "token-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`token-file` is the path to a file used to persist the interactive login token between runs. When set, the token is loaded from the file and refreshed with its refresh token once it expires."
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig",
          "description": "`tls-client` configures TLS for connections to the provider, such as a custom CA bundle."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ClientConfig captures client credentials and token acquisition options for an OIDC provider."
    },
    "github.com.dioad.auth.oidc.ValidatorConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects a provider-specific behaviour. Accepted values are \"github\", \"githubactions\", \"keycloak\", \"flyio\" and \"aws\". Leave empty for a generic OIDC provider discovered from URL."
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`url` is the OIDC issuer URL, for example \"https://accounts.example.com\". Provider metadata and signing keys are discovered from it."
        },
        "keycloak-realm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`keycloak-realm` is the Keycloak realm name. It is only used when Type is \"keycloak\"."
        },
        "audiences": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`audiences` lists the accepted values of the token \"aud\" claim. A token is accepted if it carries at least one of them."
        },
        "issuer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`issuer` is the expected token \"iss\" claim. Signing keys are discovered from its JWKS endpoint."
        },
        "cache_ttl_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`cache_ttl_seconds` is how long, in seconds, discovered signing keys are cached. Defaults to 300 when unset or not positive."
        },
        "signature_algorithm": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`signature_algorithm` is a single accepted signing algorithm, for example \"RS256\". Ignored when SignatureAlgorithms is set."
        },
        "signature_algorithms": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`signature_algorithms` lists the accepted signing algorithms, for example \"RS256\", \"ES256\". Takes precedence over SignatureAlgorithm."
        },
        "allowed_clock_skew_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`allowed_clock_skew_seconds` is the tolerance, in seconds, applied to the token \"exp\", \"nbf\" and \"iat\" claims. Defaults to 60 when unset or not positive."
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`debug` enables debug logging of each token validation attempt and its outcome. Intended for troubleshooting."
        },
        "claim_predicates": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ],
          "description": "`claim_predicates` restricts which tokens are accepted by their claims. Each key is a claim name and its value is the required claim value; an array claim matches when it contains the value. All entries must match. Use the reserved keys \"and\" and \"or\", each holding a list of such maps, for nested combinations."
        },
        "hmac_secret": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`hmac_secret` is an optional shared secret for HS256/HS384/HS512 token validation. When non-empty, JWKS discovery is skipped and the secret is used directly as the signing key. Intended for local development and smoke testing only; never use a static shared secret in production. Requires AllowInsecureHMAC: true to prevent accidental production use."
        },
        "allow_insecure_hmac": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow_insecure_hmac` must be set to true when HMACSecret is used. This explicit opt-in acknowledges that HMAC shared secrets are not suitable for production deployments. Never set this to true in production config."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ValidatorConfig controls validation behavior for issued tokens."
    },
    "github.com.dioad.cli.logging.Config": {
      "properties": {
        "level": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`level` specifies the logging level: trace, debug, info, warn, error, fatal, panic. Empty string defaults to application-configured level or zerolog.WarnLevel."
        },
        "file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`file` specifies the path to the log file. Supports home directory expansion (~). Empty string disables file logging (logs to stdout only)."
        },
        "max-size": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-size` is the maximum size of the log file in MB before rotation occurs. Default is 100 MB."
        },
        "max-age": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-age` is the maximum number of days to keep old log files. Default is 0 (no limit)."
        },
        "max-backups": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`max-backups` is the maximum number of old log files to retain. Default is 0 (keep all)."
        },
        "use-local-time": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`use-local-time` determines if rotated filenames use local time instead of UTC. Default is false."
        },
        "compress": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`compress` determines if old log files are gzip-compressed after rotation. Default is false."
        },
        "mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`mode` is reserved for future use."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config contains all configuration options for logging behavior.\n\nFields support struct tags for configuration file unmarshaling:\n\nYAML Example:"
    },
    "github.com.dioad.connect.internal.agent.pluginhost.Config": {
      "properties": {
        "directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`directory` holds one sub-directory per plugin, each containing manifest.json, manifest.json.sig and the plugin binaries. Plugins are disabled when it is empty."
        },
        "cache-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`cache-directory` receives digest-verified copies of plugin binaries; only these copies are ever executed. Defaults to a \"plugins\" directory under the user cache directory."
        },
        "require-signature": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`require-signature` rejects plugins without a valid signature from a trusted key. Defaults to true."
        },
        "trusted-keys": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.agent.pluginhost.TrustedKey"
          },
          "type": "array",
          "description": "`trusted-keys` are the public keys plugin manifests may be signed with."
        },
        "allow-unsigned": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`allow-unsigned` names plugins exempt from RequireSignature, for local development. Every load of such a plugin is logged as a warning."
        },
        "env-allowlist": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`env-allowlist` names the agent environment variables passed to plugin processes. Nothing else from the agent's environment is passed."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config is the agent's plugins section."
    },
    "github.com.dioad.connect.internal.agent.pluginhost.TrustedKey": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`name` identifies the key in logs."
        },
        "public-key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`public-key` is \"ed25519:\u003cbase64 PKIX\u003e\", as printed by \"connect plugin keygen\"."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TrustedKey is one plugin signing key."
    },
    "github.com.dioad.connect.internal.agent.types.TrafficConfig": {
      "properties": {
        "tunnels": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.tunnel.ReverseConfig"
          },
          "type": "array"
        },
        "forward-tunnels": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.tunnel.ForwardConfig"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TrafficConfig used to contain tunnel configuration."
    },
    "github.com.dioad.connect.internal.agent.types.TunnelConfigDefaults": {
      "properties": {
        "endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "subdomain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig",
          "description": "`tls-client` and TLSServer are pointers, not values, so WithOverrides can tell \"not set at this level\" (nil) apart from an explicit empty override."
        },
        "tls-server": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ServerConfig"
        },
        "network-acl": {
          "$ref": "#/$defs/github.com.dioad.net.authz.NetworkACLConfig",
          "description": "`network-acl` is a *authz.NetworkACLConfig, not a value, so WithOverrides can tell \"not set at this level\" (nil) apart from an explicit zero-value ACL - the zero value is deny-all, a meaningful explicit choice that a more permissive default must not silently override."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TunnelConfigDefaults holds default tunnel settings that individual tunnels inherit when they do not set their own."
    },
    "github.com.dioad.connect.internal.cmd.agent.ACMEDNSAccountConfig": {
      "properties": {
        "username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "subdomain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ACMEDNSAccountConfig is the YAML shape of one ACMEDNSConfig.Accounts entry. It is intentionally self-contained rather than cross-referenced by name from a maddy exec's own config - the same duplication-by-convention already accepted elsewhere in this codebase for e.g. tls-server.acme.cache-directory (see doc/architecture/agent/future/CONNECT_AGENT_SERVICE_DESIGN.md's Background section), and simpler than adding a cross-reference lookup mechanism for a single, config-time-static relationship. There is deliberately no Password field: it is generated internally, fresh on every agent start, and never appears in any config file on either side - see internal/servers/coredns.ACMEDNSResource.Password."
    },
    "github.com.dioad.connect.internal.cmd.agent.ACMEDNSConfig": {
      "properties": {
        "listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`listen-address` is the address this API listens on (e.g. \"127.0.0.1:8556\"). Defaults to \"127.0.0.1:8556\" if left empty. It must be a loopback address: unlike the coredns tunnel's own DNS listener, this HTTP API is never bridged across the reverse tunnel, and the internally generated per-account credentials below are only a safe authentication mechanism because the listener itself is unreachable from anywhere but this host. See validateACMEDNSListenAddress."
        },
        "accounts": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.ACMEDNSAccountConfig"
          },
          "type": "array",
          "description": "`accounts` are the identities external ACME clients authenticate as, mirroring the acme-dns protocol's per-account model. Each account maps to exactly one target domain: an accepted update publishes \"_acme-challenge.\u003cdomain\u003e.\" into the shared ChallengeStore. The API runs when there is at least one account here or a \"maddy\" exec sets config.acme-dns.enable - there is no separate enable flag. A maddy exec needs no account here: the agent creates one for its MX hostname."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ACMEDNSConfig configures the agent-local acme-dns-compatible HTTP API."
    },
    "github.com.dioad.connect.internal.cmd.agent.Config": {
      "properties": {
        "log": {
          "$ref": "#/$defs/github.com.dioad.cli.logging.Config"
        },
        "identity": {
          "$ref": "#/$defs/github.com.dioad.auth.oidc.ClientConfig",
          "description": "`identity` provides the OIDC client configuration for agent identity."
        },
        "management": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.ManagementConfig",
          "description": "`management` defines the configuration for the agent's management interface."
        },
        "acme-dns": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.ACMEDNSConfig",
          "description": "`acme-dns` defines the configuration for the agent-local acme-dns-compatible HTTP API. It lets an external ACME client running as a sibling exec process (e.g. maddy, via its built-in \"acmedns\" libdns provider) publish DNS-01 challenge values into the same ChallengeStore this agent's own dns-01 tunnels already use, instead of depending on a sibling tunnel's certificate lifecycle. See doc/architecture/agent/future/MADDY_LIBDNS_ACME_DESIGN.md. Optional - leave ListenAddress empty (the default) to disable it entirely."
        },
        "traffic": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.agent.types.TrafficConfig",
          "description": "`traffic` defines how the agent handles network traffic."
        },
        "tunnel-defaults": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.agent.types.TunnelConfigDefaults",
          "description": "`tunnel-defaults` provides default values for tunnel configurations."
        },
        "services": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.ServiceConfig",
          "description": "`services` defines the services (like exec) that the agent should run."
        },
        "discovery": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.DiscoveryConfig",
          "description": "`discovery` configures dynamic tunnel discovery sources."
        },
        "plugins": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.agent.pluginhost.Config",
          "description": "`plugins` configures external tunnel server plugins: where signed plugin releases are found and which signing keys are trusted. See doc/user/PLUGINS.md."
        },
        "status": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.StatusConfig",
          "description": "`status` configures the status file the agent keeps for `connect agent status` and other tools."
        },
        "shutdown-timeout": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`shutdown-timeout` bounds the agent's graceful-shutdown sequence: drain all tunnels, stop all exec child processes (maddy, coredns, ...), then stop the management and acme-dns HTTP servers. When unset or non-positive it defaults to defaultShutdownTimeout (5s). Raise it for an agent running several exec processes or many tunnels, where 5s can be too short and Stop deadlines start biting."
        },
        "profile-cpu-output": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`profile-cpu-output` specifies the file path where CPU profile data should be saved."
        },
        "profile-memory-output": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`profile-memory-output` specifies the file path where the heap profile is written when the agent stops."
        },
        "profile-block-output": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`profile-block-output` specifies the file path where the blocking profile is written when the agent stops."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config is the top-level configuration for the agent."
    },
    "github.com.dioad.connect.internal.cmd.agent.DiscoveryConfig": {
      "properties": {
        "docker": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.discovery.docker.DiscoveryConfig"
          },
          "type": "array",
          "description": "`docker` lists Docker-based discovery sources. Each entry configures the agent to watch a Docker daemon for labelled containers and create tunnels for them automatically."
        },
        "file": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.cmd.agent.discovery.file.DiscoveryConfig"
          },
          "type": "array",
          "description": "`file` lists file-based discovery sources. Each entry configures the agent to load tunnels from a YAML file (under that file's own traffic: key) and watch it for changes. The agent's own traffic: block is always available as an implicit, unnamed entry of this kind (see ServiceFactory.buildFileSources) - File is for additional or separate files."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "DiscoveryConfig holds configuration for all dynamic tunnel discovery sources."
    },
    "github.com.dioad.connect.internal.cmd.agent.ManagementConfig": {
      "properties": {
        "listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`listen-address` is the address the management interface will listen on (e.g., \":4444\")."
        },
        "operations-listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "OperationsListenAddress, when set, starts a second listener serving /health/live, /health/ready and /metrics with no authentication, for a platform health check and metrics scraper that cannot log in. The management interface keeps its authentication. Bind it where only the platform can reach it: a private network or loopback. Needs listen-address."
        },
        "session-secret": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "session-secret-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`session-secret-file` is a file holding the session secret, for deployments that mount secrets as files instead of putting them in the config. Set at most one of session-secret and session-secret-file. Surrounding whitespace is ignored."
        },
        "local-auth-disabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`local-auth-disabled` explicitly opts out of local basic-auth for the management interface. By default, when the management interface is enabled (ListenAddress is non-empty), a missing or empty htpasswd file causes the agent to refuse to start rather than run the management interface unauthenticated."
        },
        "local-auth": {
          "$ref": "#/$defs/github.com.dioad.auth.http.basic.ServerConfig",
          "description": "`local-auth` configures local HTTP Basic authentication for the management interface, backed by a bcrypt-hashed htpasswd-style credentials file (HTPasswdFile, one \"user:bcrypt-hash\" entry per line). HTPasswdFile defaults to ~/.config/dioad/connect/htpasswd when left empty. Users is not read by the basic-auth handler - credentials always come from HTPasswdFile, not this list."
        },
        "allow-unauthenticated-non-loopback": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-unauthenticated-non-loopback` explicitly opts in to serving the management interface - including the full tunnel-control API (POST /api/tunnels, POST /api/tunnel/{id}/state, GET /api/events) - unauthenticated on a non-loopback listener. By default the agent refuses to start in that combination (LocalAuthDisabled: true, bound to a non-loopback address) because anyone who can reach the listener then has full tunnel control with no credential. Only set this when a trusted TLS-terminating proxy or equivalent network control already sits in front of this listener."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ManagementConfig configures the agent's local management interface."
    },
    "github.com.dioad.connect.internal.cmd.agent.ServiceConfig": {
      "properties": {
        "exec": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.exec.Config"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServiceConfig configures the services run by the agent."
    },
    "github.com.dioad.connect.internal.cmd.agent.StatusConfig": {
      "properties": {
        "directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`directory` is where the agent keeps its status file, shared with any other agents that use it. Defaults to $CONNECT_AGENT_STATUS_DIR, or ~/.config/dioad/connect/status.d when that is unset."
        },
        "disabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`disabled` turns the status file off. `connect agent status` then only reports this agent through its management interface."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "StatusConfig configures the status file the agent keeps for `connect agent status` and other tools. See doc/user/AGENT_STATUS_FILES.md."
    },
    "github.com.dioad.connect.internal.cmd.agent.discovery.docker.DiscoveryConfig": {
      "properties": {
        "socket": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`socket` is the Docker socket path or URL (e.g. \"unix:///var/run/docker.sock\"). When empty, the default Docker socket is used."
        },
        "label-prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`label-prefix` is the prefix used to identify connect-related labels on containers. Defaults to \"dioad.connect\" when empty."
        },
        "use-container-name": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`use-container-name` controls how the target host is inferred when constructing tunnel target URLs for discovered containers.\n\nWhen false (default — agent running on the Docker host):\n\nWhen true (agent running as a Docker container on the same network):\n\nNote: \"use-container-name\" only affects auto-inferred target values. Per-container overrides via \"tunnel.config.target-url\" (httpreverseproxy) or \"tunnel.config.target-address\" (tcp) labels always take precedence."
        },
        "allowed-types": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`allowed-types` lists the tunnel types a container label may select via \"tunnel.type\". Containers requesting any other type are skipped. Defaults to \"httpreverseproxy\" and \"tcp\" when empty.\n\nContainer labels, including those baked into third-party images, are untrusted input: widen this list only for types you are willing to let any labelled container instantiate."
        },
        "allowed-endpoint-hosts": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`allowed-endpoint-hosts` lists the hostnames a container may name in its \"tunnel.endpoint\" label. The agent presents its identity token to the endpoint, so labels naming any other host are rejected. The host of the configured default endpoint is always allowed, so a label can still pick another path on it. Empty means labels cannot move the endpoint to a new host."
        },
        "allow-custom-targets": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-custom-targets` permits \"tunnel.config.target-url\" and \"tunnel.config.target-address\" labels that point somewhere other than a port the container itself exposes. Link-local and unspecified addresses are rejected regardless."
        },
        "defaults": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.agent.types.TunnelConfigDefaults",
          "description": "`defaults` provides fallback tunnel configuration values for discovered containers that do not specify all tunnel fields via labels."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "DiscoveryConfig configures a single Docker-based tunnel discovery source."
    },
    "github.com.dioad.connect.internal.cmd.agent.discovery.file.DiscoveryConfig": {
      "properties": {
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`path` is the file to load tunnels from and watch for changes."
        },
        "defaults": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.agent.types.TunnelConfigDefaults",
          "description": "`defaults` provides fallback tunnel configuration values for tunnels loaded from this file, merged over the global tunnel-defaults."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "DiscoveryConfig configures a single file-based tunnel discovery source: a YAML file containing traffic.tunnels/traffic.forward-tunnels- shaped content under its own traffic: key, loaded at boot and watched for changes afterward."
    },
    "github.com.dioad.connect.internal.dnsrecords.MaddyDANERecord": {
      "properties": {
        "state-dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "port": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "auto-refresh": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`auto-refresh` is rejected in a coredns tunnel's smtp-domains, which reads the certificate again every 30 seconds."
        },
        "auto-refresh-period-seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`auto-refresh-period-seconds` is rejected in a coredns tunnel's smtp-domains, which reads the certificate again every 30 seconds."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "MaddyDANERecord is a TLSA/DANE record derived from the certificate maddy serves for its MX hostname, in whichever of maddy's two certificate layouts its state directory holds (see maddyCertificatePath). It preserves the config schema (state-dir, port, auto-refresh, auto-refresh-period-seconds) maddy tunnel configs already use."
    },
    "github.com.dioad.connect.internal.dnsrecords.MaddyDKIMRecord": {
      "properties": {
        "state-dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "auto-refresh": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`auto-refresh` is rejected in a coredns tunnel's smtp-domains, which reads the key file again every 30 seconds."
        },
        "auto-refresh-period-seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`auto-refresh-period-seconds` is rejected in a coredns tunnel's smtp-domains, which reads the key file again every 30 seconds."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "MaddyDKIMRecord is a TXT record derived from the DKIM selector key file maddy writes for a domain. It preserves the config schema (state-dir, auto-refresh, auto-refresh-period-seconds) maddy tunnel configs already use."
    },
    "github.com.dioad.connect.internal.exec.maddy.ACMEDNSConfig": {
      "properties": {
        "enable": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enable` switches maddy from the default sibling-tunnel cert-extraction behavior to self-issuing its own certificate via dns-01."
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`email` is the ACME account email maddy registers with. Defaults to the tunnel principal's email (the same source and precedent as tls-server.acme's own email default -- see sdk/agent/tunnel.BaseTunnelConfig.Update) if left empty."
        },
        "server-url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`server-url` is the base URL of this agent's acme-dns API. Defaults to \"http://127.0.0.1:8556\" -- this agent's own \"acme-dns.listen-address\" default -- if left empty. Maddy's acmedns provider appends \"/update\" itself."
        },
        "username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`username` and Subdomain name maddy's account on this agent's acme-dns API. Both default to maddy's MX hostname, the one name its certificate is for, and the agent creates that account itself, so neither needs setting. Set them to use an account from the top-level \"acme-dns.accounts\" list instead, which must then be for the MX hostname. The password is generated, never configured."
        },
        "subdomain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ACMEDNSConfig is maddy's own acme-dns client configuration, rendered directly into the generated maddy.conf's \"tls.loader.acme\" block. It is deliberately self-contained (not cross-referenced by name from the agent's top-level acme-dns account list) -- see ACMEDNSAccountConfig's doc comment in internal/cmd/agent/agent_config.go for why -- except for the password, which is never operator-configured on either side (see ACMEDNSPasswordLookup)."
    },
    "github.com.dioad.connect.internal.exec.maddy.CertSourceConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "CertSourceConfig identifies exactly one tunnel via search.SearchOpts{Type, Name} -- the same way it's named under traffic.tunnels -- so a domain collision between two HTTPS tunnels can never make this ambiguous, unlike the domain-based fallback it replaces."
    },
    "github.com.dioad.connect.internal.exec.maddy.Config": {
      "properties": {
        "state-dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "runtime-dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "config-dir": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "aliases-path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "io-debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "aliases": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "type": "object"
            },
            {
              "items": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "type": "object"
              },
              "type": "array"
            }
          ]
        },
        "enable-socks5": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enable-socks5` sends maddy's outbound mail through the agent's forward tunnel of type socks5, found by its listen-address: its port, and its host unless it listens on every address, which maddy reaches on loopback. Port 1080 stands in until that tunnel registers. It needs at most one forward tunnel of type socks5; other forward tunnels are ignored."
        },
        "acme-dns": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.exec.maddy.ACMEDNSConfig",
          "description": "`acme-dns` configures maddy to obtain its own TLS certificate directly, via maddy's built-in \"acmedns\" libdns provider, instead of extracting one from a sibling HTTPS tunnel's autocert cache (this exec's default, and the only behavior when Enable is false). See doc/architecture/agent/future/MADDY_LIBDNS_ACME_DESIGN.md. Requires maddy itself to be built with the \"libdns_acmedns\" build tag, and a matching account configured under this agent's top-level \"acme-dns.accounts\" -- Username/Subdomain here must equal one of those accounts exactly (see ACMEDNSAccountConfig). There is no Password field: it is looked up automatically from the matching account at render time (see ACMEDNSPasswordLookup) -- nothing ever puts it in a config file."
        },
        "cert-source": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.exec.maddy.CertSourceConfig",
          "description": "`cert-source` explicitly names the HTTPS tunnel maddy's certificate should be extracted from, removing the ambiguity of the default domain-based search in getMaddyServiceCertificate (finding 52, doc/claude-review-architecture.md: two tunnels can legitimately serve the same domain, and the implicit search has no way to break the tie). Both Type and Name must be set together, or both left empty to keep the legacy domain search for backward compatibility. Ignored entirely when ACMEDNS.Enable is set, since maddy then issues its own certificate and no cert-source lookup happens at all."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the maddy mail server run by the agent."
    },
    "github.com.dioad.connect.internal.servers.coredns.Config": {
      "properties": {
        "tls-server": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ServerConfig"
        },
        "smtp-domains": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.servers.coredns.SMTPDomain"
          },
          "type": "array"
        },
        "listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "listen-protocol": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "enable-logging": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "enable-debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the embedded CoreDNS server."
    },
    "github.com.dioad.connect.internal.servers.coredns.RecordsConfig": {
      "properties": {
        "tls-rpt": {
          "$ref": "#/$defs/github.com.dioad.net.smtp.tlsrpt.Record"
        },
        "dkim": {
          "$ref": "#/$defs/github.com.dioad.net.smtp.dkim.Record"
        },
        "mta-sts": {
          "$ref": "#/$defs/github.com.dioad.net.smtp.mtasts.Record"
        },
        "spf": {
          "$ref": "#/$defs/github.com.dioad.net.smtp.spf.Record",
          "description": "Render"
        },
        "dmarc": {
          "$ref": "#/$defs/github.com.dioad.net.smtp.dmarc.Record",
          "description": "Render"
        },
        "maddy-dane": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.dnsrecords.MaddyDANERecord",
          "description": "Render"
        },
        "maddy-dkim": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.dnsrecords.MaddyDKIMRecord",
          "description": "Render"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "RecordsConfig configures the DNS records published for an SMTP domain."
    },
    "github.com.dioad.connect.internal.servers.coredns.SMTPDomain": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "records": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.servers.coredns.RecordsConfig"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SMTPDomain is a mail domain together with the DNS records published for it."
    },
    "github.com.dioad.connect.internal.servers.mailrouter.Config": {
      "properties": {
        "domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "limits": {
          "$ref": "#/$defs/github.com.dioad.connect.internal.servers.smtp.Limits"
        },
        "routes": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mailrouter.RouteConfig"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config holds configuration for the \"mailrouter\" tunnel type.\n\nUnlike mailsupport, this has no auth config: the admin API and dashboard UI (see resource_extension.go, adminui) are reachable only through the agent's own local management API, never published through connect-server, so there is currently no way to obtain a token to validate against them (the agent may have no network path to an IdP at all). See doc/AGENT_CONFIGURATION.md's mailrouter section for the reasoning and what changes first if that ever needs to be revisited."
    },
    "github.com.dioad.connect.internal.servers.mailrouter.RouteConfig": {
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "attachment"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mailrouter.handlers.attachment.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "dmarc"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mailrouter.handlers.dmarc.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "tls-rpt"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mailrouter.handlers.tlsrpt.Config"
              }
            }
          }
        }
      ],
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`name` optionally labels this route for its admin-API mount point (see aggregateResource); defaults to Type if empty."
        },
        "recipients": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "config": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "RouteConfig configures one route: which recipient local-parts it matches, which registered handler type processes matching mail, and that handler type's own opaque configuration."
    },
    "github.com.dioad.connect.internal.servers.mailrouter.handlers.attachment.Config": {
      "properties": {
        "max-attachment-bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "default": 26214400
        },
        "root-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "RootDirectory, if set, switches the handler from the default in-memory store to a disk-backed store rooted at this directory (\"~\" and environment variables are expanded). Attachments saved to the in-memory store do not survive a restart; a disk-backed store does."
        },
        "path-template": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`path-template` controls the save-path directory hierarchy beneath RootDirectory. Only used when RootDirectory is set. See store.PathTemplateData for the available template fields.",
          "default": "{{.SenderDomain}}/{{.Year}}/{{.Month}}"
        },
        "subject-patterns": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mailrouter.handlers.attachment.store.SubjectPattern"
          },
          "type": "array",
          "description": "`subject-patterns` are matched against each attachment's message Subject; a match's named capture groups become additional path-template fields. Only used when RootDirectory is set. Tried before the built-in well-known vendor patterns (see DisableWellKnownSubjectPatterns), so a pattern here can override one of those by matching the same subject more specifically."
        },
        "disable-well-known-subject-patterns": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`disable-well-known-subject-patterns` turns off the built-in registry of well-known vendor subject-patterns (Stripe, AWS, Microsoft, GitHub, Xero), which is otherwise always available in addition to SubjectPatterns. Only used when RootDirectory is set."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config holds per-route configuration for the \"attachment\" handler type."
    },
    "github.com.dioad.connect.internal.servers.mailrouter.handlers.attachment.store.SubjectPattern": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "provider": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "vendor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "pattern": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SubjectPattern is one named regex matched against the message Subject.\n\nProvider and Vendor are optional pattern-level metadata, not captured from the subject: Provider identifies the invoicing platform that sent the email (e.g. \"stripe\") and is always fixed per pattern. Vendor is the actual company being paid; set it here when the pattern's own vendor IS the provider (e.g. \"Amazon Web Services\" for an AWS pattern). Leave Vendor empty and capture a group named exactly \"Vendor\" in Pattern instead when the platform invoices on behalf of many different businesses (Stripe, Xero) — see extractSubjectFields for the precedence rule between the two."
    },
    "github.com.dioad.connect.internal.servers.mailrouter.handlers.dmarc.Config": {
      "properties": {
        "max-message-bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "default": 26214400
        },
        "database-path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "DatabasePath, if set, switches the handler from the default in-memory report store to a disk-backed SQLite store at this path (\"~\" and environment variables are expanded). Reports saved to the in-memory store do not survive a restart; a SQLite-backed store does, and also unlocks the additional analytics endpoints on the report resource (see resource.NewReportResource)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config holds per-route configuration for the \"dmarc\" mailrouter handler type. Domain and message-transfer limits are configured at the mailrouter tunnel level, not here — see internal/servers/mailrouter.Config."
    },
    "github.com.dioad.connect.internal.servers.mailrouter.handlers.tlsrpt.Config": {
      "properties": {
        "max-message-bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "default": 26214400
        },
        "database-path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "DatabasePath, if set, switches the handler from the default in-memory report store to a disk-backed SQLite store at this path (\"~\" and environment variables are expanded). Reports saved to the in-memory store do not survive a restart; a SQLite-backed store does, and also unlocks the additional analytics endpoints on the report resource (see resource.NewReportResource)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config holds per-route configuration for the \"tls-rpt\" mailrouter handler type. Domain and message-transfer limits are configured at the mailrouter tunnel level, not here — see internal/servers/mailrouter.Config."
    },
    "github.com.dioad.connect.internal.servers.mailsupport.Config": {
      "properties": {
        "metadata": {
          "$ref": "#/$defs/github.com.dioad.connect.sdk.tunnel.TunnelMetadata"
        },
        "maddy-command": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "maddy-config-file-path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "enable-debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "jwt-validators": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.auth.oidc.ValidatorConfig"
          },
          "type": "array"
        },
        "principal-acl": {
          "$ref": "#/$defs/github.com.dioad.net.authz.PrincipalACLConfig",
          "description": "`principal-acl` defines an explicit allow/deny list for the API and profile routes. When AllowList is empty the tunnel's own TunnelPrincipal (injected via metadata) is used as the sole allowed caller. If neither an explicit AllowList nor a TunnelPrincipal are available, all access is denied (default-deny policy)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config holds the configuration for the mail support tunnel server."
    },
    "github.com.dioad.connect.internal.servers.mtasts.Config": {
      "properties": {
        "mta-sts": {
          "$ref": "#/$defs/github.com.dioad.net.smtp.mtasts.Config"
        },
        "metadata": {
          "$ref": "#/$defs/github.com.dioad.connect.sdk.tunnel.TunnelMetadata"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config holds the configuration for the MTA-STS policy-hosting tunnel."
    },
    "github.com.dioad.connect.internal.servers.smtp.Limits": {
      "properties": {
        "max-message-bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "max-recipients": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Limits caps resource usage per SMTP session."
    },
    "github.com.dioad.connect.sdk.agent.exec.Config": {
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "maddy"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.exec.maddy.Config"
              }
            }
          }
        }
      ],
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "tags": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "config": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ]
        },
        "depends-on": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.exec.Dependency"
          },
          "type": "array"
        },
        "dependency-timeout": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`dependency-timeout` bounds how long the supervisor waits for DependsOn to be met before logging an error and marking the exec as timed out. Zero uses the manager's default."
        },
        "command": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "args": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "environment": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "type": "object"
            },
            {
              "items": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "type": "object"
              },
              "type": "array"
            }
          ]
        },
        "working-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config describes an exec: what it is, how it is configured, and what it depends on."
    },
    "github.com.dioad.connect.sdk.agent.exec.Dependency": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "service-type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Dependency names another exec or service that an exec needs to be running first."
    },
    "github.com.dioad.connect.sdk.agent.server.dummy.Config": {
      "properties": {
        "local-listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "enable-prometheus-metrics": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the dummy server."
    },
    "github.com.dioad.connect.sdk.agent.server.dynamichello.Config": {
      "properties": {
        "custom-message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "type": "object"
            },
            {
              "items": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "type": "object"
              },
              "type": "array"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the dynamic hello server."
    },
    "github.com.dioad.connect.sdk.agent.server.echo.Config": {
      "properties": {
        "local-listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "enable-prometheus-metrics": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the echo server."
    },
    "github.com.dioad.connect.sdk.agent.server.file.Config": {
      "properties": {
        "local-listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "enable-prometheus-metrics": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "debug": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "root-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "disable-dynamic-prefix": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "metadata": {
          "$ref": "#/$defs/github.com.dioad.connect.sdk.tunnel.TunnelMetadata"
        },
        "authentication": {
          "$ref": "#/$defs/github.com.dioad.auth.http.ServerConfig"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the file server."
    },
    "github.com.dioad.connect.sdk.agent.server.hello.Config": {
      "properties": {
        "custom-message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "type": "object"
            },
            {
              "items": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "type": "object"
              },
              "type": "array"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the hello server."
    },
    "github.com.dioad.connect.sdk.agent.server.httpreverseproxy.AddressValidationConfig": {
      "properties": {
        "enabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`enabled` controls whether address validation is performed Default: true (validation enabled for security) To disable, explicitly set to false"
        },
        "allowed-ip-ranges": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`allowed-ip-ranges` defines custom IP ranges that are allowed If empty, defaults to RFC 1918 private ranges, loopback, and IPv6 private ranges Example: [\"10.0.0.0/8\", \"192.168.0.0/16\"]"
        },
        "allow-cloud-metadata": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-cloud-metadata` controls whether cloud metadata endpoints (e.g., 169.254.169.254) are permitted as proxy targets. Cloud metadata endpoints are ALWAYS blocked by default, even if 169.254.0.0/16 is included in AllowedIPRanges. This prevents accidental exposure through misconfiguration. Set to true to explicitly allow. Default: false (metadata endpoints always blocked)"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "AddressValidationConfig configures IP address validation for the reverse proxy."
    },
    "github.com.dioad.connect.sdk.agent.server.httpreverseproxy.Config": {
      "properties": {
        "target-url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "authentication": {
          "$ref": "#/$defs/github.com.dioad.auth.http.ServerConfig"
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig"
        },
        "address-validation": {
          "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.httpreverseproxy.AddressValidationConfig"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the HTTP reverse proxy server."
    },
    "github.com.dioad.connect.sdk.agent.server.socks5.Config": {
      "properties": {
        "allowed-ports": {
          "items": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string",
                "pattern": "^([-+]?[0-9]+)?$"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`allowed-ports` lists the destination ports the server connects to. Empty allows any port."
        },
        "block-private-destinations": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`block-private-destinations` refuses destinations that are not public internet addresses: loopback, private and unique local, link-local (including cloud metadata endpoints), multicast and other special-purpose ranges. Set it on any exit other principals use."
        },
        "quota": {
          "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.socks5.QuotaConfig",
          "description": "`quota` limits connections per principal: the tenant whose forward tunnel the connection arrived on, which connect-server sends in the PROXY header. With a quota set, a connection without a principal is refused, so set one only behind a connect-server that sends it."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the SOCKS5 server. The server only accepts CONNECT requests."
    },
    "github.com.dioad.connect.sdk.agent.server.socks5.QuotaConfig": {
      "properties": {
        "connections-per-day": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`connections-per-day` is how many connections a principal may open in a 24 hour window, which starts at its first connection. Zero means no limit."
        },
        "suspend-for": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`suspend-for` is how long a principal is refused once it has used up its quota, counted from the connection that went over. The refusal lasts at least until the principal's window ends, so SuspendFor can only lengthen it: a value shorter than the time left in the window has no effect. Zero refuses it until its window ends. A new window starts when the suspension ends."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "QuotaConfig limits how many connections each principal may open through the exit. The exit sees only connections, not what is sent over them, so on a mail exit the limit counts delivery attempts: a retry, or a fallback to another MX host, is another connection.\n\nCounts are kept in memory, so they reset when the agent restarts, and each exit instance keeps its own."
    },
    "github.com.dioad.connect.sdk.agent.server.tcp.Config": {
      "properties": {
        "target-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`target-address` is the host:port each tunnel connection is forwarded to."
        },
        "proxy-protocol-version": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`proxy-protocol-version` is the PROXY protocol version, 1 or 2, of a header sent ahead of each connection to name the client that connected to the tunnel; 0 sends none. The target must expect it. A maddy exec fed by this tunnel reads it automatically."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the TCP forwarding server."
    },
    "github.com.dioad.connect.sdk.agent.server.webhookdebug.Config": {
      "properties": {
        "history": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config configures the webhook debug server."
    },
    "github.com.dioad.connect.sdk.agent.tunnel.CNAMERecord": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`name` is the DNS owner label relative to the base domain. \"\" = apex."
        },
        "target": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`target` is a Go template string for the canonical name this record points to (must end in \".\"), e.g. \"{{.BaseDomain}}.\"."
        },
        "ttl": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`ttl` is the DNS TTL in seconds advertised to resolvers. Zero uses netdns.DefaultTTL."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "CNAMERecord is a generic DNS CNAME record with optional Go template expansion in Target. It follows the same Render pattern as mx.Record and netdns.TXTRecord."
    },
    "github.com.dioad.connect.sdk.agent.tunnel.ForwardConfig": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`name` is the name of the tunnel."
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` is the type of the tunnel (e.g., \"forward\", \"reverse\")."
        },
        "endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`endpoint` is the endpoint URL of the tunnel."
        },
        "tags": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`tags` is a list of tags associated with the tunnel."
        },
        "config": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ]
        },
        "tls-server": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ServerConfig",
          "description": "`tls-server` and TunnelTLSClient are pointers, not values, so callers merging this config against a layered default (global tunnel defaults, per-discovery-source defaults) can tell \"not set at this level\" (nil) apart from an explicit empty override."
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig"
        },
        "network-acl": {
          "$ref": "#/$defs/github.com.dioad.net.authz.NetworkACLConfig",
          "description": "`network-acl` is a *authz.NetworkACLConfig, not a value, so callers merging this config against a layered default (global tunnel defaults, per-discovery-source defaults) can tell \"not set at this level\" (nil) apart from an explicit zero-value ACL - the zero value is deny-all (AllowByDefault is false with no allow/deny lists), which is a meaningful, security-relevant explicit choice that a permissive default must not silently override."
        },
        "listen-address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ForwardConfig represents the configuration for a forward tunnel."
    },
    "github.com.dioad.connect.sdk.agent.tunnel.ReverseConfig": {
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "coredns"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.servers.coredns.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "dummy"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.dummy.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "dynamichello"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.dynamichello.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "echo"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.echo.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "file"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.file.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "hello"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.hello.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "httpreverseproxy"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.httpreverseproxy.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "mailrouter"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mailrouter.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "mailsupport"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mailsupport.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "mta-sts"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.internal.servers.mtasts.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "socks5"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.socks5.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "tcp"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.tcp.Config"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "webhookdebug"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "config": {
                "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.server.webhookdebug.Config"
              }
            }
          }
        }
      ],
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`name` is the name of the tunnel."
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` is the type of the tunnel (e.g., \"forward\", \"reverse\")."
        },
        "endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`endpoint` is the endpoint URL of the tunnel."
        },
        "tags": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`tags` is a list of tags associated with the tunnel."
        },
        "config": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ]
        },
        "tls-server": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ServerConfig",
          "description": "`tls-server` and TunnelTLSClient are pointers, not values, so callers merging this config against a layered default (global tunnel defaults, per-discovery-source defaults) can tell \"not set at this level\" (nil) apart from an explicit empty override."
        },
        "tls-client": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ClientConfig"
        },
        "network-acl": {
          "$ref": "#/$defs/github.com.dioad.net.authz.NetworkACLConfig",
          "description": "`network-acl` is a *authz.NetworkACLConfig, not a value, so callers merging this config against a layered default (global tunnel defaults, per-discovery-source defaults) can tell \"not set at this level\" (nil) apart from an explicit zero-value ACL - the zero value is deny-all (AllowByDefault is false with no allow/deny lists), which is a meaningful, security-relevant explicit choice that a permissive default must not silently override."
        },
        "hostname": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`hostname` is the endpoint name the tunnel registers in place of its name. It lets tunnels of one type share a hostname, such as several tcp tunnels serving the mx host on different ports, while each keeps the unique name that depends-on, discovery and the management API identify it by. When unset, the tunnel registers under its name."
        },
        "extra-names": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "subdomain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "custom-domains": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "publish-public-ip": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "dns": {
          "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.tunnel.TunnelDNSConfig"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ReverseConfig represents the configuration for a reverse tunnel."
    },
    "github.com.dioad.connect.sdk.agent.tunnel.SRVRecord": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`name` is the DNS owner label relative to the base domain. \"\" = apex."
        },
        "priority": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "weight": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "port": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "target": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`target` is a Go template string for the target host (must end in \".\"), e.g. \"{{.Domain}}.\"."
        },
        "ttl": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`ttl` is the DNS TTL in seconds advertised to resolvers. Zero uses netdns.DefaultTTL."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SRVRecord is a generic DNS SRV record with optional Go template expansion in Target. It follows the same Render pattern as mx.Record and netdns.TXTRecord."
    },
    "github.com.dioad.connect.sdk.agent.tunnel.TunnelDNSConfig": {
      "properties": {
        "mx": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.net.smtp.mx.Record"
          },
          "type": "array"
        },
        "txt": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.net.dns.TXTRecord"
          },
          "type": "array"
        },
        "cname": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.tunnel.CNAMERecord"
          },
          "type": "array"
        },
        "srv": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.connect.sdk.agent.tunnel.SRVRecord"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TunnelDNSConfig holds the DNS records a tunnel declares it requires. It is decoded from the \"dns:\" YAML block on the tunnel stanza and is independent of any specific server type."
    },
    "github.com.dioad.connect.sdk.tunnel.TunnelMetadata": {
      "properties": {
        "originaddr": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "--- shared with TunnelConnectMetadata (see ToTunnelMetadata) ---"
        },
        "connectionid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "principal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "servicetype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "directiontype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "visibilitytype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "principalemail": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "forwardtargetinternetaddr": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "basedomain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "trafficport": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "endpointdomains": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "grantedcustomdomains": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "--- known, local-only (never sent as a header) ---"
        },
        "trafficprotocol": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "set locally by the tunnel.Server implementation"
        },
        "aliases": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "externalurls": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "dnsconfig": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "JSON-encoded TunnelDNSConfig blob"
        },
        "extra": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "type": "object"
            },
            {
              "items": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "type": "object"
              },
              "type": "array"
            }
          ],
          "description": "`extra` holds metadata outside the fixed schema above: discovery-source labels (e.g. Docker container ID/image/name), per-server custom key/value pairs, or user-configured tags. Never sent as an HTTP header — TunnelConnectMetadata has no field for it."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TunnelMetadata is the canonical, typed representation of a tunnel's metadata: the agent's local metadata store, and the shape exposed by the JSON search/metadata APIs — see doc/claude-review-architecture.md finding 11. It is a superset of TunnelConnectMetadata (the 12 fields that also cross the wire as response headers) plus fields known only locally to the agent, plus Extra for metadata outside the fixed schema entirely."
    },
    "github.com.dioad.net.authz.NetworkACLConfig": {
      "properties": {
        "allow": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "deny": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "allow-by-default": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "NetworkACLConfig describes the configuration for network-based access control."
    },
    "github.com.dioad.net.authz.PrincipalACLConfig": {
      "properties": {
        "allow-list": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "deny-list": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "allow-by-default": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ],
          "description": "`allow-by-default` controls the outcome when AllowList is empty (no allow rule configured). Mirrors NetworkACLConfig.AllowByDefault; defaults to false (deny) so an unconfigured ACL fails closed."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "PrincipalACLConfig describes the configuration for principal-based access control."
    },
    "github.com.dioad.net.dns.TXTRecord": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`name` is the DNS owner label relative to the base domain. \"\" = apex."
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`value` is a Go template string for the TXT record content (e.g. \"v=spf1 {{.OutboundIPList}} -all\")."
        },
        "ttl": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`ttl` is the DNS TTL in seconds advertised to resolvers. Zero uses DefaultTTL."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TXTRecord is a generic DNS TXT record with optional Go template expansion in Value."
    },
    "github.com.dioad.net.smtp.dkim.Record": {
      "properties": {
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "key-type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "public-key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Record represents a DKIM DNS record."
    },
    "github.com.dioad.net.smtp.dmarc.Record": {
      "properties": {
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "policy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "percent": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "report-uri-aggregate": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "report-uri-failure": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "subdomain-policy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "alignment-policy-dkim": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "alignment-policy-spf": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Record represents a DMARC DNS record."
    },
    "github.com.dioad.net.smtp.mtasts.Config": {
      "properties": {
        "mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "mx": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "max-age": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Config represents MTA-STS configuration used to create a policy."
    },
    "github.com.dioad.net.smtp.mtasts.Record": {
      "properties": {
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Record represents an MTA-STS DNS TXT record."
    },
    "github.com.dioad.net.smtp.mx.Record": {
      "properties": {
        "host": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`host` is a Go template string for the mail exchange FQDN (must end in \".\"). Empty defaults to \"{{.Domain}}.\" at render time — the tunnel's own FQDN."
        },
        "prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`prefix` is the DNS owner label relative to the base domain. \"\" = apex."
        },
        "ttl": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`ttl` is the DNS TTL in seconds advertised to resolvers. Zero uses dns.DefaultTTL."
        },
        "priority": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`priority` is the MX preference value."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Record is a DNS MX record following the same Render pattern as dmarc.Record and spf.Record: fields may contain Go template strings expanded at render time."
    },
    "github.com.dioad.net.smtp.spf.Mechanism": {
      "properties": {
        "qualifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "values": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "value-list": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Mechanism represents an SPF mechanism in a DNS record."
    },
    "github.com.dioad.net.smtp.spf.Record": {
      "properties": {
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "mechanisms": {
          "items": {
            "$ref": "#/$defs/github.com.dioad.net.smtp.spf.Mechanism"
          },
          "type": "array"
        },
        "all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "all-qualifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Record represents an SPF DNS record."
    },
    "github.com.dioad.net.smtp.tlsrpt.Record": {
      "properties": {
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "report-uri-aggregate": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Record represents a TLSRPT (TLS Reporting) DNS TXT record."
    },
    "github.com.dioad.net.tls.ACMEConfig": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "description": "`type` selects the ACME challenge mechanism: ACMEChallengeTLSALPN01 or ACMEChallengeDNS01. An absent/empty Type (the zero value) defaults to ACMEChallengeTLSALPN01, so callers who only need TLS-ALPN-01 can omit this field entirely."
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "directory-url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cache-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "domains": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array",
          "description": "`domains` is, for Type=dns-01, the SANs to include on the single certificate obtained upfront (may include wildcards, e.g. \"*.example.com\"); for Type=tls-alpn-01 (default), the whitelist of hosts autocert will provision certificates for on demand via autocert.HostWhitelist. Wildcard entries are rejected for tls-alpn-01 - TLS-ALPN-01 cannot validate wildcard identifiers (RFC 8555 permits wildcards only via dns-01), and autocert's HostWhitelist silently ignores such entries rather than erroring, so NewACMETLSConfig validates this upfront instead."
        },
        "dns01-propagation-timeout": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`dns01-propagation-timeout` bounds how long lego waits for DNS propagation of the challenge TXT record. Zero uses lego's default (60s)."
        },
        "dns01-polling-interval": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[-+]?(0|(([0-9]+(\\.[0-9]*)?|\\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$"
            },
            {
              "type": "integer"
            }
          ],
          "title": "duration",
          "description": "`dns01-polling-interval` controls how often lego polls while waiting for propagation. Zero uses lego's default (2s)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ACMEConfig specifies parameters for obtaining a certificate via ACME, using either the tls-alpn-01 challenge (delegated to golang.org/x/crypto/acme/autocert) or the dns-01 challenge (a hand-rolled github.com/go-acme/lego/v5 client). The two challenge types share the same account identity and cache directory, but obtain certificates through entirely independent runtime implementations - only the config surface is unified here."
    },
    "github.com.dioad.net.tls.CertificateSubject": {
      "properties": {
        "c": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "o": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "ou": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "l": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "st": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "street": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "postalcode": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "serialnumber": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cn": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "CertificateSubject defines X.509 certificate subject information."
    },
    "github.com.dioad.net.tls.ClientConfig": {
      "properties": {
        "root-ca-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cert": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "insecure-skip-verify": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ClientConfig specifies TLS client configuration."
    },
    "github.com.dioad.net.tls.LocalConfig": {
      "properties": {
        "single-pem-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cert": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "file-wait-interval": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "file-wait-max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^(\\+?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "LocalConfig specifies local certificate and key file locations."
    },
    "github.com.dioad.net.tls.SANConfig": {
      "properties": {
        "dns-names": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "ip-addresses": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SANConfig specifies Subject Alternative Names for a certificate (DNS names and IP addresses)."
    },
    "github.com.dioad.net.tls.SelfSignedConfig": {
      "properties": {
        "subject": {
          "$ref": "#/$defs/github.com.dioad.net.tls.CertificateSubject"
        },
        "san": {
          "$ref": "#/$defs/github.com.dioad.net.tls.SANConfig"
        },
        "duration": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "ca": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "number"
            },
            {
              "enum": [
                "",
                "1",
                "t",
                "T",
                "TRUE",
                "true",
                "True",
                "0",
                "f",
                "F",
                "FALSE",
                "false",
                "False"
              ]
            }
          ]
        },
        "bits": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "pattern": "^([-+]?[0-9]+)?$"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "cache-directory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SelfSignedConfig specifies parameters for generating a self-signed certificate."
    },
    "github.com.dioad.net.tls.ServerConfig": {
      "properties": {
        "server-name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "acme": {
          "$ref": "#/$defs/github.com.dioad.net.tls.ACMEConfig"
        },
        "self-signed": {
          "$ref": "#/$defs/github.com.dioad.net.tls.SelfSignedConfig"
        },
        "local": {
          "$ref": "#/$defs/github.com.dioad.net.tls.LocalConfig"
        },
        "client-auth-type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "client-ca-file": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "next-protos": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "array"
        },
        "tls-min-version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ServerConfig specifies TLS configuration for a server."
    }
  },
  "title": "connect agent config",
  "description": "The config file connect agent loads. See doc/user/AGENT_CONFIGURATION.md."
}
