@suluk/scalar - v0.8.0
    Preparing search index...

    Function enrichV4Facets

    • Mutate a v4 document: stamp the facet badges + detail on each REQUEST (the v4 by-name operation) and prepend the v4-contract intro — the same superpowers as the 3.1 path, but kept in v4 shape. The forked Scalar ingests this natively (projects requests→ops internally) and carries x-badges / x-suluk-* through, so cost + access render on each operation AND the version badge reads 4.0.0-candidate (no downgrade). Reuses the 3.1 badge helpers since a v4 request carries x-suluk-cost / x-suluk-access directly.

      Parameters

      • doc: {
            paths?: Record<
                string,
                { requests?: Record<string, Record<string, unknown>> },
            >;
            info?: Record<string, unknown>;
        }

      Returns void