InterfaceUpdateToClient

Type: object

Type: enum (of string)

Must be one of:

  • "InterfaceUpdate"


CurrentRoundUpdate

Type: object

The interface is designed so that a websocket client
can connect at any time and it will recieve all information
as soon as the current round finishes.
We send a CurrentRoundUpdate during the round, when the cards change.
Even if the cards don't change, this will be updated after ~2 seconds.
When the round is finished, we send a RoundHistory.

Type: enum (of string)

Must be one of:

  • "CurrentRoundUpdate"

StateMachineAPI

Type: object

RoundState

Type: enum (of string)

Must be one of:

  • "DEALER_DONE"
  • "DEALER_MAYBE_DONE"
  • "DEALER_ONE_CARD"
  • "DEALER_TWO_CARDS"
  • "EMPTY"
  • "FAILED"
  • "STARTED"

Type: array
No Additional Items

Each item of this array must be:

PlayerAPI

Type: object

Type: array
No Additional Items

Each item of this array must be:

StackAPI

Type: object

Type: array
No Additional Items

Each item of this array must be:

CardAPI

Type: object

Label52

Type: object

Card

Type: enum (of string)

Must be one of:

  • "10"
  • "2"
  • "3"
  • "4"
  • "5"
  • "6"
  • "7"
  • "8"
  • "9"
  • "A"
  • "J"
  • "K"
  • "Q"

Suit

Type: enum (of string)

Must be one of:

  • "C"
  • "D"
  • "H"
  • "S"

Type: array

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Tuple Validation

Item at 1 must be:
Item at 2 must be:


Type: array
No Additional Items

Each item of this array must be:

Type: array
No Additional Items

Each item of this array must be:

Anomaly

Type: enum (of string)

Must be one of:

  • "CARD_FAR_AWAY"
  • "DEALER_CARD_FAR_AWAY"
  • "FAILED"
  • "ONLY_DEALER_ROUND"
  • "OTHER"
  • "UNCLEAR_DECISION"
  • "UNCLEAR_DECISION_STARTED"
  • "UNCLEAR_DOUBLED"

Type: array of array
No Additional Items

Each item of this array must be:

Type: array

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Tuple Validation

Item at 1 must be:
Item at 2 must be:

LicensingInfo

Type: object


Type: enum (of string)

Must be one of:

  • "Development"
Type: enum (of string)

Must be one of:

  • "Trial"
Type: enum (of string)

Must be one of:

  • "Paid"

Type: array of string
No Additional Items

Each item of this array must be:

RoundHistory

Type: object

After a finished round we the last 100 rounds that we have cached.
This is so that any frontend can catch up with the recent history,
without requiring a database.
In the future this might not be needed if the consumer of this API
has its own database.

Type: enum (of string)

Must be one of:

  • "RoundHistory"

Type: array
No Additional Items

Each item of this array must be:

Type: string Default: "3.0"