21 lines
470 B
TypeScript
21 lines
470 B
TypeScript
import * as v from 'valibot';
|
|
|
|
import { datetimeSchema } from '../utils';
|
|
|
|
/**
|
|
* @category Admin schemas
|
|
* @see {@link https://docs.joinmastodon.org/entities/Admin_DomainAllow/}
|
|
*/
|
|
const adminDomainAllowSchema = v.object({
|
|
id: v.string(),
|
|
domain: v.string(),
|
|
created_at: datetimeSchema,
|
|
});
|
|
|
|
/**
|
|
* @category Admin entity types
|
|
*/
|
|
type AdminDomainAllow = v.InferOutput<typeof adminDomainAllowSchema>;
|
|
|
|
export { adminDomainAllowSchema, type AdminDomainAllow };
|