{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/genlook-app/json-schema/genlook-app-post-storefront-v1-events-request-schema.json",
  "title": "PostStorefrontV1EventsRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/genlook-app-virtual-tryon-openapi-generated.yml#/components/schemas/PostStorefrontV1EventsRequest",
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "event": {
            "type": "string"
          },
          "properties": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string"
              }
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "$insert_id": {
            "type": "string"
          }
        }
      }
    },
    "context": {
      "type": "object",
      "properties": {
        "anonymous_id": {
          "type": "string"
        },
        "session_id": {
          "type": "string"
        },
        "$pageview_id": {
          "type": "string"
        },
        "widget_version": {
          "type": "string"
        },
        "widget_enabled": {
          "type": "boolean"
        },
        "product_id": {
          "type": "string"
        },
        "variant_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "$screen_width": {
          "type": "integer"
        },
        "$screen_height": {
          "type": "integer"
        },
        "$timezone": {
          "type": "string"
        },
        "$pathname": {
          "type": [
            "string",
            "null"
          ]
        },
        "$raw_user_agent": {
          "type": [
            "string",
            "null"
          ]
        },
        "integration": {
          "type": "string"
        }
      }
    }
  }
}