{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenpace-com/json-schema/tenpace-com-setup-intent-schema.json",
  "title": "SetupIntent",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenpace-com-openapi.json#/components/schemas/SetupIntent",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "repository",
    "slackChannel"
  ],
  "properties": {
    "repository": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
    },
    "slackChannel": {
      "type": "string",
      "description": "Name with or without a leading #."
    },
    "slackWorkspace": {
      "type": "string",
      "description": "Optional Tenpace workspace ID, Slack team ID, or exact workspace name."
    },
    "preset": {
      "type": "string",
      "enum": [
        "repo_watch",
        "full_coverage",
        "team_activity"
      ],
      "default": "repo_watch"
    },
    "reviewerMentions": {
      "type": "string",
      "enum": [
        "all",
        "connected_only",
        "none"
      ],
      "default": "all"
    }
  }
}