filecheck-mcp 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +626 -25
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +626 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +626 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/format.ts","../src/tools/artifact.ts","../src/tools/catalog.ts","../src/resolve-source.ts","../src/run-job.ts","../src/schemas.ts","../src/tools/check.ts","../src/tools/fix.ts","../src/tools/jobs.ts","../src/tools/optimize.ts","../src/tools/previews.ts","../src/tools/report.ts","../src/tools/validate.ts","../src/version.ts","../src/server.ts","../src/capabilities.ts"],"names":["AuthenticationError","InvalidRequestError","NotFoundError","RateLimitError","ConnectionError","FilecheckError","z","stat","join","mkdir","dirname","writeFile","basename","readFile","extname","isTerminal","McpServer"],"mappings":";;;;;;;;;AAYA,IAAM,cAAA,GAAiB,EAAA;AAEvB,IAAM,WAAA,GAAc,EAAA;AAGpB,IAAM,oBAAA,uBAA2B,GAAA,CAAI;AAAA,EACnC,QAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAC,CAAA;AAeM,SAAS,UAAA,CAAW,YAAqC,IAAA,EAA0B;AACxF,EAAA,OAAO,EAAE,OAAA,EAAS,CAAC,EAAE,IAAA,EAAM,QAAQ,IAAA,EAAM,CAAA,EAAG,iBAAA,EAAmB,UAAA,EAAW;AAC5E;AAEA,SAAS,eAAe,OAAA,EAA2D;AACjF,EAAA,MAAM,UAAU,OAAA,CAAQ,OAAA;AACxB,EAAA,MAAM,GAAA,GAA+B;AAAA,IACnC,WAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,QAAQ,OAAA,CAAQ,MAAA;AAAA,I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AAA,iBAAA,CAAkB,QAAQ,GAAG,CAAA;AAC7B,EAAA,eAAA,CAAgB,QAAQ,GAAG,CAAA;AAC3B,EAAA,mBAAA,CAAoB,QAAQ,GAAG,CAAA;AAC/B,EAAA,oBAAA,CAAqB,QAAQ,GAAG,CAAA;AAChC,EAAA,sBAAA,CAAuB,QAAQ,GAAG,CAAA;AAClC,EAAA,gBAAA,CAAiB,QAAQ,GAAG,CAAA;AAC5B,EAAA,mBAAA,CAAoB,QAAQ,GAAG,CAAA;AAC/B,EAAA,iBAAA,CAAkB,QAAQ,GAAG,CAAA;AAC7B,EAAA,IAAI,YAAA,CAAa,UAAA,EAAY,oBAAA,CAAqB,MAAA,EAAQ,GAAG,CAAA;AAE7D,EAAA,OAAO,MAAA;AACT;;;AC/BO,IAAM,kBAAA,GAAmC,EAAE,UAAA,EAAY,IAAA,EAAM,WAAW,IAAA;AAGxE,IAAM,mBAAA,GAAoC,EAAE,UAAA,EAAY,KAAA,EAAO,WAAW,GAAA","file":"index.cjs","sourcesContent":["import {\n AuthenticationError,\n ConnectionError,\n FilecheckError,\n InvalidRequestError,\n NotFoundError,\n RateLimitError,\n} from 'filecheck-node';\nimport type { Artifact, Job, PreflightResult } from 'filecheck-node';\nimport type { RunOutcome } from './run-job.js';\n\n/** Findings cap across all files of a job — the rest lives behind get_report. */\nconst FINDINGS_LIMIT = 20;\n/** Preview pages cap per task. */\nconst PAGES_LIMIT = 20;\n\n/** Keys that are huge (geometry, fix params) or already lifted out. */\nconst FINDING_KEYS_HANDLED = new Set([\n 'locate',\n 'autofix',\n 'overlay',\n 'sectionId',\n 'ruleId',\n 'severity',\n]);\n\ninterface Evaluation {\n findings?: Array<Record<string, unknown>>;\n summary?: Record<string, unknown>;\n recommendedAutofix?: unknown;\n}\n\nexport interface ToolResult {\n [key: string]: unknown;\n content: Array<{ type: 'text'; text: string }>;\n structuredContent?: Record<string, unknown>;\n isError?: boolean;\n}\n\nexport function jsonResult(structured: Record<string, unknown>, text: string): ToolResult {\n return { content: [{ type: 'text', text }], structuredContent: structured };\n}\n\nfunction compactFinding(finding: Record<string, unknown>): Record<string, unknown> {\n const autofix = finding.autofix as { available?: boolean } | undefined;\n const out: Record<string, unknown> = {\n sectionId: finding.sectionId,\n ruleId: finding.ruleId,\n severity: finding.severity,\n autofixable: autofix?.available === true,\n };\n // Keep the short scalar hit details (page numbers, measured values, …);\n // drop geometry and nested blobs.\n for (const [key, value] of Object.entries(finding)) {\n if (FINDING_KEYS_HANDLED.has(key) || value === undefined) continue;\n if (value === null || ['string', 'number', 'boolean'].includes(typeof value)) out[key] = value;\n }\n return out;\n}\n\nfunction compactArtifact(artifact: Artifact): Record<string, unknown> {\n const { bucket: _bucket, key: _key, ...rest } = artifact;\n return rest;\n}\n\nfunction evaluationOf(result: PreflightResult): Evaluation | null {\n const report = result.report as { evaluation?: Evaluation } | null;\n return report?.evaluation ?? null;\n}\n\nexport function verdictText(job: Job, pending: boolean): string {\n if (pending) return `Job ${job.id} is still processing (status: ${job.status}).`;\n if (job.status === 'error') {\n return 'Processing failed — the file could not be checked. This is an execution error, not a verdict on the file.';\n }\n if (job.status === 'skipped') return 'Processing was skipped (unsupported for this file type).';\n switch (job.outcome) {\n case 'pass':\n return 'File is print-ready.';\n case 'warn':\n return 'File is usable with warnings — review the findings.';\n case 'fail':\n return 'Check completed successfully, but the file is NOT print-ready — see findings.';\n case 'fixed':\n return 'File had issues that were fixed automatically — use the fixed deliverable, not the original.';\n case 'unchanged':\n return 'Autofix ran but the file needed no changes.';\n case 'mixed':\n return 'Files in this job have differing verdicts — check each file.';\n default:\n return 'Completed (no verdict for this operation).';\n }\n}\n\n/**\n * Compact a job into what an agent needs: both axes, per-file evaluation\n * summaries, capped findings, and the (signed) deliverables. The raw report\n * never rides along — that's get_report territory.\n */\nexport function formatJobResult(run: RunOutcome): ToolResult {\n const { job, pending } = run;\n const verdict = verdictText(job, pending);\n const structured: Record<string, unknown> = {\n jobId: job.id,\n status: job.status,\n outcome: job.outcome ?? null,\n verdict,\n };\n if (pending) {\n structured.pending = true;\n structured.nextStep = `Wait a few seconds, then call get_job with jobId \"${job.id}\". Do NOT submit the file again — the job is already running.`;\n return jsonResult(structured, `${verdict} ${structured.nextStep as string}`);\n }\n\n const notes: string[] = [];\n let findingsBudget = FINDINGS_LIMIT;\n let truncated = false;\n\n const preflights = job.results?.preflight ?? [];\n if (preflights.length > 0) {\n structured.files = preflights.map((result) => {\n const file: Record<string, unknown> = {\n taskId: result.taskId,\n source: result.source,\n fileType: result.fileType,\n status: result.status,\n outcome: result.outcome ?? null,\n };\n const evaluation = evaluationOf(result);\n if (!evaluation) {\n file.hasEvaluation = false;\n file.note =\n 'No profile was applied, so there is no pass/fail evaluation — use get_report to inspect the raw report.';\n return file;\n }\n file.summary = evaluation.summary;\n const findings = evaluation.findings ?? [];\n const kept = findings.slice(0, Math.max(0, findingsBudget));\n findingsBudget -= kept.length;\n file.findings = kept.map(compactFinding);\n if (kept.length < findings.length) {\n file.findingsOmitted = findings.length - kept.length;\n truncated = true;\n }\n if (evaluation.recommendedAutofix) file.recommendedAutofix = evaluation.recommendedAutofix;\n return file;\n });\n if (truncated) {\n structured.findingsTruncated = true;\n notes.push('Findings were capped — use get_report for the full list.');\n }\n }\n\n const validates = job.results?.validate ?? [];\n if (validates.length > 0) {\n structured.validate = validates.map((result) => ({\n taskId: result.taskId,\n source: result.source,\n status: result.status,\n outcome: result.outcome ?? null,\n compliant: result.compliant,\n profiles: result.profiles.map((profile) => ({\n requested: profile.requested,\n matched: profile.matched,\n profileName: profile.profileName,\n compliant: profile.compliant,\n checks: profile.checks,\n rules: profile.rules,\n failureCount: profile.failures.length,\n failures: profile.failures.slice(0, 10),\n })),\n }));\n }\n\n const optimizes = job.results?.optimize ?? [];\n if (optimizes.length > 0) {\n structured.optimize = optimizes.map((result) => ({\n taskId: result.taskId,\n source: result.source,\n status: result.status,\n outcome: result.outcome ?? null,\n output: result.output\n ? {\n sizeBytes: result.output.sizeBytes,\n downloadUrl: result.output.downloadUrl,\n expiresIn: result.output.expiresIn,\n appliedFixes: result.output.appliedFixes,\n skippedFixes: result.output.skippedFixes,\n }\n : null,\n }));\n }\n\n const previews: Array<Record<string, unknown>> = [];\n for (const task of job.tasks) {\n for (const step of task.steps) {\n if (step.type !== 'previews' || !step.outputs?.length) continue;\n for (const output of step.outputs) {\n const pages = Array.isArray(output.pages) ? output.pages : [];\n previews.push({\n taskId: task.id,\n count: output.count,\n total: output.total,\n pages: pages.slice(0, PAGES_LIMIT),\n ...(pages.length > PAGES_LIMIT ? { pagesOmitted: pages.length - PAGES_LIMIT } : {}),\n });\n }\n }\n }\n if (previews.length > 0) structured.previews = previews;\n\n if (job.deliverables.length > 0) {\n structured.deliverables = job.deliverables.map(compactArtifact);\n notes.push(\n `${job.deliverables.length} deliverable(s); download URLs expire in ~60 minutes — re-call get_job for fresh ones.`,\n );\n }\n\n const text = [\n `${verdict} (status: ${job.status}, outcome: ${job.outcome ?? 'n/a'}, jobId: ${job.id})`,\n ...notes,\n ].join(' ');\n return jsonResult(structured, text);\n}\n\nexport function toolErrorResult(error: unknown): ToolResult {\n return { content: [{ type: 'text', text: errorText(error) }], isError: true };\n}\n\nfunction errorText(error: unknown): string {\n if (error instanceof AuthenticationError) {\n if (error.status === 403) {\n return `Forbidden: ${error.message}. A 403 usually means the fileRef was uploaded with a different API key — re-upload the file with this key and use the new fileRef.`;\n }\n return `Authentication failed: ${error.message}. Check the API key (FILECHECK_API_KEY for the local server, the Authorization header for the remote one) — it must be an active sk_… secret key.`;\n }\n if (error instanceof InvalidRequestError) {\n return `Invalid request: ${error.message}`;\n }\n if (error instanceof NotFoundError) {\n return `Not found: ${error.message}. Check the id — jobs are also soft-deleted by delete_job and expire per retention.`;\n }\n if (error instanceof RateLimitError) {\n return `Rate limited: ${error.message}. Back off and retry.`;\n }\n if (error instanceof ConnectionError) {\n return `Network failure talking to the Filecheck API: ${error.message}. Retry once; if it persists, check connectivity.`;\n }\n if (error instanceof FilecheckError) {\n if (error.status === 402) {\n return `Submissions are paused for this account (billing): ${error.message}. Top up credit in the Filecheck dashboard, then retry.`;\n }\n return `Filecheck API error${error.status ? ` (${error.status})` : ''}: ${error.message}`;\n }\n return error instanceof Error ? error.message : String(error);\n}\n","import { mkdir, stat, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { Artifact } from 'filecheck-node';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { jsonResult, toolErrorResult } from '../format.js';\n\nfunction describeDeliverables(deliverables: Artifact[]): string {\n return deliverables\n .map(\n (d, i) =>\n `[${i}] ${d.fileName ?? d.kind ?? d.role ?? 'unnamed'} (${d.mimeType ?? 'unknown type'})`,\n )\n .join(', ');\n}\n\nfunction pickDeliverable(\n deliverables: Artifact[],\n selector: number | string | undefined,\n): Artifact | null {\n if (selector === undefined) return deliverables.length === 1 ? (deliverables[0] ?? null) : null;\n if (typeof selector === 'number') return deliverables[selector] ?? null;\n return (\n deliverables.find((d) => d.fileName === selector) ??\n deliverables.find((d) => d.kind === selector || d.role === selector) ??\n null\n );\n}\n\n/** Registered only when `caps.localFiles` — the remote server has no disk. */\nexport function registerSaveArtifact(server: McpServer, { client }: ToolContext): void {\n server.registerTool(\n 'save_artifact',\n {\n title: 'Save a deliverable to disk',\n description:\n \"Download one of a job's deliverables (fixed file, optimized file, report, …) to a local path. \" +\n 'Re-fetches the job first so the download URL is fresh — pass the jobId, not a URL.',\n inputSchema: {\n jobId: z.string().describe('The job_… id whose deliverable to save.'),\n deliverable: z\n .union([z.number().int().min(0), z.string()])\n .optional()\n .describe(\n 'Index, fileName, kind, or role of the deliverable. Optional when the job has exactly one.',\n ),\n outPath: z\n .string()\n .describe(\n 'Where to save: a file path, or an existing directory (the deliverable fileName is appended).',\n ),\n },\n outputSchema: {\n savedTo: z.string(),\n bytes: z.number(),\n mimeType: z.string().nullable().optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const job = await client.jobs.retrieve(args.jobId);\n if (job.deliverables.length === 0) {\n return toolErrorResult(\n new Error(\n `Job ${args.jobId} has no deliverables (status: ${job.status}, outcome: ${job.outcome ?? 'n/a'}).`,\n ),\n );\n }\n const chosen = pickDeliverable(job.deliverables, args.deliverable);\n if (!chosen) {\n return toolErrorResult(\n new Error(\n `Could not pick a deliverable${args.deliverable !== undefined ? ` matching '${args.deliverable}'` : ' — the job has several'}. Available: ${describeDeliverables(job.deliverables)}. Pass one as 'deliverable'.`,\n ),\n );\n }\n if (!chosen.downloadUrl) {\n return toolErrorResult(\n new Error('The selected deliverable has no download URL on a fresh read.'),\n );\n }\n\n const response = await fetch(chosen.downloadUrl);\n if (!response.ok) {\n return toolErrorResult(new Error(`Download failed with status ${response.status}.`));\n }\n const bytes = Buffer.from(await response.arrayBuffer());\n\n let target = args.outPath;\n const existing = await stat(target).catch(() => null);\n if (existing?.isDirectory()) {\n target = join(target, chosen.fileName ?? `${args.jobId}-deliverable`);\n } else {\n await mkdir(dirname(target), { recursive: true });\n }\n await writeFile(target, bytes);\n\n return jsonResult(\n { savedTo: target, bytes: bytes.length, mimeType: chosen.mimeType ?? null },\n `Saved ${chosen.fileName ?? 'deliverable'} (${bytes.length} bytes) to ${target}.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { LibraryItem } from 'filecheck-node';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { jsonResult, toolErrorResult } from '../format.js';\n\nconst CATALOG_TYPES = ['profiles', 'rules', 'workflows', 'connectors', 'optimize-presets'] as const;\ntype CatalogType = (typeof CATALOG_TYPES)[number];\n\n/** Listing keeps only the identifying scalars; retrieve returns the full item. */\nfunction compactItem(item: LibraryItem): Record<string, unknown> {\n const out: Record<string, unknown> = { id: item.id };\n for (const key of ['title', 'name', 'kind', 'description', 'enabled', 'source']) {\n const value = item[key];\n if (value === null || ['string', 'number', 'boolean'].includes(typeof value)) out[key] = value;\n }\n return out;\n}\n\nexport function registerListCatalog(server: McpServer, { client }: ToolContext): void {\n const resources: Record<\n CatalogType,\n { list(): Promise<LibraryItem[]>; retrieve(id: string): Promise<LibraryItem> }\n > = {\n profiles: client.profiles,\n rules: client.rules,\n workflows: client.workflows,\n connectors: client.connectors,\n 'optimize-presets': client.optimizePresets,\n };\n\n server.registerTool(\n 'list_catalog',\n {\n title: 'Browse the resource catalog',\n description:\n \"Browse the tenant's resource catalog: preflight `profiles` (check-sets for check_file/fix_file), intake `rules`, `workflows`, `connectors`, and `optimize-presets` (params objects for optimize_file). \" +\n \"Profiles carry a `kind` ('pdf' or 'raster') — pick a profile whose kind matches the file being checked, or most checks come back not-applicable. \" +\n \"Entries tagged source:'domain' are the tenant's own; source:'store' are Filecheck built-ins. Pass `id` for the full definition of one entry.\",\n inputSchema: {\n type: z.enum(CATALOG_TYPES).describe('Which collection to browse.'),\n id: z.string().optional().describe('Fetch one entry in full instead of listing.'),\n },\n outputSchema: {\n type: z.string(),\n items: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('Compact listing (no id given).'),\n item: z.object({}).passthrough().optional().describe('Full entry (id given).'),\n },\n annotations: { readOnlyHint: true, openWorldHint: true },\n },\n async (args) => {\n try {\n const resource = resources[args.type];\n if (args.id) {\n const item = await resource.retrieve(args.id);\n return jsonResult({ type: args.type, item }, `${args.type} entry ${args.id}.`);\n }\n const items = (await resource.list()).map(compactItem);\n const kindCounts = new Map<string, number>();\n for (const item of items) {\n if (typeof item.kind === 'string')\n kindCounts.set(item.kind, (kindCounts.get(item.kind) ?? 0) + 1);\n }\n const byKind = kindCounts.size\n ? ` (${[...kindCounts].map(([kind, count]) => `${count} ${kind}`).join(', ')})`\n : '';\n const kindHint =\n args.type === 'profiles' && kindCounts.size\n ? \" Pick a profile whose kind matches the file's type (pdf vs raster).\"\n : '';\n return jsonResult(\n { type: args.type, items },\n `${items.length} ${args.type} entr${items.length === 1 ? 'y' : 'ies'}${byKind}.${kindHint} Pass an id for the full definition.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import { readFile, stat } from 'node:fs/promises';\nimport { basename, extname } from 'node:path';\nimport type { Filecheck, SourceRef } from 'filecheck-node';\nimport type { Capabilities } from './capabilities.js';\nimport type { SourceInput } from './schemas.js';\n\n/** Reading a multi-hundred-MB file into memory on the user's machine is rude. */\nconst MAX_LOCAL_BYTES = 200 * 1024 * 1024;\n\nconst MIME_BY_EXT: Record<string, string> = {\n '.pdf': 'application/pdf',\n '.png': 'image/png',\n '.jpg': 'image/jpeg',\n '.jpeg': 'image/jpeg',\n '.tif': 'image/tiff',\n '.tiff': 'image/tiff',\n '.webp': 'image/webp',\n '.svg': 'image/svg+xml',\n '.eps': 'application/postscript',\n '.ai': 'application/postscript',\n '.zip': 'application/zip',\n};\n\n/**\n * Turn a tool `source` argument into an API `SourceRef`. A `filePath` is\n * uploaded out-of-band (presigned S3 POST) so file bytes never transit the\n * model context; `url`/`fileRef` pass through.\n */\nexport async function resolveSource(\n client: Filecheck,\n caps: Capabilities,\n source: SourceInput,\n): Promise<SourceRef & { name?: string }> {\n const locators = [\n caps.localFiles && source.filePath ? 'filePath' : null,\n source.url ? 'url' : null,\n source.fileRef ? 'fileRef' : null,\n ].filter(Boolean);\n\n if (locators.length !== 1) {\n const allowed = caps.localFiles ? 'filePath, url, or fileRef' : 'url or fileRef';\n throw new Error(\n locators.length === 0\n ? `source needs exactly one of ${allowed} — none was provided.`\n : `source needs exactly one of ${allowed} — got ${locators.join(' + ')}.`,\n );\n }\n\n if (source.filePath && caps.localFiles) {\n const info = await stat(source.filePath).catch(() => null);\n if (!info?.isFile()) {\n throw new Error(`filePath not found or not a file: ${source.filePath}`);\n }\n if (info.size > MAX_LOCAL_BYTES) {\n throw new Error(\n `File is ${Math.round(info.size / 1024 / 1024)} MB; filePath uploads are capped at ${MAX_LOCAL_BYTES / 1024 / 1024} MB. Host the file and pass a url source instead.`,\n );\n }\n const fileName = source.name ?? basename(source.filePath);\n const upload = await client.uploads.create(await readFile(source.filePath), {\n fileName,\n mimeType: MIME_BY_EXT[extname(source.filePath).toLowerCase()],\n });\n return { fileRef: upload.fileRef, name: fileName };\n }\n\n if (source.url) {\n return {\n url: source.url,\n ...(source.headers ? { headers: source.headers } : {}),\n ...(source.name ? { name: source.name } : {}),\n };\n }\n return { fileRef: source.fileRef, ...(source.name ? { name: source.name } : {}) };\n}\n","import { isTerminal } from 'filecheck-node';\nimport type { Filecheck, Job, JobResult, WaitOptions } from 'filecheck-node';\nimport type { Capabilities } from './capabilities.js';\n\n/**\n * A sync submit makes the API hold the request up to ~27 s. Only worth it\n * when our own budget can absorb that hold (the stdio CLI); the remote\n * Lambda (20 s budget inside a 29 s gateway ceiling) submits async and\n * polls instead.\n */\nconst SYNC_HOLD_THRESHOLD_MS = 30_000;\nconst POLL_MIN_MS = 500;\nconst POLL_MAX_MS = 2_000;\n\nexport interface RunOutcome {\n job: Job;\n pending: boolean;\n}\n\nconst sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));\n\n/**\n * Submit a job and wait for a terminal status within the capability budget.\n * Always ends on a `GET /jobs/{id}` when terminal — submit responses carry\n * unsigned artifacts; only the detail read mints download URLs.\n */\nexport async function submitAndWait(\n client: Filecheck,\n caps: Capabilities,\n submit: (wait: WaitOptions) => Promise<JobResult>,\n waitSeconds?: number,\n): Promise<RunOutcome> {\n const budgetMs = Math.min(\n waitSeconds !== undefined ? waitSeconds * 1000 : caps.maxWaitMs,\n caps.maxWaitMs,\n );\n const deadline = Date.now() + budgetMs;\n const useSync = budgetMs >= SYNC_HOLD_THRESHOLD_MS;\n\n const { job } = await submit(\n useSync ? { wait: true, waitTimeoutMs: budgetMs } : { wait: false, waitTimeoutMs: 0 },\n );\n\n let final = job;\n if (isTerminal(final)) {\n final = await client.jobs.retrieve(final.id);\n } else if (Date.now() < deadline) {\n final = await poll(client, final.id, deadline);\n }\n return { job: final, pending: !isTerminal(final) };\n}\n\nasync function poll(client: Filecheck, id: string, deadline: number): Promise<Job> {\n let delay = POLL_MIN_MS;\n let job = await client.jobs.retrieve(id);\n while (!isTerminal(job) && Date.now() < deadline) {\n await sleep(Math.min(delay, Math.max(0, deadline - Date.now())));\n delay = Math.min(delay * 2, POLL_MAX_MS);\n job = await client.jobs.retrieve(id);\n }\n return job;\n}\n","import { z } from 'zod';\nimport type { Capabilities } from './capabilities.js';\n\n/**\n * Shared zod fragments for tool input schemas. Kept aligned with the API's\n * JSON schemas (`filecheck-api/_layers/mixins/nodejs/schemas/*.json`).\n */\n\nexport interface SourceInput {\n filePath?: string;\n url?: string;\n fileRef?: string;\n headers?: Record<string, string>;\n name?: string;\n}\n\n/**\n * The file to process. Exactly one of the locator fields must be set —\n * enforced in `resolveSource` (a refine would not survive JSON-schema\n * conversion, and the runtime error message is clearer).\n */\nexport function makeSourceSchema(caps: Capabilities) {\n const shape: Record<string, z.ZodTypeAny> = {\n url: z\n .string()\n .regex(/^https?:\\/\\//, 'must be an http(s) URL')\n .optional()\n .describe('Public (or header-authenticated) URL to fetch the file from.'),\n fileRef: z\n .string()\n .regex(/^upload_/, 'must start with \"upload_\"')\n .optional()\n .describe('An `upload_…` reference from a previous upload with this same API key.'),\n headers: z\n .record(z.string())\n .optional()\n .describe('Extra HTTP headers sent when fetching `url` (e.g. Authorization).'),\n name: z.string().optional().describe('Original filename hint.'),\n };\n if (caps.localFiles) {\n shape.filePath = z\n .string()\n .optional()\n .describe('Absolute path to a file on the local machine (uploaded for you; max 200 MB).');\n }\n const which = caps.localFiles ? '`filePath`, `url`, or `fileRef`' : '`url` or `fileRef`';\n const remoteHint = caps.localFiles\n ? ''\n : ' For files on the local machine, run the local server instead: `npx filecheck-mcp`.';\n return z.object(shape).describe(`The file to process. Set exactly one of ${which}.${remoteHint}`);\n}\n\nconst bounded = (min: number, max: number) => z.number().int().min(min).max(max);\n\nexport const contextSchema = z\n .object({\n artworkSize: z\n .object({\n width_mm: z.number().positive().max(100_000),\n height_mm: z.number().positive().max(100_000),\n })\n .optional()\n .describe(\n 'Finished (trim) size of the product ordered. Both dimensions are required for the page-size check to take effect.',\n ),\n pageCount: z\n .object({ min: bounded(0, 10_000).optional(), max: bounded(0, 10_000).optional() })\n .optional()\n .describe(\n 'Expected page count. Set min === max for an exact count (a double-sided card is 2).',\n ),\n fileCount: z\n .object({ min: bounded(0, 100).optional(), max: bounded(0, 100).optional() })\n .optional()\n .describe('Expected number of separate files. NOT the order quantity.'),\n bleed: z\n .object({ required_mm: z.number().min(0).max(500) })\n .optional()\n .describe(\n 'Bleed the chosen finish requires (a hemmed banner needs more than a trimmed card).',\n ),\n safety: z\n .object({ min_mm: z.number().min(0).max(500) })\n .optional()\n .describe('Safe margin the chosen finish requires (eyelets and pole pockets eat into it).'),\n })\n .describe(\n 'What the customer ordered — finished size, pages, finish. Narrows the resolved profile to the ordered product, so one profile serves every size. Only tightens checks the profile already has enabled; no effect without a profileId. Pass it whenever the product dimensions are known.',\n );\n\nexport const waitSecondsSchema = z\n .number()\n .int()\n .min(0)\n .max(600)\n .optional()\n .describe(\n 'Max seconds to wait for the job to finish before returning a pending result (capped by the server; 0 = return immediately). Omit for the default budget.',\n );\n\n/**\n * Output shape shared by every job-returning tool. Deliberately permissive —\n * the SDK validates structuredContent against this, and the API may grow\n * fields; enums are documented in descriptions instead of enforced.\n */\nexport const jobOutputShape = {\n jobId: z.string(),\n status: z\n .string()\n .describe(\n 'Execution lifecycle: pending | running | done | skipped | error. Says nothing about the verdict.',\n ),\n outcome: z\n .string()\n .nullable()\n .optional()\n .describe(\n 'Verdict: pass | warn | fail | fixed | unchanged | na | mixed. Independent of status — status:done + outcome:fail means \"checked successfully, file is NOT print-ready\".',\n ),\n pending: z\n .boolean()\n .optional()\n .describe('True when the job has not reached a terminal status yet.'),\n verdict: z.string().describe('Human-readable one-line verdict.'),\n files: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('Per-file preflight results: summary, capped findings, recommended autofix.'),\n validate: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('PDF/A / PDF/UA conformance results.'),\n optimize: z.array(z.object({}).passthrough()).optional().describe('Optimization results.'),\n previews: z.array(z.object({}).passthrough()).optional().describe('Rendered page previews.'),\n deliverables: z\n .array(z.object({}).passthrough())\n .optional()\n .describe(\n 'Final file set. downloadUrl expires in ~60 minutes — re-call get_job for fresh URLs, never store them.',\n ),\n findingsTruncated: z\n .boolean()\n .optional()\n .describe('True when findings were capped; use get_report for the rest.'),\n nextStep: z\n .string()\n .optional()\n .describe('Present when action is needed (e.g. poll get_job). Follow it.'),\n};\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { contextSchema, jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerCheckFile(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'check_file',\n {\n title: 'Check (preflight) a print file',\n description:\n 'Check a file for print-readiness against a preflight profile. Returns a verdict with findings and a recommended autofix. ' +\n 'READ THE TWO AXES: `status` is execution (done/error), `outcome` is the verdict — status:done + outcome:fail means the check completed and the file is NOT print-ready; do not treat done as success. ' +\n 'Pass `context` whenever the ordered product dimensions are known. Omitting `profileId` runs every supported check but returns raw findings with no pass/fail verdict. ' +\n 'If the result is pending, poll get_job — never resubmit.',\n inputSchema: {\n source: makeSourceSchema(caps),\n profileId: z\n .string()\n .optional()\n .describe(\n \"Preflight profile id (discover via list_catalog type 'profiles'). Omit to run all checks with no verdict.\",\n ),\n ruleId: z\n .string()\n .optional()\n .describe(\n \"Intake rule id (list_catalog type 'rules'). When set, the rule's flow decides steps and profile per file type; profileId is then a fallback hint only.\",\n ),\n context: contextSchema.optional(),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n args.ruleId\n ? client.jobs.create({\n // POST /jobs requires steps per source; the rule overrides them.\n sources: [\n {\n ...source,\n steps: [\n {\n type: 'preflight',\n ...(args.profileId ? { params: { profileId: args.profileId } } : {}),\n },\n ],\n },\n ],\n ruleId: args.ruleId,\n ...(args.context ? { context: args.context } : {}),\n ...wait,\n })\n : client.jobs.preflight({\n sources: [\n { ...source, ...(args.profileId ? { profileId: args.profileId } : {}) },\n ],\n ...(args.context ? { context: args.context } : {}),\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { contextSchema, jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerFixFile(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'fix_file',\n {\n title: 'Fix a print file automatically',\n description:\n 'Preflight a file, apply every safe automatic fix, and (by default) re-check the fixed output. The fixed file is returned as a deliverable — use IT, not the original. ' +\n 'outcome:fixed means issues were repaired; outcome:fail after a repreflight means problems remain that autofix cannot solve. ' +\n '`status` is execution, `outcome` is the verdict — read both. If pending, poll get_job; never resubmit.',\n inputSchema: {\n source: makeSourceSchema(caps),\n profileId: z\n .string()\n .optional()\n .describe(\n \"Preflight profile that decides what counts as a problem (list_catalog type 'profiles').\",\n ),\n context: contextSchema.optional(),\n repreflight: z\n .boolean()\n .optional()\n .describe('Re-run preflight on the fixed output to confirm the repair (default true).'),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.fix({\n sources: [{ ...source, ...(args.profileId ? { profileId: args.profileId } : {}) }],\n repreflight: args.repreflight ?? true,\n ...(args.context ? { context: args.context } : {}),\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { isTerminal } from 'filecheck-node';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, jsonResult, toolErrorResult } from '../format.js';\nimport { jobOutputShape } from '../schemas.js';\n\nexport function registerJobTools(server: McpServer, { client }: ToolContext): void {\n server.registerTool(\n 'get_job',\n {\n title: 'Get a job (poll / refresh URLs)',\n description:\n 'Fetch a job by id: current status + outcome, per-file results, and FRESHLY SIGNED download URLs (~60 min TTL). ' +\n 'This is both the polling target for pending jobs and the way to refresh expired download URLs. ' +\n '`status` is execution, `outcome` is the verdict — status:done + outcome:fail means checked successfully but NOT print-ready.',\n inputSchema: {\n jobId: z.string().describe('The job_… id returned by a submit tool.'),\n },\n outputSchema: jobOutputShape,\n annotations: { readOnlyHint: true, openWorldHint: true },\n },\n async (args) => {\n try {\n const job = await client.jobs.retrieve(args.jobId);\n return formatJobResult({ job, pending: !isTerminal(job) });\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n\n server.registerTool(\n 'list_jobs',\n {\n title: 'List recent jobs',\n description:\n 'List recent jobs (newest first) as lean envelopes: id, status, outcome, timestamps. ' +\n 'Use get_job for details and download URLs. Pass the returned nextKey to fetch the next page.',\n inputSchema: {\n limit: z.number().int().min(1).max(100).optional().describe('Page size (default 20).'),\n nextKey: z.string().optional().describe('Opaque pagination cursor from a previous call.'),\n },\n outputSchema: {\n jobs: z.array(z.object({}).passthrough()),\n nextKey: z\n .string()\n .nullable()\n .optional()\n .describe('Pass back to fetch the next page; absent on the last page.'),\n },\n annotations: { readOnlyHint: true, openWorldHint: true },\n },\n async (args) => {\n try {\n const page = await client.jobs.list({ limit: args.limit ?? 20, nextKey: args.nextKey });\n const jobs = page.jobs.map((job) => ({\n jobId: job.id,\n status: job.status,\n outcome: job.outcome ?? null,\n createdAt: job.createdAt,\n channel: job.channel,\n orderId: job.orderId,\n fileCount: job.tasks.length,\n }));\n const structured: Record<string, unknown> = { jobs };\n if (page.nextKey) structured.nextKey = page.nextKey;\n return jsonResult(\n structured,\n `${jobs.length} job(s)${page.nextKey ? ' (more available via nextKey)' : ''}. Remember: outcome is the verdict, status is only execution.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n\n server.registerTool(\n 'delete_job',\n {\n title: 'Delete a job',\n description:\n 'Soft-delete a job and its tasks. The job disappears from listings and its artifacts are scheduled for cleanup. Not undoable via the API.',\n inputSchema: {\n jobId: z.string().describe('The job_… id to delete.'),\n },\n outputSchema: {\n deleted: z.boolean(),\n jobId: z.string(),\n taskIds: z.array(z.string()).optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const result = await client.jobs.del(args.jobId);\n return jsonResult(\n {\n deleted: true,\n jobId: result.id,\n ...(result.taskIds ? { taskIds: result.taskIds } : {}),\n },\n `Job ${result.id} deleted.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerOptimizeFile(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'optimize_file',\n {\n title: 'Optimize a file',\n description:\n 'Optimize a PDF or image: downsample and recompress images, strip dead weight, flatten. ' +\n \"Options are namespaced under `params.pdf` and/or `params.raster` (see the schema at https://filecheck.io/docs/schemas/jobs-optimize-post.json). An optimize preset from list_catalog type 'optimize-presets' contains a ready-made params object you can pass through. \" +\n 'The optimized file arrives as a deliverable with a download URL (~60 min TTL).',\n inputSchema: {\n source: makeSourceSchema(caps),\n params: z\n .record(z.unknown())\n .optional()\n .describe('Namespaced optimize options: `{ pdf: {…}, raster: {…} }`. Omit for defaults.'),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.optimize({ sources: [{ ...source, params: args.params ?? {} }], ...wait }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerRenderPreviews(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'render_previews',\n {\n title: 'Render page previews',\n description:\n \"Render raster preview images of a file's pages — useful to actually look at a file. \" +\n 'Preview URLs ride in the `previews` output (capped at 20 pages per file) and expire like all download URLs (~60 min).',\n inputSchema: {\n source: makeSourceSchema(caps),\n params: z\n .record(z.unknown())\n .optional()\n .describe(\n 'Optional rendering options passed through to the previews engine (size, page range, format).',\n ),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.previews({\n sources: [{ ...source, ...(args.params ? { params: args.params } : {}) }],\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { PreflightResult } from 'filecheck-node';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { jsonResult, toolErrorResult } from '../format.js';\n\nconst SEVERITIES = ['reject', 'warn', 'ignore'] as const;\n\nexport function registerGetReport(server: McpServer, { client }: ToolContext): void {\n server.registerTool(\n 'get_report',\n {\n title: 'Read the raw preflight report',\n description:\n 'Drill into the full preflight report of a checked file — the raw analysis (pages, fonts, images, color, spot colors, layers, …) plus the complete evaluation findings that job results cap. ' +\n 'Call without `section` first for an overview of available sections and their sizes, then request one section at a time; array sections are paginated with offset/limit. ' +\n '`severity` filters the evaluation findings instead.',\n inputSchema: {\n jobId: z.string().describe('The job_… id of a completed check.'),\n taskIndex: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Which file of the job (0-based, default 0) — jobs can contain several files.'),\n section: z\n .string()\n .optional()\n .describe(\n \"Report section to read (e.g. 'fonts', 'images', 'pages', 'evaluation'). Omit for the overview.\",\n ),\n severity: z\n .enum(SEVERITIES)\n .optional()\n .describe('Return only evaluation findings of this severity (overrides section).'),\n offset: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Pagination offset into array sections (default 0).'),\n limit: z\n .number()\n .int()\n .min(1)\n .max(200)\n .optional()\n .describe('Max array entries to return (default 50).'),\n },\n outputSchema: {\n jobId: z.string(),\n taskIndex: z.number(),\n section: z.string().optional(),\n sections: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('Overview: available sections and sizes.'),\n data: z.unknown().optional().describe('The requested slice.'),\n total: z.number().optional(),\n offset: z.number().optional(),\n returned: z.number().optional(),\n },\n annotations: { readOnlyHint: true, openWorldHint: true },\n },\n async (args) => {\n try {\n const job = await client.jobs.retrieve(args.jobId);\n const preflights: PreflightResult[] = job.results?.preflight ?? [];\n const taskIndex = args.taskIndex ?? 0;\n const result = preflights[taskIndex];\n if (!result) {\n return toolErrorResult(\n new Error(\n preflights.length === 0\n ? `Job ${args.jobId} has no preflight results (status: ${job.status}). If it is still running, poll get_job first.`\n : `taskIndex ${taskIndex} is out of range — this job has ${preflights.length} preflighted file(s).`,\n ),\n );\n }\n const report = result.report as Record<string, unknown> | null;\n if (!report) {\n return toolErrorResult(\n new Error(`No report is stored for file ${taskIndex} of job ${args.jobId}.`),\n );\n }\n\n const offset = args.offset ?? 0;\n const limit = args.limit ?? 50;\n const base = { jobId: args.jobId, taskIndex };\n\n if (args.severity) {\n const evaluation = report.evaluation as\n | { findings?: Array<Record<string, unknown>> }\n | undefined;\n const findings = (evaluation?.findings ?? []).filter((f) => f.severity === args.severity);\n const slice = findings.slice(offset, offset + limit);\n return jsonResult(\n {\n ...base,\n section: 'evaluation.findings',\n data: slice,\n total: findings.length,\n offset,\n returned: slice.length,\n },\n `${findings.length} ${args.severity} finding(s); returned ${slice.length} from offset ${offset}.`,\n );\n }\n\n if (args.section) {\n if (!(args.section in report)) {\n return toolErrorResult(\n new Error(\n `Section '${args.section}' not in this report. Available: ${Object.keys(report).join(', ')}.`,\n ),\n );\n }\n const value = report[args.section];\n if (Array.isArray(value)) {\n const slice = value.slice(offset, offset + limit);\n return jsonResult(\n {\n ...base,\n section: args.section,\n data: slice,\n total: value.length,\n offset,\n returned: slice.length,\n },\n `Section '${args.section}': ${value.length} entries; returned ${slice.length} from offset ${offset}.`,\n );\n }\n return jsonResult(\n { ...base, section: args.section, data: value },\n `Section '${args.section}'.`,\n );\n }\n\n const sections = Object.entries(report).map(([key, value]) => ({\n key,\n kind: Array.isArray(value) ? 'array' : value === null ? 'null' : typeof value,\n ...(Array.isArray(value) ? { count: value.length } : {}),\n }));\n return jsonResult(\n { ...base, sections },\n `Report for file ${taskIndex} of job ${args.jobId} — ${sections.length} sections. Request one via 'section'.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nconst PROFILE_CODES = [\n 'auto',\n '1a',\n '1b',\n '2a',\n '2b',\n '2u',\n '3a',\n '3b',\n '3u',\n '4',\n '4e',\n '4f',\n 'ua1',\n 'ua2',\n] as const;\n\nexport function registerValidatePdf(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'validate_pdf',\n {\n title: 'Validate PDF/A / PDF/UA conformance',\n description:\n 'Validate a PDF against PDF/A (archival) and PDF/UA (accessibility) conformance levels using veraPDF. ' +\n \"Levels: 'auto' detects the claimed level; '1b'/'2b'/'3b' etc. are PDF/A flavors; 'ua1'/'ua2' are PDF/UA. \" +\n 'Read `compliant` per profile for the verdict; `status` only says whether validation ran.',\n inputSchema: {\n source: makeSourceSchema(caps),\n levels: z\n .array(z.enum(PROFILE_CODES))\n .optional()\n .describe(\n \"Conformance levels to check (default 'auto' — detect from the file's own claim).\",\n ),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.validate({\n sources: [\n {\n ...source,\n ...(args.levels?.length\n ? { profile: args.levels.length === 1 ? args.levels[0] : [...args.levels] }\n : {}),\n },\n ],\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","/** Injected from package.json at build time (tsup `env`); fallback covers src-mode runs (tests). */\nexport const VERSION = process.env.FILECHECK_MCP_VERSION ?? '0.0.0-dev';\n","import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { Filecheck } from 'filecheck-node';\nimport type { Capabilities, ToolContext } from './capabilities.js';\nimport { registerSaveArtifact } from './tools/artifact.js';\nimport { registerListCatalog } from './tools/catalog.js';\nimport { registerCheckFile } from './tools/check.js';\nimport { registerFixFile } from './tools/fix.js';\nimport { registerJobTools } from './tools/jobs.js';\nimport { registerOptimizeFile } from './tools/optimize.js';\nimport { registerRenderPreviews } from './tools/previews.js';\nimport { registerGetReport } from './tools/report.js';\nimport { registerValidatePdf } from './tools/validate.js';\nimport { VERSION } from './version.js';\n\nconst INSTRUCTIONS = `Filecheck checks print files (PDF, images) for print-readiness, fixes what it can automatically, validates PDF/A / PDF/UA conformance, optimizes, and renders previews.\n\nCRITICAL — every job has two independent axes:\n- status = execution lifecycle: pending | running | done | skipped | error\n- outcome = verdict: pass | warn | fail | fixed | unchanged | na | mixed\nstatus:done + outcome:fail means the check ran successfully AND the file is NOT print-ready. Never report success from status alone.\n\nDownload URLs are presigned and expire after ~60 minutes; get_job re-mints them on every call — never store or cache URLs.\nIf a tool returns pending:true, poll get_job with the returned jobId. Never resubmit a file that is already processing.\nTypical flow: check_file → (findings autofixable?) fix_file → download/save deliverables. Discover profiles and rules with list_catalog.`;\n\nexport interface CreateFilecheckMcpOptions {\n /** A configured filecheck-node client (carries the API key). */\n client: Filecheck;\n /** What the hosting process can do; shapes which tools and fields exist. */\n capabilities: Capabilities;\n}\n\n/**\n * Build the Filecheck MCP server. Transport-agnostic: the stdio CLI and the\n * remote Streamable HTTP Lambda both consume this factory.\n */\nexport function createFilecheckMcp({ client, capabilities }: CreateFilecheckMcpOptions): McpServer {\n const server = new McpServer(\n { name: 'filecheck', version: VERSION },\n { instructions: INSTRUCTIONS },\n );\n const ctx: ToolContext = { client, caps: capabilities };\n\n registerCheckFile(server, ctx);\n registerFixFile(server, ctx);\n registerValidatePdf(server, ctx);\n registerOptimizeFile(server, ctx);\n registerRenderPreviews(server, ctx);\n registerJobTools(server, ctx);\n registerListCatalog(server, ctx);\n registerGetReport(server, ctx);\n if (capabilities.localFiles) registerSaveArtifact(server, ctx);\n\n return server;\n}\n","import type { Filecheck } from 'filecheck-node';\n\n/**\n * What the hosting process can do. Tools are SHAPED at registration time by\n * these flags (fields and whole tools appear or disappear) rather than\n * erroring at call time — agents should never see affordances they can't use.\n */\nexport interface Capabilities {\n /**\n * Whether this server process can read and write the local filesystem\n * (true for the stdio CLI, false for the remote Lambda). Gates the\n * `filePath` source field and the `save_artifact` tool.\n */\n localFiles: boolean;\n /**\n * Max total wait budget (ms) a submit tool may spend before returning a\n * `pending` result with polling guidance. Budgets ≥ 30 s also allow\n * holding the API's own ~27 s sync-submit wait.\n */\n maxWaitMs: number;\n}\n\n/** stdio CLI: local disk access, generous wait. */\nexport const LOCAL_CAPABILITIES: Capabilities = { localFiles: true, maxWaitMs: 180_000 };\n\n/** Remote Lambda: no disk, budget safely inside the 29 s gateway ceiling. */\nexport const REMOTE_CAPABILITIES: Capabilities = { localFiles: false, maxWaitMs: 20_000 };\n\n/** Passed to every tool's register function. */\nexport interface ToolContext {\n client: Filecheck;\n caps: Capabilities;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/format.ts","../src/tools/artifact.ts","../src/annotations.ts","../src/tools/catalog.ts","../src/resolve-source.ts","../src/run-job.ts","../src/schemas.ts","../src/tools/check.ts","../src/tools/fix.ts","../src/tools/jobs.ts","../src/tools/optimize.ts","../src/tools/previews.ts","../src/tools/report.ts","../src/api-schemas/connector.json","../src/api-schemas/destination.json","../src/api-schemas/optimize-preset.json","../src/api-schemas/product-map.json","../src/api-schemas/profile.json","../src/api-schemas/rule.json","../src/api-schemas/settings.json","../src/api-schemas/webhook.json","../src/api-schemas/workflow.json","../src/schema-reference.ts","../src/tools/setup.ts","../src/tools/validate.ts","../src/version.ts","../src/server.ts","../src/capabilities.ts"],"names":["AuthenticationError","InvalidRequestError","NotFoundError","RateLimitError","ConnectionError","FilecheckError","z","stat","join","mkdir","dirname","writeFile","basename","readFile","extname","isTerminal","CATALOG_TYPES","McpServer"],"mappings":";;;;;;;;;AAYA,IAAM,cAAA,GAAiB,EAAA;AAEvB,IAAM,WAAA,GAAc,EAAA;AAGpB,IAAM,oBAAA,uBAA2B,GAAA,CAAI;AAAA,EACnC,QAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAC,CAAA;AAeM,SAAS,UAAA,CAAW,YAAqC,IAAA,EAA0B;AACxF,EAAA,OAAO,EAAE,OAAA,EAAS,CAAC,EAAE,IAAA,EAAM,QAAQ,IAAA,EAAM,CAAA,EAAG,iBAAA,EAAmB,UAAA,EAAW;AAC5E;AAEA,SAAS,eAAe,OAAA,EAA2D;AACjF,EAAA,MAAM,UAAU,OAAA,CAAQ,OAAA;AACxB,EAAA,MAAM,GAAA,GAA+B;AAAA,IACnC,WAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,QAAQ,OAAA,CAAQ,MAAA;AAAA,IAChB,UAAU,OAAA,CAAQ,QAAA;AAAA,IAClB,WAAA,EAAa,SAAS,SAAA,KAAc;AAAA,GACtC;AAGA,EAAA,KAAA,MAAW,CAAC,GAAA,EAAK,KAAK,KAAK,MAAA,CAAO,OAAA,CAAQ,OAAO,CAAA,EAAG;AAClD,IAAA,IAAI,oBAAA,CAAqB,GAAA,CAAI,GAAG,CAAA,IAAK,UAAU,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A,mBAAA,CAAoB,QAAQ,GAAG,CAAA;AAC/B,EAAA,iBAAA,CAAkB,QAAQ,GAAG,CAAA;AAC7B,EAAA,kBAAA,CAAmB,QAAQ,GAAG,CAAA;AAC9B,EAAA,IAAI,YAAA,CAAa,UAAA,EAAY,oBAAA,CAAqB,MAAA,EAAQ,GAAG,CAAA;AAE7D,EAAA,OAAO,MAAA;AACT;;;AC1CO,IAAM,kBAAA,GAAmC,EAAE,UAAA,EAAY,IAAA,EAAM,WAAW,IAAA;AAGxE,IAAM,mBAAA,GAAoC,EAAE,UAAA,EAAY,KAAA,EAAO,WAAW,GAAA","file":"index.cjs","sourcesContent":["import {\n AuthenticationError,\n ConnectionError,\n FilecheckError,\n InvalidRequestError,\n NotFoundError,\n RateLimitError,\n} from 'filecheck-node';\nimport type { Artifact, Job, PreflightResult } from 'filecheck-node';\nimport type { RunOutcome } from './run-job.js';\n\n/** Findings cap across all files of a job — the rest lives behind get_report. */\nconst FINDINGS_LIMIT = 20;\n/** Preview pages cap per task. */\nconst PAGES_LIMIT = 20;\n\n/** Keys that are huge (geometry, fix params) or already lifted out. */\nconst FINDING_KEYS_HANDLED = new Set([\n 'locate',\n 'autofix',\n 'overlay',\n 'sectionId',\n 'ruleId',\n 'severity',\n]);\n\ninterface Evaluation {\n findings?: Array<Record<string, unknown>>;\n summary?: Record<string, unknown>;\n recommendedAutofix?: unknown;\n}\n\nexport interface ToolResult {\n [key: string]: unknown;\n content: Array<{ type: 'text'; text: string }>;\n structuredContent?: Record<string, unknown>;\n isError?: boolean;\n}\n\nexport function jsonResult(structured: Record<string, unknown>, text: string): ToolResult {\n return { content: [{ type: 'text', text }], structuredContent: structured };\n}\n\nfunction compactFinding(finding: Record<string, unknown>): Record<string, unknown> {\n const autofix = finding.autofix as { available?: boolean } | undefined;\n const out: Record<string, unknown> = {\n sectionId: finding.sectionId,\n ruleId: finding.ruleId,\n severity: finding.severity,\n autofixable: autofix?.available === true,\n };\n // Keep the short scalar hit details (page numbers, measured values, …);\n // drop geometry and nested blobs.\n for (const [key, value] of Object.entries(finding)) {\n if (FINDING_KEYS_HANDLED.has(key) || value === undefined) continue;\n if (value === null || ['string', 'number', 'boolean'].includes(typeof value)) out[key] = value;\n }\n return out;\n}\n\nfunction compactArtifact(artifact: Artifact): Record<string, unknown> {\n const { bucket: _bucket, key: _key, ...rest } = artifact;\n return rest;\n}\n\nfunction evaluationOf(result: PreflightResult): Evaluation | null {\n const report = result.report as { evaluation?: Evaluation } | null;\n return report?.evaluation ?? null;\n}\n\nexport function verdictText(job: Job, pending: boolean): string {\n if (pending) return `Job ${job.id} is still processing (status: ${job.status}).`;\n if (job.status === 'error') {\n return 'Processing failed — the file could not be checked. This is an execution error, not a verdict on the file.';\n }\n if (job.status === 'skipped') return 'Processing was skipped (unsupported for this file type).';\n switch (job.outcome) {\n case 'pass':\n return 'File is print-ready.';\n case 'warn':\n return 'File is usable with warnings — review the findings.';\n case 'fail':\n return 'Check completed successfully, but the file is NOT print-ready — see findings.';\n case 'fixed':\n return 'File had issues that were fixed automatically — use the fixed deliverable, not the original.';\n case 'unchanged':\n return 'Autofix ran but the file needed no changes.';\n case 'mixed':\n return 'Files in this job have differing verdicts — check each file.';\n default:\n return 'Completed (no verdict for this operation).';\n }\n}\n\n/**\n * Compact a job into what an agent needs: both axes, per-file evaluation\n * summaries, capped findings, and the (signed) deliverables. The raw report\n * never rides along — that's get_report territory.\n */\nexport function formatJobResult(run: RunOutcome): ToolResult {\n const { job, pending } = run;\n const verdict = verdictText(job, pending);\n const structured: Record<string, unknown> = {\n jobId: job.id,\n status: job.status,\n outcome: job.outcome ?? null,\n verdict,\n };\n if (pending) {\n structured.pending = true;\n structured.nextStep = `Wait a few seconds, then call get_job with jobId \"${job.id}\". Do NOT submit the file again — the job is already running.`;\n return jsonResult(structured, `${verdict} ${structured.nextStep as string}`);\n }\n\n const notes: string[] = [];\n let findingsBudget = FINDINGS_LIMIT;\n let truncated = false;\n\n const preflights = job.results?.preflight ?? [];\n if (preflights.length > 0) {\n structured.files = preflights.map((result) => {\n const file: Record<string, unknown> = {\n taskId: result.taskId,\n source: result.source,\n fileType: result.fileType,\n status: result.status,\n outcome: result.outcome ?? null,\n };\n const evaluation = evaluationOf(result);\n if (!evaluation) {\n file.hasEvaluation = false;\n file.note =\n 'No profile was applied, so there is no pass/fail evaluation — use get_report to inspect the raw report.';\n return file;\n }\n file.summary = evaluation.summary;\n const findings = evaluation.findings ?? [];\n const kept = findings.slice(0, Math.max(0, findingsBudget));\n findingsBudget -= kept.length;\n file.findings = kept.map(compactFinding);\n if (kept.length < findings.length) {\n file.findingsOmitted = findings.length - kept.length;\n truncated = true;\n }\n if (evaluation.recommendedAutofix) file.recommendedAutofix = evaluation.recommendedAutofix;\n return file;\n });\n if (truncated) {\n structured.findingsTruncated = true;\n notes.push('Findings were capped — use get_report for the full list.');\n }\n }\n\n const validates = job.results?.validate ?? [];\n if (validates.length > 0) {\n structured.validate = validates.map((result) => ({\n taskId: result.taskId,\n source: result.source,\n status: result.status,\n outcome: result.outcome ?? null,\n compliant: result.compliant,\n profiles: result.profiles.map((profile) => ({\n requested: profile.requested,\n matched: profile.matched,\n profileName: profile.profileName,\n compliant: profile.compliant,\n checks: profile.checks,\n rules: profile.rules,\n failureCount: profile.failures.length,\n failures: profile.failures.slice(0, 10),\n })),\n }));\n }\n\n const optimizes = job.results?.optimize ?? [];\n if (optimizes.length > 0) {\n structured.optimize = optimizes.map((result) => ({\n taskId: result.taskId,\n source: result.source,\n status: result.status,\n outcome: result.outcome ?? null,\n output: result.output\n ? {\n sizeBytes: result.output.sizeBytes,\n downloadUrl: result.output.downloadUrl,\n expiresIn: result.output.expiresIn,\n appliedFixes: result.output.appliedFixes,\n skippedFixes: result.output.skippedFixes,\n }\n : null,\n }));\n }\n\n const previews: Array<Record<string, unknown>> = [];\n for (const task of job.tasks) {\n for (const step of task.steps) {\n if (step.type !== 'previews' || !step.outputs?.length) continue;\n for (const output of step.outputs) {\n const pages = Array.isArray(output.pages) ? output.pages : [];\n previews.push({\n taskId: task.id,\n count: output.count,\n total: output.total,\n pages: pages.slice(0, PAGES_LIMIT),\n ...(pages.length > PAGES_LIMIT ? { pagesOmitted: pages.length - PAGES_LIMIT } : {}),\n });\n }\n }\n }\n if (previews.length > 0) structured.previews = previews;\n\n if (job.deliverables.length > 0) {\n structured.deliverables = job.deliverables.map(compactArtifact);\n notes.push(\n `${job.deliverables.length} deliverable(s); download URLs expire in ~60 minutes — re-call get_job for fresh ones.`,\n );\n }\n\n const text = [\n `${verdict} (status: ${job.status}, outcome: ${job.outcome ?? 'n/a'}, jobId: ${job.id})`,\n ...notes,\n ].join(' ');\n return jsonResult(structured, text);\n}\n\nexport function toolErrorResult(error: unknown): ToolResult {\n return { content: [{ type: 'text', text: errorText(error) }], isError: true };\n}\n\n/** The API's machine-readable parts: `code`, the field at fault (`param`), every problem (`details`). */\nfunction apiDetails(error: FilecheckError): string {\n const body = error.body as { code?: unknown; param?: unknown; details?: unknown } | undefined;\n if (!body || typeof body !== 'object') return '';\n const parts = [\n typeof body.code === 'string' ? `code: ${body.code}` : null,\n typeof body.param === 'string' ? `field: ${body.param}` : null,\n body.details !== undefined ? `details: ${JSON.stringify(body.details).slice(0, 8_000)}` : null,\n ].filter(Boolean);\n return parts.length ? `\\n${parts.join('\\n')}` : '';\n}\n\nfunction errorText(error: unknown): string {\n if (error instanceof AuthenticationError) {\n if (error.status === 403) {\n return `Forbidden: ${error.message}. A 403 usually means the fileRef was uploaded with a different API key — re-upload the file with this key and use the new fileRef.`;\n }\n return `Authentication failed: ${error.message}. Check the API key (FILECHECK_API_KEY for the local server, the Authorization header for the remote one) — it must be an active sk_… secret key. A connected app (ChatGPT, Claude) signs in again when the key it was approved with was revoked.`;\n }\n if (error instanceof InvalidRequestError) {\n return `Invalid request: ${error.message}${apiDetails(error)}`;\n }\n if (error instanceof NotFoundError) {\n return `Not found: ${error.message}. Check the id — jobs are also soft-deleted by delete_job and expire per retention.`;\n }\n if (error instanceof RateLimitError) {\n return `Rate limited: ${error.message}. Back off and retry.`;\n }\n if (error instanceof ConnectionError) {\n return `Network failure talking to the Filecheck API: ${error.message}. Retry once; if it persists, check connectivity.`;\n }\n if (error instanceof FilecheckError) {\n if (error.status === 402) {\n return `Submissions are paused for this account (billing): ${error.message}. Top up credit in the Filecheck dashboard, then retry.`;\n }\n return `Filecheck API error${error.status ? ` (${error.status})` : ''}: ${error.message}${apiDetails(error)}`;\n }\n return error instanceof Error ? error.message : String(error);\n}\n","import { mkdir, stat, writeFile } from 'node:fs/promises';\nimport { dirname, join } from 'node:path';\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { Artifact } from 'filecheck-node';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { jsonResult, toolErrorResult } from '../format.js';\n\nfunction describeDeliverables(deliverables: Artifact[]): string {\n return deliverables\n .map(\n (d, i) =>\n `[${i}] ${d.fileName ?? d.kind ?? d.role ?? 'unnamed'} (${d.mimeType ?? 'unknown type'})`,\n )\n .join(', ');\n}\n\nfunction pickDeliverable(\n deliverables: Artifact[],\n selector: number | string | undefined,\n): Artifact | null {\n if (selector === undefined) return deliverables.length === 1 ? (deliverables[0] ?? null) : null;\n if (typeof selector === 'number') return deliverables[selector] ?? null;\n return (\n deliverables.find((d) => d.fileName === selector) ??\n deliverables.find((d) => d.kind === selector || d.role === selector) ??\n null\n );\n}\n\n/** Registered only when `caps.localFiles` — the remote server has no disk. */\nexport function registerSaveArtifact(server: McpServer, { client }: ToolContext): void {\n server.registerTool(\n 'save_artifact',\n {\n title: 'Save a deliverable to disk',\n description:\n \"Download one of a job's deliverables (fixed file, optimized file, report, …) to a local path. \" +\n 'Re-fetches the job first so the download URL is fresh — pass the jobId, not a URL.',\n inputSchema: {\n jobId: z.string().describe('The job_… id whose deliverable to save.'),\n deliverable: z\n .union([z.number().int().min(0), z.string()])\n .optional()\n .describe(\n 'Index, fileName, kind, or role of the deliverable. Optional when the job has exactly one.',\n ),\n outPath: z\n .string()\n .describe(\n 'Where to save: a file path, or an existing directory (the deliverable fileName is appended).',\n ),\n },\n outputSchema: {\n savedTo: z.string(),\n bytes: z.number(),\n mimeType: z.string().nullable().optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const job = await client.jobs.retrieve(args.jobId);\n if (job.deliverables.length === 0) {\n return toolErrorResult(\n new Error(\n `Job ${args.jobId} has no deliverables (status: ${job.status}, outcome: ${job.outcome ?? 'n/a'}).`,\n ),\n );\n }\n const chosen = pickDeliverable(job.deliverables, args.deliverable);\n if (!chosen) {\n return toolErrorResult(\n new Error(\n `Could not pick a deliverable${args.deliverable !== undefined ? ` matching '${args.deliverable}'` : ' — the job has several'}. Available: ${describeDeliverables(job.deliverables)}. Pass one as 'deliverable'.`,\n ),\n );\n }\n if (!chosen.downloadUrl) {\n return toolErrorResult(\n new Error('The selected deliverable has no download URL on a fresh read.'),\n );\n }\n\n const response = await fetch(chosen.downloadUrl);\n if (!response.ok) {\n return toolErrorResult(new Error(`Download failed with status ${response.status}.`));\n }\n const bytes = Buffer.from(await response.arrayBuffer());\n\n let target = args.outPath;\n const existing = await stat(target).catch(() => null);\n if (existing?.isDirectory()) {\n target = join(target, chosen.fileName ?? `${args.jobId}-deliverable`);\n } else {\n await mkdir(dirname(target), { recursive: true });\n }\n await writeFile(target, bytes);\n\n return jsonResult(\n { savedTo: target, bytes: bytes.length, mimeType: chosen.mimeType ?? null },\n `Saved ${chosen.fileName ?? 'deliverable'} (${bytes.length} bytes) to ${target}.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","/**\n * Tool hints, set explicitly on every tool: OpenAI's directory scan flags a\n * tool that leaves any of readOnlyHint / destructiveHint / openWorldHint out,\n * and Claude's asks for destructiveHint on every tool that changes data so\n * clients confirm first. openWorldHint is true only for tools that reach a\n * system Filecheck doesn't control: a file's URL, the merchant's store\n * platform, or the shop's own hotfolder / webhook receiver.\n */\nexport const READ = {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n} as const;\n\nexport const READ_WEB = { ...READ, openWorldHint: true } as const;\n\n/** Changes the account's setup (records, mappings, settings). */\nexport const WRITE = {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: false,\n} as const;\n\nexport const WRITE_WEB = { ...WRITE, openWorldHint: true } as const;\n\n/** Submits a file for processing: makes a new job, changes nothing that exists. */\nexport const PROCESS = {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n} as const;\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { LibraryItem } from 'filecheck-node';\nimport { z } from 'zod';\nimport { READ } from '../annotations.js';\nimport type { ToolContext } from '../capabilities.js';\nimport { jsonResult, toolErrorResult } from '../format.js';\n\nconst CATALOG_TYPES = ['profiles', 'rules', 'workflows', 'connectors', 'optimize-presets'] as const;\ntype CatalogType = (typeof CATALOG_TYPES)[number];\n\n/** Listing keeps only the identifying scalars; retrieve returns the full item. */\nfunction compactItem(item: LibraryItem): Record<string, unknown> {\n const out: Record<string, unknown> = { id: item.id };\n for (const key of [\n 'title',\n 'name',\n 'kind',\n 'description',\n 'enabled',\n 'source',\n 'draft',\n 'customized',\n ]) {\n const value = item[key];\n if (value === null || ['string', 'number', 'boolean'].includes(typeof value)) out[key] = value;\n }\n return out;\n}\n\nexport function registerListCatalog(server: McpServer, { client }: ToolContext): void {\n const resources: Record<\n CatalogType,\n {\n list(options?: { drafts?: boolean }): Promise<LibraryItem[]>;\n retrieve(id: string): Promise<LibraryItem>;\n }\n > = {\n profiles: client.profiles,\n rules: client.rules,\n workflows: client.workflows,\n connectors: client.connectors,\n 'optimize-presets': client.optimizePresets,\n };\n\n server.registerTool(\n 'list_catalog',\n {\n title: 'Browse the resource catalog',\n description:\n \"Browse the tenant's resource catalog: preflight `profiles` (check-sets for check_file/fix_file), intake `rules`, `workflows`, `connectors`, and `optimize-presets` (params objects for optimize_file). \" +\n \"Profiles carry a `kind` ('pdf' or 'raster') — pick a profile whose kind matches the file being checked, or most checks come back not-applicable. \" +\n \"Entries tagged source:'domain' are the tenant's own (customized:true when it is the tenant's copy of a built-in); source:'store' are Filecheck built-ins. Pass `id` for the full definition of one entry, `drafts: true` to include unpublished drafts. Change them with manage_catalog.\",\n inputSchema: {\n type: z.enum(CATALOG_TYPES).describe('Which collection to browse.'),\n id: z.string().optional().describe('Fetch one entry in full instead of listing.'),\n drafts: z\n .boolean()\n .optional()\n .describe('Include unpublished drafts (marked draft:true). Listing only.'),\n },\n outputSchema: {\n type: z.string(),\n items: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('Compact listing (no id given).'),\n item: z.object({}).passthrough().optional().describe('Full entry (id given).'),\n },\n annotations: READ,\n },\n async (args) => {\n try {\n const resource = resources[args.type];\n if (args.id) {\n const item = await resource.retrieve(args.id);\n return jsonResult({ type: args.type, item }, `${args.type} entry ${args.id}.`);\n }\n const items = (await resource.list({ drafts: args.drafts })).map(compactItem);\n const kindCounts = new Map<string, number>();\n for (const item of items) {\n if (typeof item.kind === 'string')\n kindCounts.set(item.kind, (kindCounts.get(item.kind) ?? 0) + 1);\n }\n const byKind = kindCounts.size\n ? ` (${[...kindCounts].map(([kind, count]) => `${count} ${kind}`).join(', ')})`\n : '';\n const kindHint =\n args.type === 'profiles' && kindCounts.size\n ? \" Pick a profile whose kind matches the file's type (pdf vs raster).\"\n : '';\n return jsonResult(\n { type: args.type, items },\n `${items.length} ${args.type} entr${items.length === 1 ? 'y' : 'ies'}${byKind}.${kindHint} Pass an id for the full definition.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import { readFile, stat } from 'node:fs/promises';\nimport { basename, extname } from 'node:path';\nimport type { Filecheck, SourceRef } from 'filecheck-node';\nimport type { Capabilities } from './capabilities.js';\nimport type { SourceInput } from './schemas.js';\n\n/** Reading a multi-hundred-MB file into memory on the user's machine is rude. */\nconst MAX_LOCAL_BYTES = 200 * 1024 * 1024;\n\nconst MIME_BY_EXT: Record<string, string> = {\n '.pdf': 'application/pdf',\n '.png': 'image/png',\n '.jpg': 'image/jpeg',\n '.jpeg': 'image/jpeg',\n '.tif': 'image/tiff',\n '.tiff': 'image/tiff',\n '.webp': 'image/webp',\n '.svg': 'image/svg+xml',\n '.eps': 'application/postscript',\n '.ai': 'application/postscript',\n '.zip': 'application/zip',\n};\n\n/**\n * Turn a tool `source` argument into an API `SourceRef`. A `filePath` is\n * uploaded out-of-band (presigned S3 POST) so file bytes never transit the\n * model context; `url`/`fileRef` pass through.\n */\nexport async function resolveSource(\n client: Filecheck,\n caps: Capabilities,\n source: SourceInput,\n): Promise<SourceRef & { name?: string }> {\n const locators = [\n caps.localFiles && source.filePath ? 'filePath' : null,\n source.url ? 'url' : null,\n source.fileRef ? 'fileRef' : null,\n ].filter(Boolean);\n\n if (locators.length !== 1) {\n const allowed = caps.localFiles ? 'filePath, url, or fileRef' : 'url or fileRef';\n throw new Error(\n locators.length === 0\n ? `source needs exactly one of ${allowed} — none was provided.`\n : `source needs exactly one of ${allowed} — got ${locators.join(' + ')}.`,\n );\n }\n\n if (source.filePath && caps.localFiles) {\n const info = await stat(source.filePath).catch(() => null);\n if (!info?.isFile()) {\n throw new Error(`filePath not found or not a file: ${source.filePath}`);\n }\n if (info.size > MAX_LOCAL_BYTES) {\n throw new Error(\n `File is ${Math.round(info.size / 1024 / 1024)} MB; filePath uploads are capped at ${MAX_LOCAL_BYTES / 1024 / 1024} MB. Host the file and pass a url source instead.`,\n );\n }\n const fileName = source.name ?? basename(source.filePath);\n const upload = await client.uploads.create(await readFile(source.filePath), {\n fileName,\n mimeType: MIME_BY_EXT[extname(source.filePath).toLowerCase()],\n });\n return { fileRef: upload.fileRef, name: fileName };\n }\n\n if (source.url) {\n return {\n url: source.url,\n ...(source.headers ? { headers: source.headers } : {}),\n ...(source.name ? { name: source.name } : {}),\n };\n }\n return { fileRef: source.fileRef, ...(source.name ? { name: source.name } : {}) };\n}\n","import { isTerminal } from 'filecheck-node';\nimport type { Filecheck, Job, JobResult, WaitOptions } from 'filecheck-node';\nimport type { Capabilities } from './capabilities.js';\n\n/**\n * A sync submit makes the API hold the request up to ~27 s. Only worth it\n * when our own budget can absorb that hold (the stdio CLI); the remote\n * Lambda (20 s budget inside a 29 s gateway ceiling) submits async and\n * polls instead.\n */\nconst SYNC_HOLD_THRESHOLD_MS = 30_000;\nconst POLL_MIN_MS = 500;\nconst POLL_MAX_MS = 2_000;\n\nexport interface RunOutcome {\n job: Job;\n pending: boolean;\n}\n\nconst sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));\n\n/**\n * Submit a job and wait for a terminal status within the capability budget.\n * Always ends on a `GET /jobs/{id}` when terminal — submit responses carry\n * unsigned artifacts; only the detail read mints download URLs.\n */\nexport async function submitAndWait(\n client: Filecheck,\n caps: Capabilities,\n submit: (wait: WaitOptions) => Promise<JobResult>,\n waitSeconds?: number,\n): Promise<RunOutcome> {\n const budgetMs = Math.min(\n waitSeconds !== undefined ? waitSeconds * 1000 : caps.maxWaitMs,\n caps.maxWaitMs,\n );\n const deadline = Date.now() + budgetMs;\n const useSync = budgetMs >= SYNC_HOLD_THRESHOLD_MS;\n\n const { job } = await submit(\n useSync ? { wait: true, waitTimeoutMs: budgetMs } : { wait: false, waitTimeoutMs: 0 },\n );\n\n let final = job;\n if (isTerminal(final)) {\n final = await client.jobs.retrieve(final.id);\n } else if (Date.now() < deadline) {\n final = await poll(client, final.id, deadline);\n }\n return { job: final, pending: !isTerminal(final) };\n}\n\nasync function poll(client: Filecheck, id: string, deadline: number): Promise<Job> {\n let delay = POLL_MIN_MS;\n let job = await client.jobs.retrieve(id);\n while (!isTerminal(job) && Date.now() < deadline) {\n await sleep(Math.min(delay, Math.max(0, deadline - Date.now())));\n delay = Math.min(delay * 2, POLL_MAX_MS);\n job = await client.jobs.retrieve(id);\n }\n return job;\n}\n","import { z } from 'zod';\nimport type { Capabilities } from './capabilities.js';\n\n/**\n * Shared zod fragments for tool input schemas. Kept aligned with the API's\n * JSON schemas (`filecheck-api/_layers/mixins/nodejs/schemas/*.json`).\n */\n\nexport interface SourceInput {\n filePath?: string;\n url?: string;\n fileRef?: string;\n headers?: Record<string, string>;\n name?: string;\n}\n\n/**\n * The file to process. Exactly one of the locator fields must be set —\n * enforced in `resolveSource` (a refine would not survive JSON-schema\n * conversion, and the runtime error message is clearer).\n */\nexport function makeSourceSchema(caps: Capabilities) {\n const shape: Record<string, z.ZodTypeAny> = {\n url: z\n .string()\n .regex(/^https?:\\/\\//, 'must be an http(s) URL')\n .optional()\n .describe('Public (or header-authenticated) URL to fetch the file from.'),\n fileRef: z\n .string()\n .regex(/^upload_/, 'must start with \"upload_\"')\n .optional()\n .describe('An `upload_…` reference from a previous upload with this same API key.'),\n headers: z\n .record(z.string())\n .optional()\n .describe('Extra HTTP headers sent when fetching `url` (e.g. Authorization).'),\n name: z.string().optional().describe('Original filename hint.'),\n };\n if (caps.localFiles) {\n shape.filePath = z\n .string()\n .optional()\n .describe('Absolute path to a file on the local machine (uploaded for you; max 200 MB).');\n }\n const which = caps.localFiles ? '`filePath`, `url`, or `fileRef`' : '`url` or `fileRef`';\n const remoteHint = caps.localFiles\n ? ''\n : ' For files on the local machine, run the local server instead: `npx filecheck-mcp`.';\n return z.object(shape).describe(`The file to process. Set exactly one of ${which}.${remoteHint}`);\n}\n\nconst bounded = (min: number, max: number) => z.number().int().min(min).max(max);\n\nexport const contextSchema = z\n .object({\n artworkSize: z\n .object({\n width_mm: z.number().positive().max(100_000),\n height_mm: z.number().positive().max(100_000),\n })\n .optional()\n .describe(\n 'Finished (trim) size of the product ordered. Both dimensions are required for the page-size check to take effect.',\n ),\n pageCount: z\n .object({ min: bounded(0, 10_000).optional(), max: bounded(0, 10_000).optional() })\n .optional()\n .describe(\n 'Expected page count. Set min === max for an exact count (a double-sided card is 2).',\n ),\n fileCount: z\n .object({ min: bounded(0, 100).optional(), max: bounded(0, 100).optional() })\n .optional()\n .describe('Expected number of separate files. NOT the order quantity.'),\n bleed: z\n .object({ required_mm: z.number().min(0).max(500) })\n .optional()\n .describe(\n 'Bleed the chosen finish requires (a hemmed banner needs more than a trimmed card).',\n ),\n safety: z\n .object({ min_mm: z.number().min(0).max(500) })\n .optional()\n .describe('Safe margin the chosen finish requires (eyelets and pole pockets eat into it).'),\n })\n .describe(\n 'What the customer ordered — finished size, pages, finish. Narrows the resolved profile to the ordered product, so one profile serves every size. Only tightens checks the profile already has enabled; no effect without a profileId. Pass it whenever the product dimensions are known.',\n );\n\nexport const waitSecondsSchema = z\n .number()\n .int()\n .min(0)\n .max(600)\n .optional()\n .describe(\n 'Max seconds to wait for the job to finish before returning a pending result (capped by the server; 0 = return immediately). Omit for the default budget.',\n );\n\n/**\n * Output shape shared by every job-returning tool. Deliberately permissive —\n * the SDK validates structuredContent against this, and the API may grow\n * fields; enums are documented in descriptions instead of enforced.\n */\nexport const jobOutputShape = {\n jobId: z.string(),\n status: z\n .string()\n .describe(\n 'Execution lifecycle: pending | running | done | skipped | error. Says nothing about the verdict.',\n ),\n outcome: z\n .string()\n .nullable()\n .optional()\n .describe(\n 'Verdict: pass | warn | fail | fixed | unchanged | na | mixed. Independent of status — status:done + outcome:fail means \"checked successfully, file is NOT print-ready\".',\n ),\n pending: z\n .boolean()\n .optional()\n .describe('True when the job has not reached a terminal status yet.'),\n verdict: z.string().describe('Human-readable one-line verdict.'),\n files: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('Per-file preflight results: summary, capped findings, recommended autofix.'),\n validate: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('PDF/A / PDF/UA conformance results.'),\n optimize: z.array(z.object({}).passthrough()).optional().describe('Optimization results.'),\n previews: z.array(z.object({}).passthrough()).optional().describe('Rendered page previews.'),\n deliverables: z\n .array(z.object({}).passthrough())\n .optional()\n .describe(\n 'Final file set. downloadUrl expires in ~60 minutes — re-call get_job for fresh URLs, never store them.',\n ),\n findingsTruncated: z\n .boolean()\n .optional()\n .describe('True when findings were capped; use get_report for the rest.'),\n nextStep: z\n .string()\n .optional()\n .describe('Present when action is needed (e.g. poll get_job). Follow it.'),\n};\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport { PROCESS } from '../annotations.js';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { contextSchema, jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerCheckFile(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'check_file',\n {\n title: 'Check (preflight) a print file',\n description:\n 'Check a file for print-readiness against a preflight profile. Returns a verdict with findings and a recommended autofix. ' +\n 'READ THE TWO AXES: `status` is execution (done/error), `outcome` is the verdict — status:done + outcome:fail means the check completed and the file is NOT print-ready; do not treat done as success. ' +\n 'Pass `context` whenever the ordered product dimensions are known. Omitting `profileId` runs every supported check but returns raw findings with no pass/fail verdict. ' +\n 'To try a workflow or rule (drafts included) on a real file before publishing it, pass its `workflowId` or `ruleId`. ' +\n 'If the result is pending, poll get_job — never resubmit.',\n inputSchema: {\n source: makeSourceSchema(caps),\n profileId: z\n .string()\n .optional()\n .describe(\n \"Preflight profile id (discover via list_catalog type 'profiles'). Omit to run all checks with no verdict.\",\n ),\n ruleId: z\n .string()\n .optional()\n .describe(\n \"Intake rule id (list_catalog type 'rules'). When set, the rule's flow decides steps and profile per file type; profileId is then a fallback hint only.\",\n ),\n workflowId: z\n .string()\n .optional()\n .describe(\n \"Workflow id (wf_…, list_catalog type 'workflows'): run the file through its intake, exactly as the storefront does for a product mapped to it. Drafts work too. Wins over ruleId.\",\n ),\n context: contextSchema.optional(),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: PROCESS,\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n args.ruleId || args.workflowId\n ? client.jobs.create({\n // POST /jobs requires steps per source; the rule overrides them.\n sources: [\n {\n ...source,\n steps: [\n {\n type: 'preflight',\n ...(args.profileId ? { params: { profileId: args.profileId } } : {}),\n },\n ],\n },\n ],\n ...(args.workflowId ? { workflowId: args.workflowId } : { ruleId: args.ruleId }),\n ...(args.context ? { context: args.context } : {}),\n ...wait,\n })\n : client.jobs.preflight({\n sources: [\n { ...source, ...(args.profileId ? { profileId: args.profileId } : {}) },\n ],\n ...(args.context ? { context: args.context } : {}),\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { contextSchema, jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerFixFile(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'fix_file',\n {\n title: 'Fix a print file automatically',\n description:\n 'Preflight a file, apply every safe automatic fix, and (by default) re-check the fixed output. The fixed file is returned as a deliverable — use IT, not the original. ' +\n 'outcome:fixed means issues were repaired; outcome:fail after a repreflight means problems remain that autofix cannot solve. ' +\n '`status` is execution, `outcome` is the verdict — read both. If pending, poll get_job; never resubmit.',\n inputSchema: {\n source: makeSourceSchema(caps),\n profileId: z\n .string()\n .optional()\n .describe(\n \"Preflight profile that decides what counts as a problem (list_catalog type 'profiles').\",\n ),\n context: contextSchema.optional(),\n repreflight: z\n .boolean()\n .optional()\n .describe('Re-run preflight on the fixed output to confirm the repair (default true).'),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.fix({\n sources: [{ ...source, ...(args.profileId ? { profileId: args.profileId } : {}) }],\n repreflight: args.repreflight ?? true,\n ...(args.context ? { context: args.context } : {}),\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { isTerminal } from 'filecheck-node';\nimport { z } from 'zod';\nimport { READ } from '../annotations.js';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, jsonResult, toolErrorResult } from '../format.js';\nimport { jobOutputShape } from '../schemas.js';\n\nexport function registerJobTools(server: McpServer, { client }: ToolContext): void {\n server.registerTool(\n 'get_job',\n {\n title: 'Get a job (poll / refresh URLs)',\n description:\n 'Fetch a job by id: current status + outcome, per-file results, and FRESHLY SIGNED download URLs (~60 min TTL). ' +\n 'This is both the polling target for pending jobs and the way to refresh expired download URLs. ' +\n '`status` is execution, `outcome` is the verdict — status:done + outcome:fail means checked successfully but NOT print-ready.',\n inputSchema: {\n jobId: z.string().describe('The job_… id returned by a submit tool.'),\n },\n outputSchema: jobOutputShape,\n annotations: READ,\n },\n async (args) => {\n try {\n const job = await client.jobs.retrieve(args.jobId);\n return formatJobResult({ job, pending: !isTerminal(job) });\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n\n server.registerTool(\n 'list_jobs',\n {\n title: 'List recent jobs',\n description:\n 'List recent jobs (newest first) as lean envelopes: id, status, outcome, timestamps. ' +\n 'Use get_job for details and download URLs. Pass the returned nextKey to fetch the next page. ' +\n 'Pass orderId to get every job linked to one shop order — the reconciliation path when a cart ' +\n 'holds several upload items (each produces its own job).',\n inputSchema: {\n limit: z.number().int().min(1).max(100).optional().describe('Page size (default 20).'),\n nextKey: z.string().optional().describe('Opaque pagination cursor from a previous call.'),\n orderId: z\n .string()\n .optional()\n .describe(\n 'Return only the jobs linked to this shop order (e.g. a Shopify numeric order id). ' +\n \"Jobs acquire their order linkage when the shop's order webhook fires, moments after \" +\n 'checkout — query after order creation, not mid-checkout.',\n ),\n },\n outputSchema: {\n jobs: z.array(z.object({}).passthrough()),\n nextKey: z\n .string()\n .nullable()\n .optional()\n .describe('Pass back to fetch the next page; absent on the last page.'),\n },\n annotations: READ,\n },\n async (args) => {\n try {\n const page = await client.jobs.list({\n limit: args.limit ?? 20,\n nextKey: args.nextKey,\n orderId: args.orderId,\n });\n const jobs = page.jobs.map((job) => ({\n jobId: job.id,\n status: job.status,\n outcome: job.outcome ?? null,\n createdAt: job.createdAt,\n channel: job.channel,\n orderId: job.orderId,\n fileCount: job.tasks.length,\n }));\n const structured: Record<string, unknown> = { jobs };\n if (page.nextKey) structured.nextKey = page.nextKey;\n return jsonResult(\n structured,\n `${jobs.length} job(s)${page.nextKey ? ' (more available via nextKey)' : ''}. Remember: outcome is the verdict, status is only execution.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n\n server.registerTool(\n 'delete_job',\n {\n title: 'Delete a job',\n description:\n 'Soft-delete a job and its tasks. The job disappears from listings and its artifacts are scheduled for cleanup. Not undoable via the API.',\n inputSchema: {\n jobId: z.string().describe('The job_… id to delete.'),\n },\n outputSchema: {\n deleted: z.boolean(),\n jobId: z.string(),\n taskIds: z.array(z.string()).optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const result = await client.jobs.del(args.jobId);\n return jsonResult(\n {\n deleted: true,\n jobId: result.id,\n ...(result.taskIds ? { taskIds: result.taskIds } : {}),\n },\n `Job ${result.id} deleted.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerOptimizeFile(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'optimize_file',\n {\n title: 'Optimize a file',\n description:\n 'Optimize a PDF or image: downsample and recompress images, strip dead weight, flatten. ' +\n \"Options are namespaced under `params.pdf` and/or `params.raster` (see the schema at https://filecheck.io/docs/schemas/jobs-optimize-post.json). An optimize preset from list_catalog type 'optimize-presets' contains a ready-made params object you can pass through. \" +\n 'The optimized file arrives as a deliverable with a download URL (~60 min TTL).',\n inputSchema: {\n source: makeSourceSchema(caps),\n params: z\n .record(z.unknown())\n .optional()\n .describe('Namespaced optimize options: `{ pdf: {…}, raster: {…} }`. Omit for defaults.'),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.optimize({ sources: [{ ...source, params: args.params ?? {} }], ...wait }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nexport function registerRenderPreviews(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'render_previews',\n {\n title: 'Render page previews',\n description:\n \"Render raster preview images of a file's pages — useful to actually look at a file. \" +\n 'Preview URLs ride in the `previews` output (capped at 20 pages per file) and expire like all download URLs (~60 min).',\n inputSchema: {\n source: makeSourceSchema(caps),\n params: z\n .record(z.unknown())\n .optional()\n .describe(\n 'Optional rendering options passed through to the previews engine (size, page range, format).',\n ),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.previews({\n sources: [{ ...source, ...(args.params ? { params: args.params } : {}) }],\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { PreflightResult } from 'filecheck-node';\nimport { z } from 'zod';\nimport { READ } from '../annotations.js';\nimport type { ToolContext } from '../capabilities.js';\nimport { jsonResult, toolErrorResult } from '../format.js';\n\nconst SEVERITIES = ['reject', 'warn', 'ignore'] as const;\n\nexport function registerGetReport(server: McpServer, { client }: ToolContext): void {\n server.registerTool(\n 'get_report',\n {\n title: 'Read the raw preflight report',\n description:\n 'Drill into the full preflight report of a checked file — the raw analysis (pages, fonts, images, color, spot colors, layers, …) plus the complete evaluation findings that job results cap. ' +\n 'Call without `section` first for an overview of available sections and their sizes, then request one section at a time; array sections are paginated with offset/limit. ' +\n '`severity` filters the evaluation findings instead.',\n inputSchema: {\n jobId: z.string().describe('The job_… id of a completed check.'),\n taskIndex: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Which file of the job (0-based, default 0) — jobs can contain several files.'),\n section: z\n .string()\n .optional()\n .describe(\n \"Report section to read (e.g. 'fonts', 'images', 'pages', 'evaluation'). Omit for the overview.\",\n ),\n severity: z\n .enum(SEVERITIES)\n .optional()\n .describe('Return only evaluation findings of this severity (overrides section).'),\n offset: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Pagination offset into array sections (default 0).'),\n limit: z\n .number()\n .int()\n .min(1)\n .max(200)\n .optional()\n .describe('Max array entries to return (default 50).'),\n },\n outputSchema: {\n jobId: z.string(),\n taskIndex: z.number(),\n section: z.string().optional(),\n sections: z\n .array(z.object({}).passthrough())\n .optional()\n .describe('Overview: available sections and sizes.'),\n data: z.unknown().optional().describe('The requested slice.'),\n total: z.number().optional(),\n offset: z.number().optional(),\n returned: z.number().optional(),\n },\n annotations: READ,\n },\n async (args) => {\n try {\n const job = await client.jobs.retrieve(args.jobId);\n const preflights: PreflightResult[] = job.results?.preflight ?? [];\n const taskIndex = args.taskIndex ?? 0;\n const result = preflights[taskIndex];\n if (!result) {\n return toolErrorResult(\n new Error(\n preflights.length === 0\n ? `Job ${args.jobId} has no preflight results (status: ${job.status}). If it is still running, poll get_job first.`\n : `taskIndex ${taskIndex} is out of range — this job has ${preflights.length} preflighted file(s).`,\n ),\n );\n }\n const report = result.report as Record<string, unknown> | null;\n if (!report) {\n return toolErrorResult(\n new Error(`No report is stored for file ${taskIndex} of job ${args.jobId}.`),\n );\n }\n\n const offset = args.offset ?? 0;\n const limit = args.limit ?? 50;\n const base = { jobId: args.jobId, taskIndex };\n\n if (args.severity) {\n const evaluation = report.evaluation as\n | { findings?: Array<Record<string, unknown>> }\n | undefined;\n const findings = (evaluation?.findings ?? []).filter((f) => f.severity === args.severity);\n const slice = findings.slice(offset, offset + limit);\n return jsonResult(\n {\n ...base,\n section: 'evaluation.findings',\n data: slice,\n total: findings.length,\n offset,\n returned: slice.length,\n },\n `${findings.length} ${args.severity} finding(s); returned ${slice.length} from offset ${offset}.`,\n );\n }\n\n if (args.section) {\n if (!(args.section in report)) {\n return toolErrorResult(\n new Error(\n `Section '${args.section}' not in this report. Available: ${Object.keys(report).join(', ')}.`,\n ),\n );\n }\n const value = report[args.section];\n if (Array.isArray(value)) {\n const slice = value.slice(offset, offset + limit);\n return jsonResult(\n {\n ...base,\n section: args.section,\n data: slice,\n total: value.length,\n offset,\n returned: slice.length,\n },\n `Section '${args.section}': ${value.length} entries; returned ${slice.length} from offset ${offset}.`,\n );\n }\n return jsonResult(\n { ...base, section: args.section, data: value },\n `Section '${args.section}'.`,\n );\n }\n\n const sections = Object.entries(report).map(([key, value]) => ({\n key,\n kind: Array.isArray(value) ? 'array' : value === null ? 'null' : typeof value,\n ...(Array.isArray(value) ? { count: value.length } : {}),\n }));\n return jsonResult(\n { ...base, sections },\n `Report for file ${taskIndex} of job ${args.jobId} — ${sections.length} sections. Request one via 'section'.`,\n );\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"connector\",\"title\":\"Connector\",\"description\":\"Wires a store's own product page to the FileCheck upload element (the Element embedded on WooCommerce, Shopify, PrestaShop, OpenCart or custom product pages), in both directions, with no custom code. Read entries take what the shopper chose on the page (banner width and height, a size dropdown, number of pages, single or double sided, finishing such as hem and eyelets) and use it to override the size-dependent checks of the product's rule and preflight profile for that upload: required artwork size, page count, file count, bleed and safe margin. Write entries push what FileCheck measured in the upload (page count, page width, height or area, color or mono page counts) or the rule's default size into the page's own inputs (quantity, width, height, area), so the store recalculates the price from the actual file. A connector never accepts, rejects or prices anything itself; the rule decides acceptance and the store stays in charge of price. It runs in the shopper's browser: the Element applies a connector passed to it as its `connector` option (this record's JSON, as returned by GET /connectors/{id}); handing the Element only a connectorId is reserved and not resolved yet. No other FileCheck record points at a connector; the cart plugins store the chosen connector id per product.\",\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"title\":{\"type\":\"string\",\"maxLength\":200,\"description\":\"Name shown in the dashboard and in the cart plugins' per-product connector picker, e.g. \\\"Banner size sync\\\". The dashboard will not save a connector without one.\"},\"description\":{\"type\":\"string\",\"maxLength\":1000,\"description\":\"A note for the print shop: which products and which theme this connector was built for.\"},\"entries\":{\"type\":\"array\",\"maxItems\":50,\"items\":{\"$ref\":\"#/definitions/entry\"},\"description\":\"The connector's rules, both directions in one list, told apart by `type`: \\\"read\\\" (product page to FileCheck) or \\\"write\\\" (FileCheck to product page; an entry without `type` is a write entry). Entries run in order; when several read entries set the same value, the later one wins.\"},\"bindings\":{\"type\":\"array\",\"maxItems\":50,\"items\":{\"$ref\":\"#/definitions/writeEntry\"},\"description\":\"Legacy copy of the write entries, kept for Element versions released before `entries` existed; readers use it only when `entries` is empty. Omit it in new connectors, or keep it identical to the write entries in `entries` (the dashboard writes it that way on every save).\"},\"schemaVersion\":{\"type\":\"integer\",\"minimum\":1,\"description\":\"Record format version written by the dashboard editor (currently 1). Omit it.\"},\"tags\":{\"type\":\"array\",\"maxItems\":50,\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64},\"description\":\"Free-form labels for organising the Library. Not used at runtime.\"}},\"definitions\":{\"entry\":{\"description\":\"One read or write rule. `type: \\\"read\\\"` selects the read shape; anything else (including no `type`) is a write entry.\",\"if\":{\"properties\":{\"type\":{\"const\":\"read\"}},\"required\":[\"type\"]},\"then\":{\"$ref\":\"#/definitions/readEntry\"},\"else\":{\"$ref\":\"#/definitions/writeEntry\"}},\"entryId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64,\"description\":\"Stable id for this entry, unique within the connector; it shows up in the Element's debug report (?fcdebug=1). Optional: one is generated when the dashboard opens the connector.\"},\"entryEnabled\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Set false to keep the entry but skip it at runtime.\"},\"customSelector\":{\"type\":\"string\",\"maxLength\":512,\"description\":\"CSS selector for the control on the product page, tried before the built-in selectors, e.g. #banner-width or select[name=\\\"attribute_pa_size\\\"]. Leave empty to rely on the built-in selectors alone. Only used with querySelector, so the first matching element wins; an invalid selector is skipped.\"},\"rounding\":{\"type\":\"string\",\"enum\":[\"round\",\"floor\",\"ceil\"],\"default\":\"round\",\"description\":\"How the converted value is rounded to `decimals`: round to nearest, floor (down) or ceil (up). With decimals null, floor and ceil round to whole numbers and round leaves the value as is.\"},\"decimals\":{\"type\":[\"integer\",\"null\"],\"minimum\":0,\"maximum\":6,\"description\":\"Decimal places to round the converted value to (0 to 6). null means no rounding. Counts are always whole numbers.\"},\"domEvents\":{\"type\":\"array\",\"maxItems\":10,\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64,\"pattern\":\"^\\\\S+$\"}},\"unitName\":{\"type\":\"string\",\"enum\":[\"mm\",\"cm\",\"m\",\"in\",\"ft\",\"pt\"],\"description\":\"Named unit: mm (millimetres), cm, m (metres), in (inches), ft (feet), pt (points, 1/72 inch).\"},\"unit\":{\"description\":\"A unit: one of the names mm, cm, m, in, ft, pt, or a positive number giving millimetres per one unit of the page's value (25.4 for inches, 100 for decimetres).\",\"anyOf\":[{\"$ref\":\"#/definitions/unitName\"},{\"type\":\"number\",\"exclusiveMinimum\":0}]},\"pickedUnit\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"fromSelector\"],\"description\":\"Read the unit from a second control on the page, for pages that pair a size box with a unit dropdown.\",\"properties\":{\"fromSelector\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":512,\"description\":\"CSS selector of the unit control, e.g. select[name=\\\"unit\\\"].\"},\"map\":{\"type\":\"object\",\"propertyNames\":{\"minLength\":1,\"maxLength\":128},\"additionalProperties\":{\"$ref\":\"#/definitions/unit\"},\"description\":\"The unit control's option values mapped to units, e.g. { \\\"CM\\\": \\\"cm\\\", \\\"feet\\\": \\\"ft\\\", \\\"mm\\\": \\\"mm\\\" }. Matched as-is, then lower- and upper-cased. Without a map the control's value itself must be a unit name. An unrecognised value falls back to millimetres.\"}}},\"countRange\":{\"type\":\"object\",\"additionalProperties\":false,\"minProperties\":1,\"properties\":{\"min\":{\"type\":\"integer\",\"minimum\":0,\"description\":\"Lowest accepted count.\"},\"max\":{\"type\":\"integer\",\"minimum\":0,\"description\":\"Highest accepted count. Use min = max for an exact count.\"}}},\"contextFragment\":{\"type\":\"object\",\"additionalProperties\":false,\"minProperties\":1,\"description\":\"What one choice means for the check, in millimetres and plain counts. Each key overrides one part of the product's rule or profile for this upload (and only parts that are switched on there).\",\"properties\":{\"artworkSize\":{\"type\":\"object\",\"additionalProperties\":false,\"minProperties\":1,\"description\":\"Required finished (trim) size; replaces the profile's allowed page sizes and the raster print size used for effective DPI.\",\"properties\":{\"width_mm\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Width in mm.\"},\"height_mm\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Height in mm.\"}}},\"pageCount\":{\"$ref\":\"#/definitions/countRange\",\"description\":\"Required number of pages, e.g. { \\\"min\\\": 2, \\\"max\\\": 2 } for double sided; replaces the profile's page-count check.\"},\"fileCount\":{\"$ref\":\"#/definitions/countRange\",\"description\":\"How many files the shopper must upload; replaces the rule's file cardinality.\"},\"bleed\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"required_mm\"],\"description\":\"Required bleed; replaces the profile's bleed and bleed-coverage checks.\",\"properties\":{\"required_mm\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Bleed in mm on each edge, e.g. 25 for a hemmed banner.\"}}},\"safety\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"min_mm\"],\"description\":\"Safe margin that text must stay inside; replaces the profile's safety-margin check (the file is analyzed again when this changes).\",\"properties\":{\"min_mm\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Margin in mm from the trim edge, e.g. 20 for eyelets.\"}}}}},\"readEntry\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"field\"],\"description\":\"Product page to FileCheck: read one control the shopper sets and turn it into a requirement for the upload check. The value is re-read whenever the shopper changes the control.\",\"allOf\":[{\"if\":{\"properties\":{\"read\":{\"const\":\"attr\"}},\"required\":[\"read\"]},\"then\":{\"required\":[\"attr\"],\"properties\":{\"attr\":{\"type\":\"string\",\"minLength\":1}}}},{\"if\":{\"properties\":{\"field\":{\"const\":\"size\"}},\"required\":[\"field\"]},\"then\":{\"required\":[\"pattern\"],\"properties\":{\"pattern\":{\"minLength\":1}}}},{\"if\":{\"properties\":{\"field\":{\"enum\":[\"sides\",\"finishing\"]}},\"required\":[\"field\"]},\"then\":{\"required\":[\"map\"],\"properties\":{\"map\":{\"type\":\"object\",\"minProperties\":1}}}},{\"if\":{\"properties\":{\"field\":{\"enum\":[\"width\",\"height\"]}},\"required\":[\"field\"]},\"then\":{\"properties\":{\"target\":{\"enum\":[\"artworkSize\",\"bleed\",\"safety\",null]}}}},{\"if\":{\"properties\":{\"field\":{\"const\":\"size\"}},\"required\":[\"field\"]},\"then\":{\"properties\":{\"target\":{\"enum\":[\"artworkSize\",null]}}}},{\"if\":{\"properties\":{\"field\":{\"enum\":[\"pages\",\"files\"]}},\"required\":[\"field\"]},\"then\":{\"properties\":{\"target\":{\"enum\":[\"pageCount\",\"fileCount\",null]}}}}],\"properties\":{\"id\":{\"$ref\":\"#/definitions/entryId\"},\"enabled\":{\"$ref\":\"#/definitions/entryEnabled\",\"default\":true},\"type\":{\"type\":\"string\",\"const\":\"read\",\"description\":\"Marks a read entry.\"},\"field\":{\"type\":\"string\",\"enum\":[\"width\",\"height\",\"size\",\"pages\",\"sides\",\"files\",\"finishing\"],\"description\":\"What the control means. width / height: one measurement, converted to mm (drives artworkSize by default). size: one control holding both, e.g. \\\"3000 x 1000 mm\\\"; needs `pattern` with width and height groups (drives artworkSize). pages: number of pages (drives pageCount). files: number of separate files (drives fileCount). sides and finishing: a choice looked up in `map` (sides typically sets pageCount, finishing sets bleed and safety). Built-in selectors tried after customSelector: width: input[name=\\\"width\\\"], #width, input[data-dimension=\\\"width\\\"], input[name=\\\"dimension_width\\\"], input[name=\\\"banner_width\\\"], .product-width input (height likewise); size: select[name=\\\"size\\\"], #size, input[name=\\\"size\\\"], [data-option=\\\"size\\\"]; pages: input[name=\\\"pages\\\"], #pages, select[name=\\\"pages\\\"], [data-option=\\\"pages\\\"]; sides: select[name=\\\"sides\\\"], input[name=\\\"sides\\\"]:checked, #sides, [data-option=\\\"sides\\\"]; files: input[name=\\\"files\\\"], select[name=\\\"files\\\"], [data-option=\\\"files\\\"]; finishing: select[name=\\\"finishing\\\"], input[name=\\\"finishing\\\"]:checked, #finishing, [data-option=\\\"finishing\\\"].\"},\"customSelector\":{\"$ref\":\"#/definitions/customSelector\"},\"read\":{\"type\":\"string\",\"enum\":[\"value\",\"text\",\"attr\"],\"default\":\"value\",\"description\":\"How to get the raw string from the control: value (the input's or select's value, falling back to its text), text (the element's text content) or attr (the attribute named in `attr`).\"},\"attr\":{\"type\":[\"string\",\"null\"],\"maxLength\":128,\"description\":\"Attribute to read when read is attr, e.g. data-value.\"},\"pattern\":{\"type\":\"string\",\"maxLength\":500,\"description\":\"Optional JavaScript regular expression run on the raw string (first 512 characters). Named groups pick the numbers: width and height for a size field, e.g. (?<width>[\\\\d.]+)\\\\s*[x×]\\\\s*(?<height>[\\\\d.]+); value for counts and choices. Without named groups the first two groups are taken as width and height. When a pattern is set and does not match, the entry yields nothing (the product's own settings apply) rather than guessing.\"},\"patternFlags\":{\"type\":\"string\",\"pattern\":\"^[dgimsuyv]*$\",\"maxLength\":8,\"description\":\"Flags for `pattern`, e.g. i for case-insensitive.\"},\"convertFrom\":{\"description\":\"Unit of the measurement on the page, converted to mm (width, height and size fields only; ignored for counts and choices). A unit name (mm, cm, m, in, ft, pt), a number of millimetres per page unit (e.g. 25.4), or { fromSelector, map } to read the unit from another control. Default mm.\",\"anyOf\":[{\"$ref\":\"#/definitions/unit\"},{\"$ref\":\"#/definitions/pickedUnit\"}]},\"decimals\":{\"$ref\":\"#/definitions/decimals\"},\"round\":{\"$ref\":\"#/definitions/rounding\",\"default\":\"round\"},\"target\":{\"type\":[\"string\",\"null\"],\"enum\":[\"artworkSize\",\"pageCount\",\"fileCount\",\"bleed\",\"safety\",null],\"description\":\"What the value drives. Default (null) follows the field: width, height and size drive artworkSize; pages drives pageCount; files drives fileCount. A width or height entry can instead drive bleed or safety (the measurement becomes the bleed or safe margin in mm); a pages or files entry can drive pageCount or fileCount. Choice fields ignore this and use `map`.\"},\"map\":{\"type\":[\"object\",\"null\"],\"propertyNames\":{\"minLength\":1,\"maxLength\":256},\"additionalProperties\":{\"$ref\":\"#/definitions/contextFragment\"},\"description\":\"For sides and finishing: each option value on the page (as read, also tried lower-cased) mapped to what it requires, e.g. { \\\"single\\\": { \\\"pageCount\\\": { \\\"min\\\": 1, \\\"max\\\": 1 } }, \\\"double\\\": { \\\"pageCount\\\": { \\\"min\\\": 2, \\\"max\\\": 2 } } } or { \\\"hem_eyelets\\\": { \\\"bleed\\\": { \\\"required_mm\\\": 25 }, \\\"safety\\\": { \\\"min_mm\\\": 20 } } }. An option missing from the map yields nothing. Ignored for other fields.\"},\"watch\":{\"$ref\":\"#/definitions/domEvents\",\"default\":[\"input\",\"change\"],\"description\":\"DOM events on the control that mean the shopper changed it. Default [\\\"input\\\", \\\"change\\\"].\"}}},\"writeEntry\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"source\"],\"description\":\"FileCheck to product page: write one measured fact (or the rule's default) into a control on the page. Runs after every upload status change.\",\"allOf\":[{\"if\":{\"properties\":{\"set\":{\"const\":\"attr\"}},\"required\":[\"set\"]},\"then\":{\"required\":[\"attr\"],\"properties\":{\"attr\":{\"type\":\"string\",\"minLength\":1}}}},{\"anyOf\":[{\"required\":[\"control\"],\"properties\":{\"control\":{\"type\":\"string\"}}},{\"required\":[\"customSelector\"],\"properties\":{\"customSelector\":{\"minLength\":1}}}]}],\"properties\":{\"id\":{\"$ref\":\"#/definitions/entryId\"},\"enabled\":{\"$ref\":\"#/definitions/entryEnabled\",\"default\":true},\"type\":{\"type\":\"string\",\"const\":\"write\",\"description\":\"Marks a write entry. Optional: entries without a type are write entries.\"},\"source\":{\"type\":\"string\",\"enum\":[\"pageCount\",\"fileCount\",\"colorPageCount\",\"monoPageCount\",\"width\",\"height\",\"area\",\"ruleWidth\",\"ruleHeight\",\"rulePages\"],\"description\":\"The value to write. pageCount: total pages across the upload. fileCount: number of accepted files. colorPageCount / monoPageCount: pages with any color or spot ink / black-only pages (nothing is written when ink was not measured). width / height: the first file's page width / height in mm. area: the first file's page area in mm². ruleWidth / ruleHeight / rulePages: the product rule's default artwork width, height (mm) and page count, written before anything is uploaded, to seed the page with the product's default size.\"},\"control\":{\"type\":[\"string\",\"null\"],\"enum\":[\"quantity\",\"width\",\"height\",\"area\",null],\"description\":\"Which kind of control to write into; picks built-in selectors tried after customSelector. quantity: input[name=\\\"quantity\\\"], input.quantity, #quantity, #qty, .qty, input[name=\\\"qty\\\"], input[data-quantity], .quantity input[type=\\\"number\\\"]. width: input[name=\\\"width\\\"], #width, .product-width, input[data-dimension=\\\"width\\\"], input[name=\\\"dimension_width\\\"] (height likewise). area: input[name=\\\"area\\\"], #area, .product-area, select[name=\\\"area\\\"], input[data-dimension=\\\"area\\\"]. null: use customSelector only. Either control or customSelector is required.\"},\"customSelector\":{\"$ref\":\"#/definitions/customSelector\"},\"set\":{\"type\":\"string\",\"enum\":[\"value\",\"text\",\"attr\"],\"default\":\"value\",\"description\":\"How to write: value (sets the input's or select's value), text (replaces the element's text) or attr (sets the attribute named in `attr`).\"},\"attr\":{\"type\":[\"string\",\"null\"],\"maxLength\":128,\"description\":\"Attribute to set when set is attr, e.g. data-qty.\"},\"emit\":{\"$ref\":\"#/definitions/domEvents\",\"default\":[\"input\",\"change\"],\"description\":\"DOM events fired on the control after writing, so the store's own scripts (price calculators, variant pickers) notice the change. Default [\\\"input\\\", \\\"change\\\"].\"},\"convertFrom\":{\"$ref\":\"#/definitions/unit\",\"default\":\"mm\",\"description\":\"Unit of the source value. Measured facts are always millimetres, so leave this at mm (the default). Ignored for counts.\"},\"convertTo\":{\"$ref\":\"#/definitions/unit\",\"default\":\"mm\",\"description\":\"Unit the page's control expects for width, height and area: a unit name (mm, cm, m, in, ft, pt) or millimetres per page unit. Area is converted with the square of the factor. Ignored for counts.\"},\"decimals\":{\"$ref\":\"#/definitions/decimals\"},\"round\":{\"$ref\":\"#/definitions/rounding\",\"default\":\"round\"}}}}}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"destination\",\"title\":\"Destination\",\"description\":\"Where a job's finished, print-ready files go once the job completes successfully. A destination is a reusable Library record: a workflow lists the destinations it delivers to in workflow.delivery.destinationIds (and only delivers while workflow.delivery.enabled is not false), and one destination can serve any number of workflows. `kind` picks the transport and `params` holds that transport's settings: email (download links mailed out), webhook (a JSON POST with download links, e.g. into Zapier), or one of the hotfolder kinds s3, sftp and ftp, which copy the files themselves into a folder the print shop's prepress or MIS system watches. Delivery runs once per job, after the job reaches done (never for previews or failed jobs); each destination is tried once and a failure on one does not stop the others. Files are named after the product (e.g. Business_Cards.pdf, or Business_Cards-1.pdf, Business_Cards-2.pdf when a job has several). Secret params (sftp/ftp password, sftp privateKey and passphrase, webhook headerValue) are write-only: send them as plain strings and they are encrypted on save; they read back masked as ********, and sending ******** back unchanged keeps the stored value. Use the destination test action to send a sample delivery (a one-page Sample_Product.pdf for order TEST-1001) through the real transport before pointing a workflow at it. Changing `kind` on an existing destination: also null out the old kind's params (JSON Merge Patch keeps keys you don't send).\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"properties\":{\"kind\":{\"type\":\"string\",\"enum\":[\"email\",\"s3\",\"webhook\",\"sftp\",\"ftp\"],\"description\":\"The transport. email: mails download links (no files attached) to an address, by default the shopper who placed the order. webhook: POSTs a JSON envelope with download links to a URL. s3: writes the files into an Amazon S3 bucket. sftp: uploads over SSH (SFTP). ftp: uploads over FTP or FTPS. s3, sftp and ftp are hotfolder kinds: they accept path tokens and metadata sidecars.\"},\"title\":{\"type\":\"string\",\"maxLength\":200,\"description\":\"Display name in the dashboard and in delivery logs, e.g. \\\"Prepress hotfolder (SFTP)\\\". Optional; the dashboard falls back to the kind plus host, bucket or address.\"},\"description\":{\"type\":\"string\",\"maxLength\":1000,\"description\":\"A note for the print shop: what this destination feeds and who owns the receiving end.\"},\"params\":{\"type\":\"object\",\"description\":\"The settings for `kind`; each kind accepts only its own keys. email: to, cc, bcc, replyTo, subject, attachMetadata, includeMetadata, templateId, linkExpiryHours. webhook: url (required), headerName, headerValue (secret), includeLinks, linkExpiryHours, meta. s3: bucket (required), region, access, roleArn, externalId, acl, prefix, plus the sidecar fields. sftp: host and username (required), port, password and/or privateKey (secrets, one required), passphrase (secret), path, plus the sidecar fields. ftp: host (required), port, username, password (secret), secure, path, plus the sidecar fields. Sidecar fields (s3/sftp/ftp): sidecar, sidecarFormat, sidecarTemplate, sidecarExt, includeFullReport.\"},\"secretsSet\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"password\":{\"type\":\"boolean\"},\"privateKey\":{\"type\":\"boolean\"},\"passphrase\":{\"type\":\"boolean\"},\"headerValue\":{\"type\":\"boolean\"}},\"description\":\"Dashboard display flags saying which secret params hold a value (so the editor can show \\\"set\\\" without the secret). Not used for delivery and not authoritative; omit it, the dashboard derives it.\"},\"schemaVersion\":{\"type\":\"integer\",\"minimum\":1,\"description\":\"Record format version written by the dashboard editor (currently 1). Omit it.\"},\"tags\":{\"type\":\"array\",\"maxItems\":50,\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64},\"description\":\"Free-form labels for organising the Library. Not used for delivery.\"}},\"allOf\":[{\"if\":{\"properties\":{\"kind\":{\"const\":\"email\"}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"params\":{\"$ref\":\"#/definitions/emailParams\"}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"s3\"}},\"required\":[\"kind\"]},\"then\":{\"required\":[\"params\"],\"properties\":{\"params\":{\"$ref\":\"#/definitions/s3Params\"}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"webhook\"}},\"required\":[\"kind\"]},\"then\":{\"required\":[\"params\"],\"properties\":{\"params\":{\"$ref\":\"#/definitions/webhookParams\"}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"sftp\"}},\"required\":[\"kind\"]},\"then\":{\"required\":[\"params\"],\"properties\":{\"params\":{\"$ref\":\"#/definitions/sftpParams\"}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"ftp\"}},\"required\":[\"kind\"]},\"then\":{\"required\":[\"params\"],\"properties\":{\"params\":{\"$ref\":\"#/definitions/ftpParams\"}}}}],\"definitions\":{\"secret\":{\"description\":\"A write-only credential. Send the plaintext as a string; it is encrypted on save and reads back as ********. The stored, encrypted form is an object { \\\"enc\\\": \\\"...\\\" }; it only appears when a record is re-validated with the secret left untouched, so never construct one yourself. To remove a secret, send null.\",\"anyOf\":[{\"type\":\"string\",\"minLength\":1,\"maxLength\":16384},{\"$ref\":\"#/definitions/sealedSecret\"}]},\"sealedSecret\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enc\"],\"description\":\"A secret as stored: encrypted by FileCheck on save. Kept unchanged when a write leaves the secret alone; never construct one yourself.\",\"properties\":{\"enc\":{\"type\":\"string\",\"minLength\":1,\"description\":\"The encrypted value.\"}}},\"emailAddress\":{\"type\":\"string\",\"format\":\"email\",\"maxLength\":254},\"linkExpiryHours\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":168,\"default\":24,\"description\":\"How long the download links stay valid, in hours (1 to 168, i.e. at most 7 days). Not editable in the dashboard; a later save of this destination from the dashboard editor drops it back to the 24-hour default.\"},\"hostname\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":253,\"pattern\":\"^[a-zA-Z0-9]([a-zA-Z0-9.-]*[a-zA-Z0-9])?$\"},\"port\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":65535},\"remotePath\":{\"type\":\"string\",\"maxLength\":1024,\"description\":\"Folder layout on the receiving end, as a static folder or a template with {tokens}. Without tokens it is a root folder and files land in <path>/orders/<orderId>/<file> (or <path>/jobs/<jobId>/<file> when the job has no order). With any {token} the template IS the whole layout and the orders/ folder is not added. Tokens ({name} or {{name}}): {orderId}, {jobId}, {jobName}, {sku}, {productId}, {product} (product name), {itemId} (order line item), {quantity}, {fileId} (alias {taskId}), {customer} (customer email), {filename} (e.g. Business_Cards.pdf), {basename} (filename without extension), {ext}, {n} (file number 1, 2, ...), {date} (YYYYMMDD, UTC), {yyyy}, {mm}, {dd}, {rand} (8 random hex chars). Values are made path-safe (characters other than letters, digits, _ . - and spaces are dropped, spaces become _, max 80 characters), and an empty or unknown token drops its folder level. If the template has neither {filename} nor {basename}, the filename is appended, so \\\"/hotfolder/{orderId}/{sku}\\\" writes hotfolder/ORD-1001/SKU-42/Business_Cards.pdf and \\\"/in/{orderId}_{basename}.{ext}\\\" names the file itself (in/ORD-1001_Business_Cards.pdf).\"},\"sidecar\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Also deliver a metadata file next to each print file, uploaded after it so a hotfolder watching for the sidecar always finds a complete print file. Named like the print file with the sidecar extension (Business_Cards.pdf gets Business_Cards.json). Off when omitted; the dashboard turns it on for new hotfolder destinations.\"},\"sidecarFormat\":{\"type\":\"string\",\"enum\":[\"json\",\"custom\"],\"default\":\"json\",\"description\":\"json: FileCheck's JSON envelope (generated time, job, order with customer and shipping address, product with sku and quantity, file, and the preflight summary, evaluation and findings). custom: the text of sidecarTemplate with tokens filled in, for an MIS that expects its own XML, CSV or ticket format. Only used when sidecar is true.\"},\"sidecarTemplate\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":20000,\"description\":\"Body of a custom sidecar (sidecarFormat custom), e.g. <order id=\\\"{orderId}\\\"><sku>{sku}</sku><qty>{quantity}</qty></order>. Takes every path token plus {customerName}, {orderStatus}, {currency}, {total}, {pages} (page count), {minDpi} (lowest effective image DPI), {maxTac} (max ink coverage %), {spotColors}, {verdict} (pass, warn or fail), {passCount}, {warnCount}, {failCount}. Values are inserted raw (spaces kept), and XML-escaped when sidecarExt is xml or the template starts with <. Unknown tokens become empty.\"},\"sidecarExt\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":16,\"pattern\":\"^[A-Za-z0-9_.]+$\",\"description\":\"File extension for the sidecar, without the dot, e.g. xml, csv, txt, jdf. Defaults to json for the JSON format and txt for a custom template. xml is sent as application/xml, csv as text/csv, anything else from a custom template as text/plain.\"},\"includeFullReport\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Also deliver the complete preflight report JSON next to each print file (Business_Cards.report.json). Only takes effect when sidecar is true and the job ran a preflight.\"},\"hotfolderRules\":{\"if\":{\"properties\":{\"sidecarFormat\":{\"const\":\"custom\"}},\"required\":[\"sidecarFormat\"]},\"then\":{\"required\":[\"sidecarTemplate\"]}},\"emailParams\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Email delivery: one message per job with a download link per file (files are never attached). Links go through FileCheck's download host and stay valid for linkExpiryHours. Sent from FileCheck's mail sender, or the account's own SMTP server when one is configured in settings.\",\"properties\":{\"to\":{\"$ref\":\"#/definitions/emailAddress\",\"description\":\"Recipient address. Leave it out and the email goes to the job's customer email, i.e. the shopper who placed the order, not the print shop; set it to the shop's production inbox to notify the shop instead. The destination test needs either this or the caller's own address.\"},\"cc\":{\"$ref\":\"#/definitions/emailAddress\",\"description\":\"One address to copy on every delivery email.\"},\"bcc\":{\"$ref\":\"#/definitions/emailAddress\",\"description\":\"One address to blind-copy on every delivery email, e.g. an archive inbox.\"},\"replyTo\":{\"$ref\":\"#/definitions/emailAddress\",\"description\":\"Where replies go. Defaults to FileCheck's sender address. Not editable in the dashboard; a later save from the dashboard editor drops it.\"},\"subject\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":300,\"description\":\"Subject line. Tokens: {orderId}, {jobId}, {jobName}, {product}, {customer} (customer email), {name} (account holder's name). Default: \\\"Your print files {orderId} are ready\\\".\"},\"attachMetadata\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Attach a JSON file with the order, product and per-file preflight metadata (order-<orderId>-metadata.json). Off when omitted; the dashboard turns it on for new email destinations.\"},\"includeMetadata\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Add an order and preflight summary table (order, product, SKU, quantity, preflight verdict per file) under the download links in the default email body. Ignored when templateId supplies the body.\"},\"templateId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":128,\"description\":\"Id of one of the account's own email templates (Library > Emails) to use as the body instead of FileCheck's default. The template's HTML and text bodies take the subject tokens plus {links}. Not editable in the dashboard's destination editor; a later save from it drops this field.\"},\"linkExpiryHours\":{\"$ref\":\"#/definitions/linkExpiryHours\",\"default\":24}}},\"s3Params\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"bucket\"],\"description\":\"Amazon S3 hotfolder: each file is written as an object in the print shop's bucket. FileCheck writes either by assuming a role in the shop's AWS account (access role: the shop creates a role whose trust policy allows FileCheck's AWS account, from the destination setup action, with the condition sts:ExternalId = externalId, and grants it s3:PutObject and s3:PutObjectAcl on arn:aws:s3:::<bucket>/<prefix>/*) or with its own credentials (access policy: the shop's bucket policy grants FileCheck's account those two actions).\",\"allOf\":[{\"$ref\":\"#/definitions/hotfolderRules\"},{\"if\":{\"properties\":{\"access\":{\"const\":\"role\"}},\"required\":[\"access\"]},\"then\":{\"required\":[\"roleArn\",\"externalId\"]}},{\"if\":{\"required\":[\"roleArn\"],\"not\":{\"properties\":{\"access\":{\"const\":\"policy\"}},\"required\":[\"access\"]}},\"then\":{\"required\":[\"externalId\"]}}],\"properties\":{\"bucket\":{\"type\":\"string\",\"pattern\":\"^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$\",\"description\":\"Bucket name only (no s3:// and no path), e.g. acme-prepress-inbox.\"},\"region\":{\"type\":\"string\",\"pattern\":\"^[a-z]{2}(-[a-z]+)+-\\\\d$\",\"description\":\"The bucket's AWS region, e.g. us-east-1. Defaults to eu-central-1 (FileCheck's own region), so set it whenever the bucket lives elsewhere or writes will fail.\"},\"access\":{\"type\":\"string\",\"enum\":[\"role\",\"policy\"],\"description\":\"How FileCheck gets write access. role (recommended): assume roleArn with externalId. policy: the bucket policy grants FileCheck's AWS account directly; roleArn is then ignored. Omitted: behaves as role when roleArn is set and as policy when it is not.\"},\"roleArn\":{\"type\":\"string\",\"pattern\":\"^arn:aws:iam::\\\\d{12}:role/.+$\",\"maxLength\":2048,\"description\":\"ARN of the IAM role in the shop's account that FileCheck assumes, e.g. arn:aws:iam::123456789012:role/filecheck-delivery. Required with access role.\"},\"externalId\":{\"type\":\"string\",\"minLength\":2,\"maxLength\":1224,\"pattern\":\"^[\\\\w+=,.@:/-]+$\",\"description\":\"The secret-ish value the role's trust policy requires as sts:ExternalId, guarding against other FileCheck accounts using the same role. Generate a random, unguessable value (the dashboard uses fcx_ followed by 24 hex characters), give it to the shop's AWS admin for the trust policy, and never reuse it across shops. Changing it requires updating the role. Required with access role.\"},\"acl\":{\"type\":\"string\",\"enum\":[\"bucket-owner-full-control\",\"private\",\"bucket-owner-read\"],\"description\":\"Canned ACL set on each object. Omit it for the bucket default; buckets with ACLs disabled (the AWS default since 2023) reject any ACL except bucket-owner-full-control. With access policy, bucket-owner-full-control makes sure the shop owns the delivered files.\"},\"prefix\":{\"$ref\":\"#/definitions/remotePath\",\"description\":\"Key prefix (folder) inside the bucket; leading and trailing slashes are ignored. Without tokens, objects land at <prefix>/orders/<orderId>/<file> (or <prefix>/jobs/<jobId>/<file>). With any {token} the prefix is the whole key layout. Tokens: {orderId}, {jobId}, {jobName}, {sku}, {productId}, {product}, {itemId}, {quantity}, {fileId}, {customer}, {filename}, {basename}, {ext}, {n}, {date} (YYYYMMDD), {yyyy}, {mm}, {dd}, {rand}; values are made path-safe, empty tokens drop their folder level, and the filename is appended unless {filename} or {basename} is used. Example: \\\"hotfolder/{date}/{orderId}\\\".\"},\"sidecar\":{\"$ref\":\"#/definitions/sidecar\",\"default\":false},\"sidecarFormat\":{\"$ref\":\"#/definitions/sidecarFormat\",\"default\":\"json\"},\"sidecarTemplate\":{\"$ref\":\"#/definitions/sidecarTemplate\"},\"sidecarExt\":{\"$ref\":\"#/definitions/sidecarExt\"},\"includeFullReport\":{\"$ref\":\"#/definitions/includeFullReport\",\"default\":false}}},\"webhookParams\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"url\"],\"description\":\"Webhook delivery: one JSON POST per job to url, 10-second timeout, no retries. Body: { event: \\\"job.delivered\\\" (\\\"destination.test\\\" for a test), jobId, orderId, customerEmail, product { itemId, productId, sku, name, quantity }, files [ { name, mimeType, taskId, url } ], meta }. The file urls are signed download links valid for linkExpiryHours. Use this to reach Dropbox, Google Drive, Box or OneDrive through a Zapier or Make catch hook.\",\"dependencies\":{\"headerValue\":[\"headerName\"]},\"properties\":{\"url\":{\"type\":\"string\",\"format\":\"uri\",\"pattern\":\"^https?://\",\"maxLength\":2048,\"description\":\"The endpoint that receives the POST. Use https: the body carries download links to the customer's files.\"},\"headerName\":{\"type\":\"string\",\"pattern\":\"^[A-Za-z0-9-]{1,64}$\",\"description\":\"Name of one extra request header for authenticating the call, e.g. Authorization or X-Api-Key. Sent only when headerValue is set.\"},\"headerValue\":{\"$ref\":\"#/definitions/secret\",\"description\":\"Value of the headerName header, e.g. \\\"Bearer abc123\\\". Secret: send plaintext, it is encrypted on save and reads back as ********; the stored form is { \\\"enc\\\": \\\"...\\\" }.\"},\"includeLinks\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Include the files array with download links. Set false to send only the job, order and product details.\"},\"linkExpiryHours\":{\"$ref\":\"#/definitions/linkExpiryHours\",\"default\":24},\"meta\":{\"type\":\"object\",\"description\":\"Free-form JSON object copied as-is into every payload as meta, e.g. { \\\"source\\\": \\\"filecheck\\\", \\\"shop\\\": \\\"acme\\\" }, for routing on the receiving side. Any keys are allowed.\"}}},\"sftpParams\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"host\",\"username\"],\"description\":\"SFTP hotfolder: files are uploaded over SSH, creating folders as needed. Authenticate with password or privateKey (at least one).\",\"allOf\":[{\"$ref\":\"#/definitions/hotfolderRules\"},{\"anyOf\":[{\"required\":[\"password\"]},{\"required\":[\"privateKey\"]}]}],\"dependencies\":{\"passphrase\":[\"privateKey\"]},\"properties\":{\"host\":{\"$ref\":\"#/definitions/hostname\",\"description\":\"Server host name or IPv4 address only, e.g. sftp.printer.example (no sftp:// and no port).\"},\"port\":{\"$ref\":\"#/definitions/port\",\"default\":22,\"description\":\"SSH port. Default 22.\"},\"username\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":256,\"description\":\"Login user name.\"},\"password\":{\"$ref\":\"#/definitions/secret\",\"description\":\"Login password. Secret: send plaintext, it is encrypted on save and reads back as ********; the stored form is { \\\"enc\\\": \\\"...\\\" }.\"},\"privateKey\":{\"description\":\"Private key for key-based login: the full text of an OpenSSH, PEM or PuTTY private key, line breaks included (\\\"-----BEGIN OPENSSH PRIVATE KEY-----\\\\n...\\\"), never the public key. Secret: encrypted on save, reads back as ********; the stored form is { \\\"enc\\\": \\\"...\\\" }.\",\"anyOf\":[{\"type\":\"string\",\"maxLength\":16384,\"pattern\":\"^\\\\s*(-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----|PuTTY-User-Key-File-[23]:)\"},{\"$ref\":\"#/definitions/sealedSecret\"}]},\"passphrase\":{\"$ref\":\"#/definitions/secret\",\"description\":\"Passphrase that unlocks privateKey, if the key is encrypted. Secret: encrypted on save, reads back as ********.\"},\"path\":{\"$ref\":\"#/definitions/remotePath\",\"description\":\"Folder on the server, measured from the server's root (\\\"incoming\\\" and \\\"/incoming\\\" both mean /incoming), created if missing. Without tokens, files land in <path>/orders/<orderId>/<file> (or <path>/jobs/<jobId>/<file>). With any {token} the path is the whole layout. Tokens: {orderId}, {jobId}, {jobName}, {sku}, {productId}, {product}, {itemId}, {quantity}, {fileId}, {customer}, {filename}, {basename}, {ext}, {n}, {date} (YYYYMMDD), {yyyy}, {mm}, {dd}, {rand}; values are made path-safe, empty tokens drop their folder level, and the filename is appended unless {filename} or {basename} is used. Example: \\\"/hotfolder/{orderId}/{sku}\\\".\"},\"sidecar\":{\"$ref\":\"#/definitions/sidecar\",\"default\":false},\"sidecarFormat\":{\"$ref\":\"#/definitions/sidecarFormat\",\"default\":\"json\"},\"sidecarTemplate\":{\"$ref\":\"#/definitions/sidecarTemplate\"},\"sidecarExt\":{\"$ref\":\"#/definitions/sidecarExt\"},\"includeFullReport\":{\"$ref\":\"#/definitions/includeFullReport\",\"default\":false}}},\"ftpParams\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"host\"],\"description\":\"FTP hotfolder: files are uploaded over FTP, or explicit FTPS when secure is true, creating folders as needed.\",\"allOf\":[{\"$ref\":\"#/definitions/hotfolderRules\"}],\"properties\":{\"host\":{\"$ref\":\"#/definitions/hostname\",\"description\":\"Server host name or IPv4 address only, e.g. ftp.printer.example (no ftp:// and no port).\"},\"port\":{\"$ref\":\"#/definitions/port\",\"default\":21,\"description\":\"FTP control port. Default 21.\"},\"username\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":256,\"description\":\"Login user name. Omit only for an anonymous FTP server (logs in as anonymous).\"},\"password\":{\"$ref\":\"#/definitions/secret\",\"description\":\"Login password. Secret: send plaintext, it is encrypted on save and reads back as ********; the stored form is { \\\"enc\\\": \\\"...\\\" }.\"},\"secure\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Use explicit FTPS (AUTH TLS on the normal port). Leave false for plain FTP; implicit FTPS on port 990 is not supported.\"},\"path\":{\"$ref\":\"#/definitions/remotePath\",\"description\":\"Folder relative to the directory the FTP login starts in, created if missing. Without tokens, files land in <path>/orders/<orderId>/<file> (or <path>/jobs/<jobId>/<file>). With any {token} the path is the whole layout. Tokens: {orderId}, {jobId}, {jobName}, {sku}, {productId}, {product}, {itemId}, {quantity}, {fileId}, {customer}, {filename}, {basename}, {ext}, {n}, {date} (YYYYMMDD), {yyyy}, {mm}, {dd}, {rand}; values are made path-safe, empty tokens drop their folder level, and the filename is appended unless {filename} or {basename} is used. Example: \\\"/hotfolder/{orderId}/{sku}\\\".\"},\"sidecar\":{\"$ref\":\"#/definitions/sidecar\",\"default\":false},\"sidecarFormat\":{\"$ref\":\"#/definitions/sidecarFormat\",\"default\":\"json\"},\"sidecarTemplate\":{\"$ref\":\"#/definitions/sidecarTemplate\"},\"sidecarExt\":{\"$ref\":\"#/definitions/sidecarExt\"},\"includeFullReport\":{\"$ref\":\"#/definitions/includeFullReport\",\"default\":false}}}}}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"optimize-preset\",\"title\":\"Optimize preset\",\"description\":\"A saved, named set of PDF optimizations (downsample or AI-upscale images, recompress, convert colors to CMYK/gray/RGB, outline text, flatten layers, thicken hairlines, strip junk, resize pages, set trim/crop boxes, add bleed, embed an output-intent ICC profile) that a job applies to the customer's PDF. Workflows point at it from an optimize step, workflow.streams[].steps[] { type: \\\"optimize\\\", config: { presetId } }, and rules from rule.accepts[].flow.optimize.presetId (when flow.optimize.enabled). The preset is read at run time, so edits apply to the next job. The proof sheet also takes its page size from pageResize and its ICC profile from outputIntent. Presets apply to PDFs only, including raster uploads after a Convert-to-PDF step; raster optimize ignores them. The stored shape is NOT the params shape of POST /jobs/optimize: here every group is an object with its own `enabled` switch and only groups with enabled true are applied (a group without enabled: true does nothing), scaleImages.targetRes is a single DPI number, and flattenLayers is { enabled }. Other keys in the optimize step's config, written in the POST /jobs/optimize params.pdf shape, replace the preset's group of the same name for that step. Groups run as: AI upscale and bleed fill first, then the DynaPDF pass (resize, boxes, conversion, compression, output intent).\",\"type\":\"object\",\"additionalProperties\":false,\"allOf\":[{\"if\":{\"required\":[\"bleed\",\"pageResize\"],\"properties\":{\"bleed\":{\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"pageResize\":{\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}},\"then\":{\"properties\":{\"bleed\":{\"required\":[\"fill\"],\"properties\":{\"fill\":{\"enum\":[\"mirror\",\"scale\"]}}}}}}],\"properties\":{\"title\":{\"type\":\"string\",\"maxLength\":200,\"description\":\"Name shown in the dashboard's preset pickers, e.g. \\\"Offset CMYK, 300 dpi, 3 mm bleed\\\". The dashboard will not save a preset without one.\"},\"tags\":{\"type\":\"array\",\"maxItems\":50,\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64},\"description\":\"Free-form labels for organising the Library. Not used at run time.\"},\"scaleImages\":{\"$ref\":\"#/definitions/scaleImages\"},\"upscaleImages\":{\"$ref\":\"#/definitions/upscaleImages\"},\"compression\":{\"$ref\":\"#/definitions/compression\"},\"colorConversion\":{\"$ref\":\"#/definitions/colorConversion\"},\"grayTo1Bit\":{\"$ref\":\"#/definitions/grayTo1Bit\"},\"textToOutlines\":{\"$ref\":\"#/definitions/textToOutlines\"},\"flattenLayers\":{\"$ref\":\"#/definitions/flattenLayers\"},\"hairlines\":{\"$ref\":\"#/definitions/hairlines\"},\"strip\":{\"$ref\":\"#/definitions/strip\"},\"pageResize\":{\"$ref\":\"#/definitions/pageResize\"},\"boundingBoxes\":{\"$ref\":\"#/definitions/boundingBoxes\"},\"bleed\":{\"$ref\":\"#/definitions/bleed\"},\"outputIntent\":{\"$ref\":\"#/definitions/outputIntent\"}},\"definitions\":{\"groupEnabled\":{\"type\":\"boolean\",\"description\":\"Switch for this group: true applies it, false keeps the settings but skips it. Required, because a group without enabled: true does nothing.\"},\"dpi\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":1200},\"channelDpi\":{\"type\":\"object\",\"additionalProperties\":false,\"minProperties\":1,\"properties\":{\"bw\":{\"$ref\":\"#/definitions/dpi\",\"description\":\"DPI for 1-bit black and white images.\"},\"gray\":{\"$ref\":\"#/definitions/dpi\",\"description\":\"DPI for grayscale images.\"},\"color\":{\"$ref\":\"#/definitions/dpi\",\"description\":\"DPI for color (multi-channel) images.\"}}},\"scaleImages\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Downsample images whose resolution is above targetRes, to shrink the file. Never increases resolution (that is upscaleImages).\",\"if\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]},\"then\":{\"required\":[\"targetRes\"]},\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"targetRes\":{\"description\":\"Target resolution in DPI that larger images are downsampled to, e.g. 300 for offset, 150 for large format. One number applies to color, gray and 1-bit images alike (the dashboard edits only this form); a { bw, gray, color } object sets channels separately. Images at or below targetRes are left alone.\",\"default\":300,\"anyOf\":[{\"$ref\":\"#/definitions/dpi\"},{\"$ref\":\"#/definitions/channelDpi\"}]},\"minRes\":{\"$ref\":\"#/definitions/channelDpi\",\"description\":\"Per-channel threshold in DPI: only images above it are downsampled. Defaults to targetRes + 1 per channel. Not editable in the dashboard; a later save there drops it.\"},\"skipMasked\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Leave images that have a color mask untouched.\"},\"skipSizeCheck\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Write the downsampled image even when it comes out larger than the original. Not editable in the dashboard; a later save there drops it.\"}}},\"upscaleImages\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"AI-upscale placed images whose effective resolution is below targetDpi (an external AI service, run before everything else; adds processing time per image). RGB, gray and indexed images only; CMYK and JPEG 2000 images are left as they are. Combined with scaleImages, keep targetDpi at or below scaleImages.targetRes, or images are upscaled and then immediately downsampled again.\",\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"targetDpi\":{\"type\":\"number\",\"minimum\":72,\"maximum\":1200,\"default\":300,\"description\":\"Effective DPI every placed image should reach at its printed size.\"},\"maxScale\":{\"type\":\"number\",\"minimum\":1,\"maximum\":4,\"default\":4,\"description\":\"Largest enlargement factor per image; images needing more are enlarged to this and reported as still below target.\"},\"maxImages\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":200,\"default\":50,\"description\":\"Most images upscaled per document, worst DPI first; the rest are reported as skipped.\"}}},\"compression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Recompress image streams. Filters left out keep the optimizer's own choice. The dashboard starts new presets at ccitt4 / jpeg / jpeg with quality 80; jpeg and jpeg2000 are lossy, so prefer flate where print quality matters more than size.\",\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"bwFilter\":{\"type\":\"string\",\"enum\":[\"flate\",\"ccitt3\",\"ccitt4\",\"jbig2\",\"lzw\",\"runlength\"],\"description\":\"Filter for 1-bit black and white images: flate (lossless), ccitt3 / ccitt4 (lossless fax), jbig2 (best for scanned text), lzw, runlength.\"},\"grayFilter\":{\"type\":\"string\",\"enum\":[\"flate\",\"jpeg\",\"jpeg2000\",\"lzw\"],\"description\":\"Filter for grayscale images: flate or lzw (lossless), jpeg or jpeg2000 (lossy).\"},\"colorFilter\":{\"type\":\"string\",\"enum\":[\"flate\",\"jpeg\",\"jpeg2000\",\"lzw\"],\"description\":\"Filter for color images: flate or lzw (lossless), jpeg or jpeg2000 (lossy).\"},\"jpegQuality\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":100,\"description\":\"JPEG quality, 1 (smallest) to 100 (best). 80 to 90 is typical for print.\"},\"jpeg2000Quality\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":100,\"description\":\"JPEG 2000 quality, 1 (smallest) to 100 (best).\"},\"use1BitJBIG2\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Recompress 1-bit images with JBIG2 (very compact for scanned text); images already in JBIG2 are skipped.\"},\"recompressJBIG2\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Re-encode 1-bit images even when they are already JBIG2. Only with use1BitJBIG2.\"}}},\"colorConversion\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Convert text, vector art and (with convertSpecialSpaces) images to one device color space, e.g. RGB uploads to CMYK for offset.\",\"if\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]},\"then\":{\"required\":[\"target\"]},\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"target\":{\"type\":\"string\",\"enum\":[\"cmyk\",\"rgb\",\"gray\"],\"description\":\"Color space to convert to: cmyk (press), rgb (screen or some digital presses) or gray (black-only jobs).\"},\"convertSpecialSpaces\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Also convert images and Separation, DeviceN and NChannel colors (spot inks) unless listed in preserve. Off converts only text and vectors in ordinary color spaces; turn it on for a full conversion.\"},\"preserve\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"icc\",\"separation\",\"separationAll\",\"deviceN\",\"nchannel\"]},\"description\":\"Color-space families to leave untouched: separation keeps spot inks (Pantone, white, varnish, cutter), separationAll keeps the All separation used for registration marks, deviceN and nchannel keep multi-ink builds, icc keeps ICC-based colors.\"},\"excludeColorSpaces\":{\"type\":\"array\",\"uniqueItems\":true,\"maxItems\":256,\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":128},\"description\":\"Named color spaces (e.g. \\\"PANTONE 185 C\\\", \\\"Cutter\\\") to exclude from, or limit, the conversion. Stored for the dashboard but not applied by the optimizer yet; use preserve to keep spot inks.\"},\"excludeMode\":{\"type\":\"string\",\"enum\":[\"exclude\",\"only\"],\"default\":\"exclude\",\"description\":\"How excludeColorSpaces is read: exclude the listed spaces, or convert only them. Not applied by the optimizer yet.\"},\"replaceJpeg2000WithJpeg\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Recompress converted JPEG 2000 images as JPEG (much faster, near-identical quality).\"},\"onOverprint\":{\"type\":\"string\",\"enum\":[\"fail\",\"skip\",\"convert\"],\"description\":\"What to do with overprinting objects, whose appearance can change when converted. fail: stop the optimize step with an error (the dashboard's default for new presets; overprinting black text is common, so expect failures). skip: leave overprinting objects in their original color space. convert: convert them anyway. Omitted behaves as convert.\"}}},\"grayTo1Bit\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Convert grayscale images to 1-bit black and white (compressed as JBIG2). For line art and scanned text only; destroys photos.\",\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"useOtsuFilter\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Pick the black/white threshold per image with Otsu's method (better for scans).\"}}},\"textToOutlines\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Convert text to vector outlines, so missing or unlicensed fonts cannot reflow on press. The result has no searchable text.\",\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"nonEmbeddedOnly\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Outline only text set in fonts that are not embedded; embedded fonts stay as text.\"}}},\"flattenLayers\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Flatten optional content (layers) into one visible layer, so hidden or print-only layers cannot surprise the press. An object, not a boolean.\",\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"}}},\"hairlines\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Thicken strokes thinner than minWidth so they do not break up or vanish on press.\",\"if\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]},\"then\":{\"required\":[\"minWidth\"]},\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"minWidth\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"maximum\":10,\"default\":0.25,\"description\":\"Minimum stroke width in points (1 pt = 1/72 inch = 0.353 mm). Typical: 0.25 for sheetfed offset, 0.5 for flexo, 0.75 to 1 for large format and screen printing.\"},\"ignoreZeroWidth\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Leave zero-width strokes (drawn one device pixel wide) alone. Off by default because they are the most common hairline hazard.\"},\"zeroWidthOnly\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Only widen zero-width strokes and leave thin non-zero strokes as designed.\"}}},\"strip\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Remove non-printing objects to shrink or sanitize the file. Each switch defaults to off.\",\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"thumbnails\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Remove embedded page thumbnails.\"},\"alternateImages\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Remove alternate (preview) versions of images.\"},\"privateData\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Remove application-private data (e.g. Illustrator or InDesign editing data).\"},\"invisiblePaths\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Remove vector paths that draw nothing.\"},\"batesNumbers\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Remove Bates numbering and its headers and footers.\"},\"headerFooter\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Remove headers and footers added by PDF tools (not Bates numbers).\"},\"annotations\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Drop all annotations (comments, sticky notes, links, stamps).\"},\"formFields\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Drop interactive form fields (AcroForm and XFA).\"},\"attachments\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Drop embedded file attachments.\"},\"javascript\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Drop document JavaScript and JavaScript actions.\"},\"bookmarks\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Drop the bookmarks (document outline).\"}}},\"pageResize\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Resize every page. Give a named format, or width and height in points, or scaleX/scaleY factors; the first of those present wins (format, then width/height, then factors). One scale computed from page 1 is applied to the whole document. Cannot be combined with bleed using fill none.\",\"allOf\":[{\"if\":{\"required\":[\"width\"],\"properties\":{\"width\":{\"type\":\"number\"}}},\"then\":{\"required\":[\"height\"],\"properties\":{\"height\":{\"type\":\"number\"}}}},{\"if\":{\"required\":[\"height\"],\"properties\":{\"height\":{\"type\":\"number\"}}},\"then\":{\"required\":[\"width\"],\"properties\":{\"width\":{\"type\":\"number\"}}}}],\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"mode\":{\"type\":\"string\",\"enum\":[\"scale\",\"stretch\"],\"default\":\"scale\",\"description\":\"How content meets a size target (format or width/height): scale keeps proportions and fits inside the target (may leave margins); stretch scales X and Y independently to fill it exactly (may distort). Ignored when only scaleX/scaleY are given.\"},\"format\":{\"type\":[\"string\",\"null\"],\"enum\":[\"A3\",\"A4\",\"A5\",\"Letter\",\"Legal\",\"Tabloid\",null],\"description\":\"Named paper size: A3, A4, A5, Letter, Legal or Tabloid, turned by orientation. Takes precedence over width/height and scale factors. null when not used.\"},\"orientation\":{\"type\":\"string\",\"enum\":[\"portrait\",\"landscape\"],\"default\":\"portrait\",\"description\":\"Orientation applied to format. Ignored otherwise.\"},\"width\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"description\":\"Target page width in points (1 pt = 1/72 inch, so points = mm x 2.8346; A4 is 595 x 842). Needs height. null when not used.\"},\"height\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"description\":\"Target page height in points. Needs width. null when not used.\"},\"scaleX\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"description\":\"Horizontal scale factor (1 = unchanged, 0.5 = half), used only when neither format nor width/height is set.\"},\"scaleY\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"description\":\"Vertical scale factor, used only when neither format nor width/height is set. Defaults to scaleX.\"}}},\"boundingBoxes\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Set the trim box and/or crop box of every page as margins inset from the page's media box, so one preset works for any page size. For adding bleed use the bleed group instead; with bleed fill mirror or scale the pages are rebuilt and a trim entry here is ignored.\",\"if\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]},\"then\":{\"properties\":{\"entries\":{\"minItems\":1}},\"required\":[\"entries\"]},\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"entries\":{\"type\":\"array\",\"maxItems\":2,\"items\":{\"$ref\":\"#/definitions/boundingBox\"},\"description\":\"At most one entry per box (one trim, one crop).\"}}},\"boundingBox\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"box\",\"source\"],\"description\":\"One box, as margins in points measured inward from the media box edges.\",\"properties\":{\"box\":{\"type\":\"string\",\"enum\":[\"trim\",\"crop\"],\"description\":\"Which page box to set: trim (the finished, cut size) or crop (the visible area in viewers).\"},\"source\":{\"type\":\"string\",\"const\":\"media\",\"description\":\"Box the margins are measured from. Always \\\"media\\\"; required, an entry without it fails the optimize step.\"},\"top\":{\"type\":\"number\",\"default\":0,\"description\":\"Inset of the top edge in points (1 pt = 1/72 inch; 3 mm = 8.504 pt), positive inward.\"},\"bottom\":{\"type\":\"number\",\"default\":0,\"description\":\"Inset of the bottom edge in points, positive inward.\"},\"left\":{\"type\":\"number\",\"default\":0,\"description\":\"Inset of the left edge in points, positive inward.\"},\"right\":{\"type\":\"number\",\"default\":0,\"description\":\"Inset of the right edge in points, positive inward.\"},\"expand\":{\"type\":\"number\",\"default\":0,\"description\":\"Uniform change on all four sides in points, positive OUTWARD (opposite sign to the per-side insets); added to them.\"},\"page\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"description\":\"1-based page to apply to; null or omitted applies to every page.\"}}},\"bleed\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Add bleed around the finished size. The page's trim box (or the whole page when it has none) is taken as the trim, required_mm is added beyond it, and the media, bleed and trim boxes are set. fill decides what goes into the new strip.\",\"if\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]},\"then\":{\"required\":[\"required_mm\"]},\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"required_mm\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Bleed in millimetres added on each selected edge, e.g. 3 (3.175 for 1/8 inch).\"},\"fill\":{\"type\":\"string\",\"enum\":[\"none\",\"mirror\",\"scale\"],\"default\":\"none\",\"description\":\"How the new strip is filled. none: only the page boxes are set, so the artwork must already extend past the trim. mirror: edge artwork is reflected outward into the bleed (the dashboard's default for new presets). scale: page content is enlarged slightly so it overflows the trim. mirror and scale also flatten visible annotations into the artwork. With pageResize enabled, fill must be mirror or scale.\"},\"sides\":{\"type\":\"array\",\"minItems\":1,\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"all\",\"top\",\"right\",\"bottom\",\"left\"]},\"default\":[\"all\"],\"description\":\"Edges that get bleed: [\\\"all\\\"] (default) or any of top, right, bottom, left. Ignored for fill scale, which always grows every edge.\"}}},\"outputIntent\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"description\":\"Embed an ICC profile as the PDF's output intent, declaring the printing condition the file is meant for (PDF/X workflows). Also sets the profile the proof is rendered with. Does not convert colors; use colorConversion for that.\",\"if\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]},\"then\":{\"required\":[\"profile\"],\"properties\":{\"profile\":{\"type\":\"string\"}}},\"properties\":{\"enabled\":{\"$ref\":\"#/definitions/groupEnabled\"},\"profile\":{\"type\":[\"string\",\"null\"],\"enum\":[\"fogra51\",\"fogra52\",\"gracol2013\",\"swop2013\",\"fogra39\",\"iso-coated-v2\",\"iso-coated-v2-300\",\"gracol2006\",\"swop\",\"fogra29\",\"japan-coated\",\"japan-uncoated\",\"psr-lwc\",\"psr-snp\",\"srgb\",\"adobe-rgb\",\"display-p3\",\"greyscale\",null],\"description\":\"Bundled ICC profile. CMYK modern: fogra51 (PSO Coated v3), fogra52 (PSO Uncoated v3), gracol2013, swop2013. CMYK legacy coated: fogra39 (Coated FOGRA39), iso-coated-v2, iso-coated-v2-300, gracol2006, swop (US Web Coated SWOP v2). CMYK legacy uncoated: fogra29. Japan: japan-coated, japan-uncoated. Web offset: psr-lwc, psr-snp. RGB: srgb, adobe-rgb, display-p3. Gray: greyscale. Required when enabled; null otherwise.\"},\"condition\":{\"type\":[\"string\",\"null\"],\"maxLength\":256,\"description\":\"Free-text name of the printing condition, e.g. \\\"Coated FOGRA39 (ISO 12647-2:2004)\\\". Shown in the dashboard only; the embedded output intent comes from the profile alone.\"}}}}}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"product-map\",\"title\":\"Product mapping\",\"description\":\"Which workflow a product in your store uses. The storefront Element loads the mapped workflow on that product's page, and the workflow's intake rule decides which files the customer can upload. A product can use one workflow for every variant, or a different workflow per variant (for example one per size); a variant without its own workflow uses the product's. The id in the path is the product id as your store knows it (Shopify: the numeric product id). On WooCommerce, PrestaShop and OpenCart the product's workflow is set in the FileCheck plugin's product settings instead.\",\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"workflowId\":{\"type\":[\"string\",\"null\"],\"minLength\":1,\"description\":\"The published workflow every variant uses unless it has its own. null when only variants are mapped.\"},\"title\":{\"type\":\"string\",\"maxLength\":300,\"description\":\"The product title, shown in the dashboard's product list.\"},\"url\":{\"type\":[\"string\",\"null\"],\"format\":\"uri\",\"maxLength\":2048,\"description\":\"The product's storefront page, so the dashboard can link to where the upload form now appears.\"},\"variants\":{\"type\":\"object\",\"maxProperties\":250,\"description\":\"Per-variant workflows, keyed by the variant id as your store knows it (Shopify: the numeric variant id). Sending this replaces the whole set; leave it out to keep the stored one.\",\"propertyNames\":{\"pattern\":\"^[A-Za-z0-9_.:-]{1,64}$\"},\"additionalProperties\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"workflowId\"],\"properties\":{\"workflowId\":{\"type\":[\"string\",\"null\"],\"minLength\":1,\"description\":\"The published workflow this variant uses; null to fall back to the product's.\"},\"title\":{\"type\":\"string\",\"maxLength\":300,\"description\":\"The variant title (for example \\\"A5 / Matte\\\"), shown in the dashboard.\"}}}}},\"anyOf\":[{\"required\":[\"workflowId\"],\"properties\":{\"workflowId\":{\"type\":\"string\"}}},{\"required\":[\"variants\"],\"properties\":{\"variants\":{\"minProperties\":1}}}]}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"profile\",\"title\":\"Profile\",\"description\":\"A preflight profile: the checks FileCheck runs on an uploaded file, each with its settings (target), how a failure is judged (severity) and whether it is repaired automatically. There are two kinds. A PDF profile (kind omitted or 'pdf') checks PDFs, and vector and office files once converted to PDF; its checks sit in the sections geometry (geom.*), color (color.*), text (text.*), images (image.*) and structure (struct.*). A raster profile (kind: 'raster') checks image uploads (JPEG, PNG, TIFF and so on) with the single section raster (raster.*). An upload rule points at profiles through rule.accepts[].preflight.profileId: pdf, vector and office accepts need a PDF profile, raster accepts a raster profile. A check runs only when both its section's enabled and its own enabled are true; everything omitted is off. Each check has a severity. reject: a failing file is rejected (shown as a warning instead when the upload rule's onFail is not reject). warn: it passes with a warning. ignore: the finding is recorded but never fails or warns. autofix: the customer is told FileCheck repairs it, and the finding is judged as reject when this file is beyond the repair; autofix is accepted only on checks that have a repair (their description says Autofix: …). Repairs run only in workflows with an autofix step, which repairs every failed check that has a repair whatever its severity, so to stop a repair disable the check. Units are in the field names: _mm millimetres, _pt points (1/72 in), _dpi or dpi pixels per inch, percent, _px pixels, _mb megabytes. Unknown check ids, a check in the wrong section and misspelled settings are refused.\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"sections\"],\"properties\":{\"title\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":120,\"description\":\"Name shown in the dashboard and in the profile picker of upload rules, e.g. 'Business cards 85 x 55 mm'. Keep it under 45 characters, the dashboard editor's limit; the dashboard will not save a profile without one.\"},\"description\":{\"type\":\"string\",\"maxLength\":2000,\"default\":\"\",\"description\":\"Note for the print shop: what the profile is for. Shown in the dashboard editor of PDF profiles; never shown to customers.\"},\"kind\":{\"enum\":[\"pdf\",\"raster\"],\"description\":\"'raster' for an image profile; 'pdf' or omitted for a PDF profile. Decides which sections are valid: changing it on an existing profile means replacing its sections too, and upload rules pointing at it must match the new kind.\"},\"metadata\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Legacy metadata carried by built-in catalog profiles.\",\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"raster\"],\"description\":\"Legacy copy of kind. Must agree with kind; 'raster' here without kind: 'raster' is refused because the dashboard would open the profile as a PDF profile and drop its raster checks.\"},\"description\":{\"type\":\"string\",\"maxLength\":2000,\"description\":\"Catalog blurb of built-in profiles; not shown anywhere. Use description instead.\"}}},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64},\"uniqueItems\":true,\"description\":\"Free-form labels for your own organisation, e.g. ['business-cards', 'cmyk']. Not shown to customers.\"},\"schemaVersion\":{\"enum\":[1],\"default\":1,\"description\":\"Record format version. Always 1.\"},\"sections\":{\"type\":\"object\",\"description\":\"The checks, grouped in sections keyed by section id. PDF profiles: geometry (geom.* checks), color (color.*), text (text.*), images (image.*), structure (struct.*) and page_rules (reserved, keep empty). Raster profiles: raster (raster.*). Each section is { enabled, rules: { <check id>: { enabled, severity, target, autofixStrategy } } }. To change one setting, PATCH only that path, e.g. { \\\"sections\\\": { \\\"geometry\\\": { \\\"rules\\\": { \\\"geom.bleed.required\\\": { \\\"target\\\": { \\\"required_mm\\\": 3 } } } } } }; when enabling a check, also send its section's enabled: true.\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"metadata\"],\"properties\":{\"metadata\":{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}}}},\"then\":{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}}},{\"if\":{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}},\"then\":{\"properties\":{\"metadata\":{\"type\":\"object\",\"properties\":{\"kind\":{\"const\":\"raster\"}}}}}},{\"if\":{\"type\":\"object\",\"required\":[\"sections\"],\"properties\":{\"sections\":{\"type\":\"object\",\"anyOf\":[{\"required\":[\"geometry\"]},{\"required\":[\"color\"]},{\"required\":[\"text\"]},{\"required\":[\"images\"]},{\"required\":[\"structure\"]},{\"required\":[\"page_rules\"]}]}}},\"then\":{\"properties\":{\"kind\":{\"enum\":[\"pdf\"]}}}},{\"if\":{\"type\":\"object\",\"required\":[\"sections\"],\"properties\":{\"sections\":{\"type\":\"object\",\"required\":[\"raster\"]}}},\"then\":{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}}},{\"if\":{\"anyOf\":[{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}},{\"type\":\"object\",\"required\":[\"metadata\"],\"properties\":{\"metadata\":{\"type\":\"object\",\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}}}}]},\"then\":{\"properties\":{\"sections\":{\"$ref\":\"#/definitions/rasterSections\"}}},\"else\":{\"properties\":{\"sections\":{\"$ref\":\"#/definitions/pdfSections\"}}}}],\"definitions\":{\"noTarget\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"This check has no settings: omit target, or send null or {}.\"},\"ruleEnabled\":{\"type\":\"boolean\",\"default\":false,\"description\":\"true runs this check; false or omitted leaves it off. Its section's enabled must also be true.\"},\"legacyMessage\":{\"type\":[\"string\",\"null\"],\"maxLength\":2000,\"description\":\"Legacy free-text note stored by older dashboards. Not shown to customers (their messages come from FileCheck's built-in text for each check id); leave null or omit.\"},\"sectionEnabled\":{\"type\":\"boolean\",\"description\":\"Must be true for any check in this section to run: the runtime skips the whole section otherwise, whatever the checks say. Keep it true exactly when at least one check is enabled, as the dashboard does; it is refused as false or missing while a check in the section is enabled.\"},\"geom.page_count\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Number of pages. Fails when the count is not one of allowed (if set), or is below min or above max; every limit you set must hold. A page count chosen on the storefront product page replaces min and max for that order. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"geom.page_count\",\"description\":\"The check id, 'geom.page_count'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"description\":\"Fewest pages accepted. null or omitted = no lower limit.\"},\"max\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"description\":\"Most pages accepted. null or omitted = no upper limit.\"},\"allowed\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"minimum\":1},\"uniqueItems\":true,\"description\":\"Exact page counts accepted, e.g. [1, 2] for one- or two-sided. Empty or omitted = any count within min and max.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"anyOf\":[{\"required\":[\"min\"],\"properties\":{\"min\":{\"type\":\"integer\"}}},{\"required\":[\"max\"],\"properties\":{\"max\":{\"type\":\"integer\"}}},{\"required\":[\"allowed\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"minItems\":1}}}]}}}}]},\"geom.page_size\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Finished page size. Each page's trim size (its TrimBox when it has one, else the visible page) must match one of allowed within tolerance_mm, in either orientation. A page with no TrimBox that is an allowed size plus an even margin on every side is read as trim + bleed when geom.bleed.required asks for bleed on all sides. A size chosen on the storefront product page replaces allowed for that order. Autofix: rescales the document to the nearest allowed size when every page misses by no more than autofix_within_percent and all pages need the same size; with fit_mode on, fits each page onto the product size instead. A file beyond the repair is judged as reject.\",\"properties\":{\"id\":{\"const\":\"geom.page_size\",\"description\":\"The check id, 'geom.page_size'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"rescale-page\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'rescale-page'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"array\",\"description\":\"Accepted finished (trim) sizes in millimetres, without bleed. Either orientation passes: 85 x 55 also accepts 55 x 85. US sizes in mm: 8.5 x 11 in = 215.9 x 279.4. Required (non-empty) when the check is enabled.\",\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"width_mm\",\"height_mm\"],\"properties\":{\"width_mm\":{\"type\":\"number\",\"description\":\"Finished width in mm.\",\"exclusiveMinimum\":0,\"maximum\":10000},\"height_mm\":{\"type\":\"number\",\"description\":\"Finished height in mm.\",\"exclusiveMinimum\":0,\"maximum\":10000}}}},\"tolerance_mm\":{\"type\":\"number\",\"description\":\"How far, in mm, each side may differ from an allowed size and still pass. Default 0.5.\",\"minimum\":0,\"maximum\":50,\"default\":0.5},\"autofix_within_percent\":{\"type\":\"number\",\"description\":\"Near-miss rescale window, in percent of the size: the repair rescales only pages within this distance of an allowed size. Default 10; 0 is read as 10, so to keep the rescale from ever applying use a tiny value such as 0.1. Ignored when fit_mode is on.\",\"minimum\":0,\"maximum\":100,\"default\":10},\"fit_mode\":{\"enum\":[\"off\",\"contain\",\"cover\"],\"default\":\"off\",\"description\":\"Fit to product size, for files of any size. off (default): only the near-miss rescale. contain: scale the design to fit inside the product, whole design visible, gaps filled per fit_fill. cover: scale to fill the product, overflow cropped.\"},\"fit_fill\":{\"enum\":[\"mirror\",\"white\"],\"default\":\"mirror\",\"description\":\"With fit_mode on: mirror (default) fills gaps and bleed by reflecting the artwork edges; white leaves gaps white and mirrors only the bleed where artwork meets the cut.\"},\"fit_max_scale\":{\"type\":\"number\",\"description\":\"With fit_mode on: the largest enlargement factor, and its reciprocal the largest reduction. Default 2 (from half to double size); files needing more are not repaired.\",\"minimum\":1,\"maximum\":10,\"default\":2}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"allowed\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"minItems\":1}}}}}}]},\"geom.sheet_size\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Sheet size for roll and gang sheet products: a fixed width and any length up to a maximum (geom.page_size only accepts fixed sizes). Each page's finished size (the TrimBox when it has a usable one, else the page) is read either way round: one side must be width_mm within tolerance_mm, and the other side, the length, must fall within min_length_mm and max_length_mm. The width and length measured on page 1 are reported with the result, pass or fail (evaluation.measurements.sheet). No automatic repair.\",\"properties\":{\"id\":{\"const\":\"geom.sheet_size\",\"description\":\"The check id, 'geom.sheet_size'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"width_mm\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"maximum\":100000,\"description\":\"Sheet width in mm: the side that runs across the film or roll, e.g. 558.8 for 22 in DTF film. Required when the check is enabled.\"},\"max_length_mm\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"maximum\":1000000,\"description\":\"Longest accepted length in mm, e.g. 3048 for 120 in. null or omitted = no maximum. An order's context.artworkSize sets it to the chosen height_mm.\"},\"min_length_mm\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"maximum\":1000000,\"description\":\"Shortest accepted length in mm. null or omitted = no minimum. Leave it off for a billing minimum (a 3 in minimum charge is not a file defect).\"},\"tolerance_mm\":{\"type\":\"number\",\"minimum\":0,\"maximum\":100,\"default\":2,\"description\":\"Slack in mm on the length limits (and, for PDFs, on the width). Default 2.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"width_mm\"]}}}}]},\"geom.orientation\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Page orientation: every page must be the allowed orientation (portrait = taller than wide, landscape = wider than tall, square = equal sides). No automatic repair.\",\"properties\":{\"id\":{\"const\":\"geom.orientation\",\"description\":\"The check id, 'geom.orientation'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"enum\":[\"portrait\",\"landscape\",\"square\"],\"description\":\"The one orientation accepted. There is no 'any': to accept any orientation, disable the check (the value 'any' would fail every page). Required when the check is enabled.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"allowed\"]}}}}]},\"geom.bleed.required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Bleed: how far the bleed area (BleedBox, else the page edge) extends past the trim (TrimBox) on each checked edge, which must be required_mm plus or minus tolerance_mm. Pages without a TrimBox are judged by their BleedBox margins, or read as trim + bleed when geom.page_size allows the inner size. Too much bleed fails too. Autofix: rebuilds the page boxes to exactly required_mm of bleed and fills the new strip per fill. Not offered for a document whose pages disagree.\",\"properties\":{\"id\":{\"const\":\"geom.bleed.required\",\"description\":\"The check id, 'geom.bleed.required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"add-bleed\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'add-bleed'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"required_mm\":{\"type\":\"number\",\"description\":\"Bleed each checked edge must have, in mm, e.g. 3 (1/8 in = 3.175). Default 3.\",\"exclusiveMinimum\":0,\"maximum\":100,\"default\":3},\"tolerance_mm\":{\"type\":\"number\",\"description\":\"Allowed difference from required_mm, in mm, either way. Default 0.2.\",\"minimum\":0,\"maximum\":50,\"default\":0.2},\"sides\":{\"type\":\"array\",\"items\":{\"enum\":[\"all\",\"top\",\"right\",\"bottom\",\"left\"]},\"uniqueItems\":true,\"default\":[\"all\"],\"description\":\"Edges to check: ['all'] (default) or any of 'top', 'right', 'bottom', 'left'. Empty = all edges.\"},\"fill\":{\"enum\":[\"none\",\"mirror\",\"scale\"],\"default\":\"none\",\"description\":\"How the repair fills the new bleed strip. none (default): only sets the page boxes, for artwork that already runs past the trim. mirror: reflects the edge artwork into the strip. scale: enlarges the page content slightly to cover it.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"geom.bleed.content_coverage\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Artwork in the bleed: whether the printed content really extends required_mm past the trim (or reaches the page edge when there is no TrimBox), so no white slivers show after cutting. Blank pages are skipped; crop marks outside the trim can hide a bare edge. Autofix: adds bleed by mirroring or scaling the edge artwork. When geom.bleed.required fails on the same file one bleed pass runs and the first fill seen wins (normally geom.bleed.required's), so give that check a fill of mirror or scale too.\",\"properties\":{\"id\":{\"const\":\"geom.bleed.content_coverage\",\"description\":\"The check id, 'geom.bleed.content_coverage'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"add-bleed\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'add-bleed'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"required_mm\":{\"type\":\"number\",\"description\":\"How far artwork must extend past the trim on each checked edge, in mm. Default 3.\",\"exclusiveMinimum\":0,\"maximum\":100,\"default\":3},\"tolerance_mm\":{\"type\":\"number\",\"description\":\"How much short of required_mm still passes, in mm. Default 0.5.\",\"minimum\":0,\"maximum\":50,\"default\":0.5},\"sides\":{\"type\":\"array\",\"items\":{\"enum\":[\"all\",\"top\",\"right\",\"bottom\",\"left\"]},\"uniqueItems\":true,\"default\":[\"all\"],\"description\":\"Edges to check: ['all'] (default) or any of 'top', 'right', 'bottom', 'left'. Empty = all edges.\"},\"fill\":{\"enum\":[\"mirror\",\"scale\"],\"default\":\"mirror\",\"description\":\"How the repair synthesises artwork in the strip: mirror (default) reflects the edge artwork, scale enlarges the content slightly.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"geom.trim.required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Trim box: every page must declare a TrimBox inset from the page edge (MediaBox) by required_mm plus or minus tolerance_mm on each checked edge; a page without one fails. For bleed use geom.bleed.required. Autofix: sets the TrimBox to the MediaBox inset by required_mm on all four edges (sides is not applied to the repair).\",\"properties\":{\"id\":{\"const\":\"geom.trim.required\",\"description\":\"The check id, 'geom.trim.required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"add-trim\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'add-trim'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"required_mm\":{\"type\":\"number\",\"description\":\"Inset of the TrimBox from the page edge, in mm. Default 0 (trim at the page edge).\",\"minimum\":0,\"maximum\":100,\"default\":0},\"tolerance_mm\":{\"type\":\"number\",\"description\":\"Allowed difference from required_mm, in mm, either way. Default 0.2.\",\"minimum\":0,\"maximum\":50,\"default\":0.2},\"sides\":{\"type\":\"array\",\"items\":{\"enum\":[\"all\",\"top\",\"right\",\"bottom\",\"left\"]},\"uniqueItems\":true,\"default\":[\"all\"],\"description\":\"Edges to check: ['all'] (default) or any of 'top', 'right', 'bottom', 'left'. Empty = all edges.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"geom.safety_margin\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Safe zone: flags text placed closer than min_mm to the trim edge. Only text is measured, not images or shapes. It shares one measurement with text.edge_safe_zone: when both are enabled the larger distance applies to both. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"geom.safety_margin\",\"description\":\"The check id, 'geom.safety_margin'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min_mm\":{\"type\":\"number\",\"description\":\"Minimum distance of text from the trim edge, in mm, e.g. 3 to 5. Omitted = the analyzer default, 3 mm (8.5 pt).\",\"minimum\":0,\"maximum\":50}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"geom.rotation\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Page rotation: each page's viewer rotation (/Rotate) must be one of allowed. Autofix: bakes the rotation into the content so pages become upright (0) and look the same. Only possible when 0 is allowed.\",\"properties\":{\"id\":{\"const\":\"geom.rotation\",\"description\":\"The check id, 'geom.rotation'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"array\",\"items\":{\"enum\":[0,90,180,270]},\"minItems\":1,\"uniqueItems\":true,\"default\":[0],\"description\":\"Accepted /Rotate values in degrees: any of 0, 90, 180, 270. Default [0]. Must include 0 when severity is autofix.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\",\"severity\"],\"properties\":{\"enabled\":{\"const\":true},\"severity\":{\"const\":\"autofix\"}}},\"then\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":[\"object\",\"null\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"contains\":{\"const\":0}}}}}}}]},\"geom.consistent_page_sizes\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Mixed page sizes: fails when the pages are not all the same size (compared to 0.01 mm). No automatic repair.\",\"properties\":{\"id\":{\"const\":\"geom.consistent_page_sizes\",\"description\":\"The check id, 'geom.consistent_page_sizes'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"geom.spread_vs_single\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Spreads versus single pages. NOT EVALUATED YET: the check is skipped and never reports, whatever its settings. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"geom.spread_vs_single\",\"description\":\"The check id, 'geom.spread_vs_single'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"mode\":{\"enum\":[\"single\",\"spreads\",\"either\"],\"description\":\"Expected layout: single pages, spreads, or either. Stored only.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"section.geometry\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Page geometry checks for PDF files: page count, finished size, orientation, bleed, trim box, safe zone, rotation. Check ids start with 'geom.'.\",\"properties\":{\"id\":{\"const\":\"geometry\",\"description\":\"The section id, 'geometry'. Optional; must equal the key.\"},\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Display title in the dashboard, e.g. 'Page Checks'. Cosmetic.\"},\"enabled\":{\"$ref\":\"#/definitions/sectionEnabled\"},\"rules\":{\"type\":\"object\",\"description\":\"The checks of this section, keyed by check id: geom.page_count, geom.page_size, geom.sheet_size, geom.orientation, geom.bleed.required, geom.bleed.content_coverage, geom.trim.required, geom.safety_margin, geom.rotation, geom.consistent_page_sizes, geom.spread_vs_single. Any other key is refused. Omitted checks are off.\",\"propertyNames\":{\"pattern\":\"^geom\\\\.\"},\"additionalProperties\":false,\"properties\":{\"geom.page_count\":{\"$ref\":\"#/definitions/geom.page_count\"},\"geom.page_size\":{\"$ref\":\"#/definitions/geom.page_size\"},\"geom.sheet_size\":{\"$ref\":\"#/definitions/geom.sheet_size\"},\"geom.orientation\":{\"$ref\":\"#/definitions/geom.orientation\"},\"geom.bleed.required\":{\"$ref\":\"#/definitions/geom.bleed.required\"},\"geom.bleed.content_coverage\":{\"$ref\":\"#/definitions/geom.bleed.content_coverage\"},\"geom.trim.required\":{\"$ref\":\"#/definitions/geom.trim.required\"},\"geom.safety_margin\":{\"$ref\":\"#/definitions/geom.safety_margin\"},\"geom.rotation\":{\"$ref\":\"#/definitions/geom.rotation\"},\"geom.consistent_page_sizes\":{\"$ref\":\"#/definitions/geom.consistent_page_sizes\"},\"geom.spread_vs_single\":{\"$ref\":\"#/definitions/geom.spread_vs_single\"}}}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"rules\"],\"properties\":{\"rules\":{\"type\":\"object\",\"not\":{\"additionalProperties\":{\"not\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}}}},\"then\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}]},\"color.mode\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Colour modes of page content and images: fails when anything is painted in a mode not in allowed. Spot colours (Separation, DeviceN), patterns and indexed images are not judged here; see color.spot_colors. Autofix: converts the document to the highest-priority allowed mode: CMYK, else grayscale, else RGB. Needs one of those in allowed (not possible for lab alone).\",\"properties\":{\"id\":{\"const\":\"color.mode\",\"description\":\"The check id, 'color.mode'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"array\",\"items\":{\"enum\":[\"cmyk\",\"grayscale\",\"rgb\",\"lab\"]},\"uniqueItems\":true,\"description\":\"Accepted colour modes, e.g. ['cmyk'] or ['cmyk', 'grayscale'] for print. Required (non-empty) when the check is enabled.\"},\"convertSpecialSpaces\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Repair: also convert spot (Separation, DeviceN) and ICC-based colours. Default true; set false to keep spot colours printed as separate inks, or list them in preserve.\"},\"preserve\":{\"type\":\"array\",\"items\":{\"enum\":[\"icc\",\"separation\",\"separationAll\",\"deviceN\",\"nchannel\"]},\"uniqueItems\":true,\"default\":[],\"description\":\"Repair: colour spaces left unconverted: icc (ICC-based), separation, separationAll, deviceN, nchannel.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"allowed\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"minItems\":1}}}}}},{\"if\":{\"type\":\"object\",\"required\":[\"enabled\",\"severity\"],\"properties\":{\"enabled\":{\"const\":true},\"severity\":{\"const\":\"autofix\"}}},\"then\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":[\"object\",\"null\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"contains\":{\"enum\":[\"cmyk\",\"grayscale\",\"rgb\"]}}}}}}}]},\"color.max_ink_coverage\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Total ink coverage (TAC): flags pages where the sum of cyan, magenta, yellow and black at any point exceeds percent. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"color.max_ink_coverage\",\"description\":\"The check id, 'color.max_ink_coverage'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"percent\":{\"type\":\"number\",\"description\":\"Maximum total ink in percent (0 to 400), e.g. 300 for coated stock, lower for uncoated paper or newsprint. Default 300.\",\"minimum\":100,\"maximum\":400,\"default\":300}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"color.spot_colors\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Spot colours: fails when the file uses more than max_count spot (named) colours that are not in whitelist. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"color.spot_colors\",\"description\":\"The check id, 'color.spot_colors'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"whitelist\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true,\"default\":[],\"description\":\"Spot colour names always accepted, matched exactly and case-sensitively, e.g. 'PANTONE 186 C'. They do not count toward max_count.\"},\"max_count\":{\"type\":\"integer\",\"minimum\":0,\"default\":0,\"description\":\"How many other spot colours are tolerated. Default 0: any spot colour outside the whitelist fails.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"color.output_intent_required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Output intent: the PDF must declare the print condition its colours were prepared for, as PDF/X files do. With expected_profile_name it must also match that condition. Autofix: embeds icc_alias (else expected_profile_name, read as an ICC alias) as the output intent. Needs one of the two.\",\"properties\":{\"id\":{\"const\":\"color.output_intent_required\",\"description\":\"The check id, 'color.output_intent_required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"expected_profile_name\":{\"type\":[\"string\",\"null\"],\"maxLength\":200,\"description\":\"Required print condition, matched case-insensitively as part of the file's OutputConditionIdentifier, OutputCondition or Info, e.g. 'FOGRA39' or 'GRACoL'. Empty or null = any output intent passes. The dashboard stores an ICC alias here; hyphenated aliases such as 'iso-coated-v2' rarely appear in files, so set icc_alias for the repair and a plain identifier here.\"},\"icc_alias\":{\"enum\":[\"fogra39\",\"fogra51\",\"fogra52\",\"fogra29\",\"iso-coated-v2\",\"iso-coated-v2-300\",\"gracol2013\",\"gracol2006\",\"swop2013\",\"swop\",\"japan-coated\",\"japan-uncoated\",\"psr-lwc\",\"psr-snp\",\"srgb\",\"adobe-rgb\",\"display-p3\",\"greyscale\"],\"description\":\"Repair: the ICC profile embedded as the output intent. Preferred over expected_profile_name. FileCheck ICC aliases: fogra39 (Coated FOGRA39), fogra51 (PSO Coated v3), fogra52 (PSO Uncoated v3), fogra29 (Uncoated FOGRA29), iso-coated-v2, iso-coated-v2-300 (300 % ink cap), gracol2013, gracol2006, swop2013, swop (US Web Coated SWOP v2), japan-coated, japan-uncoated, psr-lwc, psr-snp (newsprint), srgb, adobe-rgb, display-p3, greyscale.\"},\"output_condition_identifier\":{\"type\":\"string\",\"maxLength\":200,\"description\":\"Repair: OutputConditionIdentifier written with the embedded intent, e.g. 'FOGRA39'.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\",\"severity\"],\"properties\":{\"enabled\":{\"const\":true},\"severity\":{\"const\":\"autofix\"}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"anyOf\":[{\"required\":[\"icc_alias\"]},{\"required\":[\"expected_profile_name\"],\"properties\":{\"expected_profile_name\":{\"type\":\"string\",\"minLength\":1}}}]}}}}]},\"color.icc_profile\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Embedded ICC profiles: fails when the file embeds an ICC profile whose name is not in whitelist. Empty whitelist = the check does nothing. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"color.icc_profile\",\"description\":\"The check id, 'color.icc_profile'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"whitelist\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true,\"default\":[],\"description\":\"Accepted ICC profile names (the profile description), matched exactly, e.g. 'Coated FOGRA39 (ISO 12647-2:2004)'.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"color.rich_black_detection\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Four-colour black: flags DeviceCMYK fills and strokes whose cyan, magenta and yellow are all at least threshold (registration-style black), on any content, text or not. Autofix: rewrites those colours to pure black (0/0/0/100).\",\"properties\":{\"id\":{\"const\":\"color.rich_black_detection\",\"description\":\"The check id, 'color.rich_black_detection'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"convert-to-pure-k\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'convert-to-pure-k'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"threshold\":{\"type\":\"number\",\"description\":\"Minimum cyan, magenta and yellow (0 to 1) for a colour to count as four-colour black. Default 0.85 (85 %).\",\"exclusiveMinimum\":0,\"maximum\":1,\"default\":0.85},\"scope\":{\"enum\":[\"text\",\"all\"],\"description\":\"Stored by the dashboard but not used: detection always covers all content.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"color.overprint_flags\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"White overprint: flags white objects set to overprint, which vanish on press. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"color.overprint_flags\",\"description\":\"The check id, 'color.overprint_flags'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"reject_on_white\":{\"type\":\"boolean\",\"description\":\"Must be true for the check to report anything; required (true) when the check is enabled.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"reject_on_white\"],\"properties\":{\"reject_on_white\":{\"const\":true}}}}}}]},\"color.tint_transforms\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Broken spot-colour definitions: flags Separation or DeviceN colour spaces whose tint transform is missing, malformed or trivial, which print the wrong colour. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"color.tint_transforms\",\"description\":\"The check id, 'color.tint_transforms'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"section.color\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Colour checks for PDF files: colour modes, ink coverage, spot colours, output intent, ICC profiles, four-colour black, overprint. Check ids start with 'color.'.\",\"properties\":{\"id\":{\"const\":\"color\",\"description\":\"The section id, 'color'. Optional; must equal the key.\"},\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Display title in the dashboard, e.g. 'Colors'. Cosmetic.\"},\"enabled\":{\"$ref\":\"#/definitions/sectionEnabled\"},\"rules\":{\"type\":\"object\",\"description\":\"The checks of this section, keyed by check id: color.mode, color.max_ink_coverage, color.spot_colors, color.output_intent_required, color.icc_profile, color.rich_black_detection, color.overprint_flags, color.tint_transforms. Any other key is refused. Omitted checks are off.\",\"propertyNames\":{\"pattern\":\"^color\\\\.\"},\"additionalProperties\":false,\"properties\":{\"color.mode\":{\"$ref\":\"#/definitions/color.mode\"},\"color.max_ink_coverage\":{\"$ref\":\"#/definitions/color.max_ink_coverage\"},\"color.spot_colors\":{\"$ref\":\"#/definitions/color.spot_colors\"},\"color.output_intent_required\":{\"$ref\":\"#/definitions/color.output_intent_required\"},\"color.icc_profile\":{\"$ref\":\"#/definitions/color.icc_profile\"},\"color.rich_black_detection\":{\"$ref\":\"#/definitions/color.rich_black_detection\"},\"color.overprint_flags\":{\"$ref\":\"#/definitions/color.overprint_flags\"},\"color.tint_transforms\":{\"$ref\":\"#/definitions/color.tint_transforms\"}}}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"rules\"],\"properties\":{\"rules\":{\"type\":\"object\",\"not\":{\"additionalProperties\":{\"not\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}}}},\"then\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}]},\"text.fonts_embedded\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Font embedding: fails when any font is not embedded in the PDF. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"text.fonts_embedded\",\"description\":\"The check id, 'text.fonts_embedded'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[\"embed-missing-fonts\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'embed-missing-fonts'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"text.fonts_subset_required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Font subsetting: flags fonts embedded in full instead of subset. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"text.fonts_subset_required\",\"description\":\"The check id, 'text.fonts_subset_required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[\"subset-fonts\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'subset-fonts'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"text.min_font_size_pt\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Smallest text: fails when any text is smaller than pt points. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"text.min_font_size_pt\",\"description\":\"The check id, 'text.min_font_size_pt'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"pt\":{\"type\":\"number\",\"description\":\"Minimum font size in points (1 pt = 1/72 in = 0.353 mm), e.g. 5 or 6. Required when the check is enabled.\",\"exclusiveMinimum\":0,\"maximum\":72}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"pt\"]}}}}]},\"text.min_stroke_width_pt\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Hairlines: flags lines and outlines thinner than pt points, which may not print. Autofix: thickens every stroke thinner than pt to pt.\",\"properties\":{\"id\":{\"const\":\"text.min_stroke_width_pt\",\"description\":\"The check id, 'text.min_stroke_width_pt'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"pt\":{\"type\":\"number\",\"description\":\"Minimum stroke width in points (0.25 pt = 0.09 mm). Default 0.25.\",\"exclusiveMinimum\":0,\"maximum\":10,\"default\":0.25}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"text.allowed_font_types\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Font formats: fails when the file uses a font of a type listed in disallowed. Empty = the check does nothing. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"text.allowed_font_types\",\"description\":\"The check id, 'text.allowed_font_types'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"disallowed\":{\"type\":\"array\",\"items\":{\"enum\":[\"Type1\",\"Type3\",\"TrueType\",\"OpenType\",\"CIDFontType0\",\"CIDFontType2\"]},\"uniqueItems\":true,\"description\":\"Font types refused, e.g. ['Type3'] (bitmap-style fonts that often print poorly).\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"text.text_outlined_required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Outlined text: fails when the file contains any live text (any font at all), for products that need all text converted to outlines. Autofix: converts text to outlines.\",\"properties\":{\"id\":{\"const\":\"text.text_outlined_required\",\"description\":\"The check id, 'text.text_outlined_required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"outline-text\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'outline-text'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"nonEmbeddedOnly\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Repair: outline only fonts that are not embedded. The check still fails on any remaining font, so leave false unless that is intended. Default false.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"text.edge_safe_zone\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Text near the cut: flags text closer than safe_zone_pt points to the trim edge. It shares one measurement with geom.safety_margin: when both are enabled the larger distance applies to both. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"text.edge_safe_zone\",\"description\":\"The check id, 'text.edge_safe_zone'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"safe_zone_pt\":{\"type\":\"number\",\"description\":\"Minimum distance of text from the trim edge, in points (8.5 pt = 3 mm, 14.2 pt = 5 mm). Omitted = 8.5.\",\"minimum\":0,\"maximum\":144}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"section.text\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Font, text and stroke checks for PDF files. Check ids start with 'text.'.\",\"properties\":{\"id\":{\"const\":\"text\",\"description\":\"The section id, 'text'. Optional; must equal the key.\"},\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Display title in the dashboard, e.g. 'Fonts, Text & Strokes'. Cosmetic.\"},\"enabled\":{\"$ref\":\"#/definitions/sectionEnabled\"},\"rules\":{\"type\":\"object\",\"description\":\"The checks of this section, keyed by check id: text.fonts_embedded, text.fonts_subset_required, text.min_font_size_pt, text.min_stroke_width_pt, text.allowed_font_types, text.text_outlined_required, text.edge_safe_zone. Any other key is refused. Omitted checks are off.\",\"propertyNames\":{\"pattern\":\"^text\\\\.\"},\"additionalProperties\":false,\"properties\":{\"text.fonts_embedded\":{\"$ref\":\"#/definitions/text.fonts_embedded\"},\"text.fonts_subset_required\":{\"$ref\":\"#/definitions/text.fonts_subset_required\"},\"text.min_font_size_pt\":{\"$ref\":\"#/definitions/text.min_font_size_pt\"},\"text.min_stroke_width_pt\":{\"$ref\":\"#/definitions/text.min_stroke_width_pt\"},\"text.allowed_font_types\":{\"$ref\":\"#/definitions/text.allowed_font_types\"},\"text.text_outlined_required\":{\"$ref\":\"#/definitions/text.text_outlined_required\"},\"text.edge_safe_zone\":{\"$ref\":\"#/definitions/text.edge_safe_zone\"}}}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"rules\"],\"properties\":{\"rules\":{\"type\":\"object\",\"not\":{\"additionalProperties\":{\"not\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}}}},\"then\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}]},\"image.min_resolution_dpi\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Image resolution: fails when an image is printed at fewer than effective pixels per inch at its placed size (scaling counts). Autofix: upscales the low-resolution images with AI to effective dpi.\",\"properties\":{\"id\":{\"const\":\"image.min_resolution_dpi\",\"description\":\"The check id, 'image.min_resolution_dpi'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"upscale-images\",\"upscale-ai\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'upscale-images', 'upscale-ai'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"effective\":{\"type\":\"number\",\"description\":\"Minimum effective resolution in dpi, e.g. 300 for brochures and cards, 150 for posters. Default 300.\",\"exclusiveMinimum\":0,\"maximum\":2400,\"default\":300}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"image.max_resolution_dpi\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Oversampled images: flags images placed above warn_above dpi, which bloat the file without improving the print. Autofix: downsamples images above warn_above to warn_above dpi.\",\"properties\":{\"id\":{\"const\":\"image.max_resolution_dpi\",\"description\":\"The check id, 'image.max_resolution_dpi'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"downsample-images\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'downsample-images'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"warn_above\":{\"type\":\"number\",\"description\":\"Highest effective resolution accepted, in dpi. Default 600.\",\"exclusiveMinimum\":0,\"maximum\":4800,\"default\":600}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"image.colorspace\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Image colour spaces: fails when an image's PDF colour-space name (DeviceCMYK, DeviceRGB, DeviceGray, ICCBased (DeviceCMYK), Indexed, Separation, DeviceN, Lab) contains none of the allowed values, compared case-insensitively. Empty = the check does nothing. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"image.colorspace\",\"description\":\"The check id, 'image.colorspace'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[\"cmyk-convert\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'cmyk-convert'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"array\",\"items\":{\"enum\":[\"cmyk\",\"rgb\",\"gray\",\"grayscale\",\"lab\",\"indexed\",\"separation\",\"devicen\",\"iccbased\"]},\"uniqueItems\":true,\"description\":\"Accepted colour-space fragments, e.g. ['cmyk', 'gray']. Use 'gray' for grayscale images: 'grayscale' (what the dashboard stores) matches no PDF colour-space name, so with it grayscale images fail.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"image.compression\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Image compression: fails when an image's PDF compression filter name (DCTDecode, JPXDecode, FlateDecode, LZWDecode, CCITTFaxDecode, JBIG2Decode, RunLengthDecode) contains a disallowed value, compared case-insensitively. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"image.compression\",\"description\":\"The check id, 'image.compression'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"disallowed\":{\"type\":\"array\",\"items\":{\"enum\":[\"dct\",\"jpx\",\"flate\",\"lzw\",\"ccitt\",\"jbig2\",\"runlength\",\"jpeg\",\"jpeg2000\",\"none\"]},\"uniqueItems\":true,\"description\":\"Refused filters: dct (JPEG), jpx (JPEG 2000), flate, lzw, ccitt, jbig2, runlength. The dashboard's 'jpeg', 'jpeg2000' and 'none' match no filter name and have no effect; use 'dct' and 'jpx'.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"image.bpc\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Image bit depth: fails when an image has fewer than min bits per colour component. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"image.bpc\",\"description\":\"The check id, 'image.bpc'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min\":{\"enum\":[1,2,4,8,16],\"default\":8,\"description\":\"Minimum bits per component: 1, 2, 4, 8 or 16. Default 8.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"section.images\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Checks on the images placed inside a PDF (for image uploads use a raster profile). Check ids start with 'image.'.\",\"properties\":{\"id\":{\"const\":\"images\",\"description\":\"The section id, 'images'. Optional; must equal the key.\"},\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Display title in the dashboard, e.g. 'Images'. Cosmetic.\"},\"enabled\":{\"$ref\":\"#/definitions/sectionEnabled\"},\"rules\":{\"type\":\"object\",\"description\":\"The checks of this section, keyed by check id: image.min_resolution_dpi, image.max_resolution_dpi, image.colorspace, image.compression, image.bpc. Any other key is refused. Omitted checks are off.\",\"propertyNames\":{\"pattern\":\"^image\\\\.\"},\"additionalProperties\":false,\"properties\":{\"image.min_resolution_dpi\":{\"$ref\":\"#/definitions/image.min_resolution_dpi\"},\"image.max_resolution_dpi\":{\"$ref\":\"#/definitions/image.max_resolution_dpi\"},\"image.colorspace\":{\"$ref\":\"#/definitions/image.colorspace\"},\"image.compression\":{\"$ref\":\"#/definitions/image.compression\"},\"image.bpc\":{\"$ref\":\"#/definitions/image.bpc\"}}}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"rules\"],\"properties\":{\"rules\":{\"type\":\"object\",\"not\":{\"additionalProperties\":{\"not\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}}}},\"then\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}]},\"struct.transparency_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Live transparency: flags pages that use transparency (soft masks, alpha, blend modes). No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.transparency_allowed\",\"description\":\"The check id, 'struct.transparency_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[\"flatten-transparency\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'flatten-transparency'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.layers_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Layers: flags optional content (OCG layers). Autofix: flattens the layers into the page.\",\"properties\":{\"id\":{\"const\":\"struct.layers_allowed\",\"description\":\"The check id, 'struct.layers_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"flatten-layers\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'flatten-layers'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.annotations_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Annotations: flags comments, notes, links and other annotations. Autofix: removes all annotations.\",\"properties\":{\"id\":{\"const\":\"struct.annotations_allowed\",\"description\":\"The check id, 'struct.annotations_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"strip-annotations\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'strip-annotations'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.javascript_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"JavaScript: flags embedded scripts. Autofix: removes the scripts.\",\"properties\":{\"id\":{\"const\":\"struct.javascript_allowed\",\"description\":\"The check id, 'struct.javascript_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"strip-javascript\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'strip-javascript'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.attachments_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Attachments: flags files embedded as attachments. Autofix: removes the attachments.\",\"properties\":{\"id\":{\"const\":\"struct.attachments_allowed\",\"description\":\"The check id, 'struct.attachments_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"strip-attachments\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'strip-attachments'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.encryption_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Encryption: fails when the PDF is encrypted (password or permission protected). No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.encryption_allowed\",\"description\":\"The check id, 'struct.encryption_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[\"strip-encryption\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'strip-encryption'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.encryption_permissions\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Permission restrictions of an encrypted PDF: fails when the file carries a restriction its allow_ flag does not tolerate. Unencrypted files pass. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.encryption_permissions\",\"description\":\"The check id, 'struct.encryption_permissions'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allow_no_print\":{\"type\":\"boolean\",\"default\":false,\"description\":\"true tolerates a file that forbids printing. Default false.\"},\"allow_no_copy\":{\"type\":\"boolean\",\"default\":false,\"description\":\"true tolerates a file that forbids copying content. Default false.\"},\"allow_no_modify\":{\"type\":\"boolean\",\"default\":false,\"description\":\"true tolerates a file that forbids changes. Default false.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.linearized_required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Fast web view: flags PDFs that are not linearized. Irrelevant to print; normally left off. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.linearized_required\",\"description\":\"The check id, 'struct.linearized_required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.pdf_version\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"PDF version: fails when the file's version is below min or above max, or unknown. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.pdf_version\",\"description\":\"The check id, 'struct.pdf_version'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min\":{\"enum\":[\"1.3\",\"1.4\",\"1.5\",\"1.6\",\"1.7\",\"2.0\",null],\"description\":\"Lowest version accepted, as a string, e.g. '1.4'. null or omitted = no lower limit.\"},\"max\":{\"enum\":[\"1.3\",\"1.4\",\"1.5\",\"1.6\",\"1.7\",\"2.0\",null],\"description\":\"Highest version accepted, e.g. '1.7'. null or omitted = no upper limit.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.pdfx_required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"PDF/X: fails when the file does not declare PDF/X conformance, or, with standard, declares another flavour. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.pdfx_required\",\"description\":\"The check id, 'struct.pdfx_required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"standard\":{\"enum\":[\"PDF/X-1a\",\"PDF/X-3\",\"PDF/X-4\",\"PDF/X-5\",\"PDF/X-6\"],\"description\":\"Required flavour, matched as part of the declared version ('PDF/X-4' matches 'PDF/X-4:2010'). Omit to accept any PDF/X.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.pdfa_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"PDF/A: flags files that declare PDF/A (archival) conformance. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.pdfa_allowed\",\"description\":\"The check id, 'struct.pdfa_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.pdfvt_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"PDF/VT: flags files that declare PDF/VT (variable data) conformance. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.pdfvt_allowed\",\"description\":\"The check id, 'struct.pdfvt_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.pdfua_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"PDF/UA: flags files that declare PDF/UA (accessibility) conformance. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.pdfua_allowed\",\"description\":\"The check id, 'struct.pdfua_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.pdf_tagged\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Tagged PDF: flags files that are NOT tagged (no structure tree). Irrelevant to print; normally left off. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.pdf_tagged\",\"description\":\"The check id, 'struct.pdf_tagged'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.structure_warnings\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Damaged PDF: fails when the structure checker (qpdf) reports more than max warnings. Autofix: rewrites the PDF, rebuilding its structure.\",\"properties\":{\"id\":{\"const\":\"struct.structure_warnings\",\"description\":\"The check id, 'struct.structure_warnings'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"max\":{\"type\":\"integer\",\"minimum\":0,\"default\":0,\"description\":\"Structural warnings tolerated. Default 0.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.acroform_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Interactive forms: flags AcroForm form fields. Autofix: removes the interactive form fields, signature fields included (their on-page appearance goes too).\",\"properties\":{\"id\":{\"const\":\"struct.acroform_allowed\",\"description\":\"The check id, 'struct.acroform_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"flatten-acroform\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'flatten-acroform'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.xfa_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"XFA forms: flags XFA (dynamic) forms, which print engines handle poorly. Autofix: removes the interactive form (the same repair as struct.acroform_allowed).\",\"properties\":{\"id\":{\"const\":\"struct.xfa_allowed\",\"description\":\"The check id, 'struct.xfa_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"convert-xfa-to-standard\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'convert-xfa-to-standard'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.signatures_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Digital signatures: flags signed PDFs; any change to the file invalidates the signature. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.signatures_allowed\",\"description\":\"The check id, 'struct.signatures_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[\"remove-signatures\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'remove-signatures'. null or omitted is fine.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.needs_appearances\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Form appearance flag: flags forms with NeedAppearances set, whose fields may print blank. Autofix: removes the interactive form.\",\"properties\":{\"id\":{\"const\":\"struct.needs_appearances\",\"description\":\"The check id, 'struct.needs_appearances'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"$ref\":\"#/definitions/noTarget\"},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.producer_whitelist\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Producing application: checks the PDF's Producer (else Creator) text. Fails when it contains a blacklist entry, or when a whitelist is set and it contains none of its entries. Case-insensitive. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.producer_whitelist\",\"description\":\"The check id, 'struct.producer_whitelist'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"whitelist\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true,\"default\":[],\"description\":\"Accepted producers, matched as part of the text, e.g. 'Adobe InDesign'. Empty = any producer not blacklisted.\"},\"blacklist\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true,\"default\":[],\"description\":\"Refused producers, matched as part of the text, e.g. 'Microsoft Word'.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.blank_pages_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Blank pages: fails when more than max pages have nothing painted on them. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.blank_pages_allowed\",\"description\":\"The check id, 'struct.blank_pages_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"max\":{\"type\":\"integer\",\"minimum\":0,\"default\":0,\"description\":\"Blank pages tolerated, e.g. 1 for an intentionally blank inside cover. Default 0.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.blend_modes_allowed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Blend modes: flags transparency blend modes other than Normal (Multiply, Screen and so on), which can shift colour when the press flattens transparency, except those in allowed. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.blend_modes_allowed\",\"description\":\"The check id, 'struct.blend_modes_allowed'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"array\",\"items\":{\"enum\":[\"Multiply\",\"Screen\",\"Overlay\",\"Darken\",\"Lighten\",\"ColorDodge\",\"ColorBurn\",\"HardLight\",\"SoftLight\",\"Difference\",\"Exclusion\",\"Hue\",\"Saturation\",\"Color\",\"Luminosity\"]},\"uniqueItems\":true,\"default\":[],\"description\":\"Blend modes your press handles, by PDF name, e.g. ['Multiply'].\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"struct.box_sanity\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Contradictory page boxes: flags a TrimBox outside the MediaBox, a CropBox or BleedBox inside the TrimBox, or a missing MediaBox. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"struct.box_sanity\",\"description\":\"The check id, 'struct.box_sanity'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"ignore_missing\":{\"type\":\"boolean\",\"default\":true,\"description\":\"true (default) skips missing TrimBox and BleedBox, which geom.trim.required and geom.bleed.required judge; false reports them here too.\"},\"ignore\":{\"type\":\"array\",\"items\":{\"enum\":[\"no_mediabox\",\"no_trimbox\",\"no_bleedbox\",\"trimbox_outside_mediabox\",\"cropbox_inside_trimbox\",\"bleedbox_inside_trimbox\"]},\"uniqueItems\":true,\"default\":[],\"description\":\"Issue codes never reported.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"section.structure\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"PDF structure checks: transparency, layers, annotations, scripts, attachments, encryption, version and standards, forms, damage, page boxes. Check ids start with 'struct.'.\",\"properties\":{\"id\":{\"const\":\"structure\",\"description\":\"The section id, 'structure'. Optional; must equal the key.\"},\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Display title in the dashboard, e.g. 'PDF Structure'. Cosmetic.\"},\"enabled\":{\"$ref\":\"#/definitions/sectionEnabled\"},\"rules\":{\"type\":\"object\",\"description\":\"The checks of this section, keyed by check id: struct.transparency_allowed, struct.layers_allowed, struct.annotations_allowed, struct.javascript_allowed, struct.attachments_allowed, struct.encryption_allowed, struct.encryption_permissions, struct.linearized_required, struct.pdf_version, struct.pdfx_required, struct.pdfa_allowed, struct.pdfvt_allowed, struct.pdfua_allowed, struct.pdf_tagged, struct.structure_warnings, struct.acroform_allowed, struct.xfa_allowed, struct.signatures_allowed, struct.needs_appearances, struct.producer_whitelist, struct.blank_pages_allowed, struct.blend_modes_allowed, struct.box_sanity. Any other key is refused. Omitted checks are off.\",\"propertyNames\":{\"pattern\":\"^struct\\\\.\"},\"additionalProperties\":false,\"properties\":{\"struct.transparency_allowed\":{\"$ref\":\"#/definitions/struct.transparency_allowed\"},\"struct.layers_allowed\":{\"$ref\":\"#/definitions/struct.layers_allowed\"},\"struct.annotations_allowed\":{\"$ref\":\"#/definitions/struct.annotations_allowed\"},\"struct.javascript_allowed\":{\"$ref\":\"#/definitions/struct.javascript_allowed\"},\"struct.attachments_allowed\":{\"$ref\":\"#/definitions/struct.attachments_allowed\"},\"struct.encryption_allowed\":{\"$ref\":\"#/definitions/struct.encryption_allowed\"},\"struct.encryption_permissions\":{\"$ref\":\"#/definitions/struct.encryption_permissions\"},\"struct.linearized_required\":{\"$ref\":\"#/definitions/struct.linearized_required\"},\"struct.pdf_version\":{\"$ref\":\"#/definitions/struct.pdf_version\"},\"struct.pdfx_required\":{\"$ref\":\"#/definitions/struct.pdfx_required\"},\"struct.pdfa_allowed\":{\"$ref\":\"#/definitions/struct.pdfa_allowed\"},\"struct.pdfvt_allowed\":{\"$ref\":\"#/definitions/struct.pdfvt_allowed\"},\"struct.pdfua_allowed\":{\"$ref\":\"#/definitions/struct.pdfua_allowed\"},\"struct.pdf_tagged\":{\"$ref\":\"#/definitions/struct.pdf_tagged\"},\"struct.structure_warnings\":{\"$ref\":\"#/definitions/struct.structure_warnings\"},\"struct.acroform_allowed\":{\"$ref\":\"#/definitions/struct.acroform_allowed\"},\"struct.xfa_allowed\":{\"$ref\":\"#/definitions/struct.xfa_allowed\"},\"struct.signatures_allowed\":{\"$ref\":\"#/definitions/struct.signatures_allowed\"},\"struct.needs_appearances\":{\"$ref\":\"#/definitions/struct.needs_appearances\"},\"struct.producer_whitelist\":{\"$ref\":\"#/definitions/struct.producer_whitelist\"},\"struct.blank_pages_allowed\":{\"$ref\":\"#/definitions/struct.blank_pages_allowed\"},\"struct.blend_modes_allowed\":{\"$ref\":\"#/definitions/struct.blend_modes_allowed\"},\"struct.box_sanity\":{\"$ref\":\"#/definitions/struct.box_sanity\"}}}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"rules\"],\"properties\":{\"rules\":{\"type\":\"object\",\"not\":{\"additionalProperties\":{\"not\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}}}},\"then\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}]},\"raster.format\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Image file format, as decoded: fails when the upload's format is not in allowed. Not offered by the dashboard and has no customer message; restricting the upload rule's MIME types is usually better. Autofix: converts the image to the FIRST format in allowed, so list a print format (tiff, jpeg or png) first.\",\"properties\":{\"id\":{\"const\":\"raster.format\",\"description\":\"The check id, 'raster.format'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"convert\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'convert'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"array\",\"items\":{\"enum\":[\"jpeg\",\"png\",\"tiff\",\"webp\",\"gif\",\"heif\",\"avif\"]},\"uniqueItems\":true,\"description\":\"Accepted formats. Order matters: the repair converts to the first. Required (non-empty) when the check is enabled.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"allowed\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"minItems\":1}}}}}}]},\"raster.min_dimensions_px\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Minimum pixel size: fails when the image is narrower than min_width or shorter than min_height pixels (not swapped for orientation). Do not enable it together with raster.effective_dpi (the dashboard keeps them exclusive): when both fail, their repairs merge into one upscale in which the pixel floor overrides the print-size floor, which can leave the file short of min_dpi. Prefer raster.effective_dpi when the print size is known. Autofix: upscales the image with AI to the pixel minimum.\",\"properties\":{\"id\":{\"const\":\"raster.min_dimensions_px\",\"description\":\"The check id, 'raster.min_dimensions_px'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min_width\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"description\":\"Minimum width in pixels. null or omitted = no limit.\"},\"min_height\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"description\":\"Minimum height in pixels. null or omitted = no limit.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"raster.max_dimensions_px\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Maximum pixel size: fails when the image is wider than max_width or taller than max_height pixels. Autofix: downscales the image to fit inside the maximum, keeping its proportions.\",\"properties\":{\"id\":{\"const\":\"raster.max_dimensions_px\",\"description\":\"The check id, 'raster.max_dimensions_px'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"max_width\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"description\":\"Maximum width in pixels. null or omitted = no limit.\"},\"max_height\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"description\":\"Maximum height in pixels. null or omitted = no limit.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"raster.effective_dpi\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Print resolution (keep raster.min_dimensions_px off when using this): the image's pixels divided by its print size in inches must reach min_dpi. The print size is target_width_mm/target_height_mm, else the size chosen on the order, else the workflow's Convert page size; with none of them the check does not run. The DPI written in the file header is never used. With raster.sheet_size on, the print size is the sheet: pixels across / its width_mm, on the side that check reads as the width. Autofix: upscales the image with AI until it reaches min_dpi at the print size.\",\"properties\":{\"id\":{\"const\":\"raster.effective_dpi\",\"description\":\"The check id, 'raster.effective_dpi'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"upscale-ai\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'upscale-ai'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min_dpi\":{\"type\":\"number\",\"description\":\"Minimum resolution in dpi at the print size, e.g. 300 for photos and small prints, 100 to 150 for banners seen from a distance. Required when the check is enabled.\",\"exclusiveMinimum\":0,\"maximum\":2400},\"target_width_mm\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"maximum\":100000,\"description\":\"Print width in mm. null or omitted = taken from the order or workflow. Turned to match the image's orientation.\"},\"target_height_mm\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"maximum\":100000,\"description\":\"Print height in mm. null or omitted = taken from the order or workflow.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"min_dpi\"]}}}}]},\"raster.sheet_size\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Sheet length for image gang sheets: a fixed width (width_mm, the film) and any length up to a maximum. An image has no physical size, so the width is taken as given and the length is width_mm x the pixels along the sheet / the pixels across it. Which side runs across is read from the customer's answer (across), else the header resolution when it makes exactly one side measure width_mm (an orientation hint only), else the reading whose resolution is plausible next to raster.effective_dpi's min_dpi (300 when that check is off). When both readings are plausible the result says ambiguous, so the storefront can ask the customer. With this check on, raster.effective_dpi measures pixels across / width_mm on the same reading. The measured width, length and orientation are reported with the result, pass or fail (evaluation.measurements.sheet). No automatic repair.\",\"properties\":{\"id\":{\"const\":\"raster.sheet_size\",\"description\":\"The check id, 'raster.sheet_size'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"width_mm\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"maximum\":100000,\"description\":\"Sheet width in mm: the side that runs across the film or roll, e.g. 558.8 for 22 in DTF film. Required when the check is enabled.\"},\"max_length_mm\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"maximum\":1000000,\"description\":\"Longest accepted length in mm, e.g. 3048 for 120 in. null or omitted = no maximum. An order's context.artworkSize sets it to the chosen height_mm.\"},\"min_length_mm\":{\"type\":[\"number\",\"null\"],\"exclusiveMinimum\":0,\"maximum\":1000000,\"description\":\"Shortest accepted length in mm. null or omitted = no minimum. Leave it off for a billing minimum (a 3 in minimum charge is not a file defect).\"},\"tolerance_mm\":{\"type\":\"number\",\"minimum\":0,\"maximum\":100,\"default\":2,\"description\":\"Slack in mm on the length limits (and, for PDFs, on the width). Default 2.\"},\"across\":{\"enum\":[\"short\",\"long\",null],\"description\":\"Which side of the image runs across the film, when the customer has said so: 'short' or 'long'. null or omitted = decided from the file. Normally set per order through context.sheet.across, not in the profile.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"width_mm\"]}}}}]},\"raster.colorspace\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Image colour mode: fails when the decoded image's mode (rgb, cmyk, grayscale or lab) is not in allowed. Autofix: converts to the highest-priority allowed mode: CMYK, else grayscale, else RGB, through iccAlias when set. Needs one of those in allowed.\",\"properties\":{\"id\":{\"const\":\"raster.colorspace\",\"description\":\"The check id, 'raster.colorspace'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"cmyk-convert\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'cmyk-convert'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"array\",\"items\":{\"enum\":[\"cmyk\",\"grayscale\",\"rgb\",\"lab\"]},\"uniqueItems\":true,\"description\":\"Accepted colour modes, e.g. ['rgb', 'cmyk'] for a photo lab, ['cmyk'] for offset. Required (non-empty) when the check is enabled.\"},\"iccAlias\":{\"enum\":[\"fogra39\",\"fogra51\",\"fogra52\",\"fogra29\",\"iso-coated-v2\",\"iso-coated-v2-300\",\"gracol2013\",\"gracol2006\",\"swop2013\",\"swop\",\"japan-coated\",\"japan-uncoated\",\"psr-lwc\",\"psr-snp\",\"srgb\",\"adobe-rgb\",\"display-p3\",\"greyscale\"],\"description\":\"Repair: ICC profile used for the conversion; pick one matching the target mode (a CMYK profile for CMYK). FileCheck ICC aliases: fogra39 (Coated FOGRA39), fogra51 (PSO Coated v3), fogra52 (PSO Uncoated v3), fogra29 (Uncoated FOGRA29), iso-coated-v2, iso-coated-v2-300 (300 % ink cap), gracol2013, gracol2006, swop2013, swop (US Web Coated SWOP v2), japan-coated, japan-uncoated, psr-lwc, psr-snp (newsprint), srgb, adobe-rgb, display-p3, greyscale.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"allowed\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"minItems\":1}}}}}},{\"if\":{\"type\":\"object\",\"required\":[\"enabled\",\"severity\"],\"properties\":{\"enabled\":{\"const\":true},\"severity\":{\"const\":\"autofix\"}}},\"then\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":[\"object\",\"null\"],\"properties\":{\"allowed\":{\"type\":\"array\",\"contains\":{\"enum\":[\"cmyk\",\"grayscale\",\"rgb\"]}}}}}}}]},\"raster.bit_depth\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Bit depth: fails when the image has fewer than min bits per channel. Autofix: converts the image to at least min bits per channel.\",\"properties\":{\"id\":{\"const\":\"raster.bit_depth\",\"description\":\"The check id, 'raster.bit_depth'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min\":{\"enum\":[1,4,8,16],\"description\":\"Minimum bits per channel: 1, 4, 8 or 16 (usually 8). Required when the check is enabled.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"min\"]}}}}]},\"raster.transparency\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Transparency: with allowed false, flags images that have an alpha channel. With allowed true or omitted the check does nothing. Autofix: flattens the image onto background.\",\"properties\":{\"id\":{\"const\":\"raster.transparency\",\"description\":\"The check id, 'raster.transparency'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"remove-alpha\",\"flatten-background\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'remove-alpha', 'flatten-background'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"allowed\":{\"type\":\"boolean\",\"description\":\"false flags transparent images; true accepts them. Required when the check is enabled.\"},\"background\":{\"type\":\"string\",\"pattern\":\"^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$\",\"default\":\"#ffffff\",\"description\":\"Repair: colour the image is flattened onto, as #rrggbb. Default #ffffff (white).\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"allowed\"]}}}}]},\"raster.transparent_background\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Transparent background, for DTF and other white-ink processes where anything opaque prints: fails when the image has no alpha channel, or when less than min_transparent_pct of its pixels are transparent (alpha 8/255 or lower), which catches a PNG saved with an alpha channel over a solid background. Coverage is measured on a downsample of at most about 4 megapixels. Images only. No automatic repair: removing a background changes the art. Unrelated to raster.transparency, which flags transparency on products that cannot print it.\",\"properties\":{\"id\":{\"const\":\"raster.transparent_background\",\"description\":\"The check id, 'raster.transparent_background'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"min_transparent_pct\":{\"type\":\"number\",\"minimum\":0,\"maximum\":100,\"default\":1,\"description\":\"Least share of transparent pixels, in percent. Default 1: any real gap between designs passes, a full background fails. 0 only requires an alpha channel.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"raster.background_removal\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Background removal, a requested transform rather than a defect: with remove true, every upload that has no transparency yet gets its background removed by AI. Severity must be autofix. Autofix: removes the background with AI.\",\"properties\":{\"id\":{\"const\":\"raster.background_removal\",\"description\":\"The check id, 'raster.background_removal'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"autofix\"],\"default\":\"autofix\",\"description\":\"Must be 'autofix': reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"remove-bg\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'remove-bg'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"remove\":{\"type\":\"boolean\",\"description\":\"true to remove backgrounds. Required (true) when the check is enabled.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"remove\"],\"properties\":{\"remove\":{\"const\":true}}}}}}]},\"raster.max_file_size\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"File size: fails when the image file is larger than max_mb megabytes. No automatic repair.\",\"properties\":{\"id\":{\"const\":\"raster.max_file_size\",\"description\":\"The check id, 'raster.max_file_size'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn or ignore. Omitted = warn. autofix is refused: this check has no repair, and an autofix finding would promise the customer a fix that never happens.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"max_mb\":{\"type\":\"number\",\"description\":\"Largest file accepted, in MB (1 MB = 1,048,576 bytes). Required when the check is enabled.\",\"exclusiveMinimum\":0,\"maximum\":10000}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"max_mb\"]}}}}]},\"raster.icc_profile_required\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Embedded colour profile: with 'any', fails when the image has no embedded ICC profile; with an alias, fails unless that exact profile is embedded. Autofix: embeds expected_profile_name and converts the pixels to it; 'any' embeds fogra39, a CMYK profile, so an RGB photo becomes CMYK.\",\"properties\":{\"id\":{\"const\":\"raster.icc_profile_required\",\"description\":\"The check id, 'raster.icc_profile_required'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[null],\"description\":\"Display label for the repair. No label exists for this check: leave it null or omit it.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"expected_profile_name\":{\"enum\":[\"any\",\"fogra39\",\"fogra51\",\"fogra52\",\"fogra29\",\"iso-coated-v2\",\"iso-coated-v2-300\",\"gracol2013\",\"gracol2006\",\"swop2013\",\"swop\",\"japan-coated\",\"japan-uncoated\",\"psr-lwc\",\"psr-snp\",\"srgb\",\"adobe-rgb\",\"display-p3\",\"greyscale\"],\"description\":\"'any' or the ICC alias the image must carry. Required when the check is enabled. FileCheck ICC aliases: fogra39 (Coated FOGRA39), fogra51 (PSO Coated v3), fogra52 (PSO Uncoated v3), fogra29 (Uncoated FOGRA29), iso-coated-v2, iso-coated-v2-300 (300 % ink cap), gracol2013, gracol2006, swop2013, swop (US Web Coated SWOP v2), japan-coated, japan-uncoated, psr-lwc, psr-snp (newsprint), srgb, adobe-rgb, display-p3, greyscale.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"expected_profile_name\"]}}}}]},\"raster.aspect_ratio\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Aspect ratio: fails when the image's width divided by height is further than tolerance from every ratio in ratio, in either orientation. Autofix: pads the image (letterbox or pillarbox, nothing cropped) to the nearest allowed ratio, with tolerance 0.02 when none is set.\",\"properties\":{\"id\":{\"const\":\"raster.aspect_ratio\",\"description\":\"The check id, 'raster.aspect_ratio'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"crop\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'crop'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"ratio\":{\"type\":\"array\",\"description\":\"Accepted ratios, each as a string 'W:H' (also 'W/H' or 'WxH'), e.g. ['3:2', '4:3'], or a number = width divided by height (1.5). Either orientation passes. A list of two whole numbers such as [3, 2] means the ratios 3:1 and 2:1, not 3:2, and is refused; [1, 1] (square) is fine. Required (non-empty) when the check is enabled.\",\"items\":{\"anyOf\":[{\"type\":\"string\",\"pattern\":\"^\\\\d+(\\\\.\\\\d+)?[:/xX]\\\\d+(\\\\.\\\\d+)?$\"},{\"type\":\"number\",\"exclusiveMinimum\":0}]},\"if\":{\"type\":\"array\",\"minItems\":2,\"maxItems\":2,\"items\":{\"type\":\"integer\"},\"contains\":{\"type\":\"integer\",\"minimum\":2}},\"then\":false},\"tolerance\":{\"type\":\"number\",\"description\":\"Allowed difference between the image's width/height and a ratio, e.g. 0.02. Omitted = exact match.\",\"minimum\":0,\"maximum\":1}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}},\"then\":{\"type\":\"object\",\"required\":[\"target\"],\"properties\":{\"target\":{\"type\":\"object\",\"required\":[\"ratio\"],\"properties\":{\"ratio\":{\"type\":\"array\",\"minItems\":1}}}}}}]},\"raster.stitch_set\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Stitch several uploads into one image. NOT IMPLEMENTED: the check never reports and nothing is stitched. Autofix: none in practice (the check never fails).\",\"properties\":{\"id\":{\"const\":\"raster.stitch_set\",\"description\":\"The check id, 'raster.stitch_set'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"stitch\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'stitch'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"layout\":{\"enum\":[\"horizontal\",\"vertical\",\"grid\"],\"description\":\"Stored only.\"},\"gap_px\":{\"type\":\"integer\",\"minimum\":0,\"description\":\"Stored only.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"raster.tac\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Total ink of the image once converted to CMYK: fails when any pixel's cyan + magenta + yellow + black exceeds max_percent. Autofix: converts the image to CMYK through icc_alias, whose gamut mapping caps the ink.\",\"properties\":{\"id\":{\"const\":\"raster.tac\",\"description\":\"The check id, 'raster.tac'. Optional; must equal the key.\"},\"enabled\":{\"$ref\":\"#/definitions/ruleEnabled\"},\"severity\":{\"enum\":[\"reject\",\"warn\",\"autofix\",\"ignore\"],\"default\":\"warn\",\"description\":\"reject, warn, ignore or autofix (FileCheck repairs it; judged as reject when this file is beyond the repair). Omitted = warn. Severity only decides how a failure is judged: a workflow autofix step repairs every failed check that has a repair, whatever its severity.\"},\"autofixStrategy\":{\"enum\":[\"icc-convert\",null],\"description\":\"Display label for the repair, shown in the dashboard; the runtime picks the repair from the check id and ignores this field. Known labels: 'icc-convert'. null or omitted is fine.\"},\"target\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"description\":\"Settings for this check. Omitted fields use the defaults described on each field.\",\"properties\":{\"max_percent\":{\"type\":\"number\",\"description\":\"Maximum total ink in percent. Default 300.\",\"minimum\":100,\"maximum\":400,\"default\":300},\"icc_alias\":{\"enum\":[\"\",\"fogra39\",\"fogra51\",\"fogra52\",\"fogra29\",\"iso-coated-v2\",\"iso-coated-v2-300\",\"gracol2013\",\"gracol2006\",\"swop2013\",\"swop\",\"japan-coated\",\"japan-uncoated\",\"psr-lwc\",\"psr-snp\"],\"description\":\"Repair: CMYK ICC profile used for the conversion. '' or omitted = iso-coated-v2-300 (300 % cap); e.g. fogra29 for uncoated stock. FileCheck ICC aliases: fogra39 (Coated FOGRA39), fogra51 (PSO Coated v3), fogra52 (PSO Uncoated v3), fogra29 (Uncoated FOGRA29), iso-coated-v2, iso-coated-v2-300 (300 % ink cap), gracol2013, gracol2006, swop2013, swop (US Web Coated SWOP v2), japan-coated, japan-uncoated, psr-lwc, psr-snp (newsprint), srgb, adobe-rgb, display-p3, greyscale.\"}}},\"message\":{\"$ref\":\"#/definitions/legacyMessage\"},\"friendlyMessage\":{\"$ref\":\"#/definitions/legacyMessage\"}}},\"section.raster\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Checks on an uploaded image file (JPEG, PNG, TIFF, WebP and so on). Check ids start with 'raster.'.\",\"properties\":{\"id\":{\"const\":\"raster\",\"description\":\"The section id, 'raster'. Optional; must equal the key.\"},\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Display title in the dashboard, e.g. 'Raster Checks'. Cosmetic.\"},\"enabled\":{\"$ref\":\"#/definitions/sectionEnabled\"},\"rules\":{\"type\":\"object\",\"description\":\"The checks of this section, keyed by check id: raster.format, raster.min_dimensions_px, raster.max_dimensions_px, raster.effective_dpi, raster.sheet_size, raster.colorspace, raster.bit_depth, raster.transparency, raster.transparent_background, raster.background_removal, raster.max_file_size, raster.icc_profile_required, raster.aspect_ratio, raster.stitch_set, raster.tac. Any other key is refused. Omitted checks are off.\",\"propertyNames\":{\"pattern\":\"^raster\\\\.\"},\"additionalProperties\":false,\"properties\":{\"raster.format\":{\"$ref\":\"#/definitions/raster.format\"},\"raster.min_dimensions_px\":{\"$ref\":\"#/definitions/raster.min_dimensions_px\"},\"raster.max_dimensions_px\":{\"$ref\":\"#/definitions/raster.max_dimensions_px\"},\"raster.effective_dpi\":{\"$ref\":\"#/definitions/raster.effective_dpi\"},\"raster.sheet_size\":{\"$ref\":\"#/definitions/raster.sheet_size\"},\"raster.colorspace\":{\"$ref\":\"#/definitions/raster.colorspace\"},\"raster.bit_depth\":{\"$ref\":\"#/definitions/raster.bit_depth\"},\"raster.transparency\":{\"$ref\":\"#/definitions/raster.transparency\"},\"raster.transparent_background\":{\"$ref\":\"#/definitions/raster.transparent_background\"},\"raster.background_removal\":{\"$ref\":\"#/definitions/raster.background_removal\"},\"raster.max_file_size\":{\"$ref\":\"#/definitions/raster.max_file_size\"},\"raster.icc_profile_required\":{\"$ref\":\"#/definitions/raster.icc_profile_required\"},\"raster.aspect_ratio\":{\"$ref\":\"#/definitions/raster.aspect_ratio\"},\"raster.stitch_set\":{\"$ref\":\"#/definitions/raster.stitch_set\"},\"raster.tac\":{\"$ref\":\"#/definitions/raster.tac\"}}}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"rules\"],\"properties\":{\"rules\":{\"type\":\"object\",\"not\":{\"additionalProperties\":{\"not\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}}}},\"then\":{\"type\":\"object\",\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}]},\"section.page_rules\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Reserved for per-page overrides, which are not evaluated yet. The dashboard saves it empty: keep rules {} and entries [], or omit the section.\",\"properties\":{\"id\":{\"const\":\"page_rules\",\"description\":\"The section id, 'page_rules'.\"},\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Display title, e.g. 'Page Rules'. Cosmetic.\"},\"enabled\":{\"type\":\"boolean\",\"description\":\"Has no effect; the dashboard saves false.\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Always {}.\"},\"entries\":{\"type\":\"array\",\"maxItems\":0,\"description\":\"Always []: per-page overrides are not supported yet.\"}}},\"pdfSections\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Sections of a PDF profile. Omitted sections are off.\",\"properties\":{\"geometry\":{\"$ref\":\"#/definitions/section.geometry\"},\"color\":{\"$ref\":\"#/definitions/section.color\"},\"text\":{\"$ref\":\"#/definitions/section.text\"},\"images\":{\"$ref\":\"#/definitions/section.images\"},\"structure\":{\"$ref\":\"#/definitions/section.structure\"},\"page_rules\":{\"$ref\":\"#/definitions/section.page_rules\"}}},\"rasterSections\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Sections of a raster profile: only raster.\",\"properties\":{\"raster\":{\"$ref\":\"#/definitions/section.raster\"}}}}}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"rule\",\"title\":\"Rule\",\"description\":\"An upload rule (intake rule): the contract for what a customer may upload for one product and how each file is judged at upload time, while the customer waits. A workflow points at exactly one rule through workflow.intake.ruleId, and many workflows can share a rule. For each uploaded file FileCheck detects the real type from the file's bytes, picks the matching entry in `accepts` (exact MIME type first, then the first entry of the same kind that is not mimeTypesStrict), optionally converts it to PDF, preflights it against the preflight profile that entry names (accepts[].preflight.profileId; profiles hold the checks and thresholds, a rule only points at them), and turns a failing result into reject / accept-with-warnings / manual-review through that entry's onFail. Accepted files then feed the workflow stream for their kind (pdf, raster or other). `cardinality` says how many files the product needs. A rule does no downstream processing: autofix, optimize, imposition, proofing and delivery are configured on the workflow.\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"accepts\"],\"properties\":{\"title\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":120,\"description\":\"Name of the rule in the dashboard library and in workflow pickers, e.g. \\\"Business Card — Front & Back\\\". Keep it under 60 characters, the dashboard editor's limit.\"},\"description\":{\"type\":\"string\",\"maxLength\":2000,\"default\":\"\",\"description\":\"Note for the print shop's dashboard: which product this rule is for and which profile it pairs with. Never shown to customers.\"},\"instructions\":{\"type\":\"string\",\"maxLength\":2000,\"pattern\":\"^[^<>]*$\",\"default\":\"\",\"description\":\"Short instruction shown to the customer in the upload widget, e.g. \\\"Upload a print-ready PDF with 3 mm bleed on all sides.\\\" Plain text only: the widget renders it as HTML in slot mode, so angle brackets are refused.\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64},\"uniqueItems\":true,\"maxItems\":50,\"default\":[],\"description\":\"Free labels for finding the rule in the dashboard library (e.g. \\\"pdf\\\", \\\"business-card\\\"). No effect on uploads.\"},\"schemaVersion\":{\"type\":\"integer\",\"enum\":[1],\"default\":1,\"description\":\"Record format version. Always 1.\"},\"cardinality\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{\"min\":1,\"max\":1,\"slots\":[]},\"description\":\"How many files one order of this product needs: either a count range (min and max) or named slots (one labelled upload per slot, e.g. Front and Back). Omit it for exactly one file. A product page can override min and max per order through the job's fileCount context.\",\"properties\":{\"min\":{\"type\":\"integer\",\"minimum\":0,\"description\":\"Fewest accepted files before the job leaves intake and the widget lets the customer continue. Required unless slots are set (then ignored). To let a customer skip uploading altogether use uploadOptional; min 0 alone does not do that.\"},\"max\":{\"type\":\"integer\",\"minimum\":1,\"description\":\"Most files the customer may upload; the widget stops offering uploads at this count. Must be at least min (not checked here: with max below min the widget can never be satisfied). Required unless slots are set (then ignored). There is no unlimited value, because the widget reads a missing max as 1, so set a generous number such as 50.\"},\"slots\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":80},\"uniqueItems\":true,\"maxItems\":50,\"default\":[],\"description\":\"Named upload slots in order, e.g. [\\\"Front\\\", \\\"Back\\\"]. When non-empty the customer gets one labelled upload area per slot, exactly that many files are required, min and max are ignored, and each file keeps its slot name (proofs are shown in slot order). Empty means count-range mode.\"}},\"if\":{\"properties\":{\"slots\":{\"minItems\":1}},\"required\":[\"slots\"]},\"else\":{\"required\":[\"min\",\"max\"]}},\"accepts\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":20,\"items\":{\"$ref\":\"#/definitions/accept\"},\"description\":\"The file types this product takes, normally one entry per kind (the dashboard allows only one), each with its own MIME list, size limit, PDF conversion, preflight profile and failure policy. For an upload, the first entry whose mimeTypes lists the file's detected MIME type wins; failing that, the first entry of the file's kind that is not mimeTypesStrict. A file no entry matches is refused by the widget when rejectUnknownTypes is true, but one sent through the API is stored unchecked, so cover every kind you expect.\"},\"rejectUnknownTypes\":{\"type\":\"boolean\",\"default\":true,\"description\":\"When true the upload widget refuses files that match no accepts entry; when false it lets them through and they are stored unchecked. Only the widget reads this: files submitted through the API that match no entry are always taken unchecked.\"},\"maxTotalSize\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"default\":null,\"description\":\"Intended cap on the combined size of one order's files, in bytes. Stored and shown in the dashboard but not enforced anywhere today; use accepts[].maxSize for a limit that works. Omit or null for none.\"},\"uploadOptional\":{\"type\":\"boolean\",\"default\":false,\"description\":\"When true a customer who uploads nothing may continue: the widget's checkout gate opens with zero files. Once any file is uploaded, cardinality and onFail apply as usual, and a rejected file still blocks.\"},\"channels\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"client\",\"api\",\"admin\",\"store\"]},\"uniqueItems\":true,\"default\":[],\"description\":\"Reserved for limiting the rule to submission channels (client = the storefront widget, api, admin, store). Not enforced today: leave it empty, which means all channels.\"},\"ui\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{},\"description\":\"Look-and-feel overrides for the storefront upload widget while it shows this rule. A key set here overrides the account default and is overridden by the host page; leave a key out to inherit. Never affects which files are accepted.\",\"properties\":{\"title\":{\"type\":\"string\",\"maxLength\":120,\"description\":\"Heading shown at the top of the widget.\"},\"subtitle\":{\"type\":\"string\",\"maxLength\":240,\"description\":\"Smaller line under the title.\"},\"theme\":{\"type\":\"string\",\"enum\":[\"light\",\"dark\",\"system\"],\"description\":\"Colour scheme: light, dark, or system (follow the shopper's device setting).\"},\"accent\":{\"type\":[\"string\",\"null\"],\"maxLength\":64,\"description\":\"Accent colour override, e.g. #0a7cff; null inherits the account's brand colour.\"},\"locale\":{\"type\":[\"string\",\"null\"],\"pattern\":\"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$\",\"description\":\"BCP-47 language tag for the widget's text, e.g. de or fr-CA; null follows the host page.\"},\"layout\":{\"type\":\"string\",\"enum\":[\"inline\",\"modal\",\"drawer\",\"compact\"],\"description\":\"Hint to the host page's SDK on how to present the widget.\"},\"showHeader\":{\"type\":\"boolean\",\"description\":\"Show the title and subtitle block.\"},\"showHelp\":{\"type\":\"boolean\",\"description\":\"Show the help area with helpText.\"},\"helpText\":{\"type\":\"string\",\"maxLength\":2000,\"description\":\"Help text shown when showHelp is true.\"},\"submitLabel\":{\"type\":\"string\",\"maxLength\":60,\"description\":\"Label for the host page's continue button once the upload is ready (the host renders the button).\"},\"autoSubmit\":{\"type\":\"boolean\",\"description\":\"When true the host page moves on by itself as soon as the upload is ready, without a click.\"},\"branding\":{\"type\":\"string\",\"enum\":[\"domain\",\"none\",\"custom\"],\"description\":\"Which branding the widget shows: the account's (domain), none, or custom.\"},\"resultsDisplay\":{\"type\":\"string\",\"enum\":[\"full\",\"list\"],\"description\":\"full shows each file's findings inline; list shows a compact, selectable file list for pairing with a separate report element.\"},\"proofDetails\":{\"type\":\"string\",\"enum\":[\"collapsed\",\"expanded\"],\"description\":\"How the proof dialog opens: collapsed (the print first, findings behind a summary button) or expanded (findings panel open).\"}}}},\"definitions\":{\"mimeType\":{\"type\":\"string\",\"maxLength\":127,\"pattern\":\"^[a-z0-9][a-z0-9!#$&^_.+-]*/[a-z0-9][a-z0-9!#$&^_.+-]*$\",\"description\":\"A lowercase MIME type exactly as FileCheck's detection reports it, e.g. application/pdf, image/jpeg (never image/jpg), image/tiff (never image/tif).\"},\"accept\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"description\":\"One accepted file kind: which files it matches and how each one is checked and judged on upload.\",\"properties\":{\"kind\":{\"type\":\"string\",\"enum\":[\"pdf\",\"raster\",\"vector\",\"office\",\"archive\",\"other\"],\"description\":\"The file family this entry handles, matched against the type FileCheck detects from the bytes. pdf: PDF (and PDF-based .ai). raster: JPEG, PNG, TIFF, WebP, HEIC, AVIF, GIF, BMP. vector: SVG, EPS/PostScript. office: Word, Excel, PowerPoint and OpenDocument files. archive: ZIP. other: fonts and anything else. Only pdf and raster can be preflighted as uploaded; vector and office need convertToPdf first; archive and other are stored as-is with no checks.\"},\"mimeTypes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/mimeType\"},\"uniqueItems\":true,\"maxItems\":50,\"default\":[],\"description\":\"MIME types this entry claims; each must belong to the entry's kind. Unless mimeTypesStrict is true the list does not narrow anything: every file of the kind is still accepted through the kind fallback and the widget offers the whole kind. For kind other the list is the only way the widget recognises a file, so it must not be empty.\"},\"mimeTypesStrict\":{\"type\":\"boolean\",\"default\":false,\"description\":\"When true the mimeTypes list is authoritative: a file of this kind whose MIME type is not listed is refused, by the widget and by the server, e.g. raster with [\\\"image/jpeg\\\", \\\"image/tiff\\\"] refuses PNG. Leave false to take every file of the kind. Needs a non-empty mimeTypes.\"},\"extensions\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"pattern\":\"^\\\\.?[a-z0-9]{1,10}$\"},\"uniqueItems\":true,\"maxItems\":50,\"default\":[],\"description\":\"File extensions for display, lowercase with a leading dot, e.g. [\\\".pdf\\\"]. Informational only: nothing matches uploads by extension, and the widget builds its file picker from mimeTypes.\"},\"maxSize\":{\"type\":[\"integer\",\"null\"],\"minimum\":1,\"default\":null,\"description\":\"Largest single file this entry takes, in bytes (50 MB = 52428800). Enforced by the upload widget before upload; files sent through the API are not checked against it. Omit or null for no limit.\"},\"convertToPdf\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Vector and office entries only: convert each upload to PDF on arrival, so it can be preflighted against a PDF profile and feeds the workflow's pdf stream. Without it these files are stored as-is and feed the other stream. Must be false for pdf, raster, archive and other entries.\"},\"preflight\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"enabled\"],\"default\":{\"enabled\":false,\"profileId\":null},\"description\":\"The check run on each file of this entry while the customer waits. Off unless enabled is sent as true, and then it needs a profileId. Possible for pdf and raster entries, and for vector and office entries with convertToPdf true; never for archive or other.\",\"properties\":{\"enabled\":{\"type\":\"boolean\",\"description\":\"Run the preflight check. Send it explicitly; with false the file is accepted without a check.\"},\"profileId\":{\"type\":[\"string\",\"null\"],\"minLength\":1,\"maxLength\":128,\"default\":null,\"description\":\"What to check against: the id of a preflight profile record (from GET /profiles, usually profile_...), or a built-in conformance validation: 1a, 1b, 2a, 2b, 2u, 3a, 3b, 3u, 4, 4e, 4f (PDF/A) or ua1, ua2 (PDF/UA). The profile's kind must match the entry: pdf entries, and vector or office entries with convertToPdf, take a PDF profile or a validation id; raster entries take a raster profile. Required when enabled; ignored when not.\"}},\"if\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]},\"then\":{\"required\":[\"profileId\"],\"properties\":{\"profileId\":{\"type\":\"string\"}}}},\"onFail\":{\"type\":\"string\",\"enum\":[\"reject\",\"accept_with_warnings\",\"manual_review\"],\"default\":\"reject\",\"description\":\"What a failing preflight (or a failed PDF conversion) means for the file. reject: not accepted; the widget blocks the customer until they replace it and the job waits at intake. accept_with_warnings: accepted anyway; the profile's reject-level findings show as warnings and the workflow goes ahead. manual_review: the widget lets the customer continue and marks the file as awaiting review with findings as warnings, but the server does not count the file as accepted, so the workflow waits at intake until the print shop deals with it. A file FileCheck cannot open is rejected under every policy.\"}},\"allOf\":[{\"if\":{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"raster\",\"archive\",\"other\"]}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"convertToPdf\":{\"const\":false}}}},{\"if\":{\"properties\":{\"kind\":{\"enum\":[\"archive\",\"other\"]}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"preflight\":{\"properties\":{\"enabled\":{\"const\":false}}}}}},{\"if\":{\"properties\":{\"kind\":{\"enum\":[\"vector\",\"office\"]},\"preflight\":{\"properties\":{\"enabled\":{\"const\":true}},\"required\":[\"enabled\"]}},\"required\":[\"kind\",\"preflight\"]},\"then\":{\"required\":[\"convertToPdf\"],\"properties\":{\"convertToPdf\":{\"const\":true}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"raster\"}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"preflight\":{\"properties\":{\"profileId\":{\"pattern\":\"^(?!(1a|1b|2a|2b|2u|3a|3b|3u|4|4e|4f|ua1|ua2)$)\"}}}}}},{\"if\":{\"properties\":{\"mimeTypesStrict\":{\"const\":true}},\"required\":[\"mimeTypesStrict\"]},\"then\":{\"required\":[\"mimeTypes\"],\"properties\":{\"mimeTypes\":{\"minItems\":1}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"pdf\"}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"mimeTypes\":{\"items\":{\"const\":\"application/pdf\"}}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"raster\"}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"mimeTypes\":{\"items\":{\"pattern\":\"^image/(?!svg)(?!jpg$)(?!tif$)\"}}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"vector\"}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"mimeTypes\":{\"items\":{\"enum\":[\"image/svg+xml\",\"application/postscript\",\"application/eps\",\"application/illustrator\"]}}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"office\"}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"mimeTypes\":{\"items\":{\"pattern\":\"^application/(msword|vnd\\\\.ms-excel|vnd\\\\.ms-powerpoint|vnd\\\\.openxmlformats-officedocument\\\\.[a-z0-9.+-]+|vnd\\\\.oasis\\\\.opendocument\\\\.[a-z0-9.+-]+)$\"}}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"archive\"}},\"required\":[\"kind\"]},\"then\":{\"properties\":{\"mimeTypes\":{\"items\":{\"enum\":[\"application/zip\",\"application/x-zip-compressed\",\"application/x-tar\",\"application/gzip\",\"application/x-gzip\",\"application/x-7z-compressed\",\"application/vnd.rar\",\"application/x-rar-compressed\"]}}}}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"other\"}},\"required\":[\"kind\"]},\"then\":{\"required\":[\"mimeTypes\"],\"properties\":{\"mimeTypes\":{\"minItems\":1,\"items\":{\"pattern\":\"^(?!application/pdf$)(?!image/)(?!application/postscript$)(?!application/eps$)\"}}}}}]}}}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"settings\",\"title\":\"Storefront settings\",\"description\":\"How the FileCheck Element (the upload form on your product pages) appears and behaves in your store. Every setting has a default; in a PATCH, null puts a setting back to it. Custom JS and CSS, which run code in your store, can only be changed in the dashboard.\",\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"presentation\":{\"type\":[\"string\",\"null\"],\"enum\":[\"inline\",\"dialog\",null],\"default\":\"inline\",\"description\":\"inline: the upload form sits on the product page. dialog: an \\\"Upload Files\\\" button opens the form in a popup.\"},\"mountSelector\":{\"type\":[\"string\",\"null\"],\"maxLength\":500,\"default\":\"\",\"description\":\"CSS selector of the element the upload form (or, in dialog mode, its button) is placed into, used when the page has no element with id fc-inline. Empty: rely on #fc-inline (the Shopify app block and the cart plugins add it).\"},\"moveMountBefore\":{\"type\":[\"string\",\"null\"],\"maxLength\":500,\"default\":\"\",\"description\":\"Dialog mode only: CSS selector of an element the \\\"Upload Files\\\" button is inserted before (for example the quantity field). Empty: the button goes into #fc-inline, then mountSelector, then next to the add-to-cart button.\"},\"cartButtonSelector\":{\"type\":[\"string\",\"null\"],\"maxLength\":500,\"default\":\"\",\"description\":\"CSS selector(s) for the add-to-cart button, added to the built-in list. The Element keeps that button disabled until the customer's files are accepted, so set this when a theme's button isn't found.\"},\"elementTheme\":{\"type\":[\"string\",\"null\"],\"enum\":[\"light\",\"dark\",\"system\",null],\"default\":\"light\",\"description\":\"The upload form's colour theme. system follows the shopper's device setting.\"},\"proofDetails\":{\"type\":[\"string\",\"null\"],\"enum\":[\"collapsed\",\"expanded\",null],\"default\":\"collapsed\",\"description\":\"How the proof opens for the customer. collapsed: the print first, with the issues behind a summary button. expanded: the list of issues open beside it.\"},\"galleryProof\":{\"type\":[\"boolean\",\"null\"],\"default\":false,\"description\":\"Show the product proof (3D model, folded leaflet, sheet, booklet) in place of the product page's own image gallery once every uploaded file has its proof. Off keeps the proof in the popup only.\"},\"gallerySelector\":{\"type\":[\"string\",\"null\"],\"maxLength\":500,\"default\":\"\",\"description\":\"CSS selector of the product gallery's container, for themes whose gallery the built-in selectors miss. Only used with galleryProof.\"}}}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"webhook\",\"title\":\"Webhook\",\"description\":\"An HTTPS endpoint FileCheck calls when events happen on your account: jobs created, completed or delivered, proofs ready or approved, settings changed, credits running low. Each call is a JSON POST signed with X-FileCheck-Signature (the hex HMAC-SHA256 of the raw body, keyed with your Auth Key). Delivery is attempted once; the webhook records the last status it got.\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"url\",\"events\"],\"properties\":{\"url\":{\"type\":\"string\",\"format\":\"uri\",\"pattern\":\"^https://\",\"maxLength\":2048,\"description\":\"The HTTPS URL that receives the POSTs.\"},\"events\":{\"type\":\"array\",\"minItems\":1,\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"minLength\":1},\"description\":\"The event keys this webhook receives, from GET /webhook-events (for example job.completed, proof.ready).\"},\"headers\":{\"type\":\"object\",\"maxProperties\":10,\"propertyNames\":{\"pattern\":\"^[A-Za-z0-9-]{1,64}$\"},\"additionalProperties\":{\"type\":\"string\",\"maxLength\":1024},\"description\":\"Extra request headers sent with every call, such as an Authorization header your endpoint checks. Values are write-only: they read back as ********.\"},\"description\":{\"type\":\"string\",\"maxLength\":500,\"description\":\"A note for yourself: what the endpoint is for.\"}}}\n","{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$id\":\"workflow\",\"title\":\"Workflow\",\"description\":\"A workflow is the fulfilment pipeline for a product: what happens to a customer's upload from the moment it is dropped on the product page until the print-ready file reaches the shop. Intake runs first, while the customer waits: it points at an upload rule (which file kinds, how many files or slots, and per kind the preflight profile that checks them and whether a failing file is rejected). When the trigger fires (order placed, upload accepted, proof approved or a manual run), each accepted file runs the stream for its kind (autofix, convert an image to PDF, optimize with a preset, split pages); then merge can combine the files, and delivery sends the result to the account's destinations. Proofing optionally shows the customer a soft proof at the end of intake, and can hold the job until they approve it. Rules, preflight profiles, optimize presets, destinations and scenes are separate records referenced by id; product mappings and the embedded upload widget point at a workflow by its id. A job copies the workflow when it is created; jobs that already hold files keep the version they started with. A minimal create body is { \\\"title\\\", \\\"intake\\\": { \\\"ruleId\\\" } } plus one stream per file kind the rule accepts; without streams files are delivered as they left intake.\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"intake\"],\"properties\":{\"schemaVersion\":{\"type\":\"integer\",\"enum\":[1],\"default\":1,\"description\":\"Version of this record format. Always 1; can be left out.\"},\"title\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Name shown in the dashboard, usually the product it serves (for example \\\"Business cards 85 × 55 mm\\\"). The dashboard's title editor takes up to 40 characters and will not save a workflow without one.\"},\"description\":{\"type\":\"string\",\"default\":\"\",\"description\":\"Internal note shown under the title in the dashboard. Customers never see it.\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[],\"description\":\"Free-form labels for organising workflows (the spec importer adds \\\"imported\\\" and the product type). No effect on processing.\"},\"trigger\":{\"type\":\"string\",\"enum\":[\"order_placed\",\"on_accept\",\"proof_approval\",\"manual\"],\"default\":\"order_placed\",\"description\":\"When processing after intake (streams, then merge and delivery) starts for a job whose files have passed intake. Until it fires, nothing after intake runs. \\\"order_placed\\\" (default): when the customer checks out in a connected cart and the order is linked to the job; the customer can still replace files until then, so use it on product pages. \\\"on_accept\\\": immediately, once the job holds enough accepted files for the rule's minimum file count; files are locked from then on. \\\"proof_approval\\\": when the customer approves the soft proof in the upload widget; needs proofing.enabled true. \\\"manual\\\": only when someone runs the job from the dashboard. Any job can also be run manually from the dashboard whatever its trigger.\"},\"intake\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"ruleId\"],\"description\":\"The upload stage. Runs for every uploaded file as soon as it arrives, whatever the trigger: checks the file against the upload rule and its preflight profile, and makes the soft proof when proofing is enabled.\",\"properties\":{\"ruleId\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Id of the upload rule (GET /rules): the accepted file kinds and MIME types, the number of files or named slots, and per kind the preflight profile and onFail policy that decides whether a failing file is rejected. The upload widget will not load a workflow without a rule. The rule's accepted kinds decide which streams this workflow needs.\"},\"onError\":{\"type\":\"string\",\"enum\":[\"halt\"],\"default\":\"halt\",\"description\":\"Stored for the dashboard and not read by the pipeline: whether a failing file blocks the job is set per kind by the rule's onFail. Only \\\"halt\\\" is accepted.\"},\"enabled\":{\"type\":\"boolean\",\"enum\":[true],\"default\":true,\"description\":\"Intake always runs and cannot be switched off. Always true.\"}}},\"streams\":{\"type\":\"array\",\"default\":[],\"maxItems\":3,\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"properties\":{\"kind\":{\"type\":\"string\",\"enum\":[\"pdf\",\"raster\",\"other\"],\"description\":\"The file kind this stream processes, after intake: \\\"pdf\\\" for PDF uploads and for vector or office files the rule converts to PDF at intake (accept entry convertToPdf true); \\\"raster\\\" for JPEG, PNG, TIFF and other images; \\\"other\\\" for everything else (archives, fonts, vector or office files kept as they are), which no step can process.\"},\"steps\":{\"type\":\"array\",\"default\":[],\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"type\":\"string\",\"enum\":[\"autofix\",\"convert\",\"optimize\",\"split_pages\",\"sanitize\"],\"description\":\"What the step does. \\\"sanitize\\\": removes active content before anything else runs: JavaScript, actions that run or launch something, attachments and forms in a PDF (printable form fields and annotations are flattened into the page so it prints the same), and hidden segments or data in a JPEG, PNG or TIFF. A file with nothing to remove is left untouched. \\\"autofix\\\": applies the fixes the intake preflight planned for this file (the profile checks with severity \\\"autofix\\\": add bleed, convert to CMYK, upscale low-resolution images and so on); it is skipped when intake ran no preflight or found nothing to fix. If the upload rule already autofixes at intake (accept entry autofix on, without repreflight), keep this step disabled or the same fixes are applied a second time. \\\"convert\\\" (raster stream only): places the image on a new PDF page sized by config.dimension. \\\"optimize\\\": runs an optimize preset (config.presetId) over the PDF; on the raster stream it needs an enabled convert step before it, since it works on the converted PDF. \\\"split_pages\\\" (pdf stream only): writes one single-page PDF per page as extra outputs; the file that is delivered and downloaded stays the unsplit PDF.\"},\"enabled\":{\"type\":\"boolean\",\"default\":true,\"description\":\"false keeps the step and its settings in the workflow without running it. The dashboard lists every allowed step for a stream and switches them on and off this way.\"},\"onError\":{\"type\":\"string\",\"enum\":[\"halt\",\"continue\"],\"default\":\"halt\",\"description\":\"What a crash in this step does. \\\"halt\\\" (default): the file ends in error, which puts the whole job in error, so nothing is merged or delivered. \\\"continue\\\": the failure is recorded as a warning on the file and the job carries on with the file as it was before this step.\"},\"config\":{\"type\":\"object\",\"default\":{},\"description\":\"Settings for this step type: sanitize {}, autofix {}, convert { format, dimension, outputIntent, dpi }, optimize { presetId }, split_pages {}.\"}},\"allOf\":[{\"if\":{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"maxProperties\":0,\"description\":\"Autofix takes no settings: it applies exactly the fixes the intake preflight planned for the file, as defined by the checks with severity \\\"autofix\\\" in the preflight profile. Send {}.\"}}}},{\"if\":{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"sanitize\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"maxProperties\":0,\"description\":\"Sanitize takes no settings: it is on or off. Send {}.\"}}}},{\"if\":{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"convert\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{\"format\":\"pdf\"},\"description\":\"How the image becomes a PDF page.\",\"properties\":{\"format\":{\"type\":\"string\",\"enum\":[\"pdf\"],\"default\":\"pdf\",\"description\":\"Target format. Only \\\"pdf\\\" exists; it is what lets the following optimize step treat the file as a PDF.\"},\"dimension\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"width\",\"height\"],\"description\":\"Page the image is placed on, in millimetres. The image is scaled to fit inside the whole page (trim plus bleed), keeping its proportions, centred; if its proportions differ from the page the rest stays white. While the step is enabled, the page size (trim plus bleed) is also the print size used to judge a raster upload's effective DPI when the preflight profile sets none, and the sheet the soft proof is drawn on. Omit dimension to size the page from the image's pixels at dpi.\",\"properties\":{\"width\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Finished (trim) width of the product in millimetres, without bleed. Example: 85 for an 85 × 55 mm business card.\"},\"height\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Finished (trim) height of the product in millimetres, without bleed.\"},\"bleed\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Bleed added outside the trim on each side, in millimetres: the page becomes trim + bleed and gets an explicit TrimBox (finished size) and BleedBox. Set it when customers upload images that already include bleed. For trim-sized images leave it out and let an optimize preset with a bleed group mirror-fill the bleed instead.\",\"properties\":{\"top\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Top side, in millimetres. Missing sides count as 0.\"},\"bottom\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Bottom side, in millimetres. Missing sides count as 0.\"},\"left\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Left side, in millimetres. Missing sides count as 0.\"},\"right\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Right side, in millimetres. Missing sides count as 0.\"}}},\"crop\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Advanced: CropBox insets in millimetres, measured inward from the final page edge. Usually omitted.\",\"properties\":{\"top\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Top side, in millimetres. Missing sides count as 0.\"},\"bottom\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Bottom side, in millimetres. Missing sides count as 0.\"},\"left\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Left side, in millimetres. Missing sides count as 0.\"},\"right\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Right side, in millimetres. Missing sides count as 0.\"}}},\"trim\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Advanced: TrimBox insets in millimetres, measured inward from the final page edge; when any side is set it replaces the TrimBox derived from bleed. Usually omitted.\",\"properties\":{\"top\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Top side, in millimetres. Missing sides count as 0.\"},\"bottom\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Bottom side, in millimetres. Missing sides count as 0.\"},\"left\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Left side, in millimetres. Missing sides count as 0.\"},\"right\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Right side, in millimetres. Missing sides count as 0.\"}}},\"matchOrientation\":{\"type\":\"boolean\",\"default\":true,\"description\":\"true (default): turn the page to the image's orientation, so a size set up portrait also takes landscape images (bleed and insets turn with it). false: always use width × height as given.\"}}},\"outputIntent\":{\"type\":\"string\",\"enum\":[\"cmyk-fogra29.icc\",\"cmyk-fogra39.icc\",\"cmyk-fogra51.icc\",\"cmyk-fogra52.icc\",\"cmyk-gracol2006.icc\",\"cmyk-gracol2013.icc\",\"cmyk-iso-coated-v2-300.icc\",\"cmyk-iso-coated-v2.icc\",\"cmyk-japan-coated.icc\",\"cmyk-japan-uncoated.icc\",\"cmyk-psr-lwc.icc\",\"cmyk-psr-snp.icc\",\"cmyk-swop-v2.icc\",\"cmyk-swop2013.icc\",\"gray-sgray.icc\",\"rgb-adobe-1998.icc\",\"rgb-display-p3.icc\",\"rgb-srgb.icc\",\"cmyk-fogra29\",\"cmyk-fogra39\",\"cmyk-fogra51\",\"cmyk-fogra52\",\"cmyk-gracol2006\",\"cmyk-gracol2013\",\"cmyk-iso-coated-v2-300\",\"cmyk-iso-coated-v2\",\"cmyk-japan-coated\",\"cmyk-japan-uncoated\",\"cmyk-psr-lwc\",\"cmyk-psr-snp\",\"cmyk-swop-v2\",\"cmyk-swop2013\",\"gray-sgray\",\"rgb-adobe-1998\",\"rgb-display-p3\",\"rgb-srgb\"],\"description\":\"ICC profile to embed as the PDF's output intent, by bundled file name (for example \\\"cmyk-fogra39.icc\\\" or \\\"cmyk-fogra39\\\"). Short aliases such as \\\"fogra39\\\" are not resolved by the conversion. A profile the conversion cannot load is skipped without failing the step, so when the intent must be in the file, set it in the optimize preset's output-intent group instead. Also used as the colour profile the soft proof simulates.\"},\"dpi\":{\"type\":\"integer\",\"minimum\":1,\"description\":\"Pixels per inch used to size the page from the image when dimension is not set (page = pixels ÷ dpi). Default 300. Ignored when dimension is set.\"}}}}}},{\"if\":{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"description\":\"Which optimize preset to run.\",\"properties\":{\"presetId\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Id of the optimize preset to apply (GET /optimize-presets): image downsampling and compression, colour conversion, page resize, bleed, hairlines, output intent and so on, as configured on the preset. Required whenever the step is enabled.\"}}}}}},{\"if\":{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"split_pages\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"maxProperties\":0,\"description\":\"Split pages takes no settings. Send {}.\"}}}},{\"if\":{\"allOf\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}},{\"not\":{\"properties\":{\"enabled\":{\"const\":false}},\"required\":[\"enabled\"]}}]},\"then\":{\"required\":[\"config\"],\"properties\":{\"config\":{\"default\":{},\"required\":[\"presetId\"]}}}}]},\"description\":\"Steps run on each file of this kind, in this order, each on the previous step's output. Allowed types, in the order they must appear: pdf: sanitize, autofix, optimize, split_pages. raster: sanitize, autofix, convert, optimize. other: none. Each type at most once; leaving types out is fine. An empty list, or one with no enabled step, means files of this kind are delivered as they left intake.\"}},\"allOf\":[{\"if\":{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"pdf\"}}},\"then\":{\"properties\":{\"steps\":{\"maxItems\":4,\"items\":{\"properties\":{\"type\":{\"enum\":[\"sanitize\",\"autofix\",\"optimize\",\"split_pages\"]}}},\"allOf\":[{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"sanitize\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"autofix\",\"optimize\",\"split_pages\"]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"optimize\",\"split_pages\"]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"split_pages\"]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"split_pages\"}}}]},\"then\":{\"maxItems\":1}},{\"if\":{\"minItems\":2,\"items\":[true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}}]},\"then\":{\"items\":[true,true,{\"properties\":{\"type\":{\"enum\":[\"optimize\",\"split_pages\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}}]},\"then\":{\"items\":[true,true,{\"properties\":{\"type\":{\"enum\":[\"split_pages\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"split_pages\"}}}]},\"then\":{\"maxItems\":2}},{\"if\":{\"minItems\":3,\"items\":[true,true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}}]},\"then\":{\"items\":[true,true,true,{\"properties\":{\"type\":{\"enum\":[\"optimize\",\"split_pages\"]}}}]}},{\"if\":{\"minItems\":3,\"items\":[true,true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}}]},\"then\":{\"items\":[true,true,true,{\"properties\":{\"type\":{\"enum\":[\"split_pages\"]}}}]}},{\"if\":{\"minItems\":3,\"items\":[true,true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"split_pages\"}}}]},\"then\":{\"maxItems\":3}}]}}}},{\"if\":{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}},\"then\":{\"properties\":{\"steps\":{\"maxItems\":4,\"items\":{\"properties\":{\"type\":{\"enum\":[\"sanitize\",\"autofix\",\"convert\",\"optimize\"]}}},\"allOf\":[{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"sanitize\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"autofix\",\"convert\",\"optimize\"]}}}]}},{\"if\":{\"minItems\":4,\"items\":[true,true,true,{\"allOf\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}},{\"not\":{\"properties\":{\"enabled\":{\"const\":false}},\"required\":[\"enabled\"]}}]}]},\"then\":{\"items\":[true,true,{\"properties\":{\"type\":{\"enum\":[\"convert\"]},\"enabled\":{\"enum\":[true]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"convert\",\"optimize\"]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"convert\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"optimize\"]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}}]},\"then\":{\"maxItems\":1}},{\"if\":{\"minItems\":2,\"items\":[true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}}]},\"then\":{\"items\":[true,true,{\"properties\":{\"type\":{\"enum\":[\"convert\",\"optimize\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"convert\"}}}]},\"then\":{\"items\":[true,true,{\"properties\":{\"type\":{\"enum\":[\"optimize\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}}]},\"then\":{\"maxItems\":2}},{\"if\":{\"minItems\":3,\"items\":[true,true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}}]},\"then\":{\"items\":[true,true,true,{\"properties\":{\"type\":{\"enum\":[\"convert\",\"optimize\"]}}}]}},{\"if\":{\"minItems\":3,\"items\":[true,true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"convert\"}}}]},\"then\":{\"items\":[true,true,true,{\"properties\":{\"type\":{\"enum\":[\"optimize\"]}}}]}},{\"if\":{\"minItems\":3,\"items\":[true,true,{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}}]},\"then\":{\"maxItems\":3}},{\"if\":{\"minItems\":1,\"items\":[{\"allOf\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}},{\"not\":{\"properties\":{\"enabled\":{\"const\":false}},\"required\":[\"enabled\"]}}]}]},\"then\":{\"items\":[{\"properties\":{\"type\":{\"enum\":[\"convert\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"allOf\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}},{\"not\":{\"properties\":{\"enabled\":{\"const\":false}},\"required\":[\"enabled\"]}}]}]},\"then\":{\"items\":[{\"properties\":{\"type\":{\"enum\":[\"convert\"]},\"enabled\":{\"enum\":[true]}}}]}},{\"if\":{\"minItems\":3,\"items\":[true,true,{\"allOf\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"optimize\"}}},{\"not\":{\"properties\":{\"enabled\":{\"const\":false}},\"required\":[\"enabled\"]}}]}]},\"then\":{\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"convert\"]},\"enabled\":{\"enum\":[true]}}}]}}]}}}},{\"if\":{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"other\"}}},\"then\":{\"properties\":{\"steps\":{\"maxItems\":0}}}}]},\"allOf\":[{\"if\":{\"minItems\":1,\"items\":[{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"pdf\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"kind\":{\"enum\":[\"raster\",\"other\"]}}},{\"properties\":{\"kind\":{\"enum\":[\"raster\",\"other\"]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"other\"]}}},{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"other\"]}}}]}},{\"if\":{\"minItems\":1,\"items\":[{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"other\"}}}]},\"then\":{\"items\":[true,{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"raster\"]}}},{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"raster\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"pdf\"}}}]},\"then\":{\"items\":[true,true,{\"properties\":{\"kind\":{\"enum\":[\"raster\",\"other\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}}]},\"then\":{\"items\":[true,true,{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"other\"]}}}]}},{\"if\":{\"minItems\":2,\"items\":[true,{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"other\"}}}]},\"then\":{\"items\":[true,true,{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"raster\"]}}}]}}],\"description\":\"Per-file processing that runs after the trigger fires, one stream per file kind. After intake every accepted file is routed by kind: PDFs, and vector or office files the rule converts to PDF, go to the \\\"pdf\\\" stream; images go to the \\\"raster\\\" stream; anything else goes to \\\"other\\\". Add a stream for each kind the upload rule accepts, at most one per kind. A file whose kind has no stream is not processed and is delivered as it left intake. Named slots (Front, Back, …) do not get streams of their own: every file of a kind runs the same steps. Default [] (no processing).\"},\"merge\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{\"mode\":\"none\",\"config\":{},\"onError\":\"halt\",\"enabled\":true},\"description\":\"What happens to the job's files once every file has finished its stream. Runs once per job; a merged file replaces the individual files in delivery and in the job's deliverables (downloads, GET /jobs/{id}).\",\"properties\":{\"mode\":{\"type\":\"string\",\"enum\":[\"none\",\"merge_pdf\",\"zip\"],\"default\":\"none\",\"description\":\"\\\"none\\\" (default): files stay separate and are delivered one by one. \\\"merge_pdf\\\": all of the job's files are concatenated into one PDF in the order they were added to the job (slot names such as Front/Back do not affect the order); needs at least two files, and every file must be a PDF by the end of its stream, so the raster stream needs an enabled convert step and there must be no \\\"other\\\" stream. A merge that fails stops the job before its webhook and delivery. \\\"zip\\\": all files are bundled into one ZIP archive.\"},\"config\":{\"type\":\"object\",\"default\":{},\"description\":\"Mode settings: none {}, merge_pdf { order }, zip { names, order, zipName }.\"},\"onError\":{\"type\":\"string\",\"enum\":[\"halt\"],\"default\":\"halt\",\"description\":\"Stored for the dashboard; a failed merge always stops the job before delivery. Only \\\"halt\\\" is accepted.\"},\"enabled\":{\"type\":\"boolean\",\"default\":true,\"description\":\"false skips the merge whatever the mode. Default true.\"}},\"allOf\":[{\"if\":{\"properties\":{\"mode\":{\"const\":\"none\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"maxProperties\":0}}}},{\"if\":{\"required\":[\"mode\"],\"properties\":{\"mode\":{\"const\":\"merge_pdf\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"minimum\":0},\"uniqueItems\":true,\"description\":\"Advanced: a permutation of the job's file positions (0-based, in the order the files were added to the job), listing every file exactly once. If a job has a different number of files than the list, the merge fails and the job is never delivered, so only use it when the upload rule fixes the file count (min equals max). Omit to keep the order the files were added.\",\"minItems\":2}}}}}},{\"if\":{\"required\":[\"mode\"],\"properties\":{\"mode\":{\"const\":\"zip\"}}},\"then\":{\"properties\":{\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"names\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"description\":\"File names to use inside the ZIP, by file position (the order the files were added to the job). Missing entries fall back to the stored file name, which is an internal id; duplicates get _2, _3 suffixes. With order set, names must have one entry per file.\"},\"order\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"minimum\":0},\"uniqueItems\":true,\"description\":\"Advanced: a permutation of the job's file positions (0-based, in the order the files were added to the job), listing every file exactly once. If a job has a different number of files than the list, the merge fails and the job is never delivered, so only use it when the upload rule fixes the file count (min equals max). Omit to keep the order the files were added.\"},\"zipName\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Name for the archive itself (\\\".zip\\\" is added when it has no extension). Delivered files are named after the product or job, so this mostly shows in storage.\"}}}}}}]},\"finalize\":{\"type\":\"array\",\"maxItems\":0,\"default\":[],\"description\":\"Reserved for steps after merge (imposition, export). None are implemented, so it must be empty.\"},\"proofing\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{\"enabled\":false,\"type\":\"basic\",\"timing\":\"after_intake\",\"requireApproval\":true,\"config\":{},\"previewer\":{\"kind\":\"pages\"}},\"description\":\"Soft proof: a colour-managed preview of each uploaded file, drawn on the print sheet with bleed and cut marks and showing the fixes autofix will make, shown to the customer in the upload widget at the end of intake. With trigger \\\"proof_approval\\\" the job waits until the customer approves it; with any other trigger it is for information only.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Opaque id the dashboard stamps on this block. Optional; no effect.\"},\"enabled\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Make a proof of every file at the end of intake. Default false. Must be true when trigger is \\\"proof_approval\\\".\"},\"type\":{\"type\":\"string\",\"enum\":[\"basic\"],\"default\":\"basic\",\"description\":\"Proof style. Only \\\"basic\\\" (rendered page previews) exists.\"},\"timing\":{\"type\":\"string\",\"enum\":[\"after_intake\"],\"default\":\"after_intake\",\"description\":\"When the proof is made. Only \\\"after_intake\\\" is implemented: after the file passes intake, before the trigger fires. Later points (after streams, after merge) are reserved and would produce no proof.\"},\"requireApproval\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Informational only: whether the job waits for the customer's approval is decided by trigger \\\"proof_approval\\\", not by this flag.\"},\"previewer\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"default\":{\"kind\":\"pages\"},\"description\":\"What the customer approves on: the flat pages, or the proofed pages shown on a product scene.\",\"properties\":{\"kind\":{\"type\":\"string\",\"enum\":[\"pages\",\"scene\"],\"default\":\"pages\",\"description\":\"\\\"pages\\\" (default): flat page previews. \\\"scene\\\": the proofed pages shown on the 3D model, folded leaflet or booklet named by sceneId.\"},\"sceneId\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Id of a scene from the scene library (the account's own or the built-in catalog): a 3D model, fold or flipbook the proofed pages are wrapped onto. Required when kind is \\\"scene\\\"; not allowed with \\\"pages\\\".\"}},\"allOf\":[{\"if\":{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"scene\"}}},\"then\":{\"required\":[\"sceneId\"]}},{\"if\":{\"properties\":{\"kind\":{\"const\":\"pages\"}}},\"then\":{\"properties\":{\"sceneId\":false}}}]},\"config\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{},\"description\":\"Advanced overrides for the proof render. Normally empty: the sheet, bleed and colour profile are inferred from the stream's optimize preset (pdf) or convert dimension (raster), falling back to the intake preflight profile.\",\"properties\":{\"iccProfile\":{\"type\":\"string\",\"enum\":[\"fogra51\",\"fogra52\",\"gracol2013\",\"swop2013\",\"fogra39\",\"iso-coated-v2\",\"iso-coated-v2-300\",\"gracol2006\",\"swop\",\"fogra29\",\"japan-coated\",\"japan-uncoated\",\"psr-lwc\",\"psr-snp\",\"srgb\",\"adobe-rgb\",\"display-p3\",\"greyscale\",\"cmyk-fogra29.icc\",\"cmyk-fogra39.icc\",\"cmyk-fogra51.icc\",\"cmyk-fogra52.icc\",\"cmyk-gracol2006.icc\",\"cmyk-gracol2013.icc\",\"cmyk-iso-coated-v2-300.icc\",\"cmyk-iso-coated-v2.icc\",\"cmyk-japan-coated.icc\",\"cmyk-japan-uncoated.icc\",\"cmyk-psr-lwc.icc\",\"cmyk-psr-snp.icc\",\"cmyk-swop-v2.icc\",\"cmyk-swop2013.icc\",\"gray-sgray.icc\",\"rgb-adobe-1998.icc\",\"rgb-display-p3.icc\",\"rgb-srgb.icc\",\"cmyk-fogra29\",\"cmyk-fogra39\",\"cmyk-fogra51\",\"cmyk-fogra52\",\"cmyk-gracol2006\",\"cmyk-gracol2013\",\"cmyk-iso-coated-v2-300\",\"cmyk-iso-coated-v2\",\"cmyk-japan-coated\",\"cmyk-japan-uncoated\",\"cmyk-psr-lwc\",\"cmyk-psr-snp\",\"cmyk-swop-v2\",\"cmyk-swop2013\",\"gray-sgray\",\"rgb-adobe-1998\",\"rgb-display-p3\",\"rgb-srgb\"],\"description\":\"Printing condition the proof simulates, replacing the inferred one: an alias such as \\\"fogra39\\\", \\\"fogra51\\\", \\\"gracol2013\\\", \\\"swop2013\\\", \\\"srgb\\\" or \\\"greyscale\\\", or a bundled ICC file name.\"},\"format\":{\"type\":\"string\",\"enum\":[\"webp\",\"jpeg\",\"png\"],\"description\":\"Image format of the proof pages. Default \\\"webp\\\".\"},\"quality\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":100,\"description\":\"Compression quality of the proof images, 1 to 100. Default 91.\"},\"maxEdge\":{\"type\":\"integer\",\"minimum\":1,\"description\":\"Longest side of a proof image in pixels. Default 1200.\"},\"sheet\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"size\"],\"description\":\"Advanced: the print sheet each proof page is drawn on, replacing the inferred one (from the optimize preset's page size and bleed on the pdf stream, the convert dimension on the raster stream, else the preflight profile's page size and bleed). Omit unless the inference is wrong.\",\"properties\":{\"size\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"width\",\"height\"],\"description\":\"Finished (trim) size of the sheet.\",\"properties\":{\"width\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Trim width in millimetres.\"},\"height\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Trim height in millimetres.\"},\"unit\":{\"type\":\"string\",\"enum\":[\"mm\"],\"default\":\"mm\",\"description\":\"Always millimetres.\"}}},\"sizes\":{\"type\":\"array\",\"minItems\":1,\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"width_mm\",\"height_mm\"],\"properties\":{\"width_mm\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Trim width in millimetres.\"},\"height_mm\":{\"type\":\"number\",\"exclusiveMinimum\":0,\"description\":\"Trim height in millimetres.\"}}},\"description\":\"For products sold in several sizes: each page is proofed on the listed size nearest to it instead of on size.\"},\"bleed\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Bleed shown around the trim, in millimetres. Default 0.\"},\"safeZone\":{\"type\":\"number\",\"minimum\":0,\"description\":\"Safety margin drawn inside the trim, in millimetres. Default 0.\"},\"fitTo\":{\"type\":\"string\",\"enum\":[\"trim\",\"media\"],\"description\":\"Fit the artwork to the trim (default) or to the full sheet including bleed.\"},\"fit\":{\"type\":\"string\",\"enum\":[\"contain\",\"cover\"],\"description\":\"\\\"contain\\\" (default) shows the whole artwork inside the trim; \\\"cover\\\" fills the trim and crops the overflow.\"},\"dpi\":{\"type\":\"integer\",\"minimum\":1,\"description\":\"Render resolution of the sheet in pixels per inch. Default 150; targetEdge wins when both are set.\"},\"targetEdge\":{\"type\":\"integer\",\"minimum\":1,\"description\":\"Longest side of the rendered sheet in pixels, bleed included. Inferred sheets use 1200.\"},\"cutMarks\":{\"type\":\"boolean\",\"description\":\"Draw corner cut marks and the dashed trim line. Default true.\"},\"watermark\":{\"type\":\"boolean\",\"description\":\"Overlay a \\\"proof\\\" watermark band. Default false for a sheet given here (inferred sheets ask for one); it can also be switched off platform-wide.\"},\"background\":{\"type\":\"string\",\"pattern\":\"^#[0-9A-Fa-f]{6}$\",\"description\":\"Sheet background colour as #rrggbb. Default #ffffff.\"},\"matchOrientation\":{\"type\":\"boolean\",\"description\":\"Turn the sheet to the artwork's orientation. Default true.\"}}}}},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[],\"description\":\"Free-form labels. No effect.\"}}},\"optionSet\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{\"enabled\":false,\"title\":\"\",\"description\":\"\",\"fields\":[],\"config\":{}},\"description\":\"Customer-facing option fields (paper, sides, quantity and so on) meant to be shown next to the upload. Reserved: nothing reads it yet; the upload widget does not show it and jobs ignore it. Leave it disabled; product options belong in the store.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Opaque id the dashboard stamps on this block. Optional; no effect.\"},\"enabled\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Has no effect yet. Default false.\"},\"title\":{\"type\":\"string\",\"default\":\"\",\"description\":\"Heading above the fields.\"},\"description\":{\"type\":\"string\",\"default\":\"\",\"description\":\"Text under the heading.\"},\"fields\":{\"type\":\"array\",\"default\":[],\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"key\",\"type\"],\"properties\":{\"key\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Stable identifier, unique within the option set; dependsOn refers to it.\"},\"type\":{\"type\":\"string\",\"enum\":[\"select\",\"radio\",\"swatch\",\"sides\",\"binding\",\"grommet\",\"toggle\",\"number\",\"text\",\"note\"],\"description\":\"Widget: select (dropdown), radio, swatch, sides, binding, grommet, toggle, number, text, or note (read-only text).\"},\"label\":{\"type\":\"string\",\"description\":\"Label shown to the customer.\"},\"help\":{\"type\":\"string\",\"description\":\"Helper text under the field.\"},\"required\":{\"type\":\"boolean\",\"description\":\"The customer must answer it.\"},\"default\":{\"description\":\"Pre-selected value.\"},\"choices\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"value\"],\"properties\":{\"value\":{\"type\":[\"string\",\"number\",\"boolean\"],\"description\":\"Value recorded when the customer picks this choice.\"},\"label\":{\"type\":\"string\",\"description\":\"Text shown for the choice. Defaults to the value.\"},\"swatch\":{\"type\":[\"string\",\"null\"],\"description\":\"Colour or material swatch for swatch fields.\"},\"thumb\":{\"type\":[\"string\",\"null\"],\"description\":\"Thumbnail image URL.\"},\"priceHint\":{\"type\":[\"string\",\"null\"],\"description\":\"Cosmetic price note such as \\\"+€2.00\\\"; never used to price anything.\"},\"config\":{\"type\":\"object\",\"description\":\"Free-form widget settings for this choice; any keys.\"}}},\"description\":\"Choices for select, radio, swatch, sides, binding and grommet fields.\"},\"min\":{\"type\":[\"number\",\"null\"],\"description\":\"Smallest value for number fields.\"},\"max\":{\"type\":[\"number\",\"null\"],\"description\":\"Largest value for number fields.\"},\"step\":{\"type\":[\"number\",\"null\"],\"description\":\"Increment for number fields.\"},\"unit\":{\"type\":\"string\",\"description\":\"Unit label shown next to the value, such as \\\"copies\\\" or \\\"mm\\\".\"},\"dependsOn\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":false,\"required\":[\"key\"],\"properties\":{\"key\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Key of the field this one depends on.\"},\"in\":{\"type\":\"array\",\"description\":\"Values of that field for which this one is shown.\"}},\"description\":\"Show this field only when another field has one of the listed values.\"},\"source\":{\"type\":[\"string\",\"null\"],\"enum\":[\"page_count\",\"color_count\",\"width\",\"height\",\"color_space\",null],\"description\":\"Fill the value from the uploaded file instead of asking: page_count, color_count, width, height or color_space.\"},\"preflightLink\":{\"type\":[\"string\",\"null\"],\"description\":\"Preflight concern this option relates to, such as \\\"bleed\\\" or \\\"even_pages\\\".\"},\"config\":{\"type\":\"object\",\"description\":\"Free-form widget settings for this field; any keys.\"}}},\"description\":\"The option fields, in display order.\"},\"config\":{\"type\":\"object\",\"default\":{},\"description\":\"Free-form layout settings; any keys.\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[],\"description\":\"Free-form labels. No effect.\"}}},\"delivery\":{\"type\":\"object\",\"additionalProperties\":false,\"default\":{\"enabled\":false,\"destinationIds\":[]},\"description\":\"Where the finished print files go when a job completes successfully (after streams and merge). Every destination receives the job's final files: the merged PDF or ZIP when merge made one, otherwise each file as its stream left it (the original upload when no step changed it). Jobs that end in error are not delivered.\",\"properties\":{\"enabled\":{\"type\":\"boolean\",\"default\":true,\"description\":\"true (default when delivery is sent): deliver to every listed destination. false: keep the list but deliver nothing.\"},\"destinationIds\":{\"type\":\"array\",\"default\":[],\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"minLength\":1},\"description\":\"Ids of delivery destinations (GET /destinations): email, S3, webhook, SFTP or FTP targets that hold their own credentials, paths and sidecar settings. Destinations that are disabled or deleted when a job finishes are skipped. Empty means nothing is delivered.\"}}},\"ui\":{\"type\":\"object\",\"default\":{},\"additionalProperties\":true,\"description\":\"Display settings for the dashboard and the upload widget. Free-form: unknown keys are kept as they are.\",\"properties\":{\"units\":{\"type\":\"string\",\"enum\":[\"mm\",\"cm\",\"in\",\"pt\",\"m\",\"px\"],\"description\":\"Unit for sizes shown to customers and in reports for jobs of this workflow; overrides the account default (millimetres when neither is set).\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Short labels shown on the workflow's card in the dashboard, for example [\\\"2 × PDF\\\", \\\"85 × 55 mm\\\"]; the description is shown when there are none.\"}}}},\"allOf\":[{\"if\":{\"required\":[\"trigger\"],\"properties\":{\"trigger\":{\"const\":\"proof_approval\"}}},\"then\":{\"required\":[\"proofing\"],\"properties\":{\"proofing\":{\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}},{\"if\":{\"not\":{\"required\":[\"proofing\"],\"properties\":{\"proofing\":{\"required\":[\"enabled\"],\"properties\":{\"enabled\":{\"const\":true}}}}}},\"then\":{\"properties\":{\"trigger\":{\"enum\":[\"order_placed\",\"on_accept\",\"manual\"]}}}},{\"if\":{\"required\":[\"merge\"],\"properties\":{\"merge\":{\"required\":[\"mode\"],\"properties\":{\"mode\":{\"const\":\"merge_pdf\"},\"enabled\":{\"not\":{\"const\":false}}}}}},\"then\":{\"properties\":{\"streams\":{\"items\":{\"properties\":{\"kind\":{\"enum\":[\"pdf\",\"raster\"]}},\"if\":{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}},\"then\":{\"required\":[\"steps\"],\"properties\":{\"steps\":{\"minItems\":1,\"allOf\":[{\"items\":[{\"properties\":{\"type\":{\"enum\":[\"autofix\",\"convert\"]}}}]},{\"if\":{\"minItems\":1,\"items\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"autofix\"}}}]},\"then\":{\"minItems\":2,\"items\":[true,{\"properties\":{\"type\":{\"enum\":[\"convert\"]}}}]}},{\"items\":{\"if\":{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"convert\"}}},\"then\":{\"properties\":{\"enabled\":{\"enum\":[true]}}}}}]}}}}}}}},{\"if\":{\"required\":[\"streams\"],\"properties\":{\"streams\":{\"contains\":{\"anyOf\":[{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"other\"}}},{\"allOf\":[{\"required\":[\"kind\"],\"properties\":{\"kind\":{\"const\":\"raster\"}}},{\"not\":{\"required\":[\"steps\"],\"properties\":{\"steps\":{\"contains\":{\"allOf\":[{\"type\":\"object\",\"required\":[\"type\"],\"properties\":{\"type\":{\"const\":\"convert\"}}},{\"not\":{\"properties\":{\"enabled\":{\"const\":false}},\"required\":[\"enabled\"]}}]}}}}}]}]}}}},\"then\":{\"properties\":{\"merge\":{\"if\":{\"properties\":{\"enabled\":{\"not\":{\"const\":false}}}},\"then\":{\"properties\":{\"mode\":{\"enum\":[\"none\",\"zip\"]}}}}}}}]}\n","import connector from './api-schemas/connector.json' with { type: 'json' };\nimport destination from './api-schemas/destination.json' with { type: 'json' };\nimport optimizePreset from './api-schemas/optimize-preset.json' with { type: 'json' };\nimport productMap from './api-schemas/product-map.json' with { type: 'json' };\nimport profile from './api-schemas/profile.json' with { type: 'json' };\nimport rule from './api-schemas/rule.json' with { type: 'json' };\nimport settings from './api-schemas/settings.json' with { type: 'json' };\nimport webhook from './api-schemas/webhook.json' with { type: 'json' };\nimport workflow from './api-schemas/workflow.json' with { type: 'json' };\n\n/**\n * The public API's request schemas (copied by scripts/sync-api-schemas.mjs),\n * served to agents on demand: the big ones (profile ≈130 KB) are far too large\n * to inline as tool input schemas, so setup_reference returns an overview and\n * lets the agent drill in by JSON pointer.\n */\nexport const SCHEMAS = {\n workflow,\n rule,\n profile,\n connector,\n 'optimize-preset': optimizePreset,\n destination,\n 'product-map': productMap,\n settings,\n webhook,\n} as const satisfies Record<string, unknown>;\n\nexport type SchemaType = keyof typeof SCHEMAS;\nexport const SCHEMA_TYPES = Object.keys(SCHEMAS) as [SchemaType, ...SchemaType[]];\n\n/** A node this size or smaller is returned whole; bigger ones as an overview. */\nexport const FULL_LIMIT = 12_000;\nconst DESCRIPTION_LIMIT = 400;\n\ntype Node = Record<string, unknown>;\n\nconst isNode = (value: unknown): value is Node =>\n value !== null && typeof value === 'object' && !Array.isArray(value);\n\nconst clip = (text: unknown, limit = DESCRIPTION_LIMIT): string | undefined =>\n typeof text === 'string'\n ? text.length > limit\n ? `${text.slice(0, limit)}… (more at this node's own path)`\n : text\n : undefined;\n\n/** RFC 6901 pointer (with or without the leading '#') → the node, or undefined. */\nexport function resolvePointer(root: unknown, pointer: string): unknown {\n const path = pointer.replace(/^#/, '');\n if (path === '' || path === '/') return root;\n let node: unknown = root;\n for (const raw of path.replace(/^\\//, '').split('/')) {\n const key = decodeURIComponent(raw).replace(/~1/g, '/').replace(/~0/g, '~');\n if (Array.isArray(node)) node = node[Number(key)];\n else if (isNode(node)) node = node[key];\n else return undefined;\n if (node === undefined) return undefined;\n }\n return node;\n}\n\nfunction typeOf(node: Node): unknown {\n if (node.type !== undefined) return node.type;\n if (typeof node.$ref === 'string') return { $ref: node.$ref };\n if (Array.isArray(node.enum)) return 'enum';\n for (const key of ['oneOf', 'anyOf', 'allOf'] as const) {\n if (Array.isArray(node[key])) return `${key} (${(node[key] as unknown[]).length})`;\n }\n return undefined;\n}\n\n/** One line per property: its type, a clipped description, enum values. */\nfunction propertySummary(node: Node): Node {\n const out: Node = { type: typeOf(node) };\n const description = clip(node.description, 200);\n if (description) out.description = description;\n if (Array.isArray(node.enum)) out.enum = node.enum.slice(0, 30);\n if (node.default !== undefined) out.default = node.default;\n if (isNode(node.items)) out.items = typeOf(node.items);\n return out;\n}\n\n/** A large node, one level deep: what is in it and the paths to read next. */\nexport function overview(node: Node, path: string): Node {\n const out: Node = {};\n for (const key of ['title', '$id', 'type'] as const) {\n if (node[key] !== undefined) out[key] = node[key];\n }\n const description = clip(node.description, 1_500);\n if (description) out.description = description;\n if (Array.isArray(node.required)) out.required = node.required;\n if (isNode(node.properties)) {\n out.properties = Object.fromEntries(\n Object.entries(node.properties).map(([key, value]) => [\n key,\n isNode(value) ? propertySummary(value) : value,\n ]),\n );\n }\n if (isNode(node.items)) out.items = propertySummary(node.items);\n for (const key of ['oneOf', 'anyOf', 'allOf'] as const) {\n if (Array.isArray(node[key])) {\n out[key] = (node[key] as unknown[]).map((branch) =>\n isNode(branch) ? (clip(branch.description, 200) ?? typeOf(branch) ?? 'constraint') : branch,\n );\n }\n }\n if (isNode(node.definitions)) out.definitions = Object.keys(node.definitions);\n const base = path === '' ? '' : path;\n out.readNext = [\n ...(isNode(node.properties) ? [`${base}/properties/<name>`] : []),\n ...(isNode(node.definitions) ? [`${base}/definitions/<name>`] : []),\n ...(['oneOf', 'anyOf', 'allOf'] as const)\n .filter((key) => Array.isArray(node[key]))\n .map((key) => `${base}/${key}/<index>`),\n ];\n return out;\n}\n\nexport interface Reference {\n type: SchemaType;\n path: string;\n /** True when `schema` is the node itself; false when it is an overview of a large node. */\n complete: boolean;\n schema: unknown;\n}\n\nexport function schemaReference(type: SchemaType, pointer = ''): Reference | null {\n const path = pointer.replace(/^#/, '').replace(/\\/$/, '');\n const node = resolvePointer(SCHEMAS[type], path);\n if (node === undefined) return null;\n const complete = !isNode(node) || JSON.stringify(node).length <= FULL_LIMIT;\n return { type, path: path || '/', complete, schema: complete ? node : overview(node, path) };\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { LibraryResource, WriteResult } from 'filecheck-node';\nimport { z } from 'zod';\nimport { READ, READ_WEB, WRITE, WRITE_WEB } from '../annotations.js';\nimport type { ToolContext } from '../capabilities.js';\nimport { jsonResult, toolErrorResult } from '../format.js';\nimport { SCHEMA_TYPES, schemaReference } from '../schema-reference.js';\n\n/**\n * The setup tools: everything that decides what happens to a customer's\n * files — workflows, rules, profiles, connectors, optimize presets, delivery\n * destinations, which product opens which workflow, the storefront Element's\n * settings, webhooks. Each is a thin call to the public API, which validates\n * (errors name the field at fault and list every problem), scopes everything\n * to the caller's account, and keeps agent-made records as drafts until\n * published.\n *\n * Record bodies are free-form here: the API's JSON schemas are far too large\n * to inline (profile ≈130 KB), so setup_reference serves them on demand.\n */\n\nclass ToolInputError extends Error {}\n\nfunction need(args: Record<string, unknown>, keys: string[], action: string): void {\n const missing = keys.filter((key) => args[key] === undefined || args[key] === '');\n if (missing.length) throw new ToolInputError(`${action} needs ${missing.join(', ')}.`);\n}\n\nconst failed = (error: unknown) =>\n toolErrorResult(error instanceof ToolInputError ? new Error(error.message) : error);\n\nconst record = z\n .record(z.unknown())\n .optional()\n .describe(\n 'The record. On create: the whole record. On update: a JSON Merge Patch (RFC 7396) — only what changes; null removes a key; arrays replace the whole list. Read its schema with setup_reference first.',\n );\nconst dryRun = z\n .boolean()\n .optional()\n .describe(\n 'Validate and check references without saving: the result shows the record as it would be saved.',\n );\n\nconst CATALOG = {\n workflow: { resource: 'workflows', name: 'workflow' },\n rule: { resource: 'rules', name: 'rule' },\n profile: { resource: 'profiles', name: 'preflight profile' },\n connector: { resource: 'connectors', name: 'connector' },\n 'optimize-preset': { resource: 'optimizePresets', name: 'optimize preset' },\n} as const;\ntype CatalogType = keyof typeof CATALOG;\nconst CATALOG_TYPES = Object.keys(CATALOG) as [CatalogType, ...CatalogType[]];\n\n/** A write's result as structured content: the record plus what the API said about it. */\nfunction written(base: Record<string, unknown>, result: WriteResult<unknown>) {\n const { record: saved, ...rest } = result;\n return {\n ...base,\n record: saved as Record<string, unknown>,\n ...(rest as Record<string, unknown>),\n };\n}\n\nconst idOf = (value: unknown): string | undefined =>\n value && typeof value === 'object' && typeof (value as { id?: unknown }).id === 'string'\n ? (value as { id: string }).id\n : undefined;\n\nexport function registerSetupTools(server: McpServer, { client }: ToolContext): void {\n // ---- schemas ------------------------------------------------------------\n\n server.registerTool(\n 'setup_reference',\n {\n title: 'Read a setup record schema',\n description:\n 'The JSON Schema of a setup record (workflow, rule, profile, connector, optimize-preset, destination, product-map, settings, webhook): every field, what it means, its allowed values. ' +\n 'Read it before creating or patching a record. Small nodes come back whole; large ones (a whole profile) as an overview listing each property and the `path`s to read next — pass one as `path` (a JSON pointer such as /properties/intake or #/definitions/acceptEntry; $ref values work as paths too).',\n inputSchema: {\n type: z.enum(SCHEMA_TYPES).describe('Which record.'),\n path: z\n .string()\n .optional()\n .describe('JSON pointer into the schema. Omit for the top level.'),\n },\n annotations: { title: 'Read a setup record schema', ...READ },\n },\n async (args) => {\n try {\n const ref = schemaReference(args.type, args.path ?? '');\n if (!ref) {\n throw new ToolInputError(\n `No node at ${args.path} in the ${args.type} schema. Omit path for the top level, then follow its readNext paths.`,\n );\n }\n return jsonResult(\n { ...ref },\n ref.complete\n ? `${args.type} schema at ${ref.path}.`\n : `${args.type} schema at ${ref.path} (overview: pass one of readNext as path for more).`,\n );\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n // ---- the catalog: workflows, rules, profiles, connectors, presets --------\n\n const catalog = (type: CatalogType): LibraryResource => client[CATALOG[type].resource];\n\n server.registerTool(\n 'manage_catalog',\n {\n title: 'Create or change workflows, rules, profiles…',\n description:\n \"Create, update (merge patch), delete, publish or revert a workflow, rule, preflight profile, connector or optimize preset. Read the record's schema with setup_reference first; list_catalog shows what exists. \" +\n 'create saves a draft by default (draft: true): hidden from the storefront and dashboard until published, yet jobs run against it by id, so try it on a real file with check_file (workflowId or ruleId) first. Build bottom-up: profile → rule (accept entries name profiles) → workflow (intake.ruleId, delivery.destinationIds). ' +\n \"publish makes a draft live, with the drafts it points at; ask the merchant first. update on a built-in (source:'store') record saves the account's own copy under the same id; revert drops that copy. delete is refused (in_use) while a published record or product uses it.\",\n inputSchema: {\n type: z.enum(CATALOG_TYPES).describe('Which kind of record.'),\n action: z.enum(['create', 'update', 'delete', 'publish', 'revert']),\n id: z.string().optional().describe('The record id (all actions but create).'),\n record,\n draft: z\n .boolean()\n .optional()\n .describe(\n 'create only. Default true: save as a draft. false publishes at once — only when the merchant asked for that.',\n ),\n dryRun,\n },\n annotations: { title: 'Create or change workflows, rules, profiles…', ...WRITE },\n },\n async (args) => {\n try {\n const resource = catalog(args.type);\n const name = CATALOG[args.type].name;\n const base = { type: args.type, action: args.action };\n switch (args.action) {\n case 'create': {\n need(args, ['record'], 'create');\n const draft = args.draft ?? true;\n const result = await resource.create(args.record!, { draft, dryRun: args.dryRun });\n const id = idOf(result.record);\n return jsonResult(\n written(base, result),\n result.dryRun\n ? `The ${name} is valid (dry run: nothing saved).`\n : draft\n ? `Created draft ${name} ${id}. Try it on a real file (check_file with ${args.type === 'workflow' ? 'workflowId' : args.type === 'rule' ? 'ruleId' : 'a draft rule or workflow that uses it'}), then publish it when the merchant agrees.`\n : `Created ${name} ${id} (published).`,\n );\n }\n case 'update': {\n need(args, ['id', 'record'], 'update');\n const result = await resource.update(args.id!, args.record!, { dryRun: args.dryRun });\n return jsonResult(\n written(base, result),\n result.dryRun\n ? `The patch to ${name} ${args.id} is valid (dry run: nothing saved).`\n : `Updated ${name} ${args.id}.`,\n );\n }\n case 'delete': {\n need(args, ['id'], 'delete');\n const deleted = await resource.del(args.id!);\n return jsonResult({ ...base, record: deleted }, `Deleted ${name} ${args.id}.`);\n }\n case 'publish': {\n need(args, ['id'], 'publish');\n const result = await resource.publish(args.id!);\n return jsonResult(\n written(base, result),\n `Published ${result.published.join(', ')}. It is live now.`,\n );\n }\n case 'revert': {\n need(args, ['id'], 'revert');\n const result = await resource.revert(args.id!);\n return jsonResult(\n written(base, result),\n result.reverted\n ? `Reverted ${name} ${args.id}: the built-in version applies again.`\n : `${name} ${args.id} had no copy of the account's own: nothing to revert.`,\n );\n }\n }\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n // ---- destinations -------------------------------------------------------\n\n server.registerTool(\n 'list_destinations',\n {\n title: 'List delivery destinations',\n description:\n 'Where finished files are delivered: SFTP/FTP hotfolders, S3, webhooks, email. Workflows list the destinations they deliver to (delivery.destinationIds). Secrets read as ********. Pass id for one destination.',\n inputSchema: { id: z.string().optional().describe('One destination in full.') },\n annotations: { title: 'List delivery destinations', ...READ },\n },\n async (args) => {\n try {\n if (args.id) {\n const destination = await client.destinations.retrieve(args.id);\n return jsonResult({ destination }, `Destination ${args.id}.`);\n }\n const destinations = await client.destinations.list();\n return jsonResult({ destinations }, `${destinations.length} destination(s).`);\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n server.registerTool(\n 'manage_destination',\n {\n title: 'Create or change a delivery destination',\n description:\n 'Create, update (merge patch) or delete a delivery destination. Read setup_reference destination first: `kind` picks the transport and `params` its settings. Secrets (passwords, private keys, header values) are write-only: send them only when setting or changing them; a merchant who would rather not share one in the chat can create the destination without it and add it in the Filecheck dashboard. After creating, test_destination checks the connection. delete is refused (in_use) while a published workflow delivers to it.',\n inputSchema: {\n action: z.enum(['create', 'update', 'delete']),\n id: z.string().optional().describe('The destination id (update, delete).'),\n record,\n dryRun,\n },\n annotations: { title: 'Create or change a delivery destination', ...WRITE },\n },\n async (args) => {\n try {\n const base = { action: args.action };\n if (args.action === 'create') {\n need(args, ['record'], 'create');\n const result = await client.destinations.create(args.record!, { dryRun: args.dryRun });\n return jsonResult(\n written(base, result),\n result.dryRun\n ? 'The destination is valid (dry run: nothing saved).'\n : `Created destination ${idOf(result.record)}. test_destination checks it delivers.`,\n );\n }\n if (args.action === 'update') {\n need(args, ['id', 'record'], 'update');\n const result = await client.destinations.update(args.id!, args.record!, {\n dryRun: args.dryRun,\n });\n return jsonResult(\n written(base, result),\n result.dryRun ? 'The patch is valid (dry run).' : `Updated destination ${args.id}.`,\n );\n }\n need(args, ['id'], 'delete');\n const deleted = await client.destinations.del(args.id!);\n return jsonResult({ ...base, record: deleted }, `Deleted destination ${args.id}.`);\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n server.registerTool(\n 'test_destination',\n {\n title: 'Send a test delivery',\n description:\n \"Delivers a sample order (TEST-1001, a one-page Sample_Product.pdf) through the destination's real transport and reports whether it got through. SFTP, FTP and S3 really write the file where a print workflow watching that folder may pick it up, and email really sends: ask the merchant before running it.\",\n inputSchema: { id: z.string().describe('The destination id.') },\n annotations: { title: 'Send a test delivery', ...WRITE_WEB },\n },\n async (args) => {\n try {\n const test = await client.destinations.test(args.id);\n return jsonResult(\n { id: args.id, test },\n test.ok\n ? `Test delivery to ${args.id} got through.`\n : `Test delivery to ${args.id} failed: ${String(test.error ?? 'see test')}.`,\n );\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n // ---- products -----------------------------------------------------------\n\n server.registerTool(\n 'list_product_maps',\n {\n title: 'List product mappings',\n description:\n \"Every product in the merchant's store that opens a workflow, and which. The storefront Element runs that workflow on the product page.\",\n inputSchema: {},\n annotations: { title: 'List product mappings', ...READ },\n },\n async () => {\n try {\n const productMaps = await client.productMaps.list();\n return jsonResult({ productMaps }, `${productMaps.length} mapped product(s).`);\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n server.registerTool(\n 'find_store_products',\n {\n title: \"Find the store's products\",\n description:\n \"Reads products from the merchant's connected Shopify store, each with the workflow it is mapped to. Other carts answer cart_not_supported: ask the merchant for the product id instead.\",\n inputSchema: {\n search: z\n .string()\n .optional()\n .describe('Words in the product title. Omit for the most recent.'),\n cursor: z.string().optional().describe('nextCursor from the previous page.'),\n },\n annotations: { title: \"Find the store's products\", ...READ_WEB },\n },\n async (args) => {\n try {\n const page = await client.products.search({ search: args.search, cursor: args.cursor });\n return jsonResult(\n { ...page },\n `${page.products.length} product(s)${page.hasMore ? ' (more: pass nextCursor as cursor)' : ''}.`,\n );\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n server.registerTool(\n 'map_product',\n {\n title: 'Map a product to a workflow',\n description:\n \"set: the product opens this workflow on its page from now on (customers see it at once: ask first). The workflow must be published. remove: the product stops opening a workflow. Read setup_reference product-map for the record's other fields.\",\n inputSchema: {\n action: z.enum(['set', 'remove']),\n productId: z.string().describe(\"The product's id in the store (Shopify: the numeric id).\"),\n workflowId: z.string().optional().describe('set: the published workflow (wf_…).'),\n record: z\n .record(z.unknown())\n .optional()\n .describe(\n 'set: other product-map fields (title, url, variants), merged with workflowId.',\n ),\n dryRun,\n },\n annotations: { title: 'Map a product to a workflow', ...WRITE },\n },\n async (args) => {\n try {\n if (args.action === 'remove') {\n const removed = await client.productMaps.del(args.productId);\n return jsonResult(\n { action: 'remove', record: removed },\n `Product ${args.productId} no longer opens a workflow.`,\n );\n }\n const map = {\n ...(args.record ?? {}),\n ...(args.workflowId !== undefined && { workflowId: args.workflowId }),\n };\n if (map.workflowId === undefined) throw new ToolInputError('set needs workflowId.');\n const result = await client.productMaps.set(args.productId, map, { dryRun: args.dryRun });\n return jsonResult(\n written({ action: 'set' }, result),\n result.dryRun\n ? 'The mapping is valid (dry run: nothing saved).'\n : `Product ${args.productId} now opens workflow ${String(map.workflowId)}.`,\n );\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n // ---- settings -----------------------------------------------------------\n\n server.registerTool(\n 'get_settings',\n {\n title: 'Get the storefront settings',\n description:\n 'How the Filecheck Element appears on product pages: where it mounts, the add-to-cart button it guards, display mode, theme, proof display.',\n inputSchema: {},\n annotations: { title: 'Get the storefront settings', ...READ },\n },\n async () => {\n try {\n const settings = await client.settings.retrieve();\n return jsonResult({ settings }, 'Storefront settings.');\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n server.registerTool(\n 'update_settings',\n {\n title: 'Change the storefront settings',\n description:\n 'Patch the storefront settings: send only what changes; null puts a setting back to its default. Read setup_reference settings for the fields. Changes show on the live store at once: ask first. Custom JS and CSS are dashboard-only.',\n inputSchema: {\n patch: z.record(z.unknown()).describe('The settings that change.'),\n dryRun,\n },\n annotations: { title: 'Change the storefront settings', ...WRITE },\n },\n async (args) => {\n try {\n const result = await client.settings.update(args.patch, { dryRun: args.dryRun });\n return jsonResult(\n written({}, result),\n result.dryRun ? 'The patch is valid (dry run).' : 'Storefront settings updated.',\n );\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n // ---- webhooks -----------------------------------------------------------\n\n server.registerTool(\n 'list_webhooks',\n {\n title: 'List webhooks',\n description:\n \"The account's webhook endpoints (HTTP callbacks for job, proof, account and billing events, signed with X-FileCheck-Signature), and the event types they can subscribe to. Pass id for one webhook.\",\n inputSchema: { id: z.string().optional().describe('One webhook in full.') },\n annotations: { title: 'List webhooks', ...READ },\n },\n async (args) => {\n try {\n if (args.id) {\n const webhook = await client.webhookEndpoints.retrieve(args.id);\n return jsonResult({ webhook }, `Webhook ${args.id}.`);\n }\n const [webhooks, events] = await Promise.all([\n client.webhookEndpoints.list(),\n client.webhookEndpoints.events(),\n ]);\n return jsonResult(\n { webhooks, events },\n `${webhooks.length} webhook(s); ${events.length} event type(s) available.`,\n );\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n server.registerTool(\n 'manage_webhook',\n {\n title: 'Create or change a webhook',\n description:\n 'Create, update (merge patch) or delete a webhook endpoint: { url, events, headers?, description? }. Event types come from list_webhooks. Header values are write-only.',\n inputSchema: {\n action: z.enum(['create', 'update', 'delete']),\n id: z.string().optional().describe('The webhook id (update, delete).'),\n record,\n dryRun,\n },\n annotations: { title: 'Create or change a webhook', ...WRITE },\n },\n async (args) => {\n try {\n const base = { action: args.action };\n if (args.action === 'create') {\n need(args, ['record'], 'create');\n const result = await client.webhookEndpoints.create(args.record!, {\n dryRun: args.dryRun,\n });\n return jsonResult(\n written(base, result),\n result.dryRun\n ? 'The webhook is valid (dry run).'\n : `Created webhook ${idOf(result.record)}. test_webhook sends it a test event.`,\n );\n }\n if (args.action === 'update') {\n need(args, ['id', 'record'], 'update');\n const result = await client.webhookEndpoints.update(args.id!, args.record!, {\n dryRun: args.dryRun,\n });\n return jsonResult(\n written(base, result),\n result.dryRun ? 'The patch is valid (dry run).' : `Updated webhook ${args.id}.`,\n );\n }\n need(args, ['id'], 'delete');\n const deleted = await client.webhookEndpoints.del(args.id!);\n return jsonResult({ ...base, record: deleted }, `Deleted webhook ${args.id}.`);\n } catch (error) {\n return failed(error);\n }\n },\n );\n\n server.registerTool(\n 'test_webhook',\n {\n title: 'Send a test webhook event',\n description:\n \"Sends a signed test event to the webhook's URL and reports the receiver's answer.\",\n inputSchema: { id: z.string().describe('The webhook id.') },\n annotations: { title: 'Send a test webhook event', ...WRITE_WEB },\n },\n async (args) => {\n try {\n const test = await client.webhookEndpoints.test(args.id);\n return jsonResult(\n { id: args.id, test },\n test.ok\n ? `The receiver accepted the test event${test.status ? ` (${String(test.status)})` : ''}.`\n : `The test event failed: ${String(test.error ?? test.status ?? 'see test')}.`,\n );\n } catch (error) {\n return failed(error);\n }\n },\n );\n}\n","import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\nimport type { ToolContext } from '../capabilities.js';\nimport { formatJobResult, toolErrorResult } from '../format.js';\nimport { resolveSource } from '../resolve-source.js';\nimport { submitAndWait } from '../run-job.js';\nimport { jobOutputShape, makeSourceSchema, waitSecondsSchema } from '../schemas.js';\n\nconst PROFILE_CODES = [\n 'auto',\n '1a',\n '1b',\n '2a',\n '2b',\n '2u',\n '3a',\n '3b',\n '3u',\n '4',\n '4e',\n '4f',\n 'ua1',\n 'ua2',\n] as const;\n\nexport function registerValidatePdf(server: McpServer, { client, caps }: ToolContext): void {\n server.registerTool(\n 'validate_pdf',\n {\n title: 'Validate PDF/A / PDF/UA conformance',\n description:\n 'Validate a PDF against PDF/A (archival) and PDF/UA (accessibility) conformance levels using veraPDF. ' +\n \"Levels: 'auto' detects the claimed level; '1b'/'2b'/'3b' etc. are PDF/A flavors; 'ua1'/'ua2' are PDF/UA. \" +\n 'Read `compliant` per profile for the verdict; `status` only says whether validation ran.',\n inputSchema: {\n source: makeSourceSchema(caps),\n levels: z\n .array(z.enum(PROFILE_CODES))\n .optional()\n .describe(\n \"Conformance levels to check (default 'auto' — detect from the file's own claim).\",\n ),\n waitSeconds: waitSecondsSchema,\n },\n outputSchema: jobOutputShape,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n },\n async (args) => {\n try {\n const source = await resolveSource(client, caps, args.source);\n const run = await submitAndWait(\n client,\n caps,\n (wait) =>\n client.jobs.validate({\n sources: [\n {\n ...source,\n ...(args.levels?.length\n ? { profile: args.levels.length === 1 ? args.levels[0] : [...args.levels] }\n : {}),\n },\n ],\n ...wait,\n }),\n args.waitSeconds,\n );\n return formatJobResult(run);\n } catch (error) {\n return toolErrorResult(error);\n }\n },\n );\n}\n","/** Injected from package.json at build time (tsup `env`); fallback covers src-mode runs (tests). */\nexport const VERSION = process.env.FILECHECK_MCP_VERSION ?? '0.0.0-dev';\n","import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { Filecheck } from 'filecheck-node';\nimport type { Capabilities, ToolContext } from './capabilities.js';\nimport { registerSaveArtifact } from './tools/artifact.js';\nimport { registerListCatalog } from './tools/catalog.js';\nimport { registerCheckFile } from './tools/check.js';\nimport { registerFixFile } from './tools/fix.js';\nimport { registerJobTools } from './tools/jobs.js';\nimport { registerOptimizeFile } from './tools/optimize.js';\nimport { registerRenderPreviews } from './tools/previews.js';\nimport { registerGetReport } from './tools/report.js';\nimport { registerSetupTools } from './tools/setup.js';\nimport { registerValidatePdf } from './tools/validate.js';\nimport { VERSION } from './version.js';\n\nconst INSTRUCTIONS = `Filecheck checks print files (PDF, images) for print-readiness, fixes what it can automatically, validates PDF/A / PDF/UA conformance, optimizes, and renders previews.\n\nCRITICAL — every job has two independent axes:\n- status = execution lifecycle: pending | running | done | skipped | error\n- outcome = verdict: pass | warn | fail | fixed | unchanged | na | mixed\nstatus:done + outcome:fail means the check ran successfully AND the file is NOT print-ready. Never report success from status alone.\n\nDownload URLs are presigned and expire after ~60 minutes; get_job re-mints them on every call — never store or cache URLs.\nIf a tool returns pending:true, poll get_job with the returned jobId. Never resubmit a file that is already processing.\nTypical flow: check_file → (findings autofixable?) fix_file → download/save deliverables. Discover profiles and rules with list_catalog.\n\nSetting up a product (which files it accepts, how they are checked and fixed, where finished files go) — check in with the merchant at each step, in plain words:\n1. The product: find_store_products (Shopify) or ask for its id; list_product_maps shows what is mapped already.\n2. What exists: list_catalog workflows, rules and profiles. Prefer a built-in (source:'store') one that fits: manage_catalog update on it saves the account's own copy (revert undoes it).\n3. Before writing a record, read its schema with setup_reference. manage_catalog create saves drafts by default; build bottom-up: profile → rule (its accept entries name the profiles) → workflow (intake.ruleId, delivery.destinationIds). dryRun: true validates without saving.\n4. Try the draft on a real file: check_file with workflowId (or ruleId). Fix what the result shows.\n5. Ask before anything customers see: manage_catalog publish (the workflow publishes the drafts it points at), then map_product set, and update_settings.\nDelivery: manage_destination create, then test_destination — it really writes a sample file into the shop's hotfolder or sends mail, so ask first. Secrets read back as ********.\nSetup errors name the field at fault (param) and list every problem (details): fix those and retry.`;\n\nexport interface CreateFilecheckMcpOptions {\n /** A configured filecheck-node client (carries the API key). */\n client: Filecheck;\n /** What the hosting process can do; shapes which tools and fields exist. */\n capabilities: Capabilities;\n}\n\n/**\n * Build the Filecheck MCP server. Transport-agnostic: the stdio CLI and the\n * remote Streamable HTTP Lambda both consume this factory.\n */\nexport function createFilecheckMcp({ client, capabilities }: CreateFilecheckMcpOptions): McpServer {\n const server = new McpServer(\n { name: 'filecheck', version: VERSION },\n { instructions: INSTRUCTIONS },\n );\n const ctx: ToolContext = { client, caps: capabilities };\n\n registerCheckFile(server, ctx);\n registerFixFile(server, ctx);\n registerValidatePdf(server, ctx);\n registerOptimizeFile(server, ctx);\n registerRenderPreviews(server, ctx);\n registerJobTools(server, ctx);\n registerListCatalog(server, ctx);\n registerGetReport(server, ctx);\n registerSetupTools(server, ctx);\n if (capabilities.localFiles) registerSaveArtifact(server, ctx);\n\n return server;\n}\n","import type { Filecheck } from 'filecheck-node';\n\n/**\n * What the hosting process can do. Tools are SHAPED at registration time by\n * these flags (fields and whole tools appear or disappear) rather than\n * erroring at call time — agents should never see affordances they can't use.\n */\nexport interface Capabilities {\n /**\n * Whether this server process can read and write the local filesystem\n * (true for the stdio CLI, false for the remote Lambda). Gates the\n * `filePath` source field and the `save_artifact` tool.\n */\n localFiles: boolean;\n /**\n * Max total wait budget (ms) a submit tool may spend before returning a\n * `pending` result with polling guidance. Budgets ≥ 30 s also allow\n * holding the API's own ~27 s sync-submit wait.\n */\n maxWaitMs: number;\n}\n\n/** stdio CLI: local disk access, generous wait. */\nexport const LOCAL_CAPABILITIES: Capabilities = { localFiles: true, maxWaitMs: 180_000 };\n\n/** Remote Lambda: no disk, budget safely inside the 29 s gateway ceiling. */\nexport const REMOTE_CAPABILITIES: Capabilities = { localFiles: false, maxWaitMs: 20_000 };\n\n/** Passed to every tool's register function. */\nexport interface ToolContext {\n client: Filecheck;\n caps: Capabilities;\n}\n"]}
|