Variable chatMessageSchemaConst
chatMessageSchema: ObjectSchema<
{
account_id: StringSchema<undefined>;
attachment: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [
AnySchema,
TransformAction<any, any>,
VariantSchema<
"type",
[
ObjectSchema<
{
blurhash: SchemaWithFallback<(...), (...)>;
description: SchemaWithFallback<(...), (...)>;
id: StringSchema<(...)>;
meta: SchemaWithFallback<(...), (...)>;
mime_type: SchemaWithFallback<(...), (...)>;
preview_url: SchemaWithFallback<(...), (...)>;
remote_url: SchemaWithFallback<(...), (...)>;
type: LiteralSchema<(...), (...)>;
url: SchemaWithFallback<(...), (...)>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<(...), (...)>;
description: SchemaWithFallback<(...), (...)>;
id: StringSchema<(...)>;
meta: SchemaWithFallback<(...), (...)>;
mime_type: SchemaWithFallback<(...), (...)>;
preview_url: SchemaWithFallback<(...), (...)>;
remote_url: SchemaWithFallback<(...), (...)>;
type: LiteralSchema<(...), (...)>;
url: SchemaWithFallback<(...), (...)>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<(...), (...)>;
description: SchemaWithFallback<(...), (...)>;
id: StringSchema<(...)>;
meta: SchemaWithFallback<(...), (...)>;
mime_type: SchemaWithFallback<(...), (...)>;
preview_url: SchemaWithFallback<(...), (...)>;
remote_url: SchemaWithFallback<(...), (...)>;
type: LiteralSchema<(...), (...)>;
url: SchemaWithFallback<(...), (...)>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<(...), (...)>;
description: SchemaWithFallback<(...), (...)>;
id: StringSchema<(...)>;
meta: SchemaWithFallback<(...), (...)>;
mime_type: SchemaWithFallback<(...), (...)>;
preview_url: SchemaWithFallback<(...), (...)>;
remote_url: SchemaWithFallback<(...), (...)>;
type: LiteralSchema<(...), (...)>;
url: SchemaWithFallback<(...), (...)>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<(...), (...)>;
description: SchemaWithFallback<(...), (...)>;
id: StringSchema<(...)>;
mime_type: SchemaWithFallback<(...), (...)>;
preview_url: SchemaWithFallback<(...), (...)>;
remote_url: SchemaWithFallback<(...), (...)>;
type: LiteralSchema<(...), (...)>;
url: SchemaWithFallback<(...), (...)>;
},
undefined,
>,
],
undefined,
>,
],
>,
undefined,
>,
null,
>;
card: SchemaWithFallback<
NullableSchema<
ObjectSchema<
{
author_name: SchemaWithFallback<StringSchema<undefined>, "">;
author_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
authors: SchemaWithPipe<
readonly [
SchemaWithFallback<
ArraySchema<AnySchema, undefined>,
readonly [],
>,
TransformAction<any[], { account: ...; name: ...; url: ... }[]>,
],
>;
blurhash: SchemaWithFallback<
NullableSchema<StringSchema<undefined>, undefined>,
null,
>;
description: SchemaWithFallback<StringSchema<undefined>, "">;
embed_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
height: SchemaWithFallback<NumberSchema<undefined>, 0>;
html: SchemaWithFallback<StringSchema<undefined>, "">;
image: SchemaWithFallback<
NullableSchema<StringSchema<undefined>, undefined>,
null,
>;
image_description: SchemaWithFallback<StringSchema<undefined>, "">;
provider_name: SchemaWithFallback<StringSchema<undefined>, "">;
provider_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
title: SchemaWithFallback<StringSchema<undefined>, "">;
type: SchemaWithFallback<
PicklistSchema<["link", "photo", "video", "rich"], undefined>,
"link",
>;
url: SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>;
width: SchemaWithFallback<NumberSchema<undefined>, 0>;
},
undefined,
>,
undefined,
>,
null,
>;
chat_id: StringSchema<undefined>;
content: SchemaWithFallback<StringSchema<undefined>, "">;
created_at: SchemaWithPipe<
readonly [StringSchema<undefined>, RegexAction<string, 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;
}[],
>,
],
>;
id: StringSchema<undefined>;
unread: BooleanSchema<undefined>;
},
undefined,
> = ...
See
https://docs.pleroma.social/backend/development/API/chats/#getting-the-messages-for-a-chat