Variable ClientMessageSchemaConst
ClientMessageSchema: ZodDiscriminatedUnion<
[
ZodObject<
{
error: ZodOptional<ZodString>;
sourceMessage: ZodUnion<
readonly [
ZodDiscriminatedUnion<
[
ZodObject<
{
players: ZodRecord<(...), (...)>;
state: ZodLiteral<(...)>;
type: ZodDefault<(...)>;
uuid: ZodString;
version: ZodString;
},
$strip,
>,
ZodObject<
{
filteredSongsCount: ZodNumber;
playlists: ZodOptional<(...)>;
type: ZodDefault<(...)>;
},
$strip,
>,
ZodObject<
{
advancedSongFiltering: ZodBoolean;
audioStartPosition: ZodNumber;
distractionsPreferSameArtist: ZodBoolean;
endWhenAnswered: ZodBoolean;
gameMode: ZodLiteral<(...)>;
playerPickTimeout: ZodNumber;
roundsCount: ZodNumber;
timePerQuestion: ZodNumber;
type: ZodDefault<(...)>;
},
$strip,
>,
],
"type",
>,
ZodDiscriminatedUnion<
[
ZodObject<
{
type: ZodDefault<(...)>;
username: ZodCustomStringFormat<(...)>;
},
$strip,
>,
ZodObject<
{ playlists: ZodArray<(...)>; type: ZodDefault<(...)> },
$strip,
>,
ZodObject<
{ index: ZodNullable<(...)>; type: ZodDefault<(...)> },
$strip,
>,
],
"type",
>,
ZodObject<{ type: ZodDefault<ZodLiteral<"other">> }, $strip>,
],
>;
type: ZodDefault<ZodLiteral<"confirmation">>;
},
$strip,
>,
ZodObject<
{ seq: ZodNumber; type: ZodDefault<ZodLiteral<"ping">> },
$strip,
>,
ZodObject<
{ seq: ZodNumber; type: ZodDefault<ZodLiteral<"pong">> },
$strip,
>,
ZodDiscriminatedUnion<
[
ZodObject<
{
type: ZodDefault<ZodLiteral<"change_username">>;
username: ZodCustomStringFormat<"user">;
},
$strip,
>,
ZodObject<
{
playlists: ZodArray<
ZodObject<
{
cover: ZodNullable<ZodUnion<(...)>>;
hrefURL: ZodUnion<readonly [(...), (...)]>;
name: ZodString;
songs: ZodArray<ZodObject<(...), (...)>>;
subtitle: ZodOptional<ZodString>;
},
$strip,
>,
>;
type: ZodDefault<ZodLiteral<"add_playlists">>;
},
$strip,
>,
ZodObject<
{
index: ZodNullable<ZodInt>;
type: ZodDefault<ZodLiteral<"remove_playlist">>;
},
$strip,
>,
],
"type",
>,
],
"type",
> = ...
A message sent from a client.