{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "confluence": {
      "type": "object",
      "properties": {
        "baseUrl": {
          "type": "string",
          "description": "The base URL for accessing the Confluence API"
        },
        "auth": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "basic",
                "bearer",
                "userpass"
              ],
              "description": "Authentication method - basic, bearer, username/password"
            },
            "token": {
              "type": "string",
              "description": "Token used for the basic and bearer auth methods",
              "visibility": "secret"
            },
            "email": {
              "type": "string",
              "description": "Email used with the token for the basic auth method",
              "visibility": "secret"
            },
            "username": {
              "type": "string",
              "description": "Username used with the Username/Password auth method",
              "visibility": "secret"
            },
            "password": {
              "type": "string",
              "description": "Password used with the Username/Password auth method",
              "visibility": "secret"
            }
          },
          "required": [
            "type"
          ]
        }
      },
      "required": [
        "baseUrl",
        "auth"
      ],
      "description": "Configuration options for the Confluence to Markdown action"
    }
  }
}
