diff --git a/src/client/index.ts b/src/client/index.ts index 69ba125..2fcff44 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -187,8 +187,10 @@ export type SendEmailOptions = subject?: string; template: { id: string; - variables: Record; + variables?: Record; }; + html?: never; + text?: never; replyTo?: string[]; headers?: { name: string; value: string }[]; }; diff --git a/src/component/_generated/component.ts b/src/component/_generated/component.ts index ada7ae8..7f71afe 100644 --- a/src/component/_generated/component.ts +++ b/src/component/_generated/component.ts @@ -145,7 +145,10 @@ export type ComponentApi = }; replyTo?: Array; subject?: string; - template?: { id: string; variables: Record }; + template?: { + id: string; + variables?: Record; + }; text?: string; to: Array; },