import * as Schema from "effect/Schema";
import { API } from "../client.js";
import * as T from "../traits.js";
const __document = "mutation userPreferenceDelete($key: String!) {\n  userPreference {\n    delete(key: $key) {\n      createdAt\n      id\n      key\n      updatedAt\n      value\n    }\n  }\n}";
// Input Schema (GraphQL variables)
export const UserPreferenceDeleteInput = Schema.Struct({
    key: Schema.String,
}).pipe(T.Http({ method: "POST", path: "/graphql" }), T.GraphQLOp({
    query: __document,
    operationName: "userPreferenceDelete",
    type: "mutation",
}));
// Output Schema (GraphQL selection set)
export const UserPreferenceDeleteOutput = Schema.NullOr(Schema.Struct({
    createdAt: Schema.String,
    id: Schema.String,
    key: Schema.String,
    updatedAt: Schema.String,
    value: Schema.Unknown,
})).pipe(T.ResponsePath("userPreference.delete"));
export const userPreferenceDelete = API.make(() => ({
    inputSchema: UserPreferenceDeleteInput,
    outputSchema: UserPreferenceDeleteOutput,
}));
//# sourceMappingURL=userPreferenceDelete.js.map