{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fraud-detector/json-schema/amazon-fraud-detector-get-event-result-schema.json",
  "title": "GetEventResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fraud-detector-event-api-openapi.yml#/components/schemas/GetEventResult",
  "type": "object",
  "properties": {
    "event": {
      "$ref": "#/$defs/Event"
    }
  },
  "$defs": {
    "Entity": {
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "The entity type."
        },
        "entityId": {
          "type": "string",
          "description": "The entity ID. If you do not know the entityId, you can pass unknown, which is areserved string literal."
        }
      },
      "required": [
        "entityType",
        "entityId"
      ]
    },
    "Event": {
      "type": "object",
      "properties": {
        "eventId": {
          "type": "string",
          "description": "The event ID."
        },
        "eventTypeName": {
          "type": "string",
          "description": "The event type."
        },
        "eventTimestamp": {
          "type": "string",
          "description": "The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC."
        },
        "eventVariables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation."
        },
        "currentLabel": {
          "type": "string",
          "description": "The label associated with the event."
        },
        "labelTimestamp": {
          "type": "string",
          "description": "The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC."
        },
        "entities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Entity"
          },
          "description": "The event entities."
        }
      }
    }
  }
}