{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orq/json-schema/orq-annotation-queue-item-schema.json",
  "title": "AnnotationQueueItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orq-annotation-queues-api-openapi.yml#/components/schemas/AnnotationQueueItem",
  "required": [
    "_id",
    "annotation_queue_id",
    "workspace_id",
    "type"
  ],
  "type": "object",
  "properties": {
    "_id": {
      "type": "string",
      "description": "Unique annotation queue item identifier assigned by ORQ."
    },
    "annotation_queue_id": {
      "type": "string",
      "description": "The unique identifier of the annotation queue."
    },
    "workspace_id": {
      "type": "string",
      "description": "The unique identifier of the workspace it belongs to."
    },
    "used_human_review_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The unique identifiers of the human reviews that have been used to annotate the item."
    },
    "type": {
      "type": "string",
      "description": "The item type. Either `span` or `datapoint`."
    },
    "span_id": {
      "type": "string",
      "description": "The span this item points to. Present when `type` is `span`."
    },
    "trace_id": {
      "type": "string",
      "description": "The trace identifier this span belongs to."
    },
    "datapoint_id": {
      "type": "string",
      "description": "The datapoint this item points to. Present when `type` is `datapoint`."
    }
  }
}