Boatstack TypeScript SDK
    Preparing search index...
    • Lowers a declarative Flow definition to raw Control Program IR.

      Boatstack still canonicalizes, validates, resolves trusted bindings, and fingerprints the result. Calling this function does not execute the Flow.

      Parameters

      Returns ControlProgramIR

      const flow = defineFlow({
      id: "example",
      version: "1",
      facets: [facet("status", "enum", ["open", "done"])],
      operators: [],
      transitions: [],
      targets: [marked("done", fact("status", ["done"]))],
      entries: [entry({ id: "run", target: "done" })],
      });