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