{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rumoro-dev/json-schema/rumoro-dev-workspace-filters-schema.json",
  "title": "WorkspaceFilters",
  "description": "Matching rules for the whole workspace. A post they reject is never billed.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rumoro-dev-filters-api-openapi.yml#/components/schemas/WorkspaceFilters",
  "type": "object",
  "properties": {
    "excludedTerms": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80
      },
      "maxItems": 200,
      "description": "Posts that contain one of these terms are dropped, whichever keyword matched them. Terms follow the same phrase rule as a keyword, and `*` at either end is a wildcard. A common list is \"hiring, job, careers\"."
    },
    "excludedAuthors": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 500
      },
      "maxItems": 200,
      "description": "Authors ignored across all keywords, such as your own accounts, teammates or known spammers. Entries may be profile or post links, @handles, u/names, Bluesky DIDs or display names, and are saved in canonical form."
    },
    "excludedRepos": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "maxItems": 200,
      "description": "Repositories to ignore, as owner/name or a github.com link (vercel/next.js, https://github.com/vercel/next.js). Their issues, pull requests and comments are dropped."
    },
    "subreddits": {
      "type": "object",
      "properties": {
        "only": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "maxItems": 200,
          "description": "Allowlist of subreddits (r/name or name). When set, other subreddits are dropped and `excluded` is ignored."
        },
        "excluded": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "maxItems": 200,
          "description": "Subreddits to ignore, written as r/name or name."
        }
      },
      "required": [
        "only",
        "excluded"
      ],
      "description": "Applies to Reddit only."
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "When the filters were last changed. Null if never."
    }
  },
  "required": [
    "excludedTerms",
    "excludedAuthors",
    "excludedRepos",
    "subreddits",
    "updatedAt"
  ]
}