import { z } from 'zod'; /** @see {@link https://docs.joinmastodon.org/entities/Application/} */ const applicationSchema = z.object({ name: z.string().catch(''), website: z.string().optional().catch(undefined), client_id: z.string().optional().catch(undefined), client_secret: z.string().optional().catch(undefined), redirect_uri: z.string().optional().catch(undefined), id: z.string().optional().catch(undefined), /** @deprecated */ vapid_key: z.string().optional().catch(undefined), }); type Application = z.infer; export { applicationSchema, type Application };