Skip to content

UnvalidatedConfigArtifact

UnvalidatedConfigArtifact = Record<string, unknown>

A config artifact as raw parsed JSON — what import playbook from './revturbine.playbook.json' produces.

TypeScript widens JSON modules to plain string/number property types, which can never satisfy the literal-typed ConfigArtifact (artifact_type: "playbook" etc.), so a strict-mode project could not pass the imported JSON without a cast. The SDK therefore accepts this raw shape everywhere a ConfigArtifact is accepted at the localRuntime boundary and validates it at runtime (normalizeConfigArtifactOrThrow — a malformed artifact fails fast at init with a descriptive error).