import { defineConfig } from "@hey-api/openapi-ts";

export default defineConfig({
    input: "http://localhost:8000/openapi.json",
    output: "src/lib/client",

    plugins: [
        "@hey-api/client-axios",
        "@tanstack/react-query",
        "@hey-api/typescript",
        {
            name: "zod",
            requests: true,
            definitions: true,
            metadata: true,
            dates: {
                offset: true,
            },
        },
        {
            name: "@hey-api/sdk",
            asClass: false,
            validator: "zod",
        },
        {
            name: "@hey-api/client-next",
            runtimeConfigPath: "./src/hey-api-config.ts",
        },
    ],
});
