gatelineAPI reference
interface ArtifactRef {
    contract: null | string;
    contractName: null | string;
    family: ArtifactFamily;
    format: ArtifactFormat;
    id: null | string;
    kind:
        | "intent-brief"
        | "spec"
        | "plan"
        | "work-item"
        | "review-report"
        | "verification-report"
        | "release-plan"
        | "state"
        | "docs-delta"
        | "integration-profile"
        | "other";
    path: string;
    reviewOf: null
    | ReviewOf;
}

Properties

contract: null | string

The contract filename this artifact is checked against, or null (presence only).

contractName: null | string

The contract's own name for the kind (work item, review report), or null for other.

What its bytes are written in (describeArtifact): the reader's choice of renderer.

id: null | string

See ArtifactDescription.id: a work item's id, a review report's number, else null.

kind:
    | "intent-brief"
    | "spec"
    | "plan"
    | "work-item"
    | "review-report"
    | "verification-report"
    | "release-plan"
    | "state"
    | "docs-delta"
    | "integration-profile"
    | "other"
path: string

Run-relative, as listArtifacts returns it. The address: provenance, never the label.

reviewOf: null | ReviewOf

A review report's subject, read from its header — the one fact about a review its path cannot supply. Null on every other kind, and on a review whose report was not read to build this ref (an inbox item's packet: see InboxItem.packetRefs).