import "../../shared/src/valita.js";
import { mutationIDSchema } from "./mutation-id.js";
import { mutationResponseSchema } from "./push.js";
import { object, literal, union, array } from "@badrap/valita";
const putOpSchema = object({
  op: literal("put"),
  mutation: mutationResponseSchema
});
const delOpSchema = object({
  op: literal("del"),
  id: mutationIDSchema
});
const patchOpSchema = union(putOpSchema, delOpSchema);
const mutationsPatchSchema = array(patchOpSchema);
export {
  delOpSchema,
  mutationsPatchSchema,
  putOpSchema
};
//# sourceMappingURL=mutations-patch.js.map
