shipmail 0.4.22 → 0.4.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-key-scopes.cjs +1 -3
- package/dist/api-key-scopes.cjs.map +1 -1
- package/dist/api-key-scopes.d.cts +1 -1
- package/dist/api-key-scopes.d.ts +1 -1
- package/dist/api-key-scopes.js +1 -3
- package/dist/api-key-scopes.js.map +1 -1
- package/dist/index.cjs +17 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -10
- package/dist/index.d.ts +47 -10
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -55,9 +55,9 @@ type EmailRecipient = {
|
|
|
55
55
|
readonly name?: string | null | undefined;
|
|
56
56
|
};
|
|
57
57
|
type EmailRecipientInput = EmailRecipient | string;
|
|
58
|
-
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "
|
|
58
|
+
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
|
|
59
59
|
type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
|
|
60
|
-
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "
|
|
60
|
+
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
|
|
61
61
|
type WebhookDeliveryEventType = (typeof WEBHOOK_DELIVERY_EVENT_TYPES)[number];
|
|
62
62
|
type StatusResponse = {
|
|
63
63
|
readonly status: string;
|
|
@@ -1350,6 +1350,7 @@ type MailboxForwarding = {
|
|
|
1350
1350
|
readonly id: string;
|
|
1351
1351
|
readonly mailbox_id: string;
|
|
1352
1352
|
readonly destination: string;
|
|
1353
|
+
readonly sender: string | null;
|
|
1353
1354
|
readonly status: "pending" | "active";
|
|
1354
1355
|
readonly verification_sent_at: string | null;
|
|
1355
1356
|
readonly verified_at: string | null;
|
|
@@ -1363,6 +1364,7 @@ type MailboxForwardingList = {
|
|
|
1363
1364
|
};
|
|
1364
1365
|
type CreateMailboxForwardingParams = {
|
|
1365
1366
|
readonly destination: string;
|
|
1367
|
+
readonly sender?: string | null | undefined;
|
|
1366
1368
|
};
|
|
1367
1369
|
type CreateMailboxBaseParams = {
|
|
1368
1370
|
readonly domain_id: string;
|
|
@@ -1443,6 +1445,46 @@ type UpdateAutoReplyParams = {
|
|
|
1443
1445
|
readonly from_date?: string | null | undefined;
|
|
1444
1446
|
readonly to_date?: string | null | undefined;
|
|
1445
1447
|
};
|
|
1448
|
+
type MailboxDeliveryDestination = {
|
|
1449
|
+
readonly id: string;
|
|
1450
|
+
readonly address: string;
|
|
1451
|
+
readonly display_name: string | null;
|
|
1452
|
+
readonly status: "available" | "out_of_office" | "suspended" | "archived" | "unavailable";
|
|
1453
|
+
readonly out_of_office_end_at: string | null;
|
|
1454
|
+
readonly responsible_member_count: number;
|
|
1455
|
+
readonly push_ready_member_count: number;
|
|
1456
|
+
};
|
|
1457
|
+
type MailboxDeliveryRouting = {
|
|
1458
|
+
readonly object: "mailbox_delivery_routing";
|
|
1459
|
+
readonly mailbox_id: string;
|
|
1460
|
+
readonly source_address: string;
|
|
1461
|
+
readonly destinations: readonly MailboxDeliveryDestination[];
|
|
1462
|
+
} & ({
|
|
1463
|
+
readonly mode: "keep";
|
|
1464
|
+
} | {
|
|
1465
|
+
readonly mode: "fixed";
|
|
1466
|
+
readonly destination_mailbox_id: string;
|
|
1467
|
+
readonly fallback_mailbox_id: string;
|
|
1468
|
+
readonly activation_state: "pending" | "active" | "failed";
|
|
1469
|
+
readonly activation_error: string | null;
|
|
1470
|
+
} | {
|
|
1471
|
+
readonly mode: "round_robin";
|
|
1472
|
+
readonly destination_mailbox_ids: readonly string[];
|
|
1473
|
+
readonly fallback_mailbox_id: string;
|
|
1474
|
+
readonly activation_state: "pending" | "active" | "failed";
|
|
1475
|
+
readonly activation_error: string | null;
|
|
1476
|
+
});
|
|
1477
|
+
type UpdateMailboxDeliveryRoutingParams = {
|
|
1478
|
+
readonly mode: "keep";
|
|
1479
|
+
} | {
|
|
1480
|
+
readonly mode: "fixed";
|
|
1481
|
+
readonly destination_mailbox_id: string;
|
|
1482
|
+
readonly fallback_mailbox_id: string;
|
|
1483
|
+
} | {
|
|
1484
|
+
readonly mode: "round_robin";
|
|
1485
|
+
readonly destination_mailbox_ids: readonly string[];
|
|
1486
|
+
readonly fallback_mailbox_id: string;
|
|
1487
|
+
};
|
|
1446
1488
|
type UpdateSpamFilterParams = {
|
|
1447
1489
|
readonly threshold: number;
|
|
1448
1490
|
};
|
|
@@ -1492,6 +1534,8 @@ declare class Mailboxes extends ApiResource {
|
|
|
1492
1534
|
createForwarding(id: string, params: CreateMailboxForwardingParams, options?: MethodOptions): Promise<MailboxForwarding>;
|
|
1493
1535
|
deleteForwarding(id: string, forwardingId: string, options?: MethodOptions): Promise<void>;
|
|
1494
1536
|
updateAutoReply(id: string, params: UpdateAutoReplyParams, options?: MethodOptions): Promise<Mailbox>;
|
|
1537
|
+
getDeliveryRouting(id: string, options?: MethodOptions): Promise<MailboxDeliveryRouting>;
|
|
1538
|
+
updateDeliveryRouting(id: string, params: UpdateMailboxDeliveryRoutingParams, options?: MethodOptions): Promise<MailboxDeliveryRouting>;
|
|
1495
1539
|
updateSpamFilter(id: string, params: UpdateSpamFilterParams, options?: MethodOptions): Promise<Mailbox>;
|
|
1496
1540
|
createImport(id: string, params: CreateMailboxImportParams, options?: MethodOptions): Promise<MailboxImport>;
|
|
1497
1541
|
listImports(id: string, options?: MethodOptions): Promise<MailboxImports>;
|
|
@@ -1512,21 +1556,14 @@ type Member = {
|
|
|
1512
1556
|
readonly email: string;
|
|
1513
1557
|
readonly name: string;
|
|
1514
1558
|
readonly role: MemberRole;
|
|
1515
|
-
readonly away_from: string | null;
|
|
1516
|
-
readonly away_until: string | null;
|
|
1517
1559
|
readonly created_at: string;
|
|
1518
1560
|
};
|
|
1519
|
-
type UpdateMemberParams = {
|
|
1520
|
-
readonly away_from: string | null;
|
|
1521
|
-
readonly away_until: string | null;
|
|
1522
|
-
};
|
|
1523
1561
|
type ListMembersParams = PaginationParams;
|
|
1524
1562
|
|
|
1525
1563
|
declare class Members extends ApiResource {
|
|
1526
1564
|
list(params?: ListMembersParams, options?: MethodOptions): Promise<PaginatedResponse<Member>>;
|
|
1527
1565
|
listAutoPaginating(params?: Omit<ListMembersParams, "cursor">): Page<Member>;
|
|
1528
1566
|
get(id: string, options?: MethodOptions): Promise<Member>;
|
|
1529
|
-
update(id: string, params: UpdateMemberParams, options?: MethodOptions): Promise<Member>;
|
|
1530
1567
|
}
|
|
1531
1568
|
|
|
1532
1569
|
declare class Messages extends ApiResource {
|
|
@@ -2348,4 +2385,4 @@ declare function verifyWebhook(body: string, headers: WebhookHeaders | Headers,
|
|
|
2348
2385
|
readonly toleranceInSeconds?: number | undefined;
|
|
2349
2386
|
}): Promise<WebhookEvent>;
|
|
2350
2387
|
|
|
2351
|
-
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 ConsumePartnerMailboxCredentialGrantParams, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreatePartnerOrganizationParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, type CreatedPartnerOrganization, 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 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 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 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 PartnerDataClassification, type PartnerMailboxCredential, type PartnerMailboxCredentialGrant, type PartnerMailboxCredentialGrantList, type PartnerOrganization, type PartnerOrganizationList, type PartnerOrganizationStatus, type PartnerOwnershipInvitation, type PartnerUsage, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, 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 TransactionalRecipientBudget, type UpdateAudienceFeedParams, type UpdateAudienceParams, type UpdateAutoReplyParams, type UpdateAutomationParams, type UpdateBookingPageParams, type UpdateCalendarEventParams, type UpdateDomainParams, type UpdateInboxMessageParams, type UpdateInboxThreadAttentionParams, type
|
|
2388
|
+
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 ConsumePartnerMailboxCredentialGrantParams, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreatePartnerOrganizationParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, type CreatedPartnerOrganization, 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 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 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 PartnerDataClassification, type PartnerMailboxCredential, type PartnerMailboxCredentialGrant, type PartnerMailboxCredentialGrantList, type PartnerOrganization, type PartnerOrganizationList, type PartnerOrganizationStatus, type PartnerOwnershipInvitation, type PartnerUsage, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, 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 TransactionalRecipientBudget, 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 UpdatePartnerOrganizationParams, type UpdateScheduledMessageParams, type UpdateSpamFilterParams, 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
|
@@ -55,9 +55,9 @@ type EmailRecipient = {
|
|
|
55
55
|
readonly name?: string | null | undefined;
|
|
56
56
|
};
|
|
57
57
|
type EmailRecipientInput = EmailRecipient | string;
|
|
58
|
-
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "
|
|
58
|
+
declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
|
|
59
59
|
type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
|
|
60
|
-
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "
|
|
60
|
+
declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
|
|
61
61
|
type WebhookDeliveryEventType = (typeof WEBHOOK_DELIVERY_EVENT_TYPES)[number];
|
|
62
62
|
type StatusResponse = {
|
|
63
63
|
readonly status: string;
|
|
@@ -1350,6 +1350,7 @@ type MailboxForwarding = {
|
|
|
1350
1350
|
readonly id: string;
|
|
1351
1351
|
readonly mailbox_id: string;
|
|
1352
1352
|
readonly destination: string;
|
|
1353
|
+
readonly sender: string | null;
|
|
1353
1354
|
readonly status: "pending" | "active";
|
|
1354
1355
|
readonly verification_sent_at: string | null;
|
|
1355
1356
|
readonly verified_at: string | null;
|
|
@@ -1363,6 +1364,7 @@ type MailboxForwardingList = {
|
|
|
1363
1364
|
};
|
|
1364
1365
|
type CreateMailboxForwardingParams = {
|
|
1365
1366
|
readonly destination: string;
|
|
1367
|
+
readonly sender?: string | null | undefined;
|
|
1366
1368
|
};
|
|
1367
1369
|
type CreateMailboxBaseParams = {
|
|
1368
1370
|
readonly domain_id: string;
|
|
@@ -1443,6 +1445,46 @@ type UpdateAutoReplyParams = {
|
|
|
1443
1445
|
readonly from_date?: string | null | undefined;
|
|
1444
1446
|
readonly to_date?: string | null | undefined;
|
|
1445
1447
|
};
|
|
1448
|
+
type MailboxDeliveryDestination = {
|
|
1449
|
+
readonly id: string;
|
|
1450
|
+
readonly address: string;
|
|
1451
|
+
readonly display_name: string | null;
|
|
1452
|
+
readonly status: "available" | "out_of_office" | "suspended" | "archived" | "unavailable";
|
|
1453
|
+
readonly out_of_office_end_at: string | null;
|
|
1454
|
+
readonly responsible_member_count: number;
|
|
1455
|
+
readonly push_ready_member_count: number;
|
|
1456
|
+
};
|
|
1457
|
+
type MailboxDeliveryRouting = {
|
|
1458
|
+
readonly object: "mailbox_delivery_routing";
|
|
1459
|
+
readonly mailbox_id: string;
|
|
1460
|
+
readonly source_address: string;
|
|
1461
|
+
readonly destinations: readonly MailboxDeliveryDestination[];
|
|
1462
|
+
} & ({
|
|
1463
|
+
readonly mode: "keep";
|
|
1464
|
+
} | {
|
|
1465
|
+
readonly mode: "fixed";
|
|
1466
|
+
readonly destination_mailbox_id: string;
|
|
1467
|
+
readonly fallback_mailbox_id: string;
|
|
1468
|
+
readonly activation_state: "pending" | "active" | "failed";
|
|
1469
|
+
readonly activation_error: string | null;
|
|
1470
|
+
} | {
|
|
1471
|
+
readonly mode: "round_robin";
|
|
1472
|
+
readonly destination_mailbox_ids: readonly string[];
|
|
1473
|
+
readonly fallback_mailbox_id: string;
|
|
1474
|
+
readonly activation_state: "pending" | "active" | "failed";
|
|
1475
|
+
readonly activation_error: string | null;
|
|
1476
|
+
});
|
|
1477
|
+
type UpdateMailboxDeliveryRoutingParams = {
|
|
1478
|
+
readonly mode: "keep";
|
|
1479
|
+
} | {
|
|
1480
|
+
readonly mode: "fixed";
|
|
1481
|
+
readonly destination_mailbox_id: string;
|
|
1482
|
+
readonly fallback_mailbox_id: string;
|
|
1483
|
+
} | {
|
|
1484
|
+
readonly mode: "round_robin";
|
|
1485
|
+
readonly destination_mailbox_ids: readonly string[];
|
|
1486
|
+
readonly fallback_mailbox_id: string;
|
|
1487
|
+
};
|
|
1446
1488
|
type UpdateSpamFilterParams = {
|
|
1447
1489
|
readonly threshold: number;
|
|
1448
1490
|
};
|
|
@@ -1492,6 +1534,8 @@ declare class Mailboxes extends ApiResource {
|
|
|
1492
1534
|
createForwarding(id: string, params: CreateMailboxForwardingParams, options?: MethodOptions): Promise<MailboxForwarding>;
|
|
1493
1535
|
deleteForwarding(id: string, forwardingId: string, options?: MethodOptions): Promise<void>;
|
|
1494
1536
|
updateAutoReply(id: string, params: UpdateAutoReplyParams, options?: MethodOptions): Promise<Mailbox>;
|
|
1537
|
+
getDeliveryRouting(id: string, options?: MethodOptions): Promise<MailboxDeliveryRouting>;
|
|
1538
|
+
updateDeliveryRouting(id: string, params: UpdateMailboxDeliveryRoutingParams, options?: MethodOptions): Promise<MailboxDeliveryRouting>;
|
|
1495
1539
|
updateSpamFilter(id: string, params: UpdateSpamFilterParams, options?: MethodOptions): Promise<Mailbox>;
|
|
1496
1540
|
createImport(id: string, params: CreateMailboxImportParams, options?: MethodOptions): Promise<MailboxImport>;
|
|
1497
1541
|
listImports(id: string, options?: MethodOptions): Promise<MailboxImports>;
|
|
@@ -1512,21 +1556,14 @@ type Member = {
|
|
|
1512
1556
|
readonly email: string;
|
|
1513
1557
|
readonly name: string;
|
|
1514
1558
|
readonly role: MemberRole;
|
|
1515
|
-
readonly away_from: string | null;
|
|
1516
|
-
readonly away_until: string | null;
|
|
1517
1559
|
readonly created_at: string;
|
|
1518
1560
|
};
|
|
1519
|
-
type UpdateMemberParams = {
|
|
1520
|
-
readonly away_from: string | null;
|
|
1521
|
-
readonly away_until: string | null;
|
|
1522
|
-
};
|
|
1523
1561
|
type ListMembersParams = PaginationParams;
|
|
1524
1562
|
|
|
1525
1563
|
declare class Members extends ApiResource {
|
|
1526
1564
|
list(params?: ListMembersParams, options?: MethodOptions): Promise<PaginatedResponse<Member>>;
|
|
1527
1565
|
listAutoPaginating(params?: Omit<ListMembersParams, "cursor">): Page<Member>;
|
|
1528
1566
|
get(id: string, options?: MethodOptions): Promise<Member>;
|
|
1529
|
-
update(id: string, params: UpdateMemberParams, options?: MethodOptions): Promise<Member>;
|
|
1530
1567
|
}
|
|
1531
1568
|
|
|
1532
1569
|
declare class Messages extends ApiResource {
|
|
@@ -2348,4 +2385,4 @@ declare function verifyWebhook(body: string, headers: WebhookHeaders | Headers,
|
|
|
2348
2385
|
readonly toleranceInSeconds?: number | undefined;
|
|
2349
2386
|
}): Promise<WebhookEvent>;
|
|
2350
2387
|
|
|
2351
|
-
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 ConsumePartnerMailboxCredentialGrantParams, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreatePartnerOrganizationParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, type CreatedPartnerOrganization, 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 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 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 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 PartnerDataClassification, type PartnerMailboxCredential, type PartnerMailboxCredentialGrant, type PartnerMailboxCredentialGrantList, type PartnerOrganization, type PartnerOrganizationList, type PartnerOrganizationStatus, type PartnerOwnershipInvitation, type PartnerUsage, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, 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 TransactionalRecipientBudget, type UpdateAudienceFeedParams, type UpdateAudienceParams, type UpdateAutoReplyParams, type UpdateAutomationParams, type UpdateBookingPageParams, type UpdateCalendarEventParams, type UpdateDomainParams, type UpdateInboxMessageParams, type UpdateInboxThreadAttentionParams, type
|
|
2388
|
+
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 ConsumePartnerMailboxCredentialGrantParams, type CreateAudienceParams, type CreateAutomationParams, type CreateBookingPageParams, type CreateCalendarEventParams, type CreateDomainParams, type CreateInboxReplyDraftParams, type CreateMailboxAppPasswordParams, type CreateMailboxFolderParams, type CreateMailboxParams, type CreateNewsletterFromChangelogParams, type CreateNewsletterParams, type CreatePartnerOrganizationParams, type CreateReplyScanParams, type CreateWebhookParams, type CreatedMailboxAppPassword, type CreatedPartnerOrganization, 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 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 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 PartnerDataClassification, type PartnerMailboxCredential, type PartnerMailboxCredentialGrant, type PartnerMailboxCredentialGrantList, type PartnerOrganization, type PartnerOrganizationList, type PartnerOrganizationStatus, type PartnerOwnershipInvitation, type PartnerUsage, type PrepareNewsletterAssetUploadParams, type PrepareStagedAttachmentUploadParams, QuotaExceededError, RateLimitError, 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 TransactionalRecipientBudget, 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 UpdatePartnerOrganizationParams, type UpdateScheduledMessageParams, type UpdateSpamFilterParams, 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
|
@@ -21,7 +21,6 @@ var API_KEY_SCOPES = [
|
|
|
21
21
|
"mailbox_rules:read",
|
|
22
22
|
"mailbox_rules:write",
|
|
23
23
|
"members:read",
|
|
24
|
-
"members:write",
|
|
25
24
|
"messages:read",
|
|
26
25
|
"messages:write",
|
|
27
26
|
"drafts:write",
|
|
@@ -60,8 +59,7 @@ var API_KEY_SCOPE_DESCRIPTIONS = {
|
|
|
60
59
|
"mailbox_forwarding:write": "Create and remove forwarding destinations for allowed mailboxes.",
|
|
61
60
|
"mailbox_rules:read": "List deterministic server-side rules for allowed mailboxes.",
|
|
62
61
|
"mailbox_rules:write": "Create, replace, and remove deterministic rules for allowed mailboxes.",
|
|
63
|
-
"members:read": "List and retrieve organization members
|
|
64
|
-
"members:write": "Update organization member away windows.",
|
|
62
|
+
"members:read": "List and retrieve organization members.",
|
|
65
63
|
"messages:read": "List and retrieve messages.",
|
|
66
64
|
"messages:write": "Update, move, delete, and inject sandbox messages.",
|
|
67
65
|
"drafts:write": "Create agent-safe reply drafts with server-derived recipients.",
|
|
@@ -1003,6 +1001,21 @@ var Mailboxes = class extends ApiResource {
|
|
|
1003
1001
|
methodOptions: options
|
|
1004
1002
|
});
|
|
1005
1003
|
}
|
|
1004
|
+
getDeliveryRouting(id, options) {
|
|
1005
|
+
return this.client.request({
|
|
1006
|
+
method: "GET",
|
|
1007
|
+
path: `/mailboxes/${encodeURIComponent(id)}/delivery-routing`,
|
|
1008
|
+
methodOptions: options
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
updateDeliveryRouting(id, params, options) {
|
|
1012
|
+
return this.client.request({
|
|
1013
|
+
method: "PATCH",
|
|
1014
|
+
path: `/mailboxes/${encodeURIComponent(id)}/delivery-routing`,
|
|
1015
|
+
body: params,
|
|
1016
|
+
methodOptions: options
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1006
1019
|
updateSpamFilter(id, params, options) {
|
|
1007
1020
|
return this.client.request({
|
|
1008
1021
|
method: "PATCH",
|
|
@@ -1110,14 +1123,6 @@ var Members = class extends ApiResource {
|
|
|
1110
1123
|
methodOptions: options
|
|
1111
1124
|
});
|
|
1112
1125
|
}
|
|
1113
|
-
update(id, params, options) {
|
|
1114
|
-
return this.client.request({
|
|
1115
|
-
method: "PATCH",
|
|
1116
|
-
path: `/members/${encodeURIComponent(id)}`,
|
|
1117
|
-
body: params,
|
|
1118
|
-
methodOptions: options
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
1126
|
};
|
|
1122
1127
|
|
|
1123
1128
|
// src/resources/messages.ts
|
|
@@ -1684,7 +1689,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1684
1689
|
};
|
|
1685
1690
|
|
|
1686
1691
|
// src/version.ts
|
|
1687
|
-
var VERSION = "0.4.
|
|
1692
|
+
var VERSION = "0.4.24";
|
|
1688
1693
|
|
|
1689
1694
|
// src/client.ts
|
|
1690
1695
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|
|
@@ -1861,7 +1866,6 @@ var WEBHOOK_EVENT_TYPES = [
|
|
|
1861
1866
|
"message.bounced",
|
|
1862
1867
|
"message.complained",
|
|
1863
1868
|
"mailbox.rule_matched",
|
|
1864
|
-
"member.away_updated",
|
|
1865
1869
|
"domain.verified",
|
|
1866
1870
|
"domain.verification_failed",
|
|
1867
1871
|
"domain.degraded",
|