//#region src/api/config.ts
function e(e) {
	return {
		getWorkspaceTypes: () => e.get("/api/v1/config/workspaces").then((e) => e.data),
		getWorkflowTypesByWorkspace: (t) => e.get(`/api/v1/config/workspaces/${encodeURIComponent(t.workspaceBlockName)}/workflows`).then((e) => e.data),
		getWorkflowConfig: (t) => e.get(`/api/v1/config/workflows/${encodeURIComponent(t.alias)}`).then((e) => e.data),
		getWorkflowSource: (t) => e.get(`/api/v1/config/workflows/${encodeURIComponent(t.alias)}/source`).then((e) => e.data),
		getAvailableEnvironments: () => e.get("/api/v1/config/environments").then((e) => e.data)
	};
}
//#endregion
export { e as createConfigApi };
