Variable mediaAttachmentSchemaConst
mediaAttachmentSchema: SchemaWithPipe<
readonly [
AnySchema,
TransformAction<any, any>,
VariantSchema<
"type",
[
ObjectSchema<
{
blurhash: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, CheckAction<(...), (...)>],
>,
undefined,
>,
null,
>;
description: SchemaWithFallback<StringSchema<undefined>, "">;
id: StringSchema<undefined>;
meta: SchemaWithFallback<
ObjectSchema<
{
focus: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
original: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
small: SchemaWithFallback<OptionalSchema<(...), (...)>, undefined>;
},
undefined,
>,
{},
>;
mime_type: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, RegexAction<(...), (...)>],
>,
undefined,
>,
null,
>;
preview_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
remote_url: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, UrlAction<(...), (...)>],
>,
undefined,
>,
null,
>;
type: LiteralSchema<"image", undefined>;
url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, CheckAction<(...), (...)>],
>,
undefined,
>,
null,
>;
description: SchemaWithFallback<StringSchema<undefined>, "">;
id: StringSchema<undefined>;
meta: SchemaWithFallback<
ObjectSchema<
{
duration: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
original: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
small: SchemaWithFallback<OptionalSchema<(...), (...)>, undefined>;
},
undefined,
>,
{},
>;
mime_type: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, RegexAction<(...), (...)>],
>,
undefined,
>,
null,
>;
preview_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
remote_url: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, UrlAction<(...), (...)>],
>,
undefined,
>,
null,
>;
type: LiteralSchema<"video", undefined>;
url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, CheckAction<(...), (...)>],
>,
undefined,
>,
null,
>;
description: SchemaWithFallback<StringSchema<undefined>, "">;
id: StringSchema<undefined>;
meta: SchemaWithFallback<
ObjectSchema<
{
duration: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
focus: SchemaWithFallback<OptionalSchema<(...), (...)>, undefined>;
original: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
},
undefined,
>,
{},
>;
mime_type: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, RegexAction<(...), (...)>],
>,
undefined,
>,
null,
>;
preview_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
remote_url: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, UrlAction<(...), (...)>],
>,
undefined,
>,
null,
>;
type: LiteralSchema<"gifv", undefined>;
url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, CheckAction<(...), (...)>],
>,
undefined,
>,
null,
>;
description: SchemaWithFallback<StringSchema<undefined>, "">;
id: StringSchema<undefined>;
meta: SchemaWithFallback<
ObjectSchema<
{
colors: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
duration: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
original: SchemaWithFallback<
OptionalSchema<(...), (...)>,
undefined,
>;
},
undefined,
>,
{},
>;
mime_type: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, RegexAction<(...), (...)>],
>,
undefined,
>,
null,
>;
preview_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
remote_url: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, UrlAction<(...), (...)>],
>,
undefined,
>,
null,
>;
type: LiteralSchema<"audio", undefined>;
url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
},
undefined,
>,
ObjectSchema<
{
blurhash: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, CheckAction<(...), (...)>],
>,
undefined,
>,
null,
>;
description: SchemaWithFallback<StringSchema<undefined>, "">;
id: StringSchema<undefined>;
mime_type: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, RegexAction<(...), (...)>],
>,
undefined,
>,
null,
>;
preview_url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
remote_url: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, UrlAction<(...), (...)>],
>,
undefined,
>,
null,
>;
type: LiteralSchema<"unknown", undefined>;
url: SchemaWithFallback<
SchemaWithPipe<
readonly [StringSchema<undefined>, UrlAction<string, undefined>],
>,
"",
>;
},
undefined,
>,
],
undefined,
>,
],
> = ...
See
https://docs.joinmastodon.org/entities/MediaAttachment