Skip to content
Open
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ab1d509
feat: get inbound emails v0 (#641)
lucasfcosta Sep 30, 2025
ae5b029
chore(deps): update dependency @biomejs/biome to v2.2.4 (#537)
renovate[bot] Sep 30, 2025
a0b0943
feat: bump version for inbound release (#642)
lucasfcosta Sep 30, 2025
c0b1b4f
chore: bump to 6.2.0-canary.1 (#649)
gabrielmfern Oct 1, 2025
e648bb9
chore(deps): update dependency @types/node to v22.18.8 (#638)
renovate[bot] Oct 3, 2025
34b2267
chore(deps): update dependency typescript to v5.9.3 (#645)
renovate[bot] Oct 3, 2025
98fa90c
chore(deps): update tj-actions/changed-files digest to d6f020b (#651)
renovate[bot] Oct 3, 2025
5d9d306
chore(deps): update pnpm to v10.18.0 (#653)
renovate[bot] Oct 3, 2025
a5df0a5
chore(deps): update dependency @biomejs/biome to v2.2.5 (#652)
renovate[bot] Oct 3, 2025
9e4b04a
chore(deps): update dependency @types/react to v19.2.0 (#640)
renovate[bot] Oct 3, 2025
294aeba
feat: show headers in response (#657)
lucasfcosta Oct 4, 2025
bfb4026
chore: release new canary for headers (#658)
lucasfcosta Oct 4, 2025
2a5fd6d
chore: improve PR title check error (#664)
TyMick Oct 9, 2025
2022031
feat: move emails inbound method to emails.receiving.<method> (#666)
lucasfcosta Oct 9, 2025
54569ba
feat: move attachment inbound methods to be nested (#667)
lucasfcosta Oct 9, 2025
236c533
feat: add inbound listing method (#668)
lucasfcosta Oct 9, 2025
64a674f
feat: add pagination for inbound email attachments (#670)
lucasfcosta Oct 10, 2025
ffe4fce
chore(deps): update pnpm to v10.18.2 (#659)
renovate[bot] Oct 10, 2025
d4e34ee
chore(deps): update dependency @types/node to v22.18.9 (#669)
renovate[bot] Oct 10, 2025
798d80b
chore(deps): update pnpm/action-setup digest to 41ff726 (#665)
renovate[bot] Oct 10, 2025
41b7f7b
feat: partial (API Keys, Audiences, and Contacts) non-mocked test cov…
TyMick Oct 14, 2025
aae3602
feat: bump version (#675)
isabellaaquino Oct 14, 2025
653a6a3
feat: merge project preview branches (#680)
Cisneiros Oct 14, 2025
27a9a6c
feat: download from API's signed URLs instead of proxied routes (#676)
lucasfcosta Oct 15, 2025
4ba8340
fix: repo urls (#679)
zenorocha Oct 15, 2025
afc815a
feat: allow creating domain with capabilities through the api (#682)
lucasfcosta Oct 15, 2025
4747aea
feat: add verify webhooks (#636)
bukinoshita Oct 17, 2025
def00a1
feat: avoid downloading attachments ourselves (#685)
lucasfcosta Oct 17, 2025
de2e0e3
chore: bump to canary 6.3.0-canary.1 (#687)
lucasfcosta Oct 17, 2025
f6b5102
chore: limited variable types (#692)
joaopcm Oct 17, 2025
f0ccb0e
fix: remove duplicated webhook import
lucasfcosta Oct 17, 2025
8d6cb55
fix: missing `statusCode` in ErrorRespnse type (#567)
gabrielmfern Oct 20, 2025
ac6889e
feat: introduce the /segment API endpoints (#689)
Cisneiros Oct 21, 2025
f207875
feat: add message_id to inbound email response (#702)
vieiralucas Oct 21, 2025
eba0288
feat: add size to attachment response (#701)
vieiralucas Oct 21, 2025
06e0abe
fix: create topics default subscription (#703)
bukinoshita Oct 21, 2025
d28a249
fix: contact topics list should return a normal paginated list (#704)
Cisneiros Oct 21, 2025
71c14ad
feat: add contact properties (#705)
Cisneiros Oct 22, 2025
7ce31db
feat: add sdk methods for webhooks (#698)
lucasfcosta Oct 22, 2025
075d14e
feat: add webhook removal method to SDK (#708)
lucasfcosta Oct 22, 2025
9d12239
chore: bump to 6.3.0-canary.2 (#709)
lucasfcosta Oct 22, 2025
a83315e
feat: add sending attachments endpoints to SDK (#697)
vieiralucas Oct 23, 2025
36e3f45
feat: add webhook signing_secret to webhook response types (#710)
lucasfcosta Oct 23, 2025
a673763
feat: add webhook update endpoint (#712)
lucasfcosta Oct 23, 2025
075fa0c
feat: autocomplete for testing email addresses
gabrielmfern Oct 25, 2025
55ce054
lint
gabrielmfern Oct 25, 2025
6d2f5d6
Merge branch 'canary' into feat/auto-complete-for-from-to
gabrielmfern Oct 27, 2025
8e2c45b
keepduplicated export,
gabrielmfern Oct 27, 2025
209f105
Merge branch 'canary' into feat/auto-complete-for-from-to
gabrielmfern Oct 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/emails/interfaces/create-email-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ interface EmailTemplateOptions {
};
}

type FromTestingAddress = '[email protected]';
type ToTestingAddress =
| '[email protected]'
| '[email protected]'
| '[email protected]';

interface CreateEmailBaseOptionsWithTemplate
extends Omit<CreateEmailBaseOptions, 'from' | 'subject'> {
from?: string;
from?: FromTestingAddress | (string & {});
subject?: string;
}

Expand Down Expand Up @@ -62,7 +68,7 @@ interface CreateEmailBaseOptions {
*
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
*/
from: string;
from: FromTestingAddress | (string & {});
/**
* Custom headers to add to the email.
*
Expand Down Expand Up @@ -92,7 +98,7 @@ interface CreateEmailBaseOptions {
*
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
*/
to: string | string[];
to: ToTestingAddress | (string & {}) | (ToTestingAddress | (string & {}))[];
/**
* The id of the topic you want to send to
*
Expand Down
Loading