import * as v from 'valibot'; import { datetimeSchema } from '../utils'; /** @see {@link https://docs.joinmastodon.org/entities/Admin_EmailDomainBlock/} */ const adminEmailDomainBlockSchema = v.object({ id: v.string(), domain: v.string(), created_at: datetimeSchema, history: v.array(v.object({ day: v.pipe(v.unknown(), v.transform(String)), accounts: v.pipe(v.unknown(), v.transform(String)), uses: v.pipe(v.unknown(), v.transform(String)), })), }); type AdminEmailDomainBlock = v.InferOutput; export { adminEmailDomainBlockSchema, type AdminEmailDomainBlock, };