{

"$schema": "http://json-schema.org/draft-07/schema",
"definitions": {
  "scope": {
    "type": "string",
    "enum": [
      "channels:read",
      "channels:history",
      "groups:history",
      "mpim:history",
      "dnd:read",
      "team:read",
      "emoji:read",
      "files:read",
      "groups:read",
      "im:read",
      "im:history",
      "links:read",
      "pins:read",
      "reactions:read",
      "stars:read",
      "usergroups:read",
      "users:read"
    ]
  },
  "trigger_id": {
    "type": "string"
  },
  "scope_denied": {
    "type": "object",
    "description": "learn more: https://api.slack.com/events/scope_denied",
    "properties": {
      "scopes": {
        "type": "array",
        "items": {
          "$ref": "#/definitions/scope"
        }
      },
      "trigger_id": {
        "$ref": "#/definitions/trigger_id"
      },
      "type": {
        "const": "scope_denied"
      }
    },
    "example": {
      "scopes": [
        "files:read",
        "files:write",
        "chat:write"
      ],
      "trigger_id": "241582872337.47445629121.string",
      "type": "scope_denied"
    }
  }
}

}