attachments.ts 531 B

123456789101112131415
  1. export * as ConfigAttachments from "./attachments"
  2. import { Schema } from "effect"
  3. import { PositiveInt } from "../schema"
  4. export class Image extends Schema.Class<Image>("ConfigV2.Attachments.Image")({
  5. auto_resize: Schema.Boolean.pipe(Schema.optional),
  6. max_width: PositiveInt.pipe(Schema.optional),
  7. max_height: PositiveInt.pipe(Schema.optional),
  8. max_base64_bytes: PositiveInt.pipe(Schema.optional),
  9. }) {}
  10. export class Info extends Schema.Class<Info>("ConfigV2.Attachments")({
  11. image: Image.pipe(Schema.optional),
  12. }) {}