{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/algolia/main/json-schema/algolia-realtime-user-schema.json", "title": "RealtimeUser", "x-generated": "2026-09-23", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/algolia-advanced-personalization-api-openapi.yml#/components/schemas/RealtimeUser", "type": "object", "additionalProperties": false, "required": [ "version", "userID", "lastUpdatedAt", "search" ], "properties": { "version": { "type": "string", "description": "Version of the response format." }, "userID": { "type": "string", "description": "User ID of the user." }, "lastUpdatedAt": { "type": "string", "description": "Date and time when the profile was last computed, in RFC 3339 format." }, "search": { "type": "object", "description": "Index personalization filters by index name.\n", "additionalProperties": { "$ref": "#/$defs/searchFilters" } } }, "$defs": { "searchFilter": { "type": "object", "additionalProperties": false, "properties": { "session": { "type": "array", "items": { "type": "string" } } } }, "searchFilters": { "type": "object", "additionalProperties": false, "properties": { "indices": { "type": "array", "items": { "type": "string" } }, "strategy": { "$ref": "#/$defs/strategy" }, "filters": { "$ref": "#/$defs/searchFilter" } } }, "strategy": { "type": "string", "enum": [ "session", "historical", "hybrid" ] } } }