Variable filterResultSchemaConst
filterResultSchema: ObjectSchema<
{
filter: Omit<
ObjectSchema<
{
context: ArraySchema<
PicklistSchema<
["home", "notifications", "public", "thread", "account"],
undefined,
>,
undefined,
>;
expires_at: SchemaWithFallback<
NullableSchema<
SchemaWithPipe<
readonly [StringSchema<(...)>, RegexAction<(...), (...)>],
>,
undefined,
>,
null,
>;
filter_action: SchemaWithFallback<
PicklistSchema<["warn", "hide", "blur"], undefined>,
"warn",
>;
id: StringSchema<undefined>;
keywords: SchemaWithPipe<
readonly [
SchemaWithFallback<ArraySchema<AnySchema, undefined>, readonly []>,
TransformAction<any[], { id: ...; keyword: ...; whole_word: ... }[]>,
],
>;
statuses: SchemaWithPipe<
readonly [
SchemaWithFallback<ArraySchema<AnySchema, undefined>, readonly []>,
TransformAction<any[], { id: ...; status_id: ... }[]>,
],
>;
title: StringSchema<undefined>;
},
undefined,
>,
"~types"
| "~run"
| "~standard"
| "entries",
> & {
"~run": (
dataset: UnknownDataset,
config: Config<BaseIssue<unknown>>,
) => OutputDataset<
{
context: (
"public"
| "account"
| "home"
| "notifications"
| "thread"
)[];
expires_at: null | string;
filter_action: "warn" | "hide" | "blur";
id: string;
title: string;
},
| StringIssue
| ObjectIssue
| RegexIssue<string>
| ArrayIssue
| PicklistIssue,
>;
"~standard": StandardProps<
{
context: (
"public"
| "account"
| "home"
| "notifications"
| "thread"
)[];
expires_at: null | string;
filter_action: "warn" | "hide" | "blur";
id: string;
title: string;
},
{
context: (
"public"
| "account"
| "home"
| "notifications"
| "thread"
)[];
expires_at: null | string;
filter_action: "warn" | "hide" | "blur";
id: string;
title: string;
},
>;
"~types"?: {
input: {
context: (
"public"
| "account"
| "home"
| "notifications"
| "thread"
)[];
expires_at: null | string;
filter_action: "warn" | "hide" | "blur";
id: string;
title: string;
};
issue: | StringIssue
| ObjectIssue
| RegexIssue<string>
| ArrayIssue
| PicklistIssue;
output: {
context: (
"public"
| "account"
| "home"
| "notifications"
| "thread"
)[];
expires_at: null | string;
filter_action: "warn" | "hide" | "blur";
id: string;
title: string;
};
};
entries: Omit<TEntries, TKeys[number]>;
};
keyword_matches: SchemaWithFallback<
NullableSchema<StringSchema<undefined>, undefined>,
null,
>;
status_matches: SchemaWithFallback<
NullableSchema<StringSchema<undefined>, undefined>,
null,
>;
},
undefined,
> = ...
See
https://docs.joinmastodon.org/entities/FilterResult/