{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-slack-status-schema.json",
  "title": "SlackStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-slack-api-openapi.yml#/components/schemas/SlackStatus",
  "type": "object",
  "properties": {
    "available": {
      "type": "boolean",
      "description": "True if this instance has Slack configured at all"
    },
    "connected": {
      "type": "boolean",
      "description": "True if this workspace has connected a Slack team"
    },
    "team_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The connected Slack team's name, or null if not connected"
    },
    "needs_reauth": {
      "type": "boolean",
      "description": "Whether the stored bot token needs a re-auth — a failed auth/scope call, or Slack reporting the app uninstalled or its token revoked"
    },
    "slack_dm": {
      "type": "boolean",
      "description": "The caller's \"DM me for important updates\" preference (agent completions, mentions, review requests, shares)"
    },
    "review_email": {
      "type": "boolean",
      "description": "The caller's opt-in preference for review-request email (default false)"
    },
    "linked": {
      "type": "boolean",
      "description": "Whether the caller has linked their Slack identity for the connected team"
    }
  },
  "required": [
    "available",
    "connected",
    "team_name",
    "needs_reauth",
    "slack_dm",
    "review_email",
    "linked"
  ]
}