Skip to content

Enumerations

Generated from the source code of the Toto backend (version 2.4.8).

Values of the enumerations used in the API. Values are case sensitive.

RepoElementType

Value Meaning
Coin bonus item, collected with its secret; associated with a story, not part of a challenge graph
Task has to be solved (or skipped) by the player
Info shows content, processed when acknowledged
Choice the player chooses one of its successors in the challenge graph
Dynamic a script chooses one of its successors

GeoFenceEventType

Value Meaning
Enter solved when the player enters the area
Exit solved when the player leaves the area

RepoVarType

Value Meaning
Boolean true / false
Number a number, stored as decimal (3 is stored as 3.0)
String a text

RepoVarScope

Value Meaning
Account one value per player account, across all sessions of the repository
Repo one value for the whole repository, shared by all players
Session one value per session

RepoScriptLang

Value Meaning
Javascript JavaScript (ECMAScript 5) – the only language that is executed
Lua defined in the data model but not supported

RepoBinaryAccess

Value Meaning
Public everyone, also without login
Account every logged in player of the story
Attendee only players of the session
Progress only players of a session in which the element has been released

RepoPermissionRole – Ordered from most to least rights; a role includes the rights of the roles below it.

Value Meaning
Owner everything, including permissions and access tokens
Author create and change content
Operator operate running games: sessions, user inputs, TotoObject configuration
Tester read the activity log

RepoStatus

Value Meaning
Active content can be changed
Inactive new repositories; content can be read but not changed
Archived no longer in use

TotoSessionStatus

Value Meaning
Initialized created with a voucher, not started yet
Started being played
Finished ended after the story was completed
Canceled ended before the story was completed
NeverFinished defined but not set by the backend

AttendeeRole – Players of a session currently always get the role Player.

Value Meaning
Agent defined but not assigned by the backend
Player plays the session
Tester defined but not assigned by the backend

SessionInputAccess – Who can see what a player submitted for a user input task; default Private.

Value Meaning
World everyone
Repo players of the repository
Story players of the story
Session players of the same session
Attendees the attendees of the session
Private only the player (and the operators of the repository)