compaction.ts 509 B

123456789101112131415
  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. tokens: NonNegativeInt.pipe(Schema.optional),
  6. }) {}
  7. export class Info extends Schema.Class<Info>("ConfigV2.Compaction")({
  8. auto: Schema.Boolean.pipe(Schema.optional),
  9. prune: Schema.Boolean.pipe(Schema.optional),
  10. keep: Keep.pipe(Schema.optional),
  11. buffer: NonNegativeInt.pipe(Schema.optional),
  12. }) {}