{
  "type": "object",
  "properties": {
    "apiToken": {
      "type": "string",
      "description": "Jenkins API Token, format: http(s)://username:token@host:port"
    },
    "job": {
      "type": "string",
      "description": "Jenkins job name (or reference string like jenkins-utils.ts:fn)"
    },
    "modes": {
      "description": "Available deployment environments (array) or reference string like jenkins-utils.ts:fn",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "configs": {
      "type": "array",
      "description": "Extra inquirer questions for interactive default command",
      "items": {
        "type": "object",
        "required": ["type", "name", "message"],
        "properties": {
          "type": {
            "type": "string",
            "enum": ["input", "number", "confirm", "list", "rawlist", "checkbox", "password"]
          },
          "name": {
            "type": "string",
            "description": "Parameter name, cannot be branch, modes, mode"
          },
          "message": {
            "type": "string",
            "description": "Parameter message"
          },
          "offset": {
            "type": "number",
            "description": "Negative offsets control prompt ordering (-1 between branch/modes, <=-2 before branch)"
          },
          "default": {
            "description": "Parameter default value"
          },
          "choices": {
            "description": "Parameter choices, can be a reference string like: jenkins-utils.ts:choices or an array of strings"
          },
          "validate": {
            "type": "string",
            "description": "Parameter validate function, can be a reference string like: jenkins-utils.ts:validate"
          },
          "filter": {
            "type": "string",
            "description": "Parameter filter function, can be a reference string like: jenkins-utils.ts:filter"
          },
          "transformer": {
            "type": "string",
            "description": "Parameter transformer function, can be a reference string like: jenkins-utils.ts:transformer"
          },
          "when": {
            "type": "string",
            "description": "Parameter when function, can be a reference string like: jenkins-utils.ts:when"
          }
        }
      }
    }
  },
  "required": ["apiToken", "job", "modes"],
  "additionalProperties": false
}
