Variable adminAnnouncementSchemaConst
adminAnnouncementSchema: SchemaWithPipe<
readonly [
AnySchema,
TransformAction<any, any>,
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,
>;
raw_content: SchemaWithFallback<StringSchema<undefined>, "">;
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
| (...)[];
name: string;
total: null | number;
url: string;
}[],
>,
],
>;
updated_at: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, RegexAction<string, undefined>],
>,
string,
>;
},
undefined,
>,
],
> = ...
See
https://docs.pleroma.social/backend/development/API/admin_api/#get-apiv1pleromaadminannouncements