Open History to see the last commit
1import type { OrchestrationThread } from "@v12/contracts";
2import * as Option from "effect/Option";
3
4export type EnvironmentThreadStatus = "empty" | "cached" | "synchronizing" | "live" | "deleted";
5
6export interface EnvironmentThreadState {
7 readonly data: Option.Option<OrchestrationThread>;
8 readonly status: EnvironmentThreadStatus;
9 readonly error: Option.Option<string>;
10}
11
12export const EMPTY_ENVIRONMENT_THREAD_STATE: EnvironmentThreadState = {
13 data: Option.none(),
14 status: "empty",
15 error: Option.none(),
16};