import type { SensitiveString } from "./SensitiveString"; /** * Register / Sign up to lemmy. */ export type Register = { username: string; password: SensitiveString; password_verify: SensitiveString; show_nsfw?: boolean; /** * email is mandatory if email verification is enabled on the server */ email?: SensitiveString; /** * The UUID of the captcha item. */ captcha_uuid?: string; /** * Your captcha answer. */ captcha_answer?: string; /** * A form field to trick signup bots. Should be None. */ honeypot?: string; /** * An answer is mandatory if require application is enabled on the server */ answer?: string; /** * If this is true the login is valid forever, otherwise it expires after one week. */ stay_logged_in?: boolean; /** * Invitation token */ token?: string; };