@suluk/sdk - v0.3.0
    Preparing search index...

    Function resolveOps

    @suluk/sdk — generate a complete, intuitive TypeScript SDK from a v4 "Suluk" contract. ofetch-based, entity-grouped, fully typed, auth wired, and the v4 superpowers (declared cost + access) surfaced as typed metadata on each method. A library a developer downloads and uses straight away — not a bag of functions.

    import { generateSdk } from "@suluk/sdk"; const tsSource = generateSdk(v4Document, { baseURL: "https://api.example.com" }); // a self-contained .ts file

    • walkOps + DETERMINISTIC method-name collision resolution — SHARED by generateSdk AND generateStores so the client accessor names (client.<ns>.<member>) can NEVER drift between the two projections. Mutates op.member in place; returns the resolved ops + the human-readable collision list (for the SDK header). One source of accessor identity.

      Parameters

      • doc: OpenAPIv4Document

      Returns { ops: OpInfo[]; collisions: string[] }