/** * Copyright (c) 2026, Salesforce, Inc., * All rights reserved. * For full license text, see the LICENSE.txt file */ import { buildMutation } from "./build-mutation.js"; import { type ToolOutput, type UpdateSpec } from "./types.js"; import { type PrimeDeps } from "../lib/prime-schema.js"; /** * Build a UIAPI update mutation against a Salesforce org. Implements * `sf_gql_update` intent for the graphiti MCP server (FR-5.6). Thin * wrapper around `buildMutation` with `op = "Update"`; see that helper * for behavior details. */ export async function buildUpdate(spec: UpdateSpec, deps?: PrimeDeps): Promise { return buildMutation(spec, "Update", deps); }