{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitbybit-dev/json-schema/bitbybit-dev-task-result-response-schema.json",
  "title": "TaskResultResponse",
  "description": "Success envelope containing a download link for a task result",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bitbybit-dev-tasks-api-openapi.yml#/components/schemas/TaskResultResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "$ref": "#/$defs/TaskResultDownload"
    }
  },
  "required": [
    "ok",
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "TaskResultDownload": {
      "type": "object",
      "properties": {
        "downloadUrl": {
          "type": "string",
          "description": "Pre-signed URL to download the result file. Expires after 1 hour.",
          "format": "uri"
        },
        "filename": {
          "type": "string",
          "description": "Suggested filename for the download"
        }
      },
      "required": [
        "downloadUrl",
        "filename"
      ],
      "additionalProperties": false,
      "description": "Download information for a completed task result"
    }
  }
}