{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/balladic-com/json-schema/balladic-com-task-response-schema.json",
  "title": "TaskResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/balladic-com-openapi.json#/components/schemas/TaskResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    },
    "column_id": {
      "type": "string",
      "format": "uuid",
      "title": "Column Id"
    },
    "column_title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Column Title"
    },
    "number": {
      "type": "integer",
      "title": "Number"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "slug": {
      "type": "string",
      "title": "Slug"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "position": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Position"
    },
    "container_position": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Container Position"
    },
    "state": {
      "$ref": "#/$defs/TaskState"
    },
    "state_changed_at": {
      "type": "string",
      "format": "date-time",
      "title": "State Changed At"
    },
    "done_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Done At"
    },
    "created_by": {
      "type": "string",
      "format": "uuid",
      "title": "Created By"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "augments": {
      "anyOf": [
        {
          "$ref": "#/$defs/TaskAugmentsResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "subscribed": {
      "type": "boolean",
      "title": "Subscribed",
      "default": false
    },
    "all_tasks_done": {
      "type": "boolean",
      "title": "All Tasks Done",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "id",
    "project_id",
    "column_id",
    "number",
    "title",
    "slug",
    "description",
    "position",
    "state",
    "state_changed_at",
    "done_at",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "ApprovalResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "type": {
          "$ref": "#/$defs/ApprovalType"
        },
        "target_state": {
          "$ref": "#/$defs/TaskState"
        },
        "requested_by": {
          "type": "string",
          "format": "uuid",
          "title": "Requested By"
        },
        "outcome": {
          "anyOf": [
            {
              "$ref": "#/$defs/ApprovalVerdict"
            },
            {
              "type": "null"
            }
          ]
        },
        "assignees": {
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "type": "array",
          "title": "Assignees"
        },
        "responses": {
          "items": {
            "$ref": "#/$defs/ApprovalResponseEntry"
          },
          "type": "array",
          "title": "Responses"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "resolved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resolved At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "type",
        "target_state",
        "requested_by",
        "outcome",
        "assignees",
        "responses",
        "created_at",
        "resolved_at"
      ],
      "title": "ApprovalResponse"
    },
    "ApprovalResponseEntry": {
      "properties": {
        "user_id": {
          "type": "string",
          "format": "uuid",
          "title": "User Id"
        },
        "decision": {
          "$ref": "#/$defs/ApprovalVerdict"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "user_id",
        "decision",
        "created_at"
      ],
      "title": "ApprovalResponseEntry"
    },
    "ApprovalType": {
      "type": "string",
      "enum": [
        "all",
        "any"
      ],
      "title": "ApprovalType"
    },
    "ApprovalVerdict": {
      "type": "string",
      "enum": [
        "approved",
        "denied"
      ],
      "title": "ApprovalVerdict"
    },
    "AssignmentResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "user_id": {
          "type": "string",
          "format": "uuid",
          "title": "User Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "assigned_by": {
          "type": "string",
          "format": "uuid",
          "title": "Assigned By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "user_id",
        "assigned_by",
        "created_at"
      ],
      "title": "AssignmentResponse"
    },
    "BlockingResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "task_id": {
          "type": "string",
          "format": "uuid",
          "title": "Task Id"
        },
        "created_by": {
          "type": "string",
          "format": "uuid",
          "title": "Created By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "number": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Number"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "State"
        }
      },
      "type": "object",
      "required": [
        "id",
        "task_id",
        "created_by",
        "created_at"
      ],
      "title": "BlockingResponse"
    },
    "ChecklistItemResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "done": {
          "type": "boolean",
          "title": "Done"
        },
        "position": {
          "type": "integer",
          "title": "Position"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "done_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Done At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "done",
        "position",
        "created_at",
        "done_at"
      ],
      "title": "ChecklistItemResponse"
    },
    "ContainerAugmentResponse": {
      "properties": {
        "container_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Container Id"
        },
        "container_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Container Name"
        }
      },
      "type": "object",
      "title": "ContainerAugmentResponse"
    },
    "CostMode": {
      "type": "string",
      "enum": [
        "fixed",
        "hourly"
      ],
      "title": "CostMode"
    },
    "CostResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "mode": {
          "$ref": "#/$defs/CostMode"
        },
        "amount": {
          "type": "number",
          "title": "Amount"
        },
        "currency": {
          "type": "string",
          "title": "Currency"
        },
        "total": {
          "type": "number",
          "title": "Total"
        },
        "tracked_seconds": {
          "type": "integer",
          "title": "Tracked Seconds"
        },
        "timer_running_since": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timer Running Since"
        },
        "set_by": {
          "type": "string",
          "format": "uuid",
          "title": "Set By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "mode",
        "amount",
        "currency",
        "total",
        "tracked_seconds",
        "timer_running_since",
        "set_by",
        "created_at"
      ],
      "title": "CostResponse"
    },
    "DeadlineResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "date": {
          "type": "string",
          "format": "date",
          "title": "Date"
        },
        "deadline_state": {
          "$ref": "#/$defs/DeadlineState"
        },
        "set_by": {
          "type": "string",
          "format": "uuid",
          "title": "Set By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "date",
        "deadline_state",
        "set_by",
        "created_at"
      ],
      "title": "DeadlineResponse"
    },
    "DeadlineState": {
      "type": "string",
      "enum": [
        "passed",
        "today",
        "upcoming",
        "distant"
      ],
      "title": "DeadlineState"
    },
    "DependencyResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "depends_on_id": {
          "type": "string",
          "format": "uuid",
          "title": "Depends On Id"
        },
        "created_by": {
          "type": "string",
          "format": "uuid",
          "title": "Created By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "number": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Number"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "State"
        }
      },
      "type": "object",
      "required": [
        "id",
        "depends_on_id",
        "created_by",
        "created_at"
      ],
      "title": "DependencyResponse"
    },
    "ExternalLinkResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "provider": {
          "type": "string",
          "title": "Provider"
        },
        "kind": {
          "type": "string",
          "title": "Kind"
        },
        "role": {
          "type": "string",
          "enum": [
            "mirror",
            "reference"
          ],
          "title": "Role"
        },
        "binding_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Binding Id"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "External Id"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "snapshot": {
          "additionalProperties": true,
          "type": "object",
          "title": "Snapshot"
        },
        "closes": {
          "type": "boolean",
          "title": "Closes"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "provider",
        "kind",
        "role",
        "binding_id",
        "external_id",
        "url",
        "snapshot",
        "closes",
        "status",
        "created_at"
      ],
      "title": "ExternalLinkResponse"
    },
    "PriorityLevel": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "critical"
      ],
      "title": "PriorityLevel"
    },
    "PriorityResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "level": {
          "$ref": "#/$defs/PriorityLevel"
        },
        "set_by": {
          "type": "string",
          "format": "uuid",
          "title": "Set By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "level",
        "set_by",
        "created_at"
      ],
      "title": "PriorityResponse"
    },
    "RecurrenceResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "iterations": {
          "type": "integer",
          "title": "Iterations"
        },
        "interval_unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Interval Unit"
        },
        "interval_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Interval Value"
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "next_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Date"
        },
        "max_iterations": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Iterations"
        },
        "created_by": {
          "type": "string",
          "format": "uuid",
          "title": "Created By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "iterations",
        "created_by",
        "created_at"
      ],
      "title": "RecurrenceResponse"
    },
    "TagResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "color": {
          "type": "integer",
          "title": "Color"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "color",
        "created_at"
      ],
      "title": "TagResponse"
    },
    "TaskAugmentsResponse": {
      "properties": {
        "deadline": {
          "anyOf": [
            {
              "$ref": "#/$defs/DeadlineResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "assignments": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AssignmentResponse"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assignments"
        },
        "approval": {
          "anyOf": [
            {
              "$ref": "#/$defs/ApprovalResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "dependencies": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/DependencyResponse"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dependencies"
        },
        "timer": {
          "anyOf": [
            {
              "$ref": "#/$defs/TimerResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "recurrence": {
          "anyOf": [
            {
              "$ref": "#/$defs/RecurrenceResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "cost": {
          "anyOf": [
            {
              "$ref": "#/$defs/CostResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "tags": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/TaskTagResponse"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tags"
        },
        "priority": {
          "anyOf": [
            {
              "$ref": "#/$defs/PriorityResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "containers": {
          "anyOf": [
            {
              "$ref": "#/$defs/ContainerAugmentResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "checklist": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/ChecklistItemResponse"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Checklist"
        },
        "github": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/ExternalLinkResponse"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Github"
        },
        "blocking": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/BlockingResponse"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Blocking"
        },
        "comments": {
          "type": "integer",
          "title": "Comments",
          "default": 0
        },
        "comment_attachments": {
          "type": "integer",
          "title": "Comment Attachments",
          "default": 0
        }
      },
      "type": "object",
      "title": "TaskAugmentsResponse"
    },
    "TaskState": {
      "type": "string",
      "enum": [
        "waiting",
        "active",
        "done"
      ],
      "title": "TaskState"
    },
    "TaskTagResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "tag": {
          "$ref": "#/$defs/TagResponse"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "tag",
        "created_at"
      ],
      "title": "TaskTagResponse"
    },
    "TimeEntryResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "started_at": {
          "type": "string",
          "format": "date-time",
          "title": "Started At"
        },
        "stopped_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stopped At"
        },
        "started_by": {
          "type": "string",
          "format": "uuid",
          "title": "Started By"
        },
        "duration_seconds": {
          "type": "integer",
          "title": "Duration Seconds"
        }
      },
      "type": "object",
      "required": [
        "id",
        "started_at",
        "stopped_at",
        "started_by",
        "duration_seconds"
      ],
      "title": "TimeEntryResponse"
    },
    "TimerResponse": {
      "properties": {
        "running": {
          "anyOf": [
            {
              "$ref": "#/$defs/TimeEntryResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "total_seconds": {
          "type": "integer",
          "title": "Total Seconds"
        }
      },
      "type": "object",
      "required": [
        "running",
        "total_seconds"
      ],
      "title": "TimerResponse"
    }
  }
}