@depup/resend 6.22.0-depup.0 → 6.25.0-depup.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/README.md +4 -3
- package/changes.json +6 -2
- package/dist/index.cjs +36 -3
- package/dist/index.d.cts +89 -6
- package/dist/index.d.mts +89 -6
- package/dist/index.mjs +36 -3
- package/package.json +21 -18
package/README.md
CHANGED
|
@@ -13,16 +13,17 @@ npm install @depup/resend
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [resend](https://www.npmjs.com/package/resend) @ 6.
|
|
17
|
-
| Processed | 2026-08-
|
|
16
|
+
| Original | [resend](https://www.npmjs.com/package/resend) @ 6.25.0 |
|
|
17
|
+
| Processed | 2026-08-30 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
|
-
| Deps updated |
|
|
19
|
+
| Deps updated | 2 |
|
|
20
20
|
|
|
21
21
|
## Dependency Changes
|
|
22
22
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
25
|
| postal-mime | 2.7.5 | ^3.0.0 |
|
|
26
|
+
| standardwebhooks | 1.0.0 | ^1.1.1 |
|
|
26
27
|
|
|
27
28
|
---
|
|
28
29
|
|
package/changes.json
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
"postal-mime": {
|
|
4
4
|
"from": "2.7.5",
|
|
5
5
|
"to": "^3.0.0"
|
|
6
|
+
},
|
|
7
|
+
"standardwebhooks": {
|
|
8
|
+
"from": "1.0.0",
|
|
9
|
+
"to": "^1.1.1"
|
|
6
10
|
}
|
|
7
11
|
},
|
|
8
|
-
"timestamp": "2026-08-
|
|
9
|
-
"totalUpdated":
|
|
12
|
+
"timestamp": "2026-08-30T00:59:10.398Z",
|
|
13
|
+
"totalUpdated": 2
|
|
10
14
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -25,7 +25,7 @@ let postal_mime = require("postal-mime");
|
|
|
25
25
|
postal_mime = __toESM(postal_mime);
|
|
26
26
|
let standardwebhooks = require("standardwebhooks");
|
|
27
27
|
//#region package.json
|
|
28
|
-
var version = "6.
|
|
28
|
+
var version = "6.25.0";
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/common/utils/build-pagination-query.ts
|
|
31
31
|
function buildPaginationUrl(base, options) {
|
|
@@ -936,7 +936,7 @@ function buildMetricsQuery(options) {
|
|
|
936
936
|
}
|
|
937
937
|
//#endregion
|
|
938
938
|
//#region src/events/events.ts
|
|
939
|
-
var Events = class {
|
|
939
|
+
var Events$1 = class {
|
|
940
940
|
constructor(resend) {
|
|
941
941
|
this.resend = resend;
|
|
942
942
|
}
|
|
@@ -1004,6 +1004,9 @@ var Segments = class {
|
|
|
1004
1004
|
async get(id) {
|
|
1005
1005
|
return await this.resend.get(`/segments/${id}`);
|
|
1006
1006
|
}
|
|
1007
|
+
async update(id, payload) {
|
|
1008
|
+
return await this.resend.patch(`/segments/${id}`, payload);
|
|
1009
|
+
}
|
|
1007
1010
|
async remove(id) {
|
|
1008
1011
|
return await this.resend.delete(`/segments/${id}`);
|
|
1009
1012
|
}
|
|
@@ -1197,10 +1200,40 @@ var Topics = class {
|
|
|
1197
1200
|
}
|
|
1198
1201
|
};
|
|
1199
1202
|
//#endregion
|
|
1203
|
+
//#region src/webhooks/events/attempts/attempts.ts
|
|
1204
|
+
var Attempts = class {
|
|
1205
|
+
constructor(resend) {
|
|
1206
|
+
this.resend = resend;
|
|
1207
|
+
}
|
|
1208
|
+
async list(options) {
|
|
1209
|
+
const { webhookId, eventId } = options;
|
|
1210
|
+
const url = buildPaginationUrl(`/webhooks/${webhookId}/events/${eventId}/attempts`, options);
|
|
1211
|
+
return await this.resend.get(url);
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
//#endregion
|
|
1215
|
+
//#region src/webhooks/events/events.ts
|
|
1216
|
+
var Events = class {
|
|
1217
|
+
constructor(resend) {
|
|
1218
|
+
this.resend = resend;
|
|
1219
|
+
this.attempts = new Attempts(resend);
|
|
1220
|
+
}
|
|
1221
|
+
async list(options) {
|
|
1222
|
+
const { webhookId } = options;
|
|
1223
|
+
const url = buildPaginationUrl(`/webhooks/${webhookId}/events`, options);
|
|
1224
|
+
return await this.resend.get(url);
|
|
1225
|
+
}
|
|
1226
|
+
async get(options) {
|
|
1227
|
+
const { webhookId, eventId } = options;
|
|
1228
|
+
return await this.resend.get(`/webhooks/${webhookId}/events/${eventId}`);
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
//#endregion
|
|
1200
1232
|
//#region src/webhooks/webhooks.ts
|
|
1201
1233
|
var Webhooks = class {
|
|
1202
1234
|
constructor(resend) {
|
|
1203
1235
|
this.resend = resend;
|
|
1236
|
+
this.events = new Events(resend);
|
|
1204
1237
|
}
|
|
1205
1238
|
async create(payload, options = {}) {
|
|
1206
1239
|
return await this.resend.post("/webhooks", payload, options);
|
|
@@ -1249,7 +1282,7 @@ var Resend = class {
|
|
|
1249
1282
|
this.contacts = new Contacts(this);
|
|
1250
1283
|
this.domains = new Domains(this);
|
|
1251
1284
|
this.emails = new Emails(this);
|
|
1252
|
-
this.events = new Events(this);
|
|
1285
|
+
this.events = new Events$1(this);
|
|
1253
1286
|
this.logs = new Logs(this);
|
|
1254
1287
|
this.oauthGrants = new OAuthGrants(this);
|
|
1255
1288
|
this.suppressions = new Suppressions(this);
|
package/dist/index.d.cts
CHANGED
|
@@ -50,7 +50,7 @@ interface DomainSpfRecord {
|
|
|
50
50
|
record: 'SPF';
|
|
51
51
|
name: string;
|
|
52
52
|
value: string;
|
|
53
|
-
type: 'MX' | 'TXT';
|
|
53
|
+
type: 'MX' | 'TXT' | 'CNAME';
|
|
54
54
|
ttl: string;
|
|
55
55
|
status: DomainRecordStatus;
|
|
56
56
|
routing_policy?: string;
|
|
@@ -1990,7 +1990,7 @@ declare class Emails {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
//#endregion
|
|
1992
1992
|
//#region src/events/events.d.ts
|
|
1993
|
-
declare class Events {
|
|
1993
|
+
declare class Events$1 {
|
|
1994
1994
|
private readonly resend;
|
|
1995
1995
|
constructor(resend: Resend);
|
|
1996
1996
|
send(payload: SendEventOptions): Promise<SendEventResponse>;
|
|
@@ -2049,6 +2049,15 @@ interface RemoveSegmentResponseSuccess extends Pick<Segment, 'id'> {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
type RemoveSegmentResponse = Response<RemoveSegmentResponseSuccess>;
|
|
2051
2051
|
//#endregion
|
|
2052
|
+
//#region src/segments/interfaces/update-segment.interface.d.ts
|
|
2053
|
+
interface UpdateSegmentOptions {
|
|
2054
|
+
name: string;
|
|
2055
|
+
}
|
|
2056
|
+
interface UpdateSegmentResponseSuccess extends Pick<Segment, 'id'> {
|
|
2057
|
+
object: 'segment';
|
|
2058
|
+
}
|
|
2059
|
+
type UpdateSegmentResponse = Response<UpdateSegmentResponseSuccess>;
|
|
2060
|
+
//#endregion
|
|
2052
2061
|
//#region src/segments/segments.d.ts
|
|
2053
2062
|
declare class Segments {
|
|
2054
2063
|
private readonly resend;
|
|
@@ -2056,6 +2065,7 @@ declare class Segments {
|
|
|
2056
2065
|
create(payload: CreateSegmentOptions, options?: CreateSegmentRequestOptions): Promise<CreateSegmentResponse>;
|
|
2057
2066
|
list(options?: ListSegmentsOptions): Promise<ListSegmentsResponse>;
|
|
2058
2067
|
get(id: string): Promise<GetSegmentResponse>;
|
|
2068
|
+
update(id: string, payload: UpdateSegmentOptions): Promise<UpdateSegmentResponse>;
|
|
2059
2069
|
remove(id: string): Promise<RemoveSegmentResponse>;
|
|
2060
2070
|
}
|
|
2061
2071
|
//#endregion
|
|
@@ -2388,8 +2398,8 @@ interface ContactEventData {
|
|
|
2388
2398
|
created_at: string;
|
|
2389
2399
|
updated_at: string;
|
|
2390
2400
|
email: string;
|
|
2391
|
-
first_name?: string;
|
|
2392
|
-
last_name?: string;
|
|
2401
|
+
first_name?: string | null;
|
|
2402
|
+
last_name?: string | null;
|
|
2393
2403
|
unsubscribed: boolean;
|
|
2394
2404
|
}
|
|
2395
2405
|
interface DomainRecord {
|
|
@@ -2521,6 +2531,78 @@ interface SuppressionRemovedEvent {
|
|
|
2521
2531
|
}
|
|
2522
2532
|
type WebhookEventPayload = EmailSentEvent | EmailScheduledEvent | EmailDeliveredEvent | EmailDeliveryDelayedEvent | EmailComplainedEvent | EmailBouncedEvent | EmailOpenedEvent | EmailClickedEvent | EmailReceivedEvent | EmailFailedEvent | EmailSuppressedEvent | ContactCreatedEvent | ContactUpdatedEvent | ContactDeletedEvent | DomainCreatedEvent | DomainUpdatedEvent | DomainDeletedEvent | SuppressionAddedEvent | SuppressionRemovedEvent;
|
|
2523
2533
|
//#endregion
|
|
2534
|
+
//#region src/webhooks/interfaces/list-webhook-events.interface.d.ts
|
|
2535
|
+
type WebhookEventLogStatus = 'success' | 'pending' | 'failed' | 'attempting';
|
|
2536
|
+
interface WebhookEventLog {
|
|
2537
|
+
id: string;
|
|
2538
|
+
type: WebhookEvent;
|
|
2539
|
+
created_at: string;
|
|
2540
|
+
status: WebhookEventLogStatus;
|
|
2541
|
+
}
|
|
2542
|
+
type ListWebhookEventsOptions = {
|
|
2543
|
+
webhookId: string;
|
|
2544
|
+
limit?: number;
|
|
2545
|
+
after?: string;
|
|
2546
|
+
};
|
|
2547
|
+
type ListWebhookEventsResponseSuccess = {
|
|
2548
|
+
object: 'list';
|
|
2549
|
+
has_more: boolean;
|
|
2550
|
+
data: WebhookEventLog[];
|
|
2551
|
+
};
|
|
2552
|
+
type ListWebhookEventsResponse = Response<ListWebhookEventsResponseSuccess>;
|
|
2553
|
+
//#endregion
|
|
2554
|
+
//#region src/webhooks/interfaces/get-webhook-event.interface.d.ts
|
|
2555
|
+
interface GetWebhookEventOptions {
|
|
2556
|
+
webhookId: string;
|
|
2557
|
+
eventId: string;
|
|
2558
|
+
}
|
|
2559
|
+
interface GetWebhookEventResponseSuccess {
|
|
2560
|
+
object: 'webhook_event';
|
|
2561
|
+
id: string;
|
|
2562
|
+
type: WebhookEvent;
|
|
2563
|
+
created_at: string;
|
|
2564
|
+
status: WebhookEventLogStatus;
|
|
2565
|
+
next_attempt_at: string | null;
|
|
2566
|
+
payload: WebhookEventPayload;
|
|
2567
|
+
}
|
|
2568
|
+
type GetWebhookEventResponse = Response<GetWebhookEventResponseSuccess>;
|
|
2569
|
+
//#endregion
|
|
2570
|
+
//#region src/webhooks/interfaces/list-webhook-event-attempts.interface.d.ts
|
|
2571
|
+
interface WebhookEventAttempt {
|
|
2572
|
+
id: string;
|
|
2573
|
+
http_status_code: number;
|
|
2574
|
+
response: string;
|
|
2575
|
+
sent_at: string;
|
|
2576
|
+
}
|
|
2577
|
+
type ListWebhookEventAttemptsOptions = {
|
|
2578
|
+
webhookId: string;
|
|
2579
|
+
eventId: string;
|
|
2580
|
+
limit?: number;
|
|
2581
|
+
after?: string;
|
|
2582
|
+
};
|
|
2583
|
+
type ListWebhookEventAttemptsResponseSuccess = {
|
|
2584
|
+
object: 'list';
|
|
2585
|
+
has_more: boolean;
|
|
2586
|
+
data: WebhookEventAttempt[];
|
|
2587
|
+
};
|
|
2588
|
+
type ListWebhookEventAttemptsResponse = Response<ListWebhookEventAttemptsResponseSuccess>;
|
|
2589
|
+
//#endregion
|
|
2590
|
+
//#region src/webhooks/events/attempts/attempts.d.ts
|
|
2591
|
+
declare class Attempts {
|
|
2592
|
+
private readonly resend;
|
|
2593
|
+
constructor(resend: Resend);
|
|
2594
|
+
list(options: ListWebhookEventAttemptsOptions): Promise<ListWebhookEventAttemptsResponse>;
|
|
2595
|
+
}
|
|
2596
|
+
//#endregion
|
|
2597
|
+
//#region src/webhooks/events/events.d.ts
|
|
2598
|
+
declare class Events {
|
|
2599
|
+
private readonly resend;
|
|
2600
|
+
readonly attempts: Attempts;
|
|
2601
|
+
constructor(resend: Resend);
|
|
2602
|
+
list(options: ListWebhookEventsOptions): Promise<ListWebhookEventsResponse>;
|
|
2603
|
+
get(options: GetWebhookEventOptions): Promise<GetWebhookEventResponse>;
|
|
2604
|
+
}
|
|
2605
|
+
//#endregion
|
|
2524
2606
|
//#region src/webhooks/interfaces/create-webhook-options.interface.d.ts
|
|
2525
2607
|
interface CreateWebhookOptions {
|
|
2526
2608
|
endpoint: string;
|
|
@@ -2594,6 +2676,7 @@ interface VerifyWebhookOptions {
|
|
|
2594
2676
|
}
|
|
2595
2677
|
declare class Webhooks {
|
|
2596
2678
|
private readonly resend;
|
|
2679
|
+
readonly events: Events;
|
|
2597
2680
|
constructor(resend: Resend);
|
|
2598
2681
|
create(payload: CreateWebhookOptions, options?: CreateWebhookRequestOptions): Promise<CreateWebhookResponse>;
|
|
2599
2682
|
get(id: string): Promise<GetWebhookResponse>;
|
|
@@ -2626,7 +2709,7 @@ declare class Resend {
|
|
|
2626
2709
|
readonly contacts: Contacts;
|
|
2627
2710
|
readonly domains: Domains;
|
|
2628
2711
|
readonly emails: Emails;
|
|
2629
|
-
readonly events: Events;
|
|
2712
|
+
readonly events: Events$1;
|
|
2630
2713
|
readonly logs: Logs;
|
|
2631
2714
|
readonly oauthGrants: OAuthGrants;
|
|
2632
2715
|
readonly suppressions: Suppressions;
|
|
@@ -2643,4 +2726,4 @@ declare class Resend {
|
|
|
2643
2726
|
delete<T>(path: string, query?: unknown, options?: DeleteOptions): Promise<Response<T>>;
|
|
2644
2727
|
}
|
|
2645
2728
|
//#endregion
|
|
2646
|
-
export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, AddSuppressionOptions, AddSuppressionResponse, AddSuppressionResponseSuccess, AddToSegmentStepConfig, ApiContactProperty, ApiKey, Attachment, AttachmentData, Automation, AutomationConnection, AutomationConnectionType, AutomationResponseConnection, AutomationResponseStep, AutomationRun, AutomationRunItem, AutomationRunStatus, AutomationRunStep, AutomationRunStepStatus, AutomationStatus, AutomationStep, AutomationStepType, BatchAddSuppressionsOptions, BatchAddSuppressionsResponse, BatchAddSuppressionsResponseSuccess, BatchRemoveSuppressionsOptions, BatchRemoveSuppressionsResponse, BatchRemoveSuppressionsResponseSuccess, Broadcast, BroadcastClickedLink, BroadcastRecipient, BroadcastRecipientBounceType, BroadcastRecipientClickedLink, BroadcastRecipientEventType, CancelBroadcastResponse, CancelBroadcastResponseSuccess, CancelEmailResponse, CancelEmailResponseSuccess, ClaimDomainOptions, ClaimDomainRequestOptions, ClaimDomainResponse, ClaimDomainResponseSuccess, ConditionRule, ConditionStepConfig, Contact, ContactCreatedEvent, ContactDeleteStepConfig, ContactDeletedEvent, ContactImport, ContactImportColumnMap, ContactImportCounts, ContactImportOnConflict, ContactImportPropertyMapping, ContactImportPropertyType, ContactImportSegment, ContactImportStatus, ContactImportTopic, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdateStepConfig, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateAutomationOptions, CreateAutomationResponse, CreateAutomationResponseSuccess, CreateBatchEmailOptions, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactImportOptions, CreateContactImportRequestOptions, CreateContactImportResponse, CreateContactImportResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateEventOptions, CreateEventResponse, CreateEventResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, DelayStepConfig, DeleteOptions, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainClaim, DomainClaimBlockedReason, DomainClaimRecord, DomainClaimStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecordStatus, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateAutomationResponse, DuplicateAutomationResponseSuccess, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailMetric, EmailMetricsDataRow, EmailMetricsDimension, EmailMetricsGranularity, EmailMetricsTotals, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, Event, EventSchemaMap, EventSchemaType, ForwardReceivingEmailOptions, ForwardReceivingEmailRequestOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetAutomationResponse, GetAutomationResponseSuccess, GetAutomationRunOptions, GetAutomationRunResponse, GetAutomationRunResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactImportResponse, GetContactImportResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainClaimResponse, GetDomainClaimResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetEmailsMetricsOptions, GetEmailsMetricsResponse, GetEmailsMetricsResponseSuccess, GetEventResponse, GetEventResponseSuccess, GetLogResponse, GetLogResponseSuccess, GetOptions, GetReceivingEmailOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetSuppressionResponse, GetSuppressionResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, InboundAttachment, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListAutomationRunsOptions, ListAutomationRunsResponse, ListAutomationRunsResponseSuccess, ListAutomationsOptions, ListAutomationsResponse, ListAutomationsResponseSuccess, ListBroadcastClickedLinksOptions, ListBroadcastClickedLinksResponse, ListBroadcastClickedLinksResponseSuccess, ListBroadcastRecipientsOptions, ListBroadcastRecipientsResponse, ListBroadcastRecipientsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactImportsOptions, ListContactImportsResponse, ListContactImportsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListEmail, ListEmailsOptions, ListEmailsResponse, ListEmailsResponseSuccess, ListEventsOptions, ListEventsResponse, ListEventsResponseSuccess, ListLogsOptions, ListLogsResponse, ListLogsResponseSuccess, ListOAuthGrantsOptions, ListOAuthGrantsResponse, ListOAuthGrantsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListSuppressionsOptions, ListSuppressionsResponse, ListSuppressionsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, Log, OAuthGrant, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveAutomationResponse, RemoveAutomationResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveEventResponse, RemoveEventResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveSuppressionResponse, RemoveSuppressionResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type ResendOptions, type Response, RevokeOAuthGrantResponse, RevokeOAuthGrantResponseSuccess, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, SendEmailStepConfig, SendEventOptions, SendEventResponse, SendEventResponseSuccess, ShareEmailOptions, ShareEmailResponse, ShareEmailResponseSuccess, StopAutomationResponse, StopAutomationResponseSuccess, Suppression, SuppressionAddedEvent, SuppressionListEntry, SuppressionOrigin, SuppressionRemovedEvent, Tag, Template, TemplateVariable, TemplateVariableValue, Topic, TrackingCaaRecord, TrackingRecord, TriggerStepConfig, UpdateApiKeyOptions, UpdateApiKeyResponse, UpdateApiKeyResponseSuccess, UpdateAutomationOptions, UpdateAutomationResponse, UpdateAutomationResponseSuccess, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateEventOptions, UpdateEventResponse, UpdateEventResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainClaimResponse, VerifyDomainClaimResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, WaitForEventStepConfig, Webhook, WebhookEvent, WebhookEventPayload };
|
|
2729
|
+
export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, AddSuppressionOptions, AddSuppressionResponse, AddSuppressionResponseSuccess, AddToSegmentStepConfig, ApiContactProperty, ApiKey, Attachment, AttachmentData, Automation, AutomationConnection, AutomationConnectionType, AutomationResponseConnection, AutomationResponseStep, AutomationRun, AutomationRunItem, AutomationRunStatus, AutomationRunStep, AutomationRunStepStatus, AutomationStatus, AutomationStep, AutomationStepType, BatchAddSuppressionsOptions, BatchAddSuppressionsResponse, BatchAddSuppressionsResponseSuccess, BatchRemoveSuppressionsOptions, BatchRemoveSuppressionsResponse, BatchRemoveSuppressionsResponseSuccess, Broadcast, BroadcastClickedLink, BroadcastRecipient, BroadcastRecipientBounceType, BroadcastRecipientClickedLink, BroadcastRecipientEventType, CancelBroadcastResponse, CancelBroadcastResponseSuccess, CancelEmailResponse, CancelEmailResponseSuccess, ClaimDomainOptions, ClaimDomainRequestOptions, ClaimDomainResponse, ClaimDomainResponseSuccess, ConditionRule, ConditionStepConfig, Contact, ContactCreatedEvent, ContactDeleteStepConfig, ContactDeletedEvent, ContactImport, ContactImportColumnMap, ContactImportCounts, ContactImportOnConflict, ContactImportPropertyMapping, ContactImportPropertyType, ContactImportSegment, ContactImportStatus, ContactImportTopic, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdateStepConfig, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateAutomationOptions, CreateAutomationResponse, CreateAutomationResponseSuccess, CreateBatchEmailOptions, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactImportOptions, CreateContactImportRequestOptions, CreateContactImportResponse, CreateContactImportResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateEventOptions, CreateEventResponse, CreateEventResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, DelayStepConfig, DeleteOptions, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainClaim, DomainClaimBlockedReason, DomainClaimRecord, DomainClaimStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecordStatus, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateAutomationResponse, DuplicateAutomationResponseSuccess, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailMetric, EmailMetricsDataRow, EmailMetricsDimension, EmailMetricsGranularity, EmailMetricsTotals, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, Event, EventSchemaMap, EventSchemaType, ForwardReceivingEmailOptions, ForwardReceivingEmailRequestOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetAutomationResponse, GetAutomationResponseSuccess, GetAutomationRunOptions, GetAutomationRunResponse, GetAutomationRunResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactImportResponse, GetContactImportResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainClaimResponse, GetDomainClaimResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetEmailsMetricsOptions, GetEmailsMetricsResponse, GetEmailsMetricsResponseSuccess, GetEventResponse, GetEventResponseSuccess, GetLogResponse, GetLogResponseSuccess, GetOptions, GetReceivingEmailOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetSuppressionResponse, GetSuppressionResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookEventOptions, GetWebhookEventResponse, GetWebhookEventResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, InboundAttachment, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListAutomationRunsOptions, ListAutomationRunsResponse, ListAutomationRunsResponseSuccess, ListAutomationsOptions, ListAutomationsResponse, ListAutomationsResponseSuccess, ListBroadcastClickedLinksOptions, ListBroadcastClickedLinksResponse, ListBroadcastClickedLinksResponseSuccess, ListBroadcastRecipientsOptions, ListBroadcastRecipientsResponse, ListBroadcastRecipientsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactImportsOptions, ListContactImportsResponse, ListContactImportsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListEmail, ListEmailsOptions, ListEmailsResponse, ListEmailsResponseSuccess, ListEventsOptions, ListEventsResponse, ListEventsResponseSuccess, ListLogsOptions, ListLogsResponse, ListLogsResponseSuccess, ListOAuthGrantsOptions, ListOAuthGrantsResponse, ListOAuthGrantsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListSuppressionsOptions, ListSuppressionsResponse, ListSuppressionsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhookEventAttemptsOptions, ListWebhookEventAttemptsResponse, ListWebhookEventAttemptsResponseSuccess, ListWebhookEventsOptions, ListWebhookEventsResponse, ListWebhookEventsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, Log, OAuthGrant, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveAutomationResponse, RemoveAutomationResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveEventResponse, RemoveEventResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveSuppressionResponse, RemoveSuppressionResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type ResendOptions, type Response, RevokeOAuthGrantResponse, RevokeOAuthGrantResponseSuccess, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, SendEmailStepConfig, SendEventOptions, SendEventResponse, SendEventResponseSuccess, ShareEmailOptions, ShareEmailResponse, ShareEmailResponseSuccess, StopAutomationResponse, StopAutomationResponseSuccess, Suppression, SuppressionAddedEvent, SuppressionListEntry, SuppressionOrigin, SuppressionRemovedEvent, Tag, Template, TemplateVariable, TemplateVariableValue, Topic, TrackingCaaRecord, TrackingRecord, TriggerStepConfig, UpdateApiKeyOptions, UpdateApiKeyResponse, UpdateApiKeyResponseSuccess, UpdateAutomationOptions, UpdateAutomationResponse, UpdateAutomationResponseSuccess, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateEventOptions, UpdateEventResponse, UpdateEventResponseSuccess, UpdateSegmentOptions, UpdateSegmentResponse, UpdateSegmentResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainClaimResponse, VerifyDomainClaimResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, WaitForEventStepConfig, Webhook, WebhookEvent, WebhookEventAttempt, WebhookEventLog, WebhookEventLogStatus, WebhookEventPayload };
|
package/dist/index.d.mts
CHANGED
|
@@ -50,7 +50,7 @@ interface DomainSpfRecord {
|
|
|
50
50
|
record: 'SPF';
|
|
51
51
|
name: string;
|
|
52
52
|
value: string;
|
|
53
|
-
type: 'MX' | 'TXT';
|
|
53
|
+
type: 'MX' | 'TXT' | 'CNAME';
|
|
54
54
|
ttl: string;
|
|
55
55
|
status: DomainRecordStatus;
|
|
56
56
|
routing_policy?: string;
|
|
@@ -1990,7 +1990,7 @@ declare class Emails {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
//#endregion
|
|
1992
1992
|
//#region src/events/events.d.ts
|
|
1993
|
-
declare class Events {
|
|
1993
|
+
declare class Events$1 {
|
|
1994
1994
|
private readonly resend;
|
|
1995
1995
|
constructor(resend: Resend);
|
|
1996
1996
|
send(payload: SendEventOptions): Promise<SendEventResponse>;
|
|
@@ -2049,6 +2049,15 @@ interface RemoveSegmentResponseSuccess extends Pick<Segment, 'id'> {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
type RemoveSegmentResponse = Response<RemoveSegmentResponseSuccess>;
|
|
2051
2051
|
//#endregion
|
|
2052
|
+
//#region src/segments/interfaces/update-segment.interface.d.ts
|
|
2053
|
+
interface UpdateSegmentOptions {
|
|
2054
|
+
name: string;
|
|
2055
|
+
}
|
|
2056
|
+
interface UpdateSegmentResponseSuccess extends Pick<Segment, 'id'> {
|
|
2057
|
+
object: 'segment';
|
|
2058
|
+
}
|
|
2059
|
+
type UpdateSegmentResponse = Response<UpdateSegmentResponseSuccess>;
|
|
2060
|
+
//#endregion
|
|
2052
2061
|
//#region src/segments/segments.d.ts
|
|
2053
2062
|
declare class Segments {
|
|
2054
2063
|
private readonly resend;
|
|
@@ -2056,6 +2065,7 @@ declare class Segments {
|
|
|
2056
2065
|
create(payload: CreateSegmentOptions, options?: CreateSegmentRequestOptions): Promise<CreateSegmentResponse>;
|
|
2057
2066
|
list(options?: ListSegmentsOptions): Promise<ListSegmentsResponse>;
|
|
2058
2067
|
get(id: string): Promise<GetSegmentResponse>;
|
|
2068
|
+
update(id: string, payload: UpdateSegmentOptions): Promise<UpdateSegmentResponse>;
|
|
2059
2069
|
remove(id: string): Promise<RemoveSegmentResponse>;
|
|
2060
2070
|
}
|
|
2061
2071
|
//#endregion
|
|
@@ -2388,8 +2398,8 @@ interface ContactEventData {
|
|
|
2388
2398
|
created_at: string;
|
|
2389
2399
|
updated_at: string;
|
|
2390
2400
|
email: string;
|
|
2391
|
-
first_name?: string;
|
|
2392
|
-
last_name?: string;
|
|
2401
|
+
first_name?: string | null;
|
|
2402
|
+
last_name?: string | null;
|
|
2393
2403
|
unsubscribed: boolean;
|
|
2394
2404
|
}
|
|
2395
2405
|
interface DomainRecord {
|
|
@@ -2521,6 +2531,78 @@ interface SuppressionRemovedEvent {
|
|
|
2521
2531
|
}
|
|
2522
2532
|
type WebhookEventPayload = EmailSentEvent | EmailScheduledEvent | EmailDeliveredEvent | EmailDeliveryDelayedEvent | EmailComplainedEvent | EmailBouncedEvent | EmailOpenedEvent | EmailClickedEvent | EmailReceivedEvent | EmailFailedEvent | EmailSuppressedEvent | ContactCreatedEvent | ContactUpdatedEvent | ContactDeletedEvent | DomainCreatedEvent | DomainUpdatedEvent | DomainDeletedEvent | SuppressionAddedEvent | SuppressionRemovedEvent;
|
|
2523
2533
|
//#endregion
|
|
2534
|
+
//#region src/webhooks/interfaces/list-webhook-events.interface.d.ts
|
|
2535
|
+
type WebhookEventLogStatus = 'success' | 'pending' | 'failed' | 'attempting';
|
|
2536
|
+
interface WebhookEventLog {
|
|
2537
|
+
id: string;
|
|
2538
|
+
type: WebhookEvent;
|
|
2539
|
+
created_at: string;
|
|
2540
|
+
status: WebhookEventLogStatus;
|
|
2541
|
+
}
|
|
2542
|
+
type ListWebhookEventsOptions = {
|
|
2543
|
+
webhookId: string;
|
|
2544
|
+
limit?: number;
|
|
2545
|
+
after?: string;
|
|
2546
|
+
};
|
|
2547
|
+
type ListWebhookEventsResponseSuccess = {
|
|
2548
|
+
object: 'list';
|
|
2549
|
+
has_more: boolean;
|
|
2550
|
+
data: WebhookEventLog[];
|
|
2551
|
+
};
|
|
2552
|
+
type ListWebhookEventsResponse = Response<ListWebhookEventsResponseSuccess>;
|
|
2553
|
+
//#endregion
|
|
2554
|
+
//#region src/webhooks/interfaces/get-webhook-event.interface.d.ts
|
|
2555
|
+
interface GetWebhookEventOptions {
|
|
2556
|
+
webhookId: string;
|
|
2557
|
+
eventId: string;
|
|
2558
|
+
}
|
|
2559
|
+
interface GetWebhookEventResponseSuccess {
|
|
2560
|
+
object: 'webhook_event';
|
|
2561
|
+
id: string;
|
|
2562
|
+
type: WebhookEvent;
|
|
2563
|
+
created_at: string;
|
|
2564
|
+
status: WebhookEventLogStatus;
|
|
2565
|
+
next_attempt_at: string | null;
|
|
2566
|
+
payload: WebhookEventPayload;
|
|
2567
|
+
}
|
|
2568
|
+
type GetWebhookEventResponse = Response<GetWebhookEventResponseSuccess>;
|
|
2569
|
+
//#endregion
|
|
2570
|
+
//#region src/webhooks/interfaces/list-webhook-event-attempts.interface.d.ts
|
|
2571
|
+
interface WebhookEventAttempt {
|
|
2572
|
+
id: string;
|
|
2573
|
+
http_status_code: number;
|
|
2574
|
+
response: string;
|
|
2575
|
+
sent_at: string;
|
|
2576
|
+
}
|
|
2577
|
+
type ListWebhookEventAttemptsOptions = {
|
|
2578
|
+
webhookId: string;
|
|
2579
|
+
eventId: string;
|
|
2580
|
+
limit?: number;
|
|
2581
|
+
after?: string;
|
|
2582
|
+
};
|
|
2583
|
+
type ListWebhookEventAttemptsResponseSuccess = {
|
|
2584
|
+
object: 'list';
|
|
2585
|
+
has_more: boolean;
|
|
2586
|
+
data: WebhookEventAttempt[];
|
|
2587
|
+
};
|
|
2588
|
+
type ListWebhookEventAttemptsResponse = Response<ListWebhookEventAttemptsResponseSuccess>;
|
|
2589
|
+
//#endregion
|
|
2590
|
+
//#region src/webhooks/events/attempts/attempts.d.ts
|
|
2591
|
+
declare class Attempts {
|
|
2592
|
+
private readonly resend;
|
|
2593
|
+
constructor(resend: Resend);
|
|
2594
|
+
list(options: ListWebhookEventAttemptsOptions): Promise<ListWebhookEventAttemptsResponse>;
|
|
2595
|
+
}
|
|
2596
|
+
//#endregion
|
|
2597
|
+
//#region src/webhooks/events/events.d.ts
|
|
2598
|
+
declare class Events {
|
|
2599
|
+
private readonly resend;
|
|
2600
|
+
readonly attempts: Attempts;
|
|
2601
|
+
constructor(resend: Resend);
|
|
2602
|
+
list(options: ListWebhookEventsOptions): Promise<ListWebhookEventsResponse>;
|
|
2603
|
+
get(options: GetWebhookEventOptions): Promise<GetWebhookEventResponse>;
|
|
2604
|
+
}
|
|
2605
|
+
//#endregion
|
|
2524
2606
|
//#region src/webhooks/interfaces/create-webhook-options.interface.d.ts
|
|
2525
2607
|
interface CreateWebhookOptions {
|
|
2526
2608
|
endpoint: string;
|
|
@@ -2594,6 +2676,7 @@ interface VerifyWebhookOptions {
|
|
|
2594
2676
|
}
|
|
2595
2677
|
declare class Webhooks {
|
|
2596
2678
|
private readonly resend;
|
|
2679
|
+
readonly events: Events;
|
|
2597
2680
|
constructor(resend: Resend);
|
|
2598
2681
|
create(payload: CreateWebhookOptions, options?: CreateWebhookRequestOptions): Promise<CreateWebhookResponse>;
|
|
2599
2682
|
get(id: string): Promise<GetWebhookResponse>;
|
|
@@ -2626,7 +2709,7 @@ declare class Resend {
|
|
|
2626
2709
|
readonly contacts: Contacts;
|
|
2627
2710
|
readonly domains: Domains;
|
|
2628
2711
|
readonly emails: Emails;
|
|
2629
|
-
readonly events: Events;
|
|
2712
|
+
readonly events: Events$1;
|
|
2630
2713
|
readonly logs: Logs;
|
|
2631
2714
|
readonly oauthGrants: OAuthGrants;
|
|
2632
2715
|
readonly suppressions: Suppressions;
|
|
@@ -2643,4 +2726,4 @@ declare class Resend {
|
|
|
2643
2726
|
delete<T>(path: string, query?: unknown, options?: DeleteOptions): Promise<Response<T>>;
|
|
2644
2727
|
}
|
|
2645
2728
|
//#endregion
|
|
2646
|
-
export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, AddSuppressionOptions, AddSuppressionResponse, AddSuppressionResponseSuccess, AddToSegmentStepConfig, ApiContactProperty, ApiKey, Attachment, AttachmentData, Automation, AutomationConnection, AutomationConnectionType, AutomationResponseConnection, AutomationResponseStep, AutomationRun, AutomationRunItem, AutomationRunStatus, AutomationRunStep, AutomationRunStepStatus, AutomationStatus, AutomationStep, AutomationStepType, BatchAddSuppressionsOptions, BatchAddSuppressionsResponse, BatchAddSuppressionsResponseSuccess, BatchRemoveSuppressionsOptions, BatchRemoveSuppressionsResponse, BatchRemoveSuppressionsResponseSuccess, Broadcast, BroadcastClickedLink, BroadcastRecipient, BroadcastRecipientBounceType, BroadcastRecipientClickedLink, BroadcastRecipientEventType, CancelBroadcastResponse, CancelBroadcastResponseSuccess, CancelEmailResponse, CancelEmailResponseSuccess, ClaimDomainOptions, ClaimDomainRequestOptions, ClaimDomainResponse, ClaimDomainResponseSuccess, ConditionRule, ConditionStepConfig, Contact, ContactCreatedEvent, ContactDeleteStepConfig, ContactDeletedEvent, ContactImport, ContactImportColumnMap, ContactImportCounts, ContactImportOnConflict, ContactImportPropertyMapping, ContactImportPropertyType, ContactImportSegment, ContactImportStatus, ContactImportTopic, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdateStepConfig, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateAutomationOptions, CreateAutomationResponse, CreateAutomationResponseSuccess, CreateBatchEmailOptions, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactImportOptions, CreateContactImportRequestOptions, CreateContactImportResponse, CreateContactImportResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateEventOptions, CreateEventResponse, CreateEventResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, DelayStepConfig, DeleteOptions, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainClaim, DomainClaimBlockedReason, DomainClaimRecord, DomainClaimStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecordStatus, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateAutomationResponse, DuplicateAutomationResponseSuccess, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailMetric, EmailMetricsDataRow, EmailMetricsDimension, EmailMetricsGranularity, EmailMetricsTotals, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, Event, EventSchemaMap, EventSchemaType, ForwardReceivingEmailOptions, ForwardReceivingEmailRequestOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetAutomationResponse, GetAutomationResponseSuccess, GetAutomationRunOptions, GetAutomationRunResponse, GetAutomationRunResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactImportResponse, GetContactImportResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainClaimResponse, GetDomainClaimResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetEmailsMetricsOptions, GetEmailsMetricsResponse, GetEmailsMetricsResponseSuccess, GetEventResponse, GetEventResponseSuccess, GetLogResponse, GetLogResponseSuccess, GetOptions, GetReceivingEmailOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetSuppressionResponse, GetSuppressionResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, InboundAttachment, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListAutomationRunsOptions, ListAutomationRunsResponse, ListAutomationRunsResponseSuccess, ListAutomationsOptions, ListAutomationsResponse, ListAutomationsResponseSuccess, ListBroadcastClickedLinksOptions, ListBroadcastClickedLinksResponse, ListBroadcastClickedLinksResponseSuccess, ListBroadcastRecipientsOptions, ListBroadcastRecipientsResponse, ListBroadcastRecipientsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactImportsOptions, ListContactImportsResponse, ListContactImportsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListEmail, ListEmailsOptions, ListEmailsResponse, ListEmailsResponseSuccess, ListEventsOptions, ListEventsResponse, ListEventsResponseSuccess, ListLogsOptions, ListLogsResponse, ListLogsResponseSuccess, ListOAuthGrantsOptions, ListOAuthGrantsResponse, ListOAuthGrantsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListSuppressionsOptions, ListSuppressionsResponse, ListSuppressionsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, Log, OAuthGrant, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveAutomationResponse, RemoveAutomationResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveEventResponse, RemoveEventResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveSuppressionResponse, RemoveSuppressionResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type ResendOptions, type Response, RevokeOAuthGrantResponse, RevokeOAuthGrantResponseSuccess, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, SendEmailStepConfig, SendEventOptions, SendEventResponse, SendEventResponseSuccess, ShareEmailOptions, ShareEmailResponse, ShareEmailResponseSuccess, StopAutomationResponse, StopAutomationResponseSuccess, Suppression, SuppressionAddedEvent, SuppressionListEntry, SuppressionOrigin, SuppressionRemovedEvent, Tag, Template, TemplateVariable, TemplateVariableValue, Topic, TrackingCaaRecord, TrackingRecord, TriggerStepConfig, UpdateApiKeyOptions, UpdateApiKeyResponse, UpdateApiKeyResponseSuccess, UpdateAutomationOptions, UpdateAutomationResponse, UpdateAutomationResponseSuccess, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateEventOptions, UpdateEventResponse, UpdateEventResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainClaimResponse, VerifyDomainClaimResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, WaitForEventStepConfig, Webhook, WebhookEvent, WebhookEventPayload };
|
|
2729
|
+
export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, AddSuppressionOptions, AddSuppressionResponse, AddSuppressionResponseSuccess, AddToSegmentStepConfig, ApiContactProperty, ApiKey, Attachment, AttachmentData, Automation, AutomationConnection, AutomationConnectionType, AutomationResponseConnection, AutomationResponseStep, AutomationRun, AutomationRunItem, AutomationRunStatus, AutomationRunStep, AutomationRunStepStatus, AutomationStatus, AutomationStep, AutomationStepType, BatchAddSuppressionsOptions, BatchAddSuppressionsResponse, BatchAddSuppressionsResponseSuccess, BatchRemoveSuppressionsOptions, BatchRemoveSuppressionsResponse, BatchRemoveSuppressionsResponseSuccess, Broadcast, BroadcastClickedLink, BroadcastRecipient, BroadcastRecipientBounceType, BroadcastRecipientClickedLink, BroadcastRecipientEventType, CancelBroadcastResponse, CancelBroadcastResponseSuccess, CancelEmailResponse, CancelEmailResponseSuccess, ClaimDomainOptions, ClaimDomainRequestOptions, ClaimDomainResponse, ClaimDomainResponseSuccess, ConditionRule, ConditionStepConfig, Contact, ContactCreatedEvent, ContactDeleteStepConfig, ContactDeletedEvent, ContactImport, ContactImportColumnMap, ContactImportCounts, ContactImportOnConflict, ContactImportPropertyMapping, ContactImportPropertyType, ContactImportSegment, ContactImportStatus, ContactImportTopic, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdateStepConfig, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateAutomationOptions, CreateAutomationResponse, CreateAutomationResponseSuccess, CreateBatchEmailOptions, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactImportOptions, CreateContactImportRequestOptions, CreateContactImportResponse, CreateContactImportResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateEventOptions, CreateEventResponse, CreateEventResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, DelayStepConfig, DeleteOptions, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainClaim, DomainClaimBlockedReason, DomainClaimRecord, DomainClaimStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecordStatus, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateAutomationResponse, DuplicateAutomationResponseSuccess, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailMetric, EmailMetricsDataRow, EmailMetricsDimension, EmailMetricsGranularity, EmailMetricsTotals, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, Event, EventSchemaMap, EventSchemaType, ForwardReceivingEmailOptions, ForwardReceivingEmailRequestOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetAutomationResponse, GetAutomationResponseSuccess, GetAutomationRunOptions, GetAutomationRunResponse, GetAutomationRunResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactImportResponse, GetContactImportResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainClaimResponse, GetDomainClaimResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetEmailsMetricsOptions, GetEmailsMetricsResponse, GetEmailsMetricsResponseSuccess, GetEventResponse, GetEventResponseSuccess, GetLogResponse, GetLogResponseSuccess, GetOptions, GetReceivingEmailOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetSuppressionResponse, GetSuppressionResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookEventOptions, GetWebhookEventResponse, GetWebhookEventResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, InboundAttachment, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListAutomationRunsOptions, ListAutomationRunsResponse, ListAutomationRunsResponseSuccess, ListAutomationsOptions, ListAutomationsResponse, ListAutomationsResponseSuccess, ListBroadcastClickedLinksOptions, ListBroadcastClickedLinksResponse, ListBroadcastClickedLinksResponseSuccess, ListBroadcastRecipientsOptions, ListBroadcastRecipientsResponse, ListBroadcastRecipientsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactImportsOptions, ListContactImportsResponse, ListContactImportsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListEmail, ListEmailsOptions, ListEmailsResponse, ListEmailsResponseSuccess, ListEventsOptions, ListEventsResponse, ListEventsResponseSuccess, ListLogsOptions, ListLogsResponse, ListLogsResponseSuccess, ListOAuthGrantsOptions, ListOAuthGrantsResponse, ListOAuthGrantsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListSuppressionsOptions, ListSuppressionsResponse, ListSuppressionsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhookEventAttemptsOptions, ListWebhookEventAttemptsResponse, ListWebhookEventAttemptsResponseSuccess, ListWebhookEventsOptions, ListWebhookEventsResponse, ListWebhookEventsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, Log, OAuthGrant, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveAutomationResponse, RemoveAutomationResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveEventResponse, RemoveEventResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveSuppressionResponse, RemoveSuppressionResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type ResendOptions, type Response, RevokeOAuthGrantResponse, RevokeOAuthGrantResponseSuccess, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, SendEmailStepConfig, SendEventOptions, SendEventResponse, SendEventResponseSuccess, ShareEmailOptions, ShareEmailResponse, ShareEmailResponseSuccess, StopAutomationResponse, StopAutomationResponseSuccess, Suppression, SuppressionAddedEvent, SuppressionListEntry, SuppressionOrigin, SuppressionRemovedEvent, Tag, Template, TemplateVariable, TemplateVariableValue, Topic, TrackingCaaRecord, TrackingRecord, TriggerStepConfig, UpdateApiKeyOptions, UpdateApiKeyResponse, UpdateApiKeyResponseSuccess, UpdateAutomationOptions, UpdateAutomationResponse, UpdateAutomationResponseSuccess, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateEventOptions, UpdateEventResponse, UpdateEventResponseSuccess, UpdateSegmentOptions, UpdateSegmentResponse, UpdateSegmentResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainClaimResponse, VerifyDomainClaimResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, WaitForEventStepConfig, Webhook, WebhookEvent, WebhookEventAttempt, WebhookEventLog, WebhookEventLogStatus, WebhookEventPayload };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PostalMime from "postal-mime";
|
|
2
2
|
import { Webhook } from "standardwebhooks";
|
|
3
3
|
//#region package.json
|
|
4
|
-
var version = "6.
|
|
4
|
+
var version = "6.25.0";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/common/utils/build-pagination-query.ts
|
|
7
7
|
function buildPaginationUrl(base, options) {
|
|
@@ -912,7 +912,7 @@ function buildMetricsQuery(options) {
|
|
|
912
912
|
}
|
|
913
913
|
//#endregion
|
|
914
914
|
//#region src/events/events.ts
|
|
915
|
-
var Events = class {
|
|
915
|
+
var Events$1 = class {
|
|
916
916
|
constructor(resend) {
|
|
917
917
|
this.resend = resend;
|
|
918
918
|
}
|
|
@@ -980,6 +980,9 @@ var Segments = class {
|
|
|
980
980
|
async get(id) {
|
|
981
981
|
return await this.resend.get(`/segments/${id}`);
|
|
982
982
|
}
|
|
983
|
+
async update(id, payload) {
|
|
984
|
+
return await this.resend.patch(`/segments/${id}`, payload);
|
|
985
|
+
}
|
|
983
986
|
async remove(id) {
|
|
984
987
|
return await this.resend.delete(`/segments/${id}`);
|
|
985
988
|
}
|
|
@@ -1173,10 +1176,40 @@ var Topics = class {
|
|
|
1173
1176
|
}
|
|
1174
1177
|
};
|
|
1175
1178
|
//#endregion
|
|
1179
|
+
//#region src/webhooks/events/attempts/attempts.ts
|
|
1180
|
+
var Attempts = class {
|
|
1181
|
+
constructor(resend) {
|
|
1182
|
+
this.resend = resend;
|
|
1183
|
+
}
|
|
1184
|
+
async list(options) {
|
|
1185
|
+
const { webhookId, eventId } = options;
|
|
1186
|
+
const url = buildPaginationUrl(`/webhooks/${webhookId}/events/${eventId}/attempts`, options);
|
|
1187
|
+
return await this.resend.get(url);
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region src/webhooks/events/events.ts
|
|
1192
|
+
var Events = class {
|
|
1193
|
+
constructor(resend) {
|
|
1194
|
+
this.resend = resend;
|
|
1195
|
+
this.attempts = new Attempts(resend);
|
|
1196
|
+
}
|
|
1197
|
+
async list(options) {
|
|
1198
|
+
const { webhookId } = options;
|
|
1199
|
+
const url = buildPaginationUrl(`/webhooks/${webhookId}/events`, options);
|
|
1200
|
+
return await this.resend.get(url);
|
|
1201
|
+
}
|
|
1202
|
+
async get(options) {
|
|
1203
|
+
const { webhookId, eventId } = options;
|
|
1204
|
+
return await this.resend.get(`/webhooks/${webhookId}/events/${eventId}`);
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
//#endregion
|
|
1176
1208
|
//#region src/webhooks/webhooks.ts
|
|
1177
1209
|
var Webhooks = class {
|
|
1178
1210
|
constructor(resend) {
|
|
1179
1211
|
this.resend = resend;
|
|
1212
|
+
this.events = new Events(resend);
|
|
1180
1213
|
}
|
|
1181
1214
|
async create(payload, options = {}) {
|
|
1182
1215
|
return await this.resend.post("/webhooks", payload, options);
|
|
@@ -1225,7 +1258,7 @@ var Resend = class {
|
|
|
1225
1258
|
this.contacts = new Contacts(this);
|
|
1226
1259
|
this.domains = new Domains(this);
|
|
1227
1260
|
this.emails = new Emails(this);
|
|
1228
|
-
this.events = new Events(this);
|
|
1261
|
+
this.events = new Events$1(this);
|
|
1229
1262
|
this.logs = new Logs(this);
|
|
1230
1263
|
this.oauthGrants = new OAuthGrants(this);
|
|
1231
1264
|
this.suppressions = new Suppressions(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/resend",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.25.0-depup.0",
|
|
4
4
|
"description": "Node.js library for the Resend API (with updated dependencies)",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -31,18 +31,6 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "tsdown src/index.ts --format esm,cjs --dts",
|
|
36
|
-
"integration:nextjs": "cd ./e2e/nextjs && next build --turbopack",
|
|
37
|
-
"lint": "biome check .",
|
|
38
|
-
"lint:fix": "biome check . --write",
|
|
39
|
-
"test": "vitest run --exclude e2e",
|
|
40
|
-
"test:dev": "cross-env TEST_MODE=dev vitest run --exclude e2e",
|
|
41
|
-
"test:e2e": "vitest run e2e",
|
|
42
|
-
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run --exclude e2e",
|
|
43
|
-
"test:watch": "vitest --exclude e2e",
|
|
44
|
-
"typecheck": "tsc --noEmit"
|
|
45
|
-
},
|
|
46
34
|
"repository": {
|
|
47
35
|
"type": "git",
|
|
48
36
|
"url": "git+https://github.com/resend/resend-node.git"
|
|
@@ -55,7 +43,7 @@
|
|
|
55
43
|
"homepage": "https://github.com/resend/resend-node#readme",
|
|
56
44
|
"dependencies": {
|
|
57
45
|
"postal-mime": "^3.0.0",
|
|
58
|
-
"standardwebhooks": "1.
|
|
46
|
+
"standardwebhooks": "^1.1.1"
|
|
59
47
|
},
|
|
60
48
|
"peerDependencies": {
|
|
61
49
|
"@react-email/render": "*"
|
|
@@ -84,7 +72,18 @@
|
|
|
84
72
|
"vitest": "4.1.10",
|
|
85
73
|
"vitest-fetch-mock": "0.4.5"
|
|
86
74
|
},
|
|
87
|
-
"
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "tsdown src/index.ts --format esm,cjs --dts",
|
|
77
|
+
"integration:nextjs": "cd ./e2e/nextjs && next build --turbopack",
|
|
78
|
+
"lint": "biome check .",
|
|
79
|
+
"lint:fix": "biome check . --write",
|
|
80
|
+
"test": "vitest run --exclude e2e",
|
|
81
|
+
"test:dev": "cross-env TEST_MODE=dev vitest run --exclude e2e",
|
|
82
|
+
"test:e2e": "vitest run e2e",
|
|
83
|
+
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run --exclude e2e",
|
|
84
|
+
"test:watch": "vitest --exclude e2e",
|
|
85
|
+
"typecheck": "tsc --noEmit"
|
|
86
|
+
},
|
|
88
87
|
"keywords": [
|
|
89
88
|
"resend",
|
|
90
89
|
"depup",
|
|
@@ -98,12 +97,16 @@
|
|
|
98
97
|
"postal-mime": {
|
|
99
98
|
"from": "2.7.5",
|
|
100
99
|
"to": "^3.0.0"
|
|
100
|
+
},
|
|
101
|
+
"standardwebhooks": {
|
|
102
|
+
"from": "1.0.0",
|
|
103
|
+
"to": "^1.1.1"
|
|
101
104
|
}
|
|
102
105
|
},
|
|
103
|
-
"depsUpdated":
|
|
106
|
+
"depsUpdated": 2,
|
|
104
107
|
"originalPackage": "resend",
|
|
105
|
-
"originalVersion": "6.
|
|
106
|
-
"processedAt": "2026-08-
|
|
108
|
+
"originalVersion": "6.25.0",
|
|
109
|
+
"processedAt": "2026-08-30T00:59:15.970Z",
|
|
107
110
|
"smokeTest": "passed"
|
|
108
111
|
}
|
|
109
112
|
}
|