import * as Schema from "effect/Schema";
import { API } from "../../client.js";
import * as T from "../../traits.js";
import { BadRequest, Forbidden, NotFound } from "../../errors.js";
// Input Schema
export const McpServerInstallationsToolsPartialUpdateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String.pipe(T.PathParam()),
    project_id: Schema.String.pipe(T.PathParam()),
    tool_name: Schema.String.pipe(T.PathParam()),
    approval_state: Schema.optional(Schema.Literals(["approved", "needs_approval", "do_not_use"])),
}).pipe(T.Http({
    method: "PATCH",
    path: "/api/environments/{project_id}/mcp_server_installations/{id}/tools/{tool_name}/",
}));
// Output Schema
export const McpServerInstallationsToolsPartialUpdateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.optional(Schema.String),
    tool_name: Schema.optional(Schema.String),
    display_name: Schema.optional(Schema.String),
    description: Schema.optional(Schema.String),
    input_schema: Schema.optional(Schema.Unknown),
    approval_state: Schema.optional(Schema.Literals(["approved", "needs_approval", "do_not_use"])),
    last_seen_at: Schema.optional(Schema.String),
    removed_at: Schema.optional(Schema.NullOr(Schema.String)),
    created_at: Schema.optional(Schema.String),
    updated_at: Schema.optional(Schema.NullOr(Schema.String)),
});
// The operation
/**
 *
 * @param id - A UUID string identifying this mcp server installation.
 * @param project_id - Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 */
export const mcpServerInstallationsToolsPartialUpdate = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: McpServerInstallationsToolsPartialUpdateInput,
    outputSchema: McpServerInstallationsToolsPartialUpdateOutput,
    errors: [BadRequest, Forbidden, NotFound],
}));
//# sourceMappingURL=mcpServerInstallationsToolsPartialUpdate.js.map