{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "AppSummary": {
      "description": "EXPERIMENTAL - app metadata summary for plugin responses.",
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": "string"
        },
        "installUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "needsAuth": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "name",
        "needsAuth"
      ],
      "type": "object"
    },
    "PluginAuthPolicy": {
      "enum": [
        "ON_INSTALL",
        "ON_USE"
      ],
      "type": "string"
    }
  },
  "properties": {
    "appsNeedingAuth": {
      "items": {
        "$ref": "#/definitions/AppSummary"
      },
      "type": "array"
    },
    "authPolicy": {
      "$ref": "#/definitions/PluginAuthPolicy"
    }
  },
  "required": [
    "appsNeedingAuth",
    "authPolicy"
  ],
  "title": "PluginInstallResponse",
  "type": "object"
}