{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fraud-detector/json-schema/amazon-fraud-detector-get-event-prediction-request-schema.json",
  "title": "GetEventPredictionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fraud-detector-predictions-api-openapi.yml#/components/schemas/GetEventPredictionRequest",
  "type": "object",
  "properties": {
    "detectorId": {
      "type": "string",
      "description": "The detector ID."
    },
    "detectorVersionId": {
      "type": "string",
      "description": "The detector version ID."
    },
    "eventId": {
      "type": "string",
      "description": "The unique ID used to identify the event."
    },
    "eventTypeName": {
      "type": "string",
      "description": "The event type associated with the detector specified for the prediction."
    },
    "entities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Entity"
      },
      "description": "The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use \"UNKNOWN.\""
    },
    "eventTimestamp": {
      "type": "string",
      "description": "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. You must provide at least one eventVariable To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows: For Amazon Fraud Detector trained models: If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariabl"
    },
    "externalModelEndpointDataBlobs": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ModelEndpointDataBlob"
      },
      "description": "The Amazon SageMaker model endpoint input data blobs."
    }
  },
  "required": [
    "detectorId",
    "eventId",
    "eventTypeName",
    "entities",
    "eventTimestamp",
    "eventVariables"
  ],
  "$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"
      ]
    },
    "ModelEndpointDataBlob": {
      "type": "object",
      "properties": {
        "byteBuffer": {
          "type": "string",
          "format": "byte",
          "description": "The byte buffer of the Amazon SageMaker model endpoint input data blob."
        },
        "contentType": {
          "type": "string",
          "description": "The content type of the Amazon SageMaker model endpoint input data blob."
        }
      }
    }
  }
}