{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SetCredentialsRequest",
  "title": "SetCredentialsRequest",
  "type": "object",
  "description": "Request to store credentials for the third-party service.",
  "properties": {
    "userPass": {
      "type": "object",
      "description": "Username and password credentials.",
      "properties": {
        "username": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    },
    "userToken": {
      "type": "object",
      "description": "Username and token credentials.",
      "properties": {
        "username": {
          "type": "string"
        },
        "token": {
          "type": "string"
        }
      }
    },
    "key": {
      "type": "string",
      "description": "API key credential."
    },
    "pathUserPass": {
      "type": "object",
      "description": "Path, username, and password credentials.",
      "properties": {
        "path": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    },
    "pathKey": {
      "type": "object",
      "description": "Path and API key credentials.",
      "properties": {
        "path": {
          "type": "string"
        },
        "key": {
          "type": "string"
        }
      }
    }
  }
}