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