
commonMain.com.algolia.search.model.personalization.PersonalizationProfileResponse.kt Maven / Gradle / Ivy
package com.algolia.search.model.personalization
import com.algolia.search.model.insights.UserToken
import com.algolia.search.serialize.internal.Key
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonObject
/**
* User profile built from Personalization strategy.
*/
@Serializable
public data class PersonalizationProfileResponse(
/**
* The [UserToken] representing the user and associated data.
*/
@SerialName(Key.UserToken) public val userToken: UserToken,
/**
* The last processed event timestamp using the ISO 8601 format.
*/
@SerialName(Key.LastEventAt) public val lastEventAt: String,
/**
* The profile is structured by facet name used in the strategy. Each facet value is mapped to its score.
* Each score represents the user affinity for a specific facet value given the [userToken] past events and
* the Personalization strategy defined. Scores are bounded to 20.
*/
@SerialName(Key.Scores) public val scores: JsonObject
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy