resend 3.6.0-canary.4 → 4.0.0

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.
package/dist/index.d.mts CHANGED
@@ -193,7 +193,7 @@ interface CreateEmailBaseOptions {
193
193
  *
194
194
  * @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
195
195
  */
196
- reply_to?: string | string[];
196
+ replyTo?: string | string[];
197
197
  /**
198
198
  * Email subject.
199
199
  *
@@ -239,7 +239,7 @@ interface Attachment {
239
239
  /** Path where the attachment file is hosted */
240
240
  path?: string;
241
241
  /** Optional content type for the attachment, if not set will be derived from the filename property */
242
- content_type?: string;
242
+ contentType?: string;
243
243
  }
244
244
  type Tag = {
245
245
  /**
@@ -503,11 +503,12 @@ interface GetEmailResponseSuccess {
503
503
  from: string;
504
504
  html: string | null;
505
505
  id: string;
506
- last_event: 'delivered' | 'opened' | 'clicked' | 'bounced' | 'complained' | 'delivery_delayed';
506
+ last_event: 'bounced' | 'canceled' | 'clicked' | 'complained' | 'delivered' | 'delivery_delayed' | 'opened' | 'queued' | 'scheduled';
507
507
  reply_to: string[] | null;
508
508
  subject: string;
509
509
  text: string | null;
510
510
  to: string[];
511
+ scheduled_at: string | null;
511
512
  object: 'email';
512
513
  }
513
514
  interface GetEmailResponse {
package/dist/index.d.ts CHANGED
@@ -193,7 +193,7 @@ interface CreateEmailBaseOptions {
193
193
  *
194
194
  * @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
195
195
  */
196
- reply_to?: string | string[];
196
+ replyTo?: string | string[];
197
197
  /**
198
198
  * Email subject.
199
199
  *
@@ -239,7 +239,7 @@ interface Attachment {
239
239
  /** Path where the attachment file is hosted */
240
240
  path?: string;
241
241
  /** Optional content type for the attachment, if not set will be derived from the filename property */
242
- content_type?: string;
242
+ contentType?: string;
243
243
  }
244
244
  type Tag = {
245
245
  /**
@@ -503,11 +503,12 @@ interface GetEmailResponseSuccess {
503
503
  from: string;
504
504
  html: string | null;
505
505
  id: string;
506
- last_event: 'delivered' | 'opened' | 'clicked' | 'bounced' | 'complained' | 'delivery_delayed';
506
+ last_event: 'bounced' | 'canceled' | 'clicked' | 'complained' | 'delivered' | 'delivery_delayed' | 'opened' | 'queued' | 'scheduled';
507
507
  reply_to: string[] | null;
508
508
  subject: string;
509
509
  text: string | null;
510
510
  to: string[];
511
+ scheduled_at: string | null;
511
512
  object: 'email';
512
513
  }
513
514
  interface GetEmailResponse {
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ __export(src_exports, {
62
62
  module.exports = __toCommonJS(src_exports);
63
63
 
64
64
  // package.json
65
- var version = "3.6.0-canary.4";
65
+ var version = "4.0.0";
66
66
 
67
67
  // src/api-keys/api-keys.ts
68
68
  var ApiKeys = class {
@@ -308,7 +308,7 @@ var Emails = class {
308
308
  from: payload.from,
309
309
  headers: payload.headers,
310
310
  html: payload.html,
311
- reply_to: payload.reply_to,
311
+ reply_to: payload.replyTo,
312
312
  scheduled_at: payload.scheduledAt,
313
313
  subject: payload.subject,
314
314
  tags: payload.tags,
package/dist/index.mjs CHANGED
@@ -39,7 +39,7 @@ var __async = (__this, __arguments, generator) => {
39
39
  };
40
40
 
41
41
  // package.json
42
- var version = "3.6.0-canary.4";
42
+ var version = "4.0.0";
43
43
 
44
44
  // src/api-keys/api-keys.ts
45
45
  var ApiKeys = class {
@@ -285,7 +285,7 @@ var Emails = class {
285
285
  from: payload.from,
286
286
  headers: payload.headers,
287
287
  html: payload.html,
288
- reply_to: payload.reply_to,
288
+ reply_to: payload.replyTo,
289
289
  scheduled_at: payload.scheduledAt,
290
290
  subject: payload.subject,
291
291
  tags: payload.tags,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend",
3
- "version": "3.6.0-canary.4",
3
+ "version": "4.0.0",
4
4
  "description": "Node.js library for the Resend API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -42,19 +42,19 @@
42
42
  },
43
43
  "homepage": "https://github.com/resendlabs/resend-node#readme",
44
44
  "dependencies": {
45
- "@react-email/render": "0.0.16"
45
+ "@react-email/render": "0.0.17"
46
46
  },
47
47
  "devDependencies": {
48
- "@biomejs/biome": "1.8.1",
48
+ "@biomejs/biome": "1.8.3",
49
49
  "@types/jest": "29.5.12",
50
- "@types/node": "18.19.34",
50
+ "@types/node": "18.19.44",
51
51
  "@types/react": "18.3.3",
52
52
  "jest": "29.7.0",
53
53
  "jest-fetch-mock": "3.0.3",
54
- "ts-jest": "29.1.4",
54
+ "ts-jest": "29.2.4",
55
55
  "ts-node": "10.9.2",
56
56
  "tsup": "7.2.0",
57
- "typescript": "5.4.5"
57
+ "typescript": "5.5.4"
58
58
  },
59
- "packageManager": "pnpm@9.5.0"
59
+ "packageManager": "pnpm@9.7.1"
60
60
  }