Bernstein · Schema

TaskCountsResponse

Lightweight status counts - no task bodies. Every value in :class:`bernstein.core.tasks.models.TaskStatus` is exposed as a field so the GUI's status-chip badges can render real numbers instead of ``-``. Adding fields here is non-breaking - existing clients that consume only ``open``/``claimed``/``done`` continue to work and the new fields default to ``0``.

Artificial IntelligenceGovernanceOpen SourcePythonCLI

Properties

Name Type Description
open integer
claimed integer
in_progress integer
done integer
closed integer
failed integer
blocked integer
cancelled integer
planned integer
pending_approval integer
waiting_for_subtasks integer
orphaned integer
abandoned integer
blocked_by_abandon integer
blocked_by_failed_dep integer
refused integer
suspended integer
total integer
View JSON Schema on GitHub

JSON Schema

bernstein-run-task-counts-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-task-counts-response-schema.json",
  "title": "TaskCountsResponse",
  "description": "Lightweight status counts - no task bodies.\n\nEvery value in :class:`bernstein.core.tasks.models.TaskStatus` is exposed\nas a field so the GUI's status-chip badges can render real numbers\ninstead of ``-``.  Adding fields here is non-breaking - existing clients\nthat consume only ``open``/``claimed``/``done`` continue to work and the\nnew fields default to ``0``.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-openapi.yaml#/components/schemas/TaskCountsResponse",
  "properties": {
    "open": {
      "type": "integer",
      "title": "Open",
      "default": 0
    },
    "claimed": {
      "type": "integer",
      "title": "Claimed",
      "default": 0
    },
    "in_progress": {
      "type": "integer",
      "title": "In Progress",
      "default": 0
    },
    "done": {
      "type": "integer",
      "title": "Done",
      "default": 0
    },
    "closed": {
      "type": "integer",
      "title": "Closed",
      "default": 0
    },
    "failed": {
      "type": "integer",
      "title": "Failed",
      "default": 0
    },
    "blocked": {
      "type": "integer",
      "title": "Blocked",
      "default": 0
    },
    "cancelled": {
      "type": "integer",
      "title": "Cancelled",
      "default": 0
    },
    "planned": {
      "type": "integer",
      "title": "Planned",
      "default": 0
    },
    "pending_approval": {
      "type": "integer",
      "title": "Pending Approval",
      "default": 0
    },
    "waiting_for_subtasks": {
      "type": "integer",
      "title": "Waiting For Subtasks",
      "default": 0
    },
    "orphaned": {
      "type": "integer",
      "title": "Orphaned",
      "default": 0
    },
    "abandoned": {
      "type": "integer",
      "title": "Abandoned",
      "default": 0
    },
    "blocked_by_abandon": {
      "type": "integer",
      "title": "Blocked By Abandon",
      "default": 0
    },
    "blocked_by_failed_dep": {
      "type": "integer",
      "title": "Blocked By Failed Dep",
      "default": 0
    },
    "refused": {
      "type": "integer",
      "title": "Refused",
      "default": 0
    },
    "suspended": {
      "type": "integer",
      "title": "Suspended",
      "default": 0
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "default": 0
    }
  },
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bernstein-run-task-counts-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.