Skip to content

Variable: emailSendersSchema

const emailSendersSchema: ZodObject<{ defaultSender: ZodOptional<ZodString>; restricted: ZodBoolean; senders: ZodArray<ZodString>; }, $strip>

Schema for the sender options a UI can offer for the From address - the payload of the plugin’s GET /senders route. When the plugin configures a sender allow-list, senders holds the concrete addresses the current user may send as (domain wildcards expanded against the user’s local part) and restricted is true; a picker should require a choice from the list. When unrestricted, senders holds at most the single default address (if one can be resolved) and restricted is false, so a UI may allow free entry.