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 TasksRepositoriesRetrieveInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    project_id: Schema.String.pipe(T.PathParam()),
}).pipe(T.Http({
    method: "GET",
    path: "/api/projects/{project_id}/tasks/repositories/",
}));
// Output Schema
export const TasksRepositoriesRetrieveOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    repositories: Schema.optional(Schema.Array(Schema.String)),
});
// The operation
/**
 * List distinct task repositories
 *
 * Return the set of repositories referenced by non-deleted, non-internal tasks in the current project. Used to populate repository filter pickers without being constrained by task list pagination.
 *
 * @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 tasksRepositoriesRetrieve = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: TasksRepositoriesRetrieveInput,
    outputSchema: TasksRepositoriesRetrieveOutput,
    errors: [Forbidden, NotFound],
}));
//# sourceMappingURL=tasksRepositoriesRetrieve.js.map