{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/takibibase-com/json-schema/takibibase-com-artifact-schema.json",
  "title": "Artifact",
  "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).",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/takibibase-com-openapi.yml#/components/schemas/Artifact",
  "type": "object",
  "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"
    }
  }
}