20 lines
807 B
TypeScript
20 lines
807 B
TypeScript
import * as Schema from "effect/Schema";
|
|
|
|
import { IsoDateTime, ProjectId, TrimmedNonEmptyString } from "./baseSchemas.ts";
|
|
import { RepositoryIdentity } from "./environment.ts";
|
|
import { ModelSelection } from "./modelSelection.ts";
|
|
import { ProjectScript } from "./project.ts";
|
|
|
|
/** Project summary shared by the V2 shell and application project APIs. */
|
|
export const OrchestrationProjectShell = Schema.Struct({
|
|
id: ProjectId,
|
|
title: TrimmedNonEmptyString,
|
|
workspaceRoot: TrimmedNonEmptyString,
|
|
repositoryIdentity: Schema.optional(Schema.NullOr(RepositoryIdentity)),
|
|
defaultModelSelection: Schema.NullOr(ModelSelection),
|
|
scripts: Schema.Array(ProjectScript),
|
|
createdAt: IsoDateTime,
|
|
updatedAt: IsoDateTime,
|
|
});
|
|
export type OrchestrationProjectShell = typeof OrchestrationProjectShell.Type;
|