import { scanTypes } from "@thorium/utils/flags/scanTypes"; import z from "zod"; export const scan = z .object({ /** The ID of the ship which initiated this scan */ parentId: z.number().default(-1), /** What kind of scan is being performed */ type: scanTypes.default("identification"), /** Scan's progress percentage */ progress: z.number().default(0), /** The ID of the target */ target: z.number().default(-1), /** How long in seconds before repeating the scan */ repeatInterval: z.number().nullable().default(null), /** Duration in seconds since the last scan completed, used for repeating */ intervalTime: z.number().default(0), timestamp: z.number().default(0), /** The request made as part of a legacy mode scan */ legacyRequest: z.string().default(""), /** The response provided as part of a legacy mode scan */ legacyResponse: z.string().default(""), legacyScanType: z.string().default("Standard"), }) .default({});