//native
import * as wmill from "windmill-client"
// windmill-client errors only carry the status text: throw the response body, which says why
wmill.OpenAPI.interceptors.response.use(async (response) => {
if (!response.ok) {
throw new Error(`${response.status} ${await response.text()}`)
}
return response
})
/**
* Get Workspace Settings
* Get the workspace's settings: error handler, deploy target, git sync, auto-invite and more. Requires a workspace admin.
*/
export async function main() {
return await wmill.WorkspaceService.getSettings({
workspace: wmill.getWorkspace(),
})
}
Submitted by hugo989 5 hours ago