Variable ConfirmationMessageSchemaConst
ConfirmationMessageSchema: ZodObject<
{
error: ZodOptional<ZodString>;
sourceMessage: ZodUnion<
readonly [
ZodDiscriminatedUnion<
[
ZodObject<
{
players: ZodRecord<
ZodString,
ZodObject<
{
answerData: ...;
color: ...;
isHost: ...;
isSpectator: ...;
points: ...;
username: ...;
},
$strip,
>,
>;
state: ZodLiteral<"lobby" | "results" | "ingame">;
type: ZodDefault<ZodLiteral<"room_state">>;
uuid: ZodString;
version: ZodString;
},
$strip,
>,
ZodObject<
{
filteredSongsCount: ZodNumber;
playlists: ZodOptional<ZodArray<ZodObject<(...), (...)>>>;
type: ZodDefault<ZodLiteral<"update_playlists">>;
},
$strip,
>,
ZodObject<
{
advancedSongFiltering: ZodBoolean;
audioStartPosition: ZodNumber;
distractionsPreferSameArtist: ZodBoolean;
endWhenAnswered: ZodBoolean;
gameMode: ZodLiteral<"multiple_choice" | "player_picks">;
playerPickTimeout: ZodNumber;
roundsCount: ZodNumber;
timePerQuestion: ZodNumber;
type: ZodDefault<ZodLiteral<"room_config">>;
},
$strip,
>,
],
"type",
>,
ZodDiscriminatedUnion<
[
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,
>,
],
"type",
>,
ZodObject<{ type: ZodDefault<ZodLiteral<"other">> }, $strip>,
],
>;
type: ZodDefault<ZodLiteral<"confirmation">>;
},
$strip,
> = ...
Schema for confirmation messages sent in response to client actions.