User

@Serializable
data class User(    val id: String = "",     val role: String? = "user",     val type: UserType = UserType.Authenticated,     val name: String? = null,     val image: String? = null,     val teams: List<String>? = emptyList(),     val custom: Map<String, String>? = emptyMap(),     val createdAt: OffsetDateTime? = null,     val updatedAt: OffsetDateTime? = null,     val deletedAt: OffsetDateTime? = null)

Constructors

Link copied to clipboard
constructor(    id: String = "",     role: String? = "user",     type: UserType = UserType.Authenticated,     name: String? = null,     image: String? = null,     teams: List<String>? = emptyList(),     custom: Map<String, String>? = emptyMap(),     createdAt: OffsetDateTime? = null,     updatedAt: OffsetDateTime? = null,     deletedAt: OffsetDateTime? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@Serializable(with = OffsetDateTimeSerializer::class)
val createdAt: OffsetDateTime? = null
Link copied to clipboard
Link copied to clipboard
@Serializable(with = OffsetDateTimeSerializer::class)
val deletedAt: OffsetDateTime? = null
Link copied to clipboard
val id: String

ID is required, the rest is optional

Link copied to clipboard
val image: String? = null
Link copied to clipboard
val name: String? = null
Link copied to clipboard
val role: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable(with = OffsetDateTimeSerializer::class)
val updatedAt: OffsetDateTime? = null
Link copied to clipboard

Functions

Link copied to clipboard

Inherited functions

Link copied to clipboard

Check if user is anonymous.

Link copied to clipboard

Check if user is the local SDK user