{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-post-api-annotations-tasks-id-items-item-id-reuse-response201-application-json-schema.json",
  "title": "PostApiAnnotationsTasksIdItemsItemIdReuseResponse201ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-annotations-api-openapi.yml#/components/schemas/PostApiAnnotationsTasksIdItemsItemIdReuseResponse201ApplicationJson",
  "type": "object",
  "properties": {
    "labeledCase": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "organizationId": {
          "$ref": "#/$defs/OrganizationId"
        },
        "evaluationId": {
          "type": "number"
        },
        "label": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "source": {
          "type": "string"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        "trajectory": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/JsonValue"
              }
            }
          ]
        },
        "input": {
          "type": "string"
        },
        "expectedOutput": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "failureMode": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "promptId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "actualOutput": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "labeledByUserId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "labeledAt": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string",
              "format": "date-time"
            }
          ]
        },
        "externalRunId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "sourceTraceId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "sourceContentHash": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "clusterId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "clusterFingerprint": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "riskLayer": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "standardsRefs": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          ]
        },
        "synthesis": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/JsonValue"
              }
            }
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "createdAt",
        "organizationId",
        "evaluationId",
        "label",
        "source",
        "metadata",
        "trajectory",
        "input",
        "expectedOutput",
        "failureMode",
        "promptId",
        "actualOutput",
        "labeledByUserId",
        "labeledAt",
        "externalRunId",
        "sourceTraceId",
        "sourceContentHash",
        "clusterId",
        "clusterFingerprint",
        "riskLayer",
        "standardsRefs",
        "synthesis"
      ]
    },
    "sourceIdentity": {
      "type": "object",
      "properties": {
        "kind": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "unknown"
              ]
            },
            {
              "type": "string",
              "enum": [
                "text"
              ]
            },
            {
              "type": "string",
              "enum": [
                "trace"
              ]
            },
            {
              "type": "string",
              "enum": [
                "evaluation_result"
              ]
            }
          ]
        },
        "sourceMode": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "manual"
              ]
            },
            {
              "type": "string",
              "enum": [
                "linked"
              ]
            }
          ]
        },
        "creationMethod": {
          "type": "string",
          "enum": [
            "human_review"
          ]
        },
        "annotationTaskId": {
          "type": "number"
        },
        "annotationItemId": {
          "type": "number"
        },
        "subjectKind": {
          "type": "string"
        },
        "evaluationId": {
          "type": "number"
        },
        "evaluationRunId": {
          "type": "number"
        },
        "testResultId": {
          "type": "number"
        },
        "testCaseId": {
          "type": "number"
        },
        "logicalTrialIndex": {
          "type": "number"
        },
        "physicalAttemptIndex": {
          "type": "number"
        },
        "attemptId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "recordedStatus": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "contentHash": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "limitation": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "sourceMode",
        "creationMethod",
        "annotationTaskId",
        "annotationItemId",
        "subjectKind"
      ]
    },
    "copied": {
      "type": "object",
      "properties": {
        "input": {
          "type": "boolean"
        },
        "expectedOutput": {
          "type": "boolean"
        },
        "actualOutput": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "required": [
        "input",
        "expectedOutput",
        "actualOutput"
      ]
    },
    "linked": {
      "type": "boolean"
    },
    "nextStep": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "labeledCase",
    "sourceIdentity",
    "copied",
    "linked",
    "nextStep"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    },
    "OrganizationId": {
      "type": "string",
      "format": "uuid"
    }
  }
}