Role

@Serializable
data class Role(val id: String, val key: String, val name: String, val description: String, val permissions: List<Permission>, val createdAt: Long, val updatedAt: Long)

Represents a role within an organization.

Constructors

Link copied to clipboard
constructor(id: String, key: String, name: String, description: String, permissions: List<Permission>, createdAt: Long, updatedAt: Long)

Properties

Link copied to clipboard

Timestamp of when the role was created (epoch milliseconds).

Link copied to clipboard

Description of the role's purpose.

Link copied to clipboard
val id: String

Unique identifier of the role.

Link copied to clipboard
val key: String

Machine‑friendly key for the role.

Link copied to clipboard

Human‑readable name of the role.

Link copied to clipboard

List of permissions assigned to the role.

Link copied to clipboard

Timestamp of the last update to the role (epoch milliseconds).