landing.ts
This file
Path
packages/protocol/src/domain/landing.ts
22 lines · 736 bytes · TypeScript
Last changed by
Merge build/comments-cli-protocol-checks into mainoscabrielbefore adoptionc86204f
History of this fileTake it
1234567891011121314151617181920212223import { Schema } from "effect";
import { AskId, Handle, LandedSha, ProjectName, RequestId } from "../ids.ts";import { Verdict } from "./answer.ts";import { AgentTrailer, Credit } from "./credit.ts";
export const LandingView = Schema.Struct({ ask: Schema.optionalKey(AskId), assisted: Schema.Array(AgentTrailer), author: Handle, credits: Schema.Array(Credit), heldBackTrailer: Schema.optionalKey(Schema.NonEmptyString), landedAt: Schema.DateTimeUtcFromString, opened: Schema.optionalKey(AskId), parent: Schema.optionalKey(LandedSha), project: ProjectName, requestId: Schema.optionalKey(RequestId), sha: LandedSha, verdict: Schema.optionalKey(Verdict),});
export type LandingView = typeof LandingView.Type;