tock / ai.tock.shared.security / TockUserRole

TockUserRole

enum class TockUserRole (source)

The user roles for TockUser.

Enum Values

nlpUser

A nlp user is allowed to qualify and search sentences, but not to update applications or builds.

botUser

A bot user is allowed to modify answer & i18n, and to consult dialogs and conversations.

admin

An admin is allowed to update applications and builds, and to export/intent sentences dump.

technicalAdmin

A technical admin has access to all encrypted sentence, and to export/intent application dumps.

Companion Object Functions

toRole

fun toRole(role: String): TockUserRole?