resend 6.41.0 → 6.42.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.cjs CHANGED
@@ -57,7 +57,7 @@ const MOVE_THREAD_FOLDERS = [
57
57
  ];
58
58
  //#endregion
59
59
  //#region package.json
60
- var version = "6.41.0";
60
+ var version = "6.42.0";
61
61
  //#endregion
62
62
  //#region src/common/utils/build-pagination-query.ts
63
63
  function buildPaginationUrl(base, options) {
package/dist/index.d.cts CHANGED
@@ -1777,6 +1777,7 @@ export type SendEventOptions = {
1777
1777
  contactId?: never;
1778
1778
  payload?: Record<string, unknown>;
1779
1779
  };
1780
+ export interface SendEventRequestOptions extends PostOptions, IdempotentRequest {}
1780
1781
  export interface SendEventResponseSuccess {
1781
1782
  object: 'event';
1782
1783
  event: string;
@@ -2599,7 +2600,7 @@ declare class Emails {
2599
2600
  declare class Events$1 {
2600
2601
  private readonly resend;
2601
2602
  constructor(resend: Resend);
2602
- send(payload: SendEventOptions, requestOptions?: RequestOptions): Promise<SendEventResponse>;
2603
+ send(payload: SendEventOptions, requestOptions?: SendEventRequestOptions): Promise<SendEventResponse>;
2603
2604
  create(payload: CreateEventOptions, requestOptions?: RequestOptions): Promise<CreateEventResponse>;
2604
2605
  get(identifier: string, requestOptions?: RequestOptions): Promise<GetEventResponse>;
2605
2606
  list(options?: ListEventsOptions, requestOptions?: RequestOptions): Promise<ListEventsResponse>;
package/dist/index.d.mts CHANGED
@@ -1777,6 +1777,7 @@ export type SendEventOptions = {
1777
1777
  contactId?: never;
1778
1778
  payload?: Record<string, unknown>;
1779
1779
  };
1780
+ export interface SendEventRequestOptions extends PostOptions, IdempotentRequest {}
1780
1781
  export interface SendEventResponseSuccess {
1781
1782
  object: 'event';
1782
1783
  event: string;
@@ -2599,7 +2600,7 @@ declare class Emails {
2599
2600
  declare class Events$1 {
2600
2601
  private readonly resend;
2601
2602
  constructor(resend: Resend);
2602
- send(payload: SendEventOptions, requestOptions?: RequestOptions): Promise<SendEventResponse>;
2603
+ send(payload: SendEventOptions, requestOptions?: SendEventRequestOptions): Promise<SendEventResponse>;
2603
2604
  create(payload: CreateEventOptions, requestOptions?: RequestOptions): Promise<CreateEventResponse>;
2604
2605
  get(identifier: string, requestOptions?: RequestOptions): Promise<GetEventResponse>;
2605
2606
  list(options?: ListEventsOptions, requestOptions?: RequestOptions): Promise<ListEventsResponse>;
package/dist/index.mjs CHANGED
@@ -33,7 +33,7 @@ const MOVE_THREAD_FOLDERS = [
33
33
  ];
34
34
  //#endregion
35
35
  //#region package.json
36
- var version = "6.41.0";
36
+ var version = "6.42.0";
37
37
  //#endregion
38
38
  //#region src/common/utils/build-pagination-query.ts
39
39
  function buildPaginationUrl(base, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend",
3
- "version": "6.41.0",
3
+ "version": "6.42.0",
4
4
  "description": "Node.js library for the Resend API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",