status payload.md
Documentation Index
Fetch the complete documentation index at: https://filecheck.io/docs/llms.txt Use this file to discover all available pages before exploring further.
Status payload
The shape of the status event. Gate your submit button on canProceed.
The status event is the one you must handle. Gate your submit button on canProceed.
interface IntakeStatusPayload {
status: 'idle' // no files yet (fires once at startup)
| 'incomplete' // fewer files than required
| 'uploading'
| 'processing'
| 'ready' // all files passed
| 'partial' // warnings only, accepted per the Rule's on-fail policy
| 'rejected'; // hard fail
terminal: boolean;
canProceed: boolean; // gate your submit button on THIS
workflowId: string | null;
jobId: string | null;
files: Array<{
id: string;
name: string;
fileRef: string | null; // input file CDN ref
outcome: 'pass' | 'warn' | 'fail' | null;
status: string;
outputRef: string | null; // auto-fixed output CDN ref (if any)
}>;
}
[!WARNING]
canProceedistrueonly forreadyandpartial. Do not re-derive it fromstatusorfiles. Filecheck already collapses the Workflow'sonFailpolicy into it.
Minimal pattern
intake.on('status', ({ canProceed, jobId }) => {
submitBtn.disabled = !canProceed;
hiddenJobIdInput.value = jobId ?? '';
});
This documentation is built and hosted on Mintlify, a developer documentation platform.