Skip to content

Variable: UploadedAttachmentSchema ​

ts
const UploadedAttachmentSchema: ZodObject<{
  author: ZodOptional<ZodString>;
  comment: ZodOptional<ZodString>;
  commentOutput: ZodOptional<ZodString>;
  created: ZodOptional<ZodObject<{
     nanos: ZodOptional<ZodNumber>;
     seconds: ZodOptional<ZodNumber>;
  }, ApiObjectConfig<undefined>>>;
  filename: ZodOptional<ZodString>;
  filesize: ZodOptional<ZodString>;
  id: ZodOptional<ZodNumber>;
  mimeType: ZodOptional<ZodString>;
  url: ZodOptional<ZodString>;
}, ApiObjectConfig<undefined>>;

Defined in: src/assetsServer/models/uploadedAttachment.ts:5

An attachment as the upload reports it, whose created is a timestamp rather than a date.