compaction.ts 556 B

12345678910111213141516
  1. export * as ConfigCompaction from "./compaction"
  2. import { Schema } from "effect"
  3. import { NonNegativeInt } from "../schema"
  4. export class Keep extends Schema.Class<Keep>("ConfigV2.Compaction.Keep")({
  5. turns: NonNegativeInt.pipe(Schema.optional),
  6. tokens: NonNegativeInt.pipe(Schema.optional),
  7. }) {}
  8. export class Info extends Schema.Class<Info>("ConfigV2.Compaction")({
  9. auto: Schema.Boolean.pipe(Schema.optional),
  10. prune: Schema.Boolean.pipe(Schema.optional),
  11. keep: Keep.pipe(Schema.optional),
  12. buffer: NonNegativeInt.pipe(Schema.optional),
  13. }) {}