gatelineAPI reference
interface FieldView {
    comments: boolean;
    fields: Field[];
    groups: FieldGroup[];
    kind: "work-item" | "state";
    rawKeys: string[];
    withheld: null | WithheldReason;
}

Properties

comments: boolean

True when the file carries YAML comments outside its header — in the bytes, and only there.

fields: Field[]

Top-level fields, in the contract's order.

groups: FieldGroup[]

Blocks of entries, in the contract's order. A work item has none.

kind: "work-item" | "state"
rawKeys: string[]

What the file writes that this view does not type, by its path in the document (budget.ledger, intake, gates.G1.<key>, escalations[0].<key>) — in the bytes, and only there.

withheld: null | WithheldReason

Why no field view may speak for this file (a work item whose surface is not a list, say), or null. A view that honours this shows the bytes and nothing in their place.