pollSchema: ObjectSchema<
{
emojis: SchemaWithPipe<
readonly [
SchemaWithFallback<ArraySchema<AnySchema, undefined>, readonly []>,
TransformAction<
any[],
{
category: null
| string;
shortcode: string;
static_url: string;
url: string;
visible_in_picker: boolean;
}[],
>,
],
>;
expired: SchemaWithFallback<BooleanSchema<undefined>, false>;
expires_at: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<undefined>, RegexAction<string, undefined>],
>,
undefined,
>,
null,
>;
id: StringSchema<undefined>;
multiple: SchemaWithFallback<BooleanSchema<undefined>, false>;
non_anonymous: SchemaWithFallback<BooleanSchema<undefined>, false>;
options: SchemaWithPipe<
readonly [
ArraySchema<
ObjectSchema<
{
title: SchemaWithFallback<StringSchema<undefined>, "">;
title_map: SchemaWithFallback<
NullableSchema<
RecordSchema<
StringSchema<(...)>,
StringSchema<(...)>,
undefined,
>,
undefined,
>,
null,
>;
votes_count: SchemaWithFallback<NumberSchema<undefined>, 0>;
},
undefined,
>,
undefined,
>,
MinLengthAction<
{
title: string;
title_map: null
| { [key: string]: string };
votes_count: number;
}[],
2,
undefined,
>,
],
>;
own_votes: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [
ArraySchema<NumberSchema<undefined>, undefined>,
MinLengthAction<number[], 1, undefined>,
],
>,
undefined,
>,
null,
>;
voted: SchemaWithFallback<BooleanSchema<undefined>, false>;
voters_count: SchemaWithFallback<NumberSchema<undefined>, 0>;
votes_count: SchemaWithFallback<NumberSchema<undefined>, 0>;
},
undefined,
> = ...
See
https://docs.joinmastodon.org/entities/Poll/