Stratal API Reference
    Preparing search index...

    Variable emailAttachmentSchemaConst

    emailAttachmentSchema: ZodUnion<
        readonly [
            ZodObject<
                {
                    content: ZodString;
                    contentType: ZodString;
                    filename: ZodString;
                    size: ZodOptional<ZodNumber>;
                },
                $strip,
            >,
            ZodObject<
                {
                    disk: ZodOptional<ZodString>;
                    filename: ZodString;
                    storageKey: ZodString;
                },
                $strip,
            >,
        ],
    > = ...

    Email Attachment Schema

    Union type - type is inferred from presence of content vs storageKey.

    • If content is present: inline attachment
    • If storageKey is present: storage-based attachment