Variable announcementSchemaConst
announcementSchema: ObjectSchema<
{
all_day: SchemaWithFallback<BooleanSchema<undefined>, false>;
content: SchemaWithFallback<StringSchema<undefined>, "">;
emojis: SchemaWithPipe<
readonly [
SchemaWithFallback<ArraySchema<AnySchema, undefined>, readonly []>,
TransformAction<
any[],
{
category: null
| string;
shortcode: string;
static_url: string;
url: string;
visible_in_picker: boolean;
}[],
>,
],
>;
ends_at: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<undefined>, RegexAction<string, undefined>],
>,
undefined,
>,
null,
>;
id: StringSchema<undefined>;
mentions: SchemaWithPipe<
readonly [
SchemaWithFallback<ArraySchema<AnySchema, undefined>, readonly []>,
TransformAction<
any[],
{ acct: string; id: string; url: string; username: string }[],
>,
],
>;
published_at: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, RegexAction<string, undefined>],
>,
string,
>;
reactions: SchemaWithPipe<
readonly [
SchemaWithFallback<ArraySchema<AnySchema, undefined>, readonly []>,
TransformAction<
any[],
{
announcement_id: string;
count: number;
me: boolean;
name: string;
static_url: null
| string;
url: null | string;
}[],
>,
],
>;
read: SchemaWithFallback<BooleanSchema<undefined>, false>;
starts_at: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<undefined>, RegexAction<string, undefined>],
>,
undefined,
>,
null,
>;
statuses: SchemaWithPipe<
readonly [
AnySchema,
TransformAction<any, any>,
RecordSchema<
StringSchema<undefined>,
StringSchema<undefined>,
undefined,
>,
],
>;
tags: SchemaWithPipe<
readonly [
SchemaWithFallback<ArraySchema<AnySchema, undefined>, readonly []>,
TransformAction<
any[],
{
following?: boolean;
history: null
| { accounts: number; day: number; uses: number }[];
name: string;
total: null | number;
url: string;
}[],
>,
],
>;
updated_at: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, RegexAction<string, undefined>],
>,
string,
>;
},
undefined,
> = ...
See
https://docs.joinmastodon.org/entities/announcement/