{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orq/json-schema/orq-list-annotation-queue-items-response-schema.json",
  "title": "ListAnnotationQueueItemsResponse",
  "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/ListAnnotationQueueItemsResponse",
  "required": [
    "object",
    "data",
    "has_more"
  ],
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "description": "Object discriminator for list responses; always `list`."
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnnotationQueueItem"
      },
      "description": "Page of annotation queue items."
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether more items are available in the selected pagination direction."
    }
  },
  "$defs": {
    "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`."
        }
      }
    }
  }
}