#!/bin/bash set -e npx --yes openapi-typescript-codegen --input ../backend/windmill-api/openapi.yaml \ --output ./src --useOptions \ && sed -i '213 i \\ request.referrerPolicy = \"no-referrer\"\n' src/core/request.ts cp client.ts src/ echo 'export { setClient, getVariable, setVariable, getResource, setResource, getResumeUrls, setState, getState } from "./client";' >> src/index.ts