2026-03-17 09:24:28 -05:00
|
|
|
import type {
|
|
|
|
|
InstanceExperimentalSettings,
|
2026-03-20 08:00:39 -05:00
|
|
|
InstanceGeneralSettings,
|
|
|
|
|
PatchInstanceGeneralSettings,
|
2026-03-17 09:24:28 -05:00
|
|
|
PatchInstanceExperimentalSettings,
|
|
|
|
|
} from "@paperclipai/shared";
|
|
|
|
|
import { api } from "./client";
|
|
|
|
|
|
|
|
|
|
export const instanceSettingsApi = {
|
2026-03-20 08:00:39 -05:00
|
|
|
getGeneral: () =>
|
|
|
|
|
api.get<InstanceGeneralSettings>("/instance/settings/general"),
|
|
|
|
|
updateGeneral: (patch: PatchInstanceGeneralSettings) =>
|
|
|
|
|
api.patch<InstanceGeneralSettings>("/instance/settings/general", patch),
|
2026-03-17 09:24:28 -05:00
|
|
|
getExperimental: () =>
|
|
|
|
|
api.get<InstanceExperimentalSettings>("/instance/settings/experimental"),
|
|
|
|
|
updateExperimental: (patch: PatchInstanceExperimentalSettings) =>
|
|
|
|
|
api.patch<InstanceExperimentalSettings>("/instance/settings/experimental", patch),
|
|
|
|
|
};
|