2026-05-30 04:06:08 +00:00
|
|
|
export * as ConfigReference from "./reference"
|
|
|
|
|
|
|
|
|
|
import { Schema } from "effect"
|
|
|
|
|
|
|
|
|
|
export class Git extends Schema.Class<Git>("ConfigV2.Reference.Git")({
|
|
|
|
|
repository: Schema.String,
|
|
|
|
|
branch: Schema.String.pipe(Schema.optional),
|
2026-06-10 04:08:26 +00:00
|
|
|
description: Schema.String.pipe(Schema.optional),
|
|
|
|
|
hidden: Schema.Boolean.pipe(Schema.optional),
|
2026-05-30 04:06:08 +00:00
|
|
|
}) {}
|
|
|
|
|
|
|
|
|
|
export class Local extends Schema.Class<Local>("ConfigV2.Reference.Local")({
|
|
|
|
|
path: Schema.String,
|
2026-06-10 04:08:26 +00:00
|
|
|
description: Schema.String.pipe(Schema.optional),
|
|
|
|
|
hidden: Schema.Boolean.pipe(Schema.optional),
|
2026-05-30 04:06:08 +00:00
|
|
|
}) {}
|
|
|
|
|
|
|
|
|
|
export const Entry = Schema.Union([Schema.String, Git, Local])
|
|
|
|
|
export type Entry = typeof Entry.Type
|
|
|
|
|
|
|
|
|
|
export const Info = Schema.Record(Schema.String, Entry)
|
2026-06-02 14:25:11 +00:00
|
|
|
export type Info = typeof Info.Type
|