2024-10-13 15:25:30 -07:00
|
|
|
import * as v from 'valibot';
|
2024-08-28 04:43:23 -07:00
|
|
|
|
|
|
|
import { accountSchema } from './account';
|
|
|
|
import { filteredArray } from './utils';
|
|
|
|
|
|
|
|
/** @see {@link https://docs.joinmastodon.org/entities/FamiliarFollowers/} */
|
2024-10-13 15:25:30 -07:00
|
|
|
const familiarFollowersSchema = v.object({
|
|
|
|
id: v.string(),
|
2024-08-28 04:43:23 -07:00
|
|
|
accounts: filteredArray(accountSchema),
|
|
|
|
});
|
|
|
|
|
2024-10-13 15:25:30 -07:00
|
|
|
type FamiliarFollowers = v.InferOutput<typeof familiarFollowersSchema>
|
2024-08-28 04:43:23 -07:00
|
|
|
|
|
|
|
export { familiarFollowersSchema, type FamiliarFollowers };
|