{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-assessments-id-runtime-evidence-response200-application-json-schema.json",
  "title": "GetApiAssessmentsIdRuntimeEvidenceResponse200ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-assessments-api-openapi.yml#/components/schemas/GetApiAssessmentsIdRuntimeEvidenceResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "snapshotId": {
            "type": "number"
          },
          "snapshotHash": {
            "type": "string"
          },
          "integrity": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "unavailable"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "verified"
                ]
              }
            ]
          },
          "review": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "string",
                    "enum": [
                      "assessment-runtime-review-v1"
                    ]
                  },
                  "organizationId": {
                    "$ref": "#/$defs/OrganizationId"
                  },
                  "assessmentId": {
                    "type": "number"
                  },
                  "eventId": {
                    "type": "number"
                  },
                  "reference": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "enum": [
                              "model_call"
                            ]
                          },
                          "modelCallId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "source",
                          "modelCallId"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "enum": [
                              "orchestration_bridge"
                            ]
                          },
                          "runId": {
                            "type": "string"
                          },
                          "receiptId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "source",
                          "runId",
                          "receiptId"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "enum": [
                              "evaluation_run"
                            ]
                          },
                          "evaluationId": {
                            "type": "number"
                          },
                          "runId": {
                            "type": "number"
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "source",
                          "evaluationId",
                          "runId"
                        ]
                      }
                    ]
                  },
                  "observation": {
                    "type": "object",
                    "properties": {
                      "reference": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "model_call"
                                ]
                              },
                              "modelCallId": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "modelCallId"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "orchestration_bridge"
                                ]
                              },
                              "runId": {
                                "type": "string"
                              },
                              "receiptId": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "runId",
                              "receiptId"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "evaluation_run"
                                ]
                              },
                              "evaluationId": {
                                "type": "number"
                              },
                              "runId": {
                                "type": "number"
                              }
                            },
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "evaluationId",
                              "runId"
                            ]
                          }
                        ]
                      },
                      "target": {
                        "type": "string"
                      },
                      "boundary": {
                        "type": "string"
                      },
                      "outcome": {
                        "type": "string"
                      },
                      "timing": {
                        "type": "string"
                      },
                      "scopeComplete": {
                        "type": "boolean"
                      },
                      "receiptHash": {
                        "type": "string"
                      },
                      "receipt": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/JsonValue"
                        }
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "reference",
                      "target",
                      "boundary",
                      "outcome",
                      "timing",
                      "scopeComplete",
                      "receiptHash",
                      "receipt"
                    ]
                  },
                  "reviewedBy": {
                    "type": "object",
                    "properties": {
                      "userId": {
                        "type": "string"
                      },
                      "authType": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "userId",
                      "authType",
                      "role"
                    ]
                  },
                  "reviewedAt": {
                    "type": "string"
                  },
                  "rationale": {
                    "type": "string"
                  },
                  "expectedAssessmentHash": {
                    "type": "string"
                  },
                  "requestHash": {
                    "type": "string"
                  },
                  "assessment": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/JsonValue"
                    }
                  }
                },
                "additionalProperties": false,
                "required": [
                  "schemaVersion",
                  "organizationId",
                  "assessmentId",
                  "eventId",
                  "reference",
                  "observation",
                  "reviewedBy",
                  "reviewedAt",
                  "rationale",
                  "expectedAssessmentHash",
                  "requestHash",
                  "assessment"
                ]
              }
            ]
          },
          "currentState": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "changed"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "unavailable"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "unchanged"
                ]
              }
            ]
          },
          "currentReceiptHash": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "snapshotId",
          "snapshotHash",
          "integrity",
          "review",
          "currentState",
          "currentReceiptHash"
        ]
      }
    },
    "nextBeforeId": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "number"
        }
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "items",
    "nextBeforeId"
  ],
  "$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"
    }
  }
}