2024-10-13 15:25:30 -07:00
|
|
|
import * as v from 'valibot';
|
2024-08-28 04:43:23 -07:00
|
|
|
|
2024-10-13 15:25:30 -07:00
|
|
|
const adminDomainSchema = v.object({
|
|
|
|
domain: v.fallback(v.string(), ''),
|
2024-08-28 04:43:23 -07:00
|
|
|
id: z.coerce.string(),
|
2024-10-13 15:25:30 -07:00
|
|
|
public: v.fallback(v.boolean(), false),
|
|
|
|
resolves: v.fallback(v.boolean(), false),
|
2024-08-28 04:43:23 -07:00
|
|
|
last_checked_at: z.string().datetime().catch(''),
|
|
|
|
});
|
|
|
|
|
2024-10-13 15:25:30 -07:00
|
|
|
type AdminDomain = v.InferOutput<typeof adminDomainSchema>
|
2024-08-28 04:43:23 -07:00
|
|
|
|
|
|
|
export { adminDomainSchema, type AdminDomain };
|