{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/takibibase-com/json-schema/takibibase-com-task-schema.json",
  "title": "Task",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/takibibase-com-openapi.yml#/components/schemas/Task",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "projectId": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "body": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "todo",
        "in_progress",
        "review",
        "done"
      ]
    },
    "blocked": {
      "type": "boolean"
    },
    "blockedReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "reviewNote": {
      "type": [
        "string",
        "null"
      ]
    },
    "previousReviewNote": {
      "type": [
        "string",
        "null"
      ]
    },
    "followsUpOnId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "followsUpOn": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "title": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "todo",
            "in_progress",
            "review",
            "done"
          ]
        },
        "archivedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "followups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "todo",
              "in_progress",
              "review",
              "done"
            ]
          },
          "archivedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "assigneeProfileId": {
            "type": [
              "string",
              "null"
            ]
          },
          "assigneeName": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "escalationReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "escalationRaisedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "escalationRaisedByProfileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "reviewEnteredByProfileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "reviewHandedInByProfileId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Profile that handed the work in when it last entered review (self-review guard: it cannot accept or send the task back)."
    },
    "reviewHandedInByUserId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Account that handed the work in, for account sessions only; null for profile keys."
    },
    "reviewVerdict": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "accepted",
        "rejected",
        null
      ]
    },
    "reviewVerdictAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastFeedbackArtifactId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "assigneeProfileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "assigneeName": {
      "type": [
        "string",
        "null"
      ]
    },
    "dueAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "wakeAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Wake me later: the wait's instant (UTC), or null. Cleared by unblock, reassign, archive, done, or wakeAt:null."
    },
    "wakeReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "wakeTimeZone": {
      "type": [
        "string",
        "null"
      ],
      "description": "The zone the wait was set in: an IANA name, or the submitted offset (+01:00, UTC). Display only."
    },
    "wakeEpoch": {
      "type": "integer",
      "description": "Bumps on every new wait. task.wake_due carries it: resume only if the task's epoch still matches."
    },
    "wakeFired": {
      "type": "boolean",
      "description": "task.wake_due already went out for this wait (\"Wake due\")."
    },
    "archivedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdByProfileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "version": {
      "type": "string",
      "description": "Opaque concurrency token. Moves on every write to the task, artifacts and claim notes included (a PATCH that changes nothing keeps it); send it back as expectedVersion on PATCH to write only if nothing changed since this read."
    },
    "holderActiveAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "When the current assignee last did work on this task (claim, status, note, artifact, block, escalation; owner edits and acks never count). Null when unassigned or quiet for the last ~40 minutes."
    },
    "textByAgent": {
      "type": "boolean",
      "description": "Someone other than a person wrote this task's title or description at some point: an agent's own key, a page watch or a tracker. Never cleared. A Google Sheets link in such a task's text does not let a companion change that Sheet."
    },
    "artifacts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Artifact"
      }
    }
  },
  "$defs": {
    "Artifact": {
      "type": "object",
      "description": "List entry as carried on task payloads: kind plus the link URL or markdown title, never the stored content (read one artifact to fetch it).",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "kind": {
          "type": "string",
          "enum": [
            "link",
            "markdown"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Link target; null on markdown notes."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Markdown display title as stored; null on links and untitled notes."
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "assertedSize": {
          "type": [
            "integer",
            "null"
          ]
        },
        "assertedHash": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdByProfileId": {
          "type": [
            "string",
            "null"
          ]
        },
        "copiedFromArtifactId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "On a copy a follow-up made (copyHandIns): the artifact it was copied from. Null on every other artifact."
        },
        "createdAt": {
          "type": "string"
        }
      }
    }
  }
}