@emulators/resend 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +59 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # @emulators/resend
2
+
3
+ Resend email API emulation with email sending, domain management, API keys, audiences, contacts, and a local inbox for captured messages.
4
+
5
+ Part of [emulate](https://github.com/vercel-labs/emulate) — local drop-in replacement services for CI and no-network sandboxes.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @emulators/resend
11
+ ```
12
+
13
+ ## Endpoints
14
+
15
+ ### Emails
16
+ - `POST /emails` — send single email
17
+ - `POST /emails/batch` — send up to 100 emails
18
+ - `GET /emails` — list sent emails
19
+ - `GET /emails/:id` — get email
20
+ - `POST /emails/:id/cancel` — cancel scheduled email
21
+
22
+ ### Domains
23
+ - `POST /domains` — create domain
24
+ - `GET /domains` — list domains
25
+ - `GET /domains/:id` — get domain
26
+ - `DELETE /domains/:id` — remove domain
27
+ - `POST /domains/:id/verify` — trigger domain verification
28
+
29
+ ### API Keys
30
+ - `POST /api-keys` — create API key
31
+ - `GET /api-keys` — list API keys
32
+ - `DELETE /api-keys/:id` — delete API key
33
+
34
+ ### Audiences & Contacts
35
+ - `POST /audiences` — create audience
36
+ - `GET /audiences` — list audiences
37
+ - `DELETE /audiences/:id` — delete audience
38
+ - `POST /audiences/:audience_id/contacts` — add contact
39
+ - `GET /audiences/:audience_id/contacts` — list contacts
40
+ - `DELETE /audiences/:audience_id/contacts/:id` — delete contact
41
+
42
+ ### Inbox
43
+ - `GET /inbox` — list captured emails
44
+ - `GET /inbox/:id` — view captured email
45
+
46
+ ## Seed Configuration
47
+
48
+ ```yaml
49
+ resend:
50
+ domains:
51
+ - name: example.com
52
+ api_keys:
53
+ - name: default
54
+ ```
55
+
56
+ ## Links
57
+
58
+ - [Full documentation](https://emulate.dev)
59
+ - [GitHub](https://github.com/vercel-labs/emulate)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulators/resend",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "hono": "^4",
31
- "@emulators/core": "0.4.0"
31
+ "@emulators/core": "0.4.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "tsup": "^8",