import * as Schema from "effect/Schema";
import { API } from "../../client.js";
import * as T from "../../traits.js";
import { Forbidden, NotFound } from "../../errors.js";
// Input Schema
export const McpServerInstallationsToolsRetrieveInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String.pipe(T.PathParam()),
    project_id: Schema.String.pipe(T.PathParam()),
}).pipe(T.Http({
    method: "GET",
    path: "/api/environments/{project_id}/mcp_server_installations/{id}/tools/",
}));
// Output Schema
export const McpServerInstallationsToolsRetrieveOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    count: Schema.optional(Schema.Number),
    next: Schema.optional(Schema.NullOr(Schema.String)),
    previous: Schema.optional(Schema.NullOr(Schema.String)),
    results: Schema.optional(Schema.Array(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 mcpServerInstallationsToolsRetrieve = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: McpServerInstallationsToolsRetrieveInput,
    outputSchema: McpServerInstallationsToolsRetrieveOutput,
    errors: [Forbidden, NotFound],
}));
//# sourceMappingURL=mcpServerInstallationsToolsRetrieve.js.map