{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-backfill-status-schema.json",
  "title": "BackfillStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-backfill-api-openapi.yml#/components/schemas/BackfillStatus",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "backfill_status"
      ]
    },
    "configured": {
      "type": "boolean",
      "description": "True when Backfill has been set up for the Board."
    },
    "active": {
      "type": "boolean",
      "description": "True when Backfill is switched on and importing jobs."
    },
    "targetRoleRuleCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Named Backfill rules (target roles) on the Board."
    },
    "targetRoleRuleCountIsLowerBound": {
      "type": "boolean",
      "description": "True when `targetRoleRuleCount` stopped at its cap and the Board has more rules."
    },
    "backfillingCompanyCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Backfilling companies that are not blocked or removed, as the dashboard's Backfilling tab shows them."
    },
    "backfillingCompanyCountIsLowerBound": {
      "type": "boolean",
      "description": "True when `backfillingCompanyCount` is a lower bound: counting stopped at its cap or after scanning its maximum number of rows."
    },
    "boardContext": {
      "type": [
        "string",
        "null"
      ],
      "description": "The board context from Backfill settings: a description of the Board that Backfill uses to keep only relevant jobs. Null when not set."
    },
    "companyFilters": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "countries": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "ISO 3166-1 alpha-2 country codes jobs must be in."
        },
        "subdivisions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "ISO 3166-2 subdivision codes jobs must be in."
        },
        "seniorities": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Seniority levels jobs must have."
        },
        "employmentTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Employment types jobs must have."
        },
        "workplaceTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Work arrangements jobs must have: remote, hybrid, onsite."
        }
      },
      "description": "Job filters from Backfill settings that apply to company sources. An omitted key means no filter on it. Null when Backfill is not set up. Each rule carries its own filters on GET /backfill/rules."
    },
    "jobLimit": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Most published Backfill jobs the Board allows. Null when only the plan limit applies."
    },
    "maxAgeDays": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Backfill skips jobs first published more than this many days ago. Null when there is no age limit."
    },
    "excludeWorldwideRemote": {
      "type": "boolean",
      "description": "True when Backfill skips jobs that are remote worldwide."
    },
    "lastSync": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "completedAt": {
          "type": "string",
          "description": "When the last sync finished (ISO 8601)."
        },
        "jobsCreated": {
          "type": "integer",
          "minimum": 0,
          "description": "Jobs the last sync added."
        },
        "totalActive": {
          "type": "integer",
          "minimum": 0,
          "description": "Active Backfill jobs on the Board after that sync: the Board’s Backfill job count as of then."
        }
      },
      "required": [
        "completedAt",
        "jobsCreated",
        "totalActive"
      ],
      "description": "The most recent completed sync, or null when none is recorded. Its `totalActive` is the Board’s Backfill job count as of that sync. GET /backfill/sync-runs lists earlier ones."
    },
    "blockedCompanyCount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Companies blocked from Backfill. Null while the count is being prepared."
    },
    "removedJobExclusionCount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Removed jobs that Backfill will not import again. Null while the count is being prepared."
    }
  },
  "required": [
    "object",
    "configured",
    "active",
    "targetRoleRuleCount",
    "targetRoleRuleCountIsLowerBound",
    "backfillingCompanyCount",
    "backfillingCompanyCountIsLowerBound",
    "boardContext",
    "companyFilters",
    "jobLimit",
    "maxAgeDays",
    "excludeWorldwideRemote",
    "lastSync",
    "blockedCompanyCount",
    "removedJobExclusionCount"
  ]
}