SongGuess
Preparing search index...
schemas/MessageSchemas
ConfirmationMessageSchema
Variable ConfirmationMessageSchema
Const
ConfirmationMessageSchema
:
ZodObject
<
{
error
:
ZodOptional
<
ZodString
>
;
sourceMessage
:
ZodUnion
<
readonly
[
ZodUnion
<
readonly
[
ZodObject
<
{
players
:
ZodRecord
<
ZodString
,
ZodObject
<
{
answerData
:
...
;
color
:
...
;
hasPicked
:
...
;
isHost
:
...
;
isSpectator
:
...
;
points
:
...
;
username
:
...
;
uuid
:
...
;
}
,
$strip
,
>
,
>
;
state
:
ZodLiteral
<
"lobby"
|
"results"
|
"ingame"
>
;
type
:
ZodDefault
<
ZodLiteral
<
"room_state"
>
>
;
uuid
:
ZodString
;
}
,
$strip
,
>
,
ZodObject
<
{
filteredSongsCount
:
ZodNumber
;
playlists
:
ZodOptional
<
ZodArray
<
ZodObject
<
(...)
,
(...)
>
>
>
;
type
:
ZodDefault
<
ZodLiteral
<
"update_playlists"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
advancedSongFiltering
:
ZodBoolean
;
allowChangingAnswer
:
ZodBoolean
;
audioStartPosition
:
ZodNullable
<
ZodNumber
>
;
distractionsPreferSameArtist
:
ZodBoolean
;
endWhenAnswered
:
ZodBoolean
;
gameMode
:
ZodLiteral
<
"multiple_choice"
|
"player_picks"
>
;
multipleChoiceAnswersCount
:
ZodInt
;
playerPickTimeout
:
ZodNumber
;
roundsCount
:
ZodNumber
;
timePerQuestion
:
ZodNumber
;
type
:
ZodDefault
<
ZodLiteral
<
"room_config"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
countdown
:
ZodInt
;
type
:
ZodDefault
<
ZodLiteral
<
"countdown"
>
>
}
,
$strip
,
>
,
ZodUnion
<
readonly
[
ZodObject
<
{
action
:
ZodLiteral
<
(...)
>
;
audioURL
:
ZodUnion
<
(...)
>
;
type
:
ZodDefault
<
(...)
>
;
}
,
$strip
,
>
,
ZodObject
<
{
action
:
ZodLiteral
<
(...)
>
;
type
:
ZodDefault
<
(...)
>
}
,
$strip
,
>
,
]
,
>
,
ZodObject
<
{
gamePhase
:
ZodEnum
<
typeof
GamePhase
>
;
question
:
ZodOptional
<
ZodUnion
<
readonly
[
(...)
,
(...)
]
>
>
;
roundCurrent
:
ZodInt
;
type
:
ZodDefault
<
ZodLiteral
<
"round_state"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
songs
:
ZodArray
<
ZodObject
<
{
artist
:
...
;
audioURL
:
...
;
cover
:
...
;
hrefURL
:
...
;
name
:
...
;
}
,
$strip
,
>
,
>
;
type
:
ZodDefault
<
ZodLiteral
<
"update_played_songs"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
entry
:
ZodCustom
<
LogEntry
,
LogEntry
>
;
level
:
ZodLiteral
<
"error"
|
"info"
|
"warn"
|
"debug"
>
;
type
:
ZodDefault
<
ZodLiteral
<
"add_log_message"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
messages
:
ZodCustom
<
LoggerStorage
,
LoggerStorage
>
;
type
:
ZodDefault
<
ZodLiteral
<
"update_log_messages"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
duration
:
ZodNumber
;
offset
:
ZodNumber
;
type
:
ZodDefault
<
ZodLiteral
<
"progressbar_update"
>
>
;
}
,
$strip
,
>
,
]
,
>
,
ZodUnion
<
readonly
[
ZodObject
<
{
type
:
ZodDefault
<
ZodLiteral
<
"change_username"
>
>
;
username
:
ZodCustomStringFormat
<
"user"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
playlists
:
ZodArray
<
ZodObject
<
{
cover
:
...
;
hrefURL
:
...
;
name
:
...
;
songs
:
...
;
subtitle
:
...
;
}
,
$strip
,
>
,
>
;
type
:
ZodDefault
<
ZodLiteral
<
"add_playlists"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
index
:
ZodNullable
<
ZodInt
>
;
type
:
ZodDefault
<
ZodLiteral
<
"remove_playlist"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
advancedSongFiltering
:
ZodBoolean
;
allowChangingAnswer
:
ZodBoolean
;
audioStartPosition
:
ZodNullable
<
ZodNumber
>
;
distractionsPreferSameArtist
:
ZodBoolean
;
endWhenAnswered
:
ZodBoolean
;
gameMode
:
ZodLiteral
<
"multiple_choice"
|
"player_picks"
>
;
multipleChoiceAnswersCount
:
ZodInt
;
playerPickTimeout
:
ZodNumber
;
roundsCount
:
ZodNumber
;
timePerQuestion
:
ZodNumber
;
type
:
ZodDefault
<
ZodLiteral
<
"room_config"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
type
:
ZodDefault
<
ZodLiteral
<
"start_game"
>
>
}
,
$strip
>
,
ZodObject
<
{
answer
:
ZodOptional
<
ZodString
>
;
answerIndex
:
ZodOptional
<
ZodInt
>
;
type
:
ZodDefault
<
ZodLiteral
<
"select_answer"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
type
:
ZodDefault
<
ZodLiteral
<
"return_to"
>
>
;
where
:
ZodLiteral
<
"lobby"
|
"results"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
playerName
:
ZodString
;
type
:
ZodDefault
<
ZodLiteral
<
"transfer_host"
>
>
;
}
,
$strip
,
>
,
ZodObject
<
{
song
:
ZodObject
<
{
artist
:
ZodString
;
audioURL
:
ZodUnion
<
(...)
>
;
cover
:
ZodNullable
<
(...)
>
;
hrefURL
:
ZodUnion
<
(...)
>
;
name
:
ZodString
;
}
,
$strip
,
>
;
startPos
:
ZodNumber
;
type
:
ZodDefault
<
ZodLiteral
<
"player_pick_song"
>
>
;
}
,
$strip
,
>
,
]
,
>
,
ZodObject
<
{
type
:
ZodDefault
<
ZodLiteral
<
"other"
>
>
}
,
$strip
>
,
]
,
>
;
type
:
ZodDefault
<
ZodLiteral
<
"confirmation"
>
>
;
}
,
$strip
,
>
= ...
Schema for confirmation messages sent in response to client actions.
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
SongGuess
Loading...
Schema for confirmation messages sent in response to client actions.