shipmail 0.6.0 → 0.6.2
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 +2 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -6
- package/dist/index.d.ts +41 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -59,9 +59,9 @@ type EmailRecipient = {
|
|
|
59
59
|
readonly name?: string | null | undefined;
|
|
60
60
|
};
|
|
61
61
|
type EmailRecipientInput = EmailRecipient | string;
|
|
62
|
-
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created"];
|
|
62
|
+
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created", "subscriber.added", "newsletter.sent"];
|
|
63
63
|
type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
|
|
64
|
-
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created"];
|
|
64
|
+
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created", "subscriber.added", "newsletter.sent"];
|
|
65
65
|
type WebhookDeliveryEventType = (typeof WEBHOOK_DELIVERY_EVENT_TYPES)[number];
|
|
66
66
|
type StatusResponse = {
|
|
67
67
|
readonly status: string;
|
|
@@ -420,9 +420,15 @@ type CalendarPerson = {
|
|
|
420
420
|
type CalendarAttendee = CalendarPerson & {
|
|
421
421
|
readonly status: "needs-action" | "accepted" | "declined" | "tentative";
|
|
422
422
|
};
|
|
423
|
+
type CalendarInvitationOutcome = {
|
|
424
|
+
readonly recipient: string;
|
|
425
|
+
readonly status: "sent" | "failed" | "unknown";
|
|
426
|
+
};
|
|
423
427
|
type CalendarEvent = {
|
|
424
428
|
readonly object: "calendar_event";
|
|
425
429
|
readonly id: string;
|
|
430
|
+
/** Content revision used as expected_revision for safe updates. */
|
|
431
|
+
readonly revision: string;
|
|
426
432
|
readonly mailbox: string;
|
|
427
433
|
readonly calendar_id: string | null;
|
|
428
434
|
readonly uid: string | null;
|
|
@@ -448,6 +454,11 @@ type CalendarEvent = {
|
|
|
448
454
|
readonly created_at: string | null;
|
|
449
455
|
readonly updated_at: string | null;
|
|
450
456
|
};
|
|
457
|
+
type CalendarEventMutationResult = CalendarEvent & {
|
|
458
|
+
readonly invitation_outcomes: readonly CalendarInvitationOutcome[];
|
|
459
|
+
/** Compatibility list containing failed and unknown recipients. */
|
|
460
|
+
readonly invitation_failures: readonly string[];
|
|
461
|
+
};
|
|
451
462
|
type ListCalendarEventsParams = PaginationParams & {
|
|
452
463
|
readonly mailbox: string;
|
|
453
464
|
readonly from: string;
|
|
@@ -463,6 +474,10 @@ type DeleteCalendarEventParams = {
|
|
|
463
474
|
};
|
|
464
475
|
type CreateCalendarEventParams = {
|
|
465
476
|
readonly mailbox: string;
|
|
477
|
+
/** Stable retry identity for this exact create payload. */
|
|
478
|
+
readonly operation_key?: string | undefined;
|
|
479
|
+
/** Whether attendees should receive invitations. Defaults to true. */
|
|
480
|
+
readonly send_invitations?: boolean | undefined;
|
|
466
481
|
readonly calendar_id?: string | undefined;
|
|
467
482
|
readonly title: string;
|
|
468
483
|
readonly invitation_language?: CalendarInvitationLanguage | undefined;
|
|
@@ -483,6 +498,12 @@ type CreateCalendarEventParams = {
|
|
|
483
498
|
};
|
|
484
499
|
type UpdateCalendarEventParams = {
|
|
485
500
|
readonly mailbox: string;
|
|
501
|
+
/** Stable retry identity for this exact update payload. */
|
|
502
|
+
readonly operation_key?: string | undefined;
|
|
503
|
+
/** Revision originally read by the editor; rejects stale guest-visible writes. */
|
|
504
|
+
readonly expected_revision?: string | undefined;
|
|
505
|
+
/** Whether attendees should receive scheduling updates. Defaults to true. */
|
|
506
|
+
readonly send_guest_updates?: boolean | undefined;
|
|
486
507
|
readonly title?: string | undefined;
|
|
487
508
|
readonly invitation_language?: CalendarInvitationLanguage | undefined;
|
|
488
509
|
readonly description?: string | null | undefined;
|
|
@@ -528,11 +549,11 @@ type CalendarAvailabilityParams = {
|
|
|
528
549
|
};
|
|
529
550
|
|
|
530
551
|
declare class CalendarEvents extends ApiResource {
|
|
531
|
-
create(params: CreateCalendarEventParams, options?: MethodOptions): Promise<
|
|
552
|
+
create(params: CreateCalendarEventParams, options?: MethodOptions): Promise<CalendarEventMutationResult>;
|
|
532
553
|
list(params: ListCalendarEventsParams, options?: MethodOptions): Promise<PaginatedResponse<CalendarEvent>>;
|
|
533
554
|
listAutoPaginating(params: Omit<ListCalendarEventsParams, "cursor">): Page<CalendarEvent>;
|
|
534
555
|
get(id: string, params: GetCalendarEventParams, options?: MethodOptions): Promise<CalendarEvent>;
|
|
535
|
-
update(id: string, params: UpdateCalendarEventParams, options?: MethodOptions): Promise<
|
|
556
|
+
update(id: string, params: UpdateCalendarEventParams, options?: MethodOptions): Promise<CalendarEventMutationResult>;
|
|
536
557
|
delete(id: string, params: DeleteCalendarEventParams, options?: MethodOptions): Promise<void>;
|
|
537
558
|
}
|
|
538
559
|
declare class Calendar extends ApiResource {
|
|
@@ -1589,13 +1610,23 @@ declare class Mailboxes extends ApiResource {
|
|
|
1589
1610
|
abortImportUpload(id: string, fileId: string, options?: MethodOptions): Promise<void>;
|
|
1590
1611
|
}
|
|
1591
1612
|
|
|
1592
|
-
type MemberRole = "owner" | "
|
|
1613
|
+
type MemberRole = "owner" | "admin" | "member";
|
|
1614
|
+
type MemberMailboxAccessScope = "all" | "selected";
|
|
1615
|
+
type MemberMailboxAccess = {
|
|
1616
|
+
readonly scope: MemberMailboxAccessScope;
|
|
1617
|
+
/**
|
|
1618
|
+
* Empty when `scope` is `all`. For `selected`, API-key responses may include only the mailbox
|
|
1619
|
+
* IDs that the key can reach.
|
|
1620
|
+
*/
|
|
1621
|
+
readonly mailbox_ids: readonly string[];
|
|
1622
|
+
};
|
|
1593
1623
|
type Member = {
|
|
1594
1624
|
readonly object: "member";
|
|
1595
1625
|
readonly id: string;
|
|
1596
1626
|
readonly email: string;
|
|
1597
1627
|
readonly name: string;
|
|
1598
1628
|
readonly role: MemberRole;
|
|
1629
|
+
readonly mailbox_access: MemberMailboxAccess;
|
|
1599
1630
|
readonly created_at: string;
|
|
1600
1631
|
};
|
|
1601
1632
|
type ListMembersParams = PaginationParams;
|
|
@@ -1682,6 +1713,9 @@ type Newsletter = {
|
|
|
1682
1713
|
readonly archive_visibility: NewsletterArchiveVisibility;
|
|
1683
1714
|
readonly feed_entry_url: string | null;
|
|
1684
1715
|
readonly styling_mode: NewsletterStylingMode;
|
|
1716
|
+
readonly track_engagement: boolean;
|
|
1717
|
+
readonly opened_count: number | null;
|
|
1718
|
+
readonly clicked_count: number | null;
|
|
1685
1719
|
readonly preflight_status: NewsletterPreflightStatus;
|
|
1686
1720
|
readonly preflight_results: Record<string, unknown>;
|
|
1687
1721
|
readonly send_window_hours: number;
|
|
@@ -1770,6 +1804,7 @@ type CreateNewsletterParams = {
|
|
|
1770
1804
|
readonly archive_visibility?: NewsletterArchiveVisibility | undefined;
|
|
1771
1805
|
readonly feed_entry_url?: string | null | undefined;
|
|
1772
1806
|
readonly styling_mode?: NewsletterStylingMode | undefined;
|
|
1807
|
+
readonly track_engagement?: boolean | undefined;
|
|
1773
1808
|
};
|
|
1774
1809
|
type UpdateNewsletterParams = Partial<CreateNewsletterParams>;
|
|
1775
1810
|
type NewsletterChangelogMedia = {
|
|
@@ -2351,4 +2386,4 @@ declare function verifyWebhook(body: string, headers: WebhookHeaders | Headers,
|
|
|
2351
2386
|
readonly toleranceInSeconds?: number | undefined;
|
|
2352
2387
|
}): Promise<WebhookEvent>;
|
|
2353
2388
|
|
|
2354
|
-
export { type AddSubscriberParams, type AddSubscribersBatchParams, type AddSubscribersBatchResult, type ApiErrorBody, type Audience, type AudienceFeed, AuthenticationError, AuthorizationError, type Automation, type AutomationAction, type AutomationCondition, type AutomationDefinition, type AutomationRun, type AutomationRunStatus, type AutomationRunSummary, type AutomationStatus, type AutomationTrigger, type BookingPage, CONFERENCING_PROVIDER_IDS, type CalendarAvailability, type CalendarAvailabilityParams, type CalendarAvailabilitySlot, type CalendarEvent, type CalendarEventPrivacy, type CalendarEventStatus, type CalendarFreeBusyStatus, type CalendarInvitationLanguage, type CapabilitiesResponse, type CapabilityResourceConstraints, type ConferencingProviderId, ConflictError, ConnectionError, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxDraftParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, DOMAIN_STATUSES, type DataMode, type DeleteCalendarEventParams, type Domain, type DomainDnsRecord, type DomainDnsRecordKey, type DomainDnsRecordSet, type DomainDnsRecordStatus, type DomainRegistrationInfo, type DomainSearchResult, type DomainStatus, type DomainVerificationResult, type DownloadInboxAttachmentParams, type EmailAuthVerdict, type EmailAuthenticationResults, type EmailRecipient, type EmailRecipientInput, type ErrorType, type GetCalendarEventParams, type GetThreadParams, type InboxAttachment, type InboxBodyPart, type InboxBodyValue, type InboxDraft, type InboxDraftRecipient, type InboxEmailHeader, type InboxFullMessage, type InboxKeyword, type InboxMessage, type InboxMessageAction, type InboxMessages, type InboxReplyDraft, type InboxReplyDraftSend, type InboxThread, type InboxThreadAttentionResult, type InboxThreadAttentionState, type InboxThreadSummary, type InboxThreads, type InjectSandboxInboundParams, InternalServerError, type ListAudiencesParams, type ListAutomationsResponse, type ListBookingPagesParams, type ListCalendarEventsParams, type ListDeliveriesParams, type ListDomainsParams, type ListInboxMessagesParams, type ListInboxThreadsParams, type ListMailboxesParams, type ListMembersParams, type ListMessageAnalyticsParams, type ListMessagesParams, type ListNewsletterAssetsParams, type ListNewsletterDomainsParams, type ListNewsletterSenderIdentitiesParams, type ListNewslettersParams, type ListReplyScanResultsParams, type ListScheduledMessagesParams, type ListSubscribersParams, type ListSuppressionsParams, type ListThreadsParams, type ListWebhooksParams, MESSAGE_SOURCES, MESSAGE_STATUSES, type Mailbox, type MailboxAppPassword, type MailboxAppPasswordList, type MailboxAppPasswordPurpose, type MailboxAppPasswordState, type MailboxDeliveryDestination, type MailboxDeliveryRouting, type MailboxExport, type MailboxExportErrorCode, type MailboxExportStatus, type MailboxFolder, type MailboxFolders, type MailboxIdentities, type MailboxIdentity, type MailboxRule, type MailboxRuleAction, type MailboxRuleCondition, type MailboxRuleFolder, type MailboxRuleMatchMode, type MailboxRuleMoveTarget, type MailboxRules, type Member, type MemberRole, type MergeFields, type Message, type MessageAnalytics, type MessageAnalyticsPage, type MessageMetadata, type MessageRuleDisposition, type MessageSource, type MessageStatus, type MethodOptions, type MoveInboxMessageParams, type Newsletter, type NewsletterArchiveVisibility, type NewsletterAsset, type NewsletterAssetContentType, type NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, type NewsletterAssetUpload, type NewsletterBlock, type NewsletterButtonAlign, type NewsletterCalloutVariant, type NewsletterChangelogEntry, type NewsletterChangelogMedia, type NewsletterChangelogTone, type NewsletterColumnContent, type NewsletterColumnImageFit, type NewsletterColumnRatio, type NewsletterCountedUrl, type NewsletterDomain, type NewsletterDomainRecordStatus, type NewsletterDomainStatus, type NewsletterPreflight, type NewsletterPreflightItem, type NewsletterPreflightItemStatus, type NewsletterPreflightStatus, type NewsletterPreview, type NewsletterSenderIdentity, type NewsletterStatus, type NewsletterStylingMode, type NewsletterTestSend, type NewsletterTestSendStatus, type NewsletterUrlBreakdown, type NewsletterUrlSource, NotFoundError, type OneTimeSecretMethodOptions, type OutboundHeader, Page, type PaginatedResponse, type PaginationParams, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, ReconciliationRequiredError, type Recurrence, type RecurrenceFrequency, type RecurrenceNDay, type RegisterDomainParams, type RegisterNewsletterAssetFromUrlParams, type RegistrationContact, type Reminder, type ReplyScan, type ReplyScanCandidate, type ReplyScanResults, type ReplyScanStatus, type ReplyToMessageParams, type ReplyToThreadParams, type RequestOptions, type ResetMailboxPasswordParams, type RotateSecretResponse, type SandboxOutcome, type ScheduleNewsletterParams, type ScheduledMessage, type ScheduledMessageAttachment, type ScheduledMessageList, type ScheduledMessageRecipient, type ScheduledMessageUploadedAttachment, type SearchDomainsParams, type SendMessageParams, type SendNewsletterTestParams, ShipmailClient, type ShipmailConfig, ShipmailError, type StageAttachmentParams, type StagedAttachment, type StagedAttachmentUpload, type StatusResponse, type Subscriber, type SubscriberOutcome, type SubscriberResult, type SubscriberStatus, type Suppression, type TestWebhookResponse, type Thread, type UpdateAudienceFeedParams, type UpdateAudienceParams, type UpdateAutoReplyParams, type UpdateAutomationParams, type UpdateBookingPageParams, type UpdateCalendarEventParams, type UpdateDomainParams, type UpdateInboxMessageParams, type UpdateInboxThreadAttentionParams, type UpdateMailboxDeliveryRoutingParams, type UpdateMailboxFolderParams, type UpdateMailboxParams, type UpdateMailboxRulesParams, type UpdateNewsletterParams, type UpdateScheduledMessageParams, type UpdateSubscriberParams, type UpdateWebhookParams, type UploadNewsletterAssetParams, ValidationError, WEBHOOK_DELIVERY_EVENT_TYPES, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_TYPES, type Webhook, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryEventType, type WebhookDeliveryStatus, type WebhookEvent, type WebhookEventType, WebhookVerificationError, type WebhookWithSecret, type Weekday, ShipmailClient as default, verifyWebhook };
|
|
2389
|
+
export { type AddSubscriberParams, type AddSubscribersBatchParams, type AddSubscribersBatchResult, type ApiErrorBody, type Audience, type AudienceFeed, AuthenticationError, AuthorizationError, type Automation, type AutomationAction, type AutomationCondition, type AutomationDefinition, type AutomationRun, type AutomationRunStatus, type AutomationRunSummary, type AutomationStatus, type AutomationTrigger, type BookingPage, CONFERENCING_PROVIDER_IDS, type CalendarAvailability, type CalendarAvailabilityParams, type CalendarAvailabilitySlot, type CalendarEvent, type CalendarEventMutationResult, type CalendarEventPrivacy, type CalendarEventStatus, type CalendarFreeBusyStatus, type CalendarInvitationLanguage, type CalendarInvitationOutcome, type CapabilitiesResponse, type CapabilityResourceConstraints, type ConferencingProviderId, ConflictError, ConnectionError, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxDraftParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, DOMAIN_STATUSES, type DataMode, type DeleteCalendarEventParams, type Domain, type DomainDnsRecord, type DomainDnsRecordKey, type DomainDnsRecordSet, type DomainDnsRecordStatus, type DomainRegistrationInfo, type DomainSearchResult, type DomainStatus, type DomainVerificationResult, type DownloadInboxAttachmentParams, type EmailAuthVerdict, type EmailAuthenticationResults, type EmailRecipient, type EmailRecipientInput, type ErrorType, type GetCalendarEventParams, type GetThreadParams, type InboxAttachment, type InboxBodyPart, type InboxBodyValue, type InboxDraft, type InboxDraftRecipient, type InboxEmailHeader, type InboxFullMessage, type InboxKeyword, type InboxMessage, type InboxMessageAction, type InboxMessages, type InboxReplyDraft, type InboxReplyDraftSend, type InboxThread, type InboxThreadAttentionResult, type InboxThreadAttentionState, type InboxThreadSummary, type InboxThreads, type InjectSandboxInboundParams, InternalServerError, type ListAudiencesParams, type ListAutomationsResponse, type ListBookingPagesParams, type ListCalendarEventsParams, type ListDeliveriesParams, type ListDomainsParams, type ListInboxMessagesParams, type ListInboxThreadsParams, type ListMailboxesParams, type ListMembersParams, type ListMessageAnalyticsParams, type ListMessagesParams, type ListNewsletterAssetsParams, type ListNewsletterDomainsParams, type ListNewsletterSenderIdentitiesParams, type ListNewslettersParams, type ListReplyScanResultsParams, type ListScheduledMessagesParams, type ListSubscribersParams, type ListSuppressionsParams, type ListThreadsParams, type ListWebhooksParams, MESSAGE_SOURCES, MESSAGE_STATUSES, type Mailbox, type MailboxAppPassword, type MailboxAppPasswordList, type MailboxAppPasswordPurpose, type MailboxAppPasswordState, type MailboxDeliveryDestination, type MailboxDeliveryRouting, type MailboxExport, type MailboxExportErrorCode, type MailboxExportStatus, type MailboxFolder, type MailboxFolders, type MailboxIdentities, type MailboxIdentity, type MailboxRule, type MailboxRuleAction, type MailboxRuleCondition, type MailboxRuleFolder, type MailboxRuleMatchMode, type MailboxRuleMoveTarget, type MailboxRules, type Member, type MemberMailboxAccess, type MemberMailboxAccessScope, type MemberRole, type MergeFields, type Message, type MessageAnalytics, type MessageAnalyticsPage, type MessageMetadata, type MessageRuleDisposition, type MessageSource, type MessageStatus, type MethodOptions, type MoveInboxMessageParams, type Newsletter, type NewsletterArchiveVisibility, type NewsletterAsset, type NewsletterAssetContentType, type NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, type NewsletterAssetUpload, type NewsletterBlock, type NewsletterButtonAlign, type NewsletterCalloutVariant, type NewsletterChangelogEntry, type NewsletterChangelogMedia, type NewsletterChangelogTone, type NewsletterColumnContent, type NewsletterColumnImageFit, type NewsletterColumnRatio, type NewsletterCountedUrl, type NewsletterDomain, type NewsletterDomainRecordStatus, type NewsletterDomainStatus, type NewsletterPreflight, type NewsletterPreflightItem, type NewsletterPreflightItemStatus, type NewsletterPreflightStatus, type NewsletterPreview, type NewsletterSenderIdentity, type NewsletterStatus, type NewsletterStylingMode, type NewsletterTestSend, type NewsletterTestSendStatus, type NewsletterUrlBreakdown, type NewsletterUrlSource, NotFoundError, type OneTimeSecretMethodOptions, type OutboundHeader, Page, type PaginatedResponse, type PaginationParams, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, ReconciliationRequiredError, type Recurrence, type RecurrenceFrequency, type RecurrenceNDay, type RegisterDomainParams, type RegisterNewsletterAssetFromUrlParams, type RegistrationContact, type Reminder, type ReplyScan, type ReplyScanCandidate, type ReplyScanResults, type ReplyScanStatus, type ReplyToMessageParams, type ReplyToThreadParams, type RequestOptions, type ResetMailboxPasswordParams, type RotateSecretResponse, type SandboxOutcome, type ScheduleNewsletterParams, type ScheduledMessage, type ScheduledMessageAttachment, type ScheduledMessageList, type ScheduledMessageRecipient, type ScheduledMessageUploadedAttachment, type SearchDomainsParams, type SendMessageParams, type SendNewsletterTestParams, ShipmailClient, type ShipmailConfig, ShipmailError, type StageAttachmentParams, type StagedAttachment, type StagedAttachmentUpload, type StatusResponse, type Subscriber, type SubscriberOutcome, type SubscriberResult, type SubscriberStatus, type Suppression, type TestWebhookResponse, type Thread, type UpdateAudienceFeedParams, type UpdateAudienceParams, type UpdateAutoReplyParams, type UpdateAutomationParams, type UpdateBookingPageParams, type UpdateCalendarEventParams, type UpdateDomainParams, type UpdateInboxMessageParams, type UpdateInboxThreadAttentionParams, type UpdateMailboxDeliveryRoutingParams, type UpdateMailboxFolderParams, type UpdateMailboxParams, type UpdateMailboxRulesParams, type UpdateNewsletterParams, type UpdateScheduledMessageParams, type UpdateSubscriberParams, type UpdateWebhookParams, type UploadNewsletterAssetParams, ValidationError, WEBHOOK_DELIVERY_EVENT_TYPES, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_TYPES, type Webhook, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryEventType, type WebhookDeliveryStatus, type WebhookEvent, type WebhookEventType, WebhookVerificationError, type WebhookWithSecret, type Weekday, ShipmailClient as default, verifyWebhook };
|
package/dist/index.d.ts
CHANGED
|
@@ -59,9 +59,9 @@ type EmailRecipient = {
|
|
|
59
59
|
readonly name?: string | null | undefined;
|
|
60
60
|
};
|
|
61
61
|
type EmailRecipientInput = EmailRecipient | string;
|
|
62
|
-
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created"];
|
|
62
|
+
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created", "subscriber.added", "newsletter.sent"];
|
|
63
63
|
type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
|
|
64
|
-
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created"];
|
|
64
|
+
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "mailbox.export.completed", "mailbox.export.failed", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered", "reply.overdue", "conversation.needs_action", "calendar.event_starting", "booking.created", "subscriber.added", "newsletter.sent"];
|
|
65
65
|
type WebhookDeliveryEventType = (typeof WEBHOOK_DELIVERY_EVENT_TYPES)[number];
|
|
66
66
|
type StatusResponse = {
|
|
67
67
|
readonly status: string;
|
|
@@ -420,9 +420,15 @@ type CalendarPerson = {
|
|
|
420
420
|
type CalendarAttendee = CalendarPerson & {
|
|
421
421
|
readonly status: "needs-action" | "accepted" | "declined" | "tentative";
|
|
422
422
|
};
|
|
423
|
+
type CalendarInvitationOutcome = {
|
|
424
|
+
readonly recipient: string;
|
|
425
|
+
readonly status: "sent" | "failed" | "unknown";
|
|
426
|
+
};
|
|
423
427
|
type CalendarEvent = {
|
|
424
428
|
readonly object: "calendar_event";
|
|
425
429
|
readonly id: string;
|
|
430
|
+
/** Content revision used as expected_revision for safe updates. */
|
|
431
|
+
readonly revision: string;
|
|
426
432
|
readonly mailbox: string;
|
|
427
433
|
readonly calendar_id: string | null;
|
|
428
434
|
readonly uid: string | null;
|
|
@@ -448,6 +454,11 @@ type CalendarEvent = {
|
|
|
448
454
|
readonly created_at: string | null;
|
|
449
455
|
readonly updated_at: string | null;
|
|
450
456
|
};
|
|
457
|
+
type CalendarEventMutationResult = CalendarEvent & {
|
|
458
|
+
readonly invitation_outcomes: readonly CalendarInvitationOutcome[];
|
|
459
|
+
/** Compatibility list containing failed and unknown recipients. */
|
|
460
|
+
readonly invitation_failures: readonly string[];
|
|
461
|
+
};
|
|
451
462
|
type ListCalendarEventsParams = PaginationParams & {
|
|
452
463
|
readonly mailbox: string;
|
|
453
464
|
readonly from: string;
|
|
@@ -463,6 +474,10 @@ type DeleteCalendarEventParams = {
|
|
|
463
474
|
};
|
|
464
475
|
type CreateCalendarEventParams = {
|
|
465
476
|
readonly mailbox: string;
|
|
477
|
+
/** Stable retry identity for this exact create payload. */
|
|
478
|
+
readonly operation_key?: string | undefined;
|
|
479
|
+
/** Whether attendees should receive invitations. Defaults to true. */
|
|
480
|
+
readonly send_invitations?: boolean | undefined;
|
|
466
481
|
readonly calendar_id?: string | undefined;
|
|
467
482
|
readonly title: string;
|
|
468
483
|
readonly invitation_language?: CalendarInvitationLanguage | undefined;
|
|
@@ -483,6 +498,12 @@ type CreateCalendarEventParams = {
|
|
|
483
498
|
};
|
|
484
499
|
type UpdateCalendarEventParams = {
|
|
485
500
|
readonly mailbox: string;
|
|
501
|
+
/** Stable retry identity for this exact update payload. */
|
|
502
|
+
readonly operation_key?: string | undefined;
|
|
503
|
+
/** Revision originally read by the editor; rejects stale guest-visible writes. */
|
|
504
|
+
readonly expected_revision?: string | undefined;
|
|
505
|
+
/** Whether attendees should receive scheduling updates. Defaults to true. */
|
|
506
|
+
readonly send_guest_updates?: boolean | undefined;
|
|
486
507
|
readonly title?: string | undefined;
|
|
487
508
|
readonly invitation_language?: CalendarInvitationLanguage | undefined;
|
|
488
509
|
readonly description?: string | null | undefined;
|
|
@@ -528,11 +549,11 @@ type CalendarAvailabilityParams = {
|
|
|
528
549
|
};
|
|
529
550
|
|
|
530
551
|
declare class CalendarEvents extends ApiResource {
|
|
531
|
-
create(params: CreateCalendarEventParams, options?: MethodOptions): Promise<
|
|
552
|
+
create(params: CreateCalendarEventParams, options?: MethodOptions): Promise<CalendarEventMutationResult>;
|
|
532
553
|
list(params: ListCalendarEventsParams, options?: MethodOptions): Promise<PaginatedResponse<CalendarEvent>>;
|
|
533
554
|
listAutoPaginating(params: Omit<ListCalendarEventsParams, "cursor">): Page<CalendarEvent>;
|
|
534
555
|
get(id: string, params: GetCalendarEventParams, options?: MethodOptions): Promise<CalendarEvent>;
|
|
535
|
-
update(id: string, params: UpdateCalendarEventParams, options?: MethodOptions): Promise<
|
|
556
|
+
update(id: string, params: UpdateCalendarEventParams, options?: MethodOptions): Promise<CalendarEventMutationResult>;
|
|
536
557
|
delete(id: string, params: DeleteCalendarEventParams, options?: MethodOptions): Promise<void>;
|
|
537
558
|
}
|
|
538
559
|
declare class Calendar extends ApiResource {
|
|
@@ -1589,13 +1610,23 @@ declare class Mailboxes extends ApiResource {
|
|
|
1589
1610
|
abortImportUpload(id: string, fileId: string, options?: MethodOptions): Promise<void>;
|
|
1590
1611
|
}
|
|
1591
1612
|
|
|
1592
|
-
type MemberRole = "owner" | "
|
|
1613
|
+
type MemberRole = "owner" | "admin" | "member";
|
|
1614
|
+
type MemberMailboxAccessScope = "all" | "selected";
|
|
1615
|
+
type MemberMailboxAccess = {
|
|
1616
|
+
readonly scope: MemberMailboxAccessScope;
|
|
1617
|
+
/**
|
|
1618
|
+
* Empty when `scope` is `all`. For `selected`, API-key responses may include only the mailbox
|
|
1619
|
+
* IDs that the key can reach.
|
|
1620
|
+
*/
|
|
1621
|
+
readonly mailbox_ids: readonly string[];
|
|
1622
|
+
};
|
|
1593
1623
|
type Member = {
|
|
1594
1624
|
readonly object: "member";
|
|
1595
1625
|
readonly id: string;
|
|
1596
1626
|
readonly email: string;
|
|
1597
1627
|
readonly name: string;
|
|
1598
1628
|
readonly role: MemberRole;
|
|
1629
|
+
readonly mailbox_access: MemberMailboxAccess;
|
|
1599
1630
|
readonly created_at: string;
|
|
1600
1631
|
};
|
|
1601
1632
|
type ListMembersParams = PaginationParams;
|
|
@@ -1682,6 +1713,9 @@ type Newsletter = {
|
|
|
1682
1713
|
readonly archive_visibility: NewsletterArchiveVisibility;
|
|
1683
1714
|
readonly feed_entry_url: string | null;
|
|
1684
1715
|
readonly styling_mode: NewsletterStylingMode;
|
|
1716
|
+
readonly track_engagement: boolean;
|
|
1717
|
+
readonly opened_count: number | null;
|
|
1718
|
+
readonly clicked_count: number | null;
|
|
1685
1719
|
readonly preflight_status: NewsletterPreflightStatus;
|
|
1686
1720
|
readonly preflight_results: Record<string, unknown>;
|
|
1687
1721
|
readonly send_window_hours: number;
|
|
@@ -1770,6 +1804,7 @@ type CreateNewsletterParams = {
|
|
|
1770
1804
|
readonly archive_visibility?: NewsletterArchiveVisibility | undefined;
|
|
1771
1805
|
readonly feed_entry_url?: string | null | undefined;
|
|
1772
1806
|
readonly styling_mode?: NewsletterStylingMode | undefined;
|
|
1807
|
+
readonly track_engagement?: boolean | undefined;
|
|
1773
1808
|
};
|
|
1774
1809
|
type UpdateNewsletterParams = Partial<CreateNewsletterParams>;
|
|
1775
1810
|
type NewsletterChangelogMedia = {
|
|
@@ -2351,4 +2386,4 @@ declare function verifyWebhook(body: string, headers: WebhookHeaders | Headers,
|
|
|
2351
2386
|
readonly toleranceInSeconds?: number | undefined;
|
|
2352
2387
|
}): Promise<WebhookEvent>;
|
|
2353
2388
|
|
|
2354
|
-
export { type AddSubscriberParams, type AddSubscribersBatchParams, type AddSubscribersBatchResult, type ApiErrorBody, type Audience, type AudienceFeed, AuthenticationError, AuthorizationError, type Automation, type AutomationAction, type AutomationCondition, type AutomationDefinition, type AutomationRun, type AutomationRunStatus, type AutomationRunSummary, type AutomationStatus, type AutomationTrigger, type BookingPage, CONFERENCING_PROVIDER_IDS, type CalendarAvailability, type CalendarAvailabilityParams, type CalendarAvailabilitySlot, type CalendarEvent, type CalendarEventPrivacy, type CalendarEventStatus, type CalendarFreeBusyStatus, type CalendarInvitationLanguage, type CapabilitiesResponse, type CapabilityResourceConstraints, type ConferencingProviderId, ConflictError, ConnectionError, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxDraftParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, DOMAIN_STATUSES, type DataMode, type DeleteCalendarEventParams, type Domain, type DomainDnsRecord, type DomainDnsRecordKey, type DomainDnsRecordSet, type DomainDnsRecordStatus, type DomainRegistrationInfo, type DomainSearchResult, type DomainStatus, type DomainVerificationResult, type DownloadInboxAttachmentParams, type EmailAuthVerdict, type EmailAuthenticationResults, type EmailRecipient, type EmailRecipientInput, type ErrorType, type GetCalendarEventParams, type GetThreadParams, type InboxAttachment, type InboxBodyPart, type InboxBodyValue, type InboxDraft, type InboxDraftRecipient, type InboxEmailHeader, type InboxFullMessage, type InboxKeyword, type InboxMessage, type InboxMessageAction, type InboxMessages, type InboxReplyDraft, type InboxReplyDraftSend, type InboxThread, type InboxThreadAttentionResult, type InboxThreadAttentionState, type InboxThreadSummary, type InboxThreads, type InjectSandboxInboundParams, InternalServerError, type ListAudiencesParams, type ListAutomationsResponse, type ListBookingPagesParams, type ListCalendarEventsParams, type ListDeliveriesParams, type ListDomainsParams, type ListInboxMessagesParams, type ListInboxThreadsParams, type ListMailboxesParams, type ListMembersParams, type ListMessageAnalyticsParams, type ListMessagesParams, type ListNewsletterAssetsParams, type ListNewsletterDomainsParams, type ListNewsletterSenderIdentitiesParams, type ListNewslettersParams, type ListReplyScanResultsParams, type ListScheduledMessagesParams, type ListSubscribersParams, type ListSuppressionsParams, type ListThreadsParams, type ListWebhooksParams, MESSAGE_SOURCES, MESSAGE_STATUSES, type Mailbox, type MailboxAppPassword, type MailboxAppPasswordList, type MailboxAppPasswordPurpose, type MailboxAppPasswordState, type MailboxDeliveryDestination, type MailboxDeliveryRouting, type MailboxExport, type MailboxExportErrorCode, type MailboxExportStatus, type MailboxFolder, type MailboxFolders, type MailboxIdentities, type MailboxIdentity, type MailboxRule, type MailboxRuleAction, type MailboxRuleCondition, type MailboxRuleFolder, type MailboxRuleMatchMode, type MailboxRuleMoveTarget, type MailboxRules, type Member, type MemberRole, type MergeFields, type Message, type MessageAnalytics, type MessageAnalyticsPage, type MessageMetadata, type MessageRuleDisposition, type MessageSource, type MessageStatus, type MethodOptions, type MoveInboxMessageParams, type Newsletter, type NewsletterArchiveVisibility, type NewsletterAsset, type NewsletterAssetContentType, type NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, type NewsletterAssetUpload, type NewsletterBlock, type NewsletterButtonAlign, type NewsletterCalloutVariant, type NewsletterChangelogEntry, type NewsletterChangelogMedia, type NewsletterChangelogTone, type NewsletterColumnContent, type NewsletterColumnImageFit, type NewsletterColumnRatio, type NewsletterCountedUrl, type NewsletterDomain, type NewsletterDomainRecordStatus, type NewsletterDomainStatus, type NewsletterPreflight, type NewsletterPreflightItem, type NewsletterPreflightItemStatus, type NewsletterPreflightStatus, type NewsletterPreview, type NewsletterSenderIdentity, type NewsletterStatus, type NewsletterStylingMode, type NewsletterTestSend, type NewsletterTestSendStatus, type NewsletterUrlBreakdown, type NewsletterUrlSource, NotFoundError, type OneTimeSecretMethodOptions, type OutboundHeader, Page, type PaginatedResponse, type PaginationParams, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, ReconciliationRequiredError, type Recurrence, type RecurrenceFrequency, type RecurrenceNDay, type RegisterDomainParams, type RegisterNewsletterAssetFromUrlParams, type RegistrationContact, type Reminder, type ReplyScan, type ReplyScanCandidate, type ReplyScanResults, type ReplyScanStatus, type ReplyToMessageParams, type ReplyToThreadParams, type RequestOptions, type ResetMailboxPasswordParams, type RotateSecretResponse, type SandboxOutcome, type ScheduleNewsletterParams, type ScheduledMessage, type ScheduledMessageAttachment, type ScheduledMessageList, type ScheduledMessageRecipient, type ScheduledMessageUploadedAttachment, type SearchDomainsParams, type SendMessageParams, type SendNewsletterTestParams, ShipmailClient, type ShipmailConfig, ShipmailError, type StageAttachmentParams, type StagedAttachment, type StagedAttachmentUpload, type StatusResponse, type Subscriber, type SubscriberOutcome, type SubscriberResult, type SubscriberStatus, type Suppression, type TestWebhookResponse, type Thread, type UpdateAudienceFeedParams, type UpdateAudienceParams, type UpdateAutoReplyParams, type UpdateAutomationParams, type UpdateBookingPageParams, type UpdateCalendarEventParams, type UpdateDomainParams, type UpdateInboxMessageParams, type UpdateInboxThreadAttentionParams, type UpdateMailboxDeliveryRoutingParams, type UpdateMailboxFolderParams, type UpdateMailboxParams, type UpdateMailboxRulesParams, type UpdateNewsletterParams, type UpdateScheduledMessageParams, type UpdateSubscriberParams, type UpdateWebhookParams, type UploadNewsletterAssetParams, ValidationError, WEBHOOK_DELIVERY_EVENT_TYPES, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_TYPES, type Webhook, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryEventType, type WebhookDeliveryStatus, type WebhookEvent, type WebhookEventType, WebhookVerificationError, type WebhookWithSecret, type Weekday, ShipmailClient as default, verifyWebhook };
|
|
2389
|
+
export { type AddSubscriberParams, type AddSubscribersBatchParams, type AddSubscribersBatchResult, type ApiErrorBody, type Audience, type AudienceFeed, AuthenticationError, AuthorizationError, type Automation, type AutomationAction, type AutomationCondition, type AutomationDefinition, type AutomationRun, type AutomationRunStatus, type AutomationRunSummary, type AutomationStatus, type AutomationTrigger, type BookingPage, CONFERENCING_PROVIDER_IDS, type CalendarAvailability, type CalendarAvailabilityParams, type CalendarAvailabilitySlot, type CalendarEvent, type CalendarEventMutationResult, type CalendarEventPrivacy, type CalendarEventStatus, type CalendarFreeBusyStatus, type CalendarInvitationLanguage, type CalendarInvitationOutcome, type CapabilitiesResponse, type CapabilityResourceConstraints, type ConferencingProviderId, ConflictError, ConnectionError, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxDraftParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, DOMAIN_STATUSES, type DataMode, type DeleteCalendarEventParams, type Domain, type DomainDnsRecord, type DomainDnsRecordKey, type DomainDnsRecordSet, type DomainDnsRecordStatus, type DomainRegistrationInfo, type DomainSearchResult, type DomainStatus, type DomainVerificationResult, type DownloadInboxAttachmentParams, type EmailAuthVerdict, type EmailAuthenticationResults, type EmailRecipient, type EmailRecipientInput, type ErrorType, type GetCalendarEventParams, type GetThreadParams, type InboxAttachment, type InboxBodyPart, type InboxBodyValue, type InboxDraft, type InboxDraftRecipient, type InboxEmailHeader, type InboxFullMessage, type InboxKeyword, type InboxMessage, type InboxMessageAction, type InboxMessages, type InboxReplyDraft, type InboxReplyDraftSend, type InboxThread, type InboxThreadAttentionResult, type InboxThreadAttentionState, type InboxThreadSummary, type InboxThreads, type InjectSandboxInboundParams, InternalServerError, type ListAudiencesParams, type ListAutomationsResponse, type ListBookingPagesParams, type ListCalendarEventsParams, type ListDeliveriesParams, type ListDomainsParams, type ListInboxMessagesParams, type ListInboxThreadsParams, type ListMailboxesParams, type ListMembersParams, type ListMessageAnalyticsParams, type ListMessagesParams, type ListNewsletterAssetsParams, type ListNewsletterDomainsParams, type ListNewsletterSenderIdentitiesParams, type ListNewslettersParams, type ListReplyScanResultsParams, type ListScheduledMessagesParams, type ListSubscribersParams, type ListSuppressionsParams, type ListThreadsParams, type ListWebhooksParams, MESSAGE_SOURCES, MESSAGE_STATUSES, type Mailbox, type MailboxAppPassword, type MailboxAppPasswordList, type MailboxAppPasswordPurpose, type MailboxAppPasswordState, type MailboxDeliveryDestination, type MailboxDeliveryRouting, type MailboxExport, type MailboxExportErrorCode, type MailboxExportStatus, type MailboxFolder, type MailboxFolders, type MailboxIdentities, type MailboxIdentity, type MailboxRule, type MailboxRuleAction, type MailboxRuleCondition, type MailboxRuleFolder, type MailboxRuleMatchMode, type MailboxRuleMoveTarget, type MailboxRules, type Member, type MemberMailboxAccess, type MemberMailboxAccessScope, type MemberRole, type MergeFields, type Message, type MessageAnalytics, type MessageAnalyticsPage, type MessageMetadata, type MessageRuleDisposition, type MessageSource, type MessageStatus, type MethodOptions, type MoveInboxMessageParams, type Newsletter, type NewsletterArchiveVisibility, type NewsletterAsset, type NewsletterAssetContentType, type NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, type NewsletterAssetUpload, type NewsletterBlock, type NewsletterButtonAlign, type NewsletterCalloutVariant, type NewsletterChangelogEntry, type NewsletterChangelogMedia, type NewsletterChangelogTone, type NewsletterColumnContent, type NewsletterColumnImageFit, type NewsletterColumnRatio, type NewsletterCountedUrl, type NewsletterDomain, type NewsletterDomainRecordStatus, type NewsletterDomainStatus, type NewsletterPreflight, type NewsletterPreflightItem, type NewsletterPreflightItemStatus, type NewsletterPreflightStatus, type NewsletterPreview, type NewsletterSenderIdentity, type NewsletterStatus, type NewsletterStylingMode, type NewsletterTestSend, type NewsletterTestSendStatus, type NewsletterUrlBreakdown, type NewsletterUrlSource, NotFoundError, type OneTimeSecretMethodOptions, type OutboundHeader, Page, type PaginatedResponse, type PaginationParams, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, ReconciliationRequiredError, type Recurrence, type RecurrenceFrequency, type RecurrenceNDay, type RegisterDomainParams, type RegisterNewsletterAssetFromUrlParams, type RegistrationContact, type Reminder, type ReplyScan, type ReplyScanCandidate, type ReplyScanResults, type ReplyScanStatus, type ReplyToMessageParams, type ReplyToThreadParams, type RequestOptions, type ResetMailboxPasswordParams, type RotateSecretResponse, type SandboxOutcome, type ScheduleNewsletterParams, type ScheduledMessage, type ScheduledMessageAttachment, type ScheduledMessageList, type ScheduledMessageRecipient, type ScheduledMessageUploadedAttachment, type SearchDomainsParams, type SendMessageParams, type SendNewsletterTestParams, ShipmailClient, type ShipmailConfig, ShipmailError, type StageAttachmentParams, type StagedAttachment, type StagedAttachmentUpload, type StatusResponse, type Subscriber, type SubscriberOutcome, type SubscriberResult, type SubscriberStatus, type Suppression, type TestWebhookResponse, type Thread, type UpdateAudienceFeedParams, type UpdateAudienceParams, type UpdateAutoReplyParams, type UpdateAutomationParams, type UpdateBookingPageParams, type UpdateCalendarEventParams, type UpdateDomainParams, type UpdateInboxMessageParams, type UpdateInboxThreadAttentionParams, type UpdateMailboxDeliveryRoutingParams, type UpdateMailboxFolderParams, type UpdateMailboxParams, type UpdateMailboxRulesParams, type UpdateNewsletterParams, type UpdateScheduledMessageParams, type UpdateSubscriberParams, type UpdateWebhookParams, type UploadNewsletterAssetParams, ValidationError, WEBHOOK_DELIVERY_EVENT_TYPES, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_TYPES, type Webhook, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryEventType, type WebhookDeliveryStatus, type WebhookEvent, type WebhookEventType, WebhookVerificationError, type WebhookWithSecret, type Weekday, ShipmailClient as default, verifyWebhook };
|
package/dist/index.js
CHANGED
|
@@ -1614,7 +1614,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1614
1614
|
};
|
|
1615
1615
|
|
|
1616
1616
|
// src/version.ts
|
|
1617
|
-
var VERSION = "0.6.
|
|
1617
|
+
var VERSION = "0.6.2";
|
|
1618
1618
|
|
|
1619
1619
|
// src/client.ts
|
|
1620
1620
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|
|
@@ -1822,7 +1822,9 @@ var WEBHOOK_EVENT_TYPES = [
|
|
|
1822
1822
|
"reply.overdue",
|
|
1823
1823
|
"conversation.needs_action",
|
|
1824
1824
|
"calendar.event_starting",
|
|
1825
|
-
"booking.created"
|
|
1825
|
+
"booking.created",
|
|
1826
|
+
"subscriber.added",
|
|
1827
|
+
"newsletter.sent"
|
|
1826
1828
|
];
|
|
1827
1829
|
var WEBHOOK_DELIVERY_EVENT_TYPES = ["webhook.test", ...WEBHOOK_EVENT_TYPES];
|
|
1828
1830
|
var DOMAIN_STATUSES = ["pending", "verifying", "verified", "degraded", "failed"];
|