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 +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
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?:
|
|
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?:
|
|
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