shipmail 0.4.12 → 0.4.14
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/LICENSE +1 -1
- package/README.md +13 -13
- package/dist/api-key-scopes.cjs +4 -0
- 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 +4 -0
- package/dist/api-key-scopes.js.map +1 -1
- package/dist/index.cjs +71 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +139 -23
- package/dist/index.d.ts +139 -23
- package/dist/index.js +69 -23
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -4,16 +4,16 @@ declare class Page<T> implements AsyncIterable<T> {
|
|
|
4
4
|
private readonly client;
|
|
5
5
|
private readonly path;
|
|
6
6
|
private readonly query;
|
|
7
|
-
constructor(client:
|
|
7
|
+
constructor(client: ShipmailClient, path: string, query: Record<string, string | number | boolean | undefined>);
|
|
8
8
|
[Symbol.asyncIterator](): AsyncIterator<T>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare abstract class ApiResource {
|
|
12
|
-
protected readonly client:
|
|
13
|
-
constructor(client:
|
|
12
|
+
protected readonly client: ShipmailClient;
|
|
13
|
+
constructor(client: ShipmailClient);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
type
|
|
16
|
+
type ShipmailConfig = {
|
|
17
17
|
readonly apiKey: string;
|
|
18
18
|
readonly baseUrl?: string | undefined;
|
|
19
19
|
readonly maxRetries?: number | undefined;
|
|
@@ -196,7 +196,7 @@ declare class Subscribers extends ApiResource {
|
|
|
196
196
|
declare class Audiences extends ApiResource {
|
|
197
197
|
readonly feeds: AudienceFeeds;
|
|
198
198
|
readonly subscribers: Subscribers;
|
|
199
|
-
constructor(client:
|
|
199
|
+
constructor(client: ShipmailClient);
|
|
200
200
|
create(params: CreateAudienceParams, options?: MethodOptions): Promise<Audience>;
|
|
201
201
|
list(params?: ListAudiencesParams, options?: MethodOptions): Promise<PaginatedResponse<Audience>>;
|
|
202
202
|
listAutoPaginating(params?: Omit<ListAudiencesParams, "cursor">): Page<Audience>;
|
|
@@ -205,6 +205,121 @@ declare class Audiences extends ApiResource {
|
|
|
205
205
|
delete(id: string, options?: MethodOptions): Promise<void>;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
type AutomationTrigger = {
|
|
209
|
+
readonly type: "email_received";
|
|
210
|
+
readonly mailbox_ids: readonly string[];
|
|
211
|
+
} | {
|
|
212
|
+
readonly type: "scheduled";
|
|
213
|
+
readonly cron: string;
|
|
214
|
+
readonly time_zone: string;
|
|
215
|
+
} | {
|
|
216
|
+
readonly type: "manual";
|
|
217
|
+
readonly mailbox_ids: readonly string[];
|
|
218
|
+
} | {
|
|
219
|
+
readonly type: "thread_state";
|
|
220
|
+
readonly mailbox_ids: readonly string[];
|
|
221
|
+
readonly state: "no_reply_after";
|
|
222
|
+
readonly duration_minutes: number;
|
|
223
|
+
};
|
|
224
|
+
type AutomationCondition = {
|
|
225
|
+
readonly type: "sender_address";
|
|
226
|
+
readonly addresses: readonly string[];
|
|
227
|
+
} | {
|
|
228
|
+
readonly type: "sender_domain";
|
|
229
|
+
readonly domains: readonly string[];
|
|
230
|
+
} | {
|
|
231
|
+
readonly type: "subject_contains";
|
|
232
|
+
readonly values: readonly string[];
|
|
233
|
+
} | {
|
|
234
|
+
readonly type: "has_attachment";
|
|
235
|
+
readonly value: boolean;
|
|
236
|
+
} | {
|
|
237
|
+
readonly type: "semantic_positive_match";
|
|
238
|
+
readonly instruction: string;
|
|
239
|
+
readonly minimum_confidence: number;
|
|
240
|
+
};
|
|
241
|
+
type AutomationAction = {
|
|
242
|
+
readonly type: "create_reply_draft";
|
|
243
|
+
readonly instruction: string;
|
|
244
|
+
} | {
|
|
245
|
+
readonly type: "reply_to_trigger_sender";
|
|
246
|
+
readonly instruction: string;
|
|
247
|
+
} | {
|
|
248
|
+
readonly type: "archive_trigger_message";
|
|
249
|
+
} | {
|
|
250
|
+
readonly type: "move_trigger_message";
|
|
251
|
+
readonly mailbox_id: string;
|
|
252
|
+
readonly destination_folder_id: string;
|
|
253
|
+
} | {
|
|
254
|
+
readonly type: "set_trigger_read_state";
|
|
255
|
+
readonly is_read: boolean;
|
|
256
|
+
} | {
|
|
257
|
+
readonly type: "set_trigger_star_state";
|
|
258
|
+
readonly is_starred: boolean;
|
|
259
|
+
} | {
|
|
260
|
+
readonly type: "generate_mail_report";
|
|
261
|
+
readonly metric: "received" | "sent" | "unread";
|
|
262
|
+
readonly lookback_minutes: number;
|
|
263
|
+
};
|
|
264
|
+
type AutomationDefinition = {
|
|
265
|
+
readonly trigger: AutomationTrigger;
|
|
266
|
+
readonly conditions: readonly AutomationCondition[];
|
|
267
|
+
readonly actions: readonly AutomationAction[];
|
|
268
|
+
readonly mode: "draft" | "send";
|
|
269
|
+
readonly scope: {
|
|
270
|
+
readonly mailbox_ids: readonly string[];
|
|
271
|
+
readonly calendar_addresses: readonly string[];
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
type AutomationStatus = "active" | "paused" | "disabled";
|
|
275
|
+
type AutomationRunStatus = "queued" | "running" | "completed" | "failed" | "degraded" | "cancelled" | "skipped";
|
|
276
|
+
type AutomationRunSummary = {
|
|
277
|
+
readonly object: "automation_run";
|
|
278
|
+
readonly id: string;
|
|
279
|
+
readonly status: AutomationRunStatus;
|
|
280
|
+
readonly error_code: string | null;
|
|
281
|
+
readonly created_at: string;
|
|
282
|
+
};
|
|
283
|
+
type AutomationRun = {
|
|
284
|
+
readonly object: "automation_run";
|
|
285
|
+
readonly id: string;
|
|
286
|
+
readonly automation_id: string;
|
|
287
|
+
readonly status: "queued";
|
|
288
|
+
};
|
|
289
|
+
type Automation = {
|
|
290
|
+
readonly object: "automation";
|
|
291
|
+
readonly id: string;
|
|
292
|
+
readonly name: string;
|
|
293
|
+
readonly status: AutomationStatus;
|
|
294
|
+
readonly version_id: string;
|
|
295
|
+
readonly version: number;
|
|
296
|
+
readonly definition: AutomationDefinition;
|
|
297
|
+
readonly last_run: AutomationRunSummary | null;
|
|
298
|
+
readonly next_run_at: string | null;
|
|
299
|
+
readonly created_at: string;
|
|
300
|
+
readonly updated_at: string;
|
|
301
|
+
};
|
|
302
|
+
type CreateAutomationParams = {
|
|
303
|
+
readonly name: string;
|
|
304
|
+
readonly definition: AutomationDefinition;
|
|
305
|
+
};
|
|
306
|
+
type UpdateAutomationParams = {
|
|
307
|
+
readonly name?: string | undefined;
|
|
308
|
+
readonly definition?: AutomationDefinition | undefined;
|
|
309
|
+
readonly status?: AutomationStatus | undefined;
|
|
310
|
+
};
|
|
311
|
+
type ListAutomationsResponse = {
|
|
312
|
+
readonly data: readonly Automation[];
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
declare class Automations extends ApiResource {
|
|
316
|
+
list(options?: MethodOptions): Promise<ListAutomationsResponse>;
|
|
317
|
+
create(params: CreateAutomationParams, options?: MethodOptions): Promise<Automation>;
|
|
318
|
+
get(id: string, options?: MethodOptions): Promise<Automation>;
|
|
319
|
+
update(id: string, params: UpdateAutomationParams, options?: MethodOptions): Promise<Automation>;
|
|
320
|
+
run(id: string, options?: MethodOptions): Promise<AutomationRun>;
|
|
321
|
+
}
|
|
322
|
+
|
|
208
323
|
declare const CONFERENCING_PROVIDER_IDS: readonly ["zoom", "google_meet"];
|
|
209
324
|
type ConferencingProviderId = (typeof CONFERENCING_PROVIDER_IDS)[number];
|
|
210
325
|
type BookingPage = {
|
|
@@ -415,7 +530,7 @@ declare class CalendarEvents extends ApiResource {
|
|
|
415
530
|
}
|
|
416
531
|
declare class Calendar extends ApiResource {
|
|
417
532
|
readonly events: CalendarEvents;
|
|
418
|
-
constructor(client:
|
|
533
|
+
constructor(client: ShipmailClient);
|
|
419
534
|
availability(params: CalendarAvailabilityParams, options?: MethodOptions): Promise<CalendarAvailability>;
|
|
420
535
|
}
|
|
421
536
|
|
|
@@ -1701,7 +1816,7 @@ declare class Newsletters extends ApiResource {
|
|
|
1701
1816
|
readonly domains: NewsletterDomains;
|
|
1702
1817
|
readonly senderIdentities: NewsletterSenderIdentities;
|
|
1703
1818
|
readonly assets: NewsletterAssets;
|
|
1704
|
-
constructor(client:
|
|
1819
|
+
constructor(client: ShipmailClient);
|
|
1705
1820
|
create(params: CreateNewsletterParams, options?: MethodOptions): Promise<Newsletter>;
|
|
1706
1821
|
createFromChangelog(params: CreateNewsletterFromChangelogParams, options?: MethodOptions): Promise<Newsletter>;
|
|
1707
1822
|
list(params?: ListNewslettersParams, options?: MethodOptions): Promise<PaginatedResponse<Newsletter>>;
|
|
@@ -2019,9 +2134,9 @@ type RequestOptions = {
|
|
|
2019
2134
|
readonly methodOptions?: MethodOptions | undefined;
|
|
2020
2135
|
};
|
|
2021
2136
|
/**
|
|
2022
|
-
* Client for the
|
|
2137
|
+
* Client for the Shipmail API. Handles authentication, retries, and resource access.
|
|
2023
2138
|
*/
|
|
2024
|
-
declare class
|
|
2139
|
+
declare class ShipmailClient {
|
|
2025
2140
|
private readonly apiKey;
|
|
2026
2141
|
private readonly baseUrl;
|
|
2027
2142
|
private readonly maxRetries;
|
|
@@ -2030,6 +2145,7 @@ declare class ShipMailClient {
|
|
|
2030
2145
|
private readonly defaultHeaders;
|
|
2031
2146
|
private readonly organizationId;
|
|
2032
2147
|
readonly audiences: Audiences;
|
|
2148
|
+
readonly automations: Automations;
|
|
2033
2149
|
readonly bookingPages: BookingPages;
|
|
2034
2150
|
readonly capabilities: Capabilities;
|
|
2035
2151
|
readonly calendar: Calendar;
|
|
@@ -2045,17 +2161,17 @@ declare class ShipMailClient {
|
|
|
2045
2161
|
readonly webhooks: Webhooks;
|
|
2046
2162
|
readonly status: Status;
|
|
2047
2163
|
/**
|
|
2048
|
-
* Create a new
|
|
2164
|
+
* Create a new Shipmail client.
|
|
2049
2165
|
* @param config - API key string or full configuration object.
|
|
2050
2166
|
*/
|
|
2051
|
-
constructor(config: string |
|
|
2167
|
+
constructor(config: string | ShipmailConfig);
|
|
2052
2168
|
request<T>(options: RequestOptions): Promise<T>;
|
|
2053
2169
|
requestBytes(options: RequestOptions): Promise<Uint8Array>;
|
|
2054
2170
|
private requestWithParser;
|
|
2055
2171
|
private buildUrl;
|
|
2056
2172
|
}
|
|
2057
2173
|
|
|
2058
|
-
declare class
|
|
2174
|
+
declare class ShipmailError extends Error {
|
|
2059
2175
|
readonly status: number | undefined;
|
|
2060
2176
|
readonly type: ErrorType | undefined;
|
|
2061
2177
|
readonly requestId: string | undefined;
|
|
@@ -2067,13 +2183,13 @@ declare class ShipMailError extends Error {
|
|
|
2067
2183
|
readonly retryable?: boolean | undefined;
|
|
2068
2184
|
});
|
|
2069
2185
|
}
|
|
2070
|
-
declare class AuthenticationError extends
|
|
2186
|
+
declare class AuthenticationError extends ShipmailError {
|
|
2071
2187
|
constructor(message: string, requestId?: string);
|
|
2072
2188
|
}
|
|
2073
|
-
declare class AuthorizationError extends
|
|
2189
|
+
declare class AuthorizationError extends ShipmailError {
|
|
2074
2190
|
constructor(message: string, requestId?: string);
|
|
2075
2191
|
}
|
|
2076
|
-
declare class ValidationError extends
|
|
2192
|
+
declare class ValidationError extends ShipmailError {
|
|
2077
2193
|
readonly details: readonly {
|
|
2078
2194
|
readonly field: string;
|
|
2079
2195
|
readonly message: string;
|
|
@@ -2088,29 +2204,29 @@ declare class ValidationError extends ShipMailError {
|
|
|
2088
2204
|
}[] | undefined;
|
|
2089
2205
|
});
|
|
2090
2206
|
}
|
|
2091
|
-
declare class QuotaExceededError extends
|
|
2207
|
+
declare class QuotaExceededError extends ShipmailError {
|
|
2092
2208
|
constructor(message: string, requestId?: string);
|
|
2093
2209
|
}
|
|
2094
|
-
declare class NotFoundError extends
|
|
2210
|
+
declare class NotFoundError extends ShipmailError {
|
|
2095
2211
|
constructor(message: string, requestId?: string);
|
|
2096
2212
|
}
|
|
2097
|
-
declare class RateLimitError extends
|
|
2213
|
+
declare class RateLimitError extends ShipmailError {
|
|
2098
2214
|
readonly retryAfter: number | undefined;
|
|
2099
2215
|
constructor(message: string, options?: {
|
|
2100
2216
|
readonly requestId?: string | undefined;
|
|
2101
2217
|
readonly retryAfter?: number | undefined;
|
|
2102
2218
|
});
|
|
2103
2219
|
}
|
|
2104
|
-
declare class ConflictError extends
|
|
2220
|
+
declare class ConflictError extends ShipmailError {
|
|
2105
2221
|
constructor(message: string, requestId?: string);
|
|
2106
2222
|
}
|
|
2107
|
-
declare class InternalServerError extends
|
|
2223
|
+
declare class InternalServerError extends ShipmailError {
|
|
2108
2224
|
constructor(message: string, requestId?: string);
|
|
2109
2225
|
}
|
|
2110
|
-
declare class ConnectionError extends
|
|
2226
|
+
declare class ConnectionError extends ShipmailError {
|
|
2111
2227
|
constructor(message: string);
|
|
2112
2228
|
}
|
|
2113
|
-
declare class WebhookVerificationError extends
|
|
2229
|
+
declare class WebhookVerificationError extends ShipmailError {
|
|
2114
2230
|
constructor(message: string);
|
|
2115
2231
|
}
|
|
2116
2232
|
|
|
@@ -2128,4 +2244,4 @@ declare function verifyWebhook(body: string, headers: WebhookHeaders | Headers,
|
|
|
2128
2244
|
readonly toleranceInSeconds?: number | undefined;
|
|
2129
2245
|
}): Promise<WebhookEvent>;
|
|
2130
2246
|
|
|
2131
|
-
export { type AddSubscriberParams, type AddSubscribersBatchParams, type AddSubscribersBatchResult, type ApiErrorBody, type Audience, type AudienceFeed, AuthenticationError, AuthorizationError, type BookingPage, CONFERENCING_PROVIDER_IDS, type CalendarAvailability, type CalendarAvailabilityParams, type CalendarAvailabilitySlot, type CalendarEvent, type CalendarEventPrivacy, type CalendarEventStatus, type CalendarFreeBusyStatus, type CapabilitiesResponse, type CapabilityResourceConstraints, type ConferencingProviderId, ConflictError, ConnectionError, type ConsumePartnerMailboxCredentialGrantParams, type CreateAudienceParams, 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 InboxThreadReplyState, type InboxThreadReplyStateResult, type InboxThreadSummary, type InboxThreads, type InjectSandboxInboundParams, InternalServerError, type ListAudiencesParams, type ListBookingPagesParams, type ListCalendarEventsParams, type ListDeliveriesParams, type ListDomainsParams, type ListInboxMessagesParams, type ListInboxThreadsParams, type ListMailboxesParams, 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 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 NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, 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 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,
|
|
2247
|
+
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 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 InboxThreadReplyState, type InboxThreadReplyStateResult, 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 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 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 NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, 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 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 UpdateInboxThreadReplyStateParams, 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
|
@@ -4,16 +4,16 @@ declare class Page<T> implements AsyncIterable<T> {
|
|
|
4
4
|
private readonly client;
|
|
5
5
|
private readonly path;
|
|
6
6
|
private readonly query;
|
|
7
|
-
constructor(client:
|
|
7
|
+
constructor(client: ShipmailClient, path: string, query: Record<string, string | number | boolean | undefined>);
|
|
8
8
|
[Symbol.asyncIterator](): AsyncIterator<T>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare abstract class ApiResource {
|
|
12
|
-
protected readonly client:
|
|
13
|
-
constructor(client:
|
|
12
|
+
protected readonly client: ShipmailClient;
|
|
13
|
+
constructor(client: ShipmailClient);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
type
|
|
16
|
+
type ShipmailConfig = {
|
|
17
17
|
readonly apiKey: string;
|
|
18
18
|
readonly baseUrl?: string | undefined;
|
|
19
19
|
readonly maxRetries?: number | undefined;
|
|
@@ -196,7 +196,7 @@ declare class Subscribers extends ApiResource {
|
|
|
196
196
|
declare class Audiences extends ApiResource {
|
|
197
197
|
readonly feeds: AudienceFeeds;
|
|
198
198
|
readonly subscribers: Subscribers;
|
|
199
|
-
constructor(client:
|
|
199
|
+
constructor(client: ShipmailClient);
|
|
200
200
|
create(params: CreateAudienceParams, options?: MethodOptions): Promise<Audience>;
|
|
201
201
|
list(params?: ListAudiencesParams, options?: MethodOptions): Promise<PaginatedResponse<Audience>>;
|
|
202
202
|
listAutoPaginating(params?: Omit<ListAudiencesParams, "cursor">): Page<Audience>;
|
|
@@ -205,6 +205,121 @@ declare class Audiences extends ApiResource {
|
|
|
205
205
|
delete(id: string, options?: MethodOptions): Promise<void>;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
type AutomationTrigger = {
|
|
209
|
+
readonly type: "email_received";
|
|
210
|
+
readonly mailbox_ids: readonly string[];
|
|
211
|
+
} | {
|
|
212
|
+
readonly type: "scheduled";
|
|
213
|
+
readonly cron: string;
|
|
214
|
+
readonly time_zone: string;
|
|
215
|
+
} | {
|
|
216
|
+
readonly type: "manual";
|
|
217
|
+
readonly mailbox_ids: readonly string[];
|
|
218
|
+
} | {
|
|
219
|
+
readonly type: "thread_state";
|
|
220
|
+
readonly mailbox_ids: readonly string[];
|
|
221
|
+
readonly state: "no_reply_after";
|
|
222
|
+
readonly duration_minutes: number;
|
|
223
|
+
};
|
|
224
|
+
type AutomationCondition = {
|
|
225
|
+
readonly type: "sender_address";
|
|
226
|
+
readonly addresses: readonly string[];
|
|
227
|
+
} | {
|
|
228
|
+
readonly type: "sender_domain";
|
|
229
|
+
readonly domains: readonly string[];
|
|
230
|
+
} | {
|
|
231
|
+
readonly type: "subject_contains";
|
|
232
|
+
readonly values: readonly string[];
|
|
233
|
+
} | {
|
|
234
|
+
readonly type: "has_attachment";
|
|
235
|
+
readonly value: boolean;
|
|
236
|
+
} | {
|
|
237
|
+
readonly type: "semantic_positive_match";
|
|
238
|
+
readonly instruction: string;
|
|
239
|
+
readonly minimum_confidence: number;
|
|
240
|
+
};
|
|
241
|
+
type AutomationAction = {
|
|
242
|
+
readonly type: "create_reply_draft";
|
|
243
|
+
readonly instruction: string;
|
|
244
|
+
} | {
|
|
245
|
+
readonly type: "reply_to_trigger_sender";
|
|
246
|
+
readonly instruction: string;
|
|
247
|
+
} | {
|
|
248
|
+
readonly type: "archive_trigger_message";
|
|
249
|
+
} | {
|
|
250
|
+
readonly type: "move_trigger_message";
|
|
251
|
+
readonly mailbox_id: string;
|
|
252
|
+
readonly destination_folder_id: string;
|
|
253
|
+
} | {
|
|
254
|
+
readonly type: "set_trigger_read_state";
|
|
255
|
+
readonly is_read: boolean;
|
|
256
|
+
} | {
|
|
257
|
+
readonly type: "set_trigger_star_state";
|
|
258
|
+
readonly is_starred: boolean;
|
|
259
|
+
} | {
|
|
260
|
+
readonly type: "generate_mail_report";
|
|
261
|
+
readonly metric: "received" | "sent" | "unread";
|
|
262
|
+
readonly lookback_minutes: number;
|
|
263
|
+
};
|
|
264
|
+
type AutomationDefinition = {
|
|
265
|
+
readonly trigger: AutomationTrigger;
|
|
266
|
+
readonly conditions: readonly AutomationCondition[];
|
|
267
|
+
readonly actions: readonly AutomationAction[];
|
|
268
|
+
readonly mode: "draft" | "send";
|
|
269
|
+
readonly scope: {
|
|
270
|
+
readonly mailbox_ids: readonly string[];
|
|
271
|
+
readonly calendar_addresses: readonly string[];
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
type AutomationStatus = "active" | "paused" | "disabled";
|
|
275
|
+
type AutomationRunStatus = "queued" | "running" | "completed" | "failed" | "degraded" | "cancelled" | "skipped";
|
|
276
|
+
type AutomationRunSummary = {
|
|
277
|
+
readonly object: "automation_run";
|
|
278
|
+
readonly id: string;
|
|
279
|
+
readonly status: AutomationRunStatus;
|
|
280
|
+
readonly error_code: string | null;
|
|
281
|
+
readonly created_at: string;
|
|
282
|
+
};
|
|
283
|
+
type AutomationRun = {
|
|
284
|
+
readonly object: "automation_run";
|
|
285
|
+
readonly id: string;
|
|
286
|
+
readonly automation_id: string;
|
|
287
|
+
readonly status: "queued";
|
|
288
|
+
};
|
|
289
|
+
type Automation = {
|
|
290
|
+
readonly object: "automation";
|
|
291
|
+
readonly id: string;
|
|
292
|
+
readonly name: string;
|
|
293
|
+
readonly status: AutomationStatus;
|
|
294
|
+
readonly version_id: string;
|
|
295
|
+
readonly version: number;
|
|
296
|
+
readonly definition: AutomationDefinition;
|
|
297
|
+
readonly last_run: AutomationRunSummary | null;
|
|
298
|
+
readonly next_run_at: string | null;
|
|
299
|
+
readonly created_at: string;
|
|
300
|
+
readonly updated_at: string;
|
|
301
|
+
};
|
|
302
|
+
type CreateAutomationParams = {
|
|
303
|
+
readonly name: string;
|
|
304
|
+
readonly definition: AutomationDefinition;
|
|
305
|
+
};
|
|
306
|
+
type UpdateAutomationParams = {
|
|
307
|
+
readonly name?: string | undefined;
|
|
308
|
+
readonly definition?: AutomationDefinition | undefined;
|
|
309
|
+
readonly status?: AutomationStatus | undefined;
|
|
310
|
+
};
|
|
311
|
+
type ListAutomationsResponse = {
|
|
312
|
+
readonly data: readonly Automation[];
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
declare class Automations extends ApiResource {
|
|
316
|
+
list(options?: MethodOptions): Promise<ListAutomationsResponse>;
|
|
317
|
+
create(params: CreateAutomationParams, options?: MethodOptions): Promise<Automation>;
|
|
318
|
+
get(id: string, options?: MethodOptions): Promise<Automation>;
|
|
319
|
+
update(id: string, params: UpdateAutomationParams, options?: MethodOptions): Promise<Automation>;
|
|
320
|
+
run(id: string, options?: MethodOptions): Promise<AutomationRun>;
|
|
321
|
+
}
|
|
322
|
+
|
|
208
323
|
declare const CONFERENCING_PROVIDER_IDS: readonly ["zoom", "google_meet"];
|
|
209
324
|
type ConferencingProviderId = (typeof CONFERENCING_PROVIDER_IDS)[number];
|
|
210
325
|
type BookingPage = {
|
|
@@ -415,7 +530,7 @@ declare class CalendarEvents extends ApiResource {
|
|
|
415
530
|
}
|
|
416
531
|
declare class Calendar extends ApiResource {
|
|
417
532
|
readonly events: CalendarEvents;
|
|
418
|
-
constructor(client:
|
|
533
|
+
constructor(client: ShipmailClient);
|
|
419
534
|
availability(params: CalendarAvailabilityParams, options?: MethodOptions): Promise<CalendarAvailability>;
|
|
420
535
|
}
|
|
421
536
|
|
|
@@ -1701,7 +1816,7 @@ declare class Newsletters extends ApiResource {
|
|
|
1701
1816
|
readonly domains: NewsletterDomains;
|
|
1702
1817
|
readonly senderIdentities: NewsletterSenderIdentities;
|
|
1703
1818
|
readonly assets: NewsletterAssets;
|
|
1704
|
-
constructor(client:
|
|
1819
|
+
constructor(client: ShipmailClient);
|
|
1705
1820
|
create(params: CreateNewsletterParams, options?: MethodOptions): Promise<Newsletter>;
|
|
1706
1821
|
createFromChangelog(params: CreateNewsletterFromChangelogParams, options?: MethodOptions): Promise<Newsletter>;
|
|
1707
1822
|
list(params?: ListNewslettersParams, options?: MethodOptions): Promise<PaginatedResponse<Newsletter>>;
|
|
@@ -2019,9 +2134,9 @@ type RequestOptions = {
|
|
|
2019
2134
|
readonly methodOptions?: MethodOptions | undefined;
|
|
2020
2135
|
};
|
|
2021
2136
|
/**
|
|
2022
|
-
* Client for the
|
|
2137
|
+
* Client for the Shipmail API. Handles authentication, retries, and resource access.
|
|
2023
2138
|
*/
|
|
2024
|
-
declare class
|
|
2139
|
+
declare class ShipmailClient {
|
|
2025
2140
|
private readonly apiKey;
|
|
2026
2141
|
private readonly baseUrl;
|
|
2027
2142
|
private readonly maxRetries;
|
|
@@ -2030,6 +2145,7 @@ declare class ShipMailClient {
|
|
|
2030
2145
|
private readonly defaultHeaders;
|
|
2031
2146
|
private readonly organizationId;
|
|
2032
2147
|
readonly audiences: Audiences;
|
|
2148
|
+
readonly automations: Automations;
|
|
2033
2149
|
readonly bookingPages: BookingPages;
|
|
2034
2150
|
readonly capabilities: Capabilities;
|
|
2035
2151
|
readonly calendar: Calendar;
|
|
@@ -2045,17 +2161,17 @@ declare class ShipMailClient {
|
|
|
2045
2161
|
readonly webhooks: Webhooks;
|
|
2046
2162
|
readonly status: Status;
|
|
2047
2163
|
/**
|
|
2048
|
-
* Create a new
|
|
2164
|
+
* Create a new Shipmail client.
|
|
2049
2165
|
* @param config - API key string or full configuration object.
|
|
2050
2166
|
*/
|
|
2051
|
-
constructor(config: string |
|
|
2167
|
+
constructor(config: string | ShipmailConfig);
|
|
2052
2168
|
request<T>(options: RequestOptions): Promise<T>;
|
|
2053
2169
|
requestBytes(options: RequestOptions): Promise<Uint8Array>;
|
|
2054
2170
|
private requestWithParser;
|
|
2055
2171
|
private buildUrl;
|
|
2056
2172
|
}
|
|
2057
2173
|
|
|
2058
|
-
declare class
|
|
2174
|
+
declare class ShipmailError extends Error {
|
|
2059
2175
|
readonly status: number | undefined;
|
|
2060
2176
|
readonly type: ErrorType | undefined;
|
|
2061
2177
|
readonly requestId: string | undefined;
|
|
@@ -2067,13 +2183,13 @@ declare class ShipMailError extends Error {
|
|
|
2067
2183
|
readonly retryable?: boolean | undefined;
|
|
2068
2184
|
});
|
|
2069
2185
|
}
|
|
2070
|
-
declare class AuthenticationError extends
|
|
2186
|
+
declare class AuthenticationError extends ShipmailError {
|
|
2071
2187
|
constructor(message: string, requestId?: string);
|
|
2072
2188
|
}
|
|
2073
|
-
declare class AuthorizationError extends
|
|
2189
|
+
declare class AuthorizationError extends ShipmailError {
|
|
2074
2190
|
constructor(message: string, requestId?: string);
|
|
2075
2191
|
}
|
|
2076
|
-
declare class ValidationError extends
|
|
2192
|
+
declare class ValidationError extends ShipmailError {
|
|
2077
2193
|
readonly details: readonly {
|
|
2078
2194
|
readonly field: string;
|
|
2079
2195
|
readonly message: string;
|
|
@@ -2088,29 +2204,29 @@ declare class ValidationError extends ShipMailError {
|
|
|
2088
2204
|
}[] | undefined;
|
|
2089
2205
|
});
|
|
2090
2206
|
}
|
|
2091
|
-
declare class QuotaExceededError extends
|
|
2207
|
+
declare class QuotaExceededError extends ShipmailError {
|
|
2092
2208
|
constructor(message: string, requestId?: string);
|
|
2093
2209
|
}
|
|
2094
|
-
declare class NotFoundError extends
|
|
2210
|
+
declare class NotFoundError extends ShipmailError {
|
|
2095
2211
|
constructor(message: string, requestId?: string);
|
|
2096
2212
|
}
|
|
2097
|
-
declare class RateLimitError extends
|
|
2213
|
+
declare class RateLimitError extends ShipmailError {
|
|
2098
2214
|
readonly retryAfter: number | undefined;
|
|
2099
2215
|
constructor(message: string, options?: {
|
|
2100
2216
|
readonly requestId?: string | undefined;
|
|
2101
2217
|
readonly retryAfter?: number | undefined;
|
|
2102
2218
|
});
|
|
2103
2219
|
}
|
|
2104
|
-
declare class ConflictError extends
|
|
2220
|
+
declare class ConflictError extends ShipmailError {
|
|
2105
2221
|
constructor(message: string, requestId?: string);
|
|
2106
2222
|
}
|
|
2107
|
-
declare class InternalServerError extends
|
|
2223
|
+
declare class InternalServerError extends ShipmailError {
|
|
2108
2224
|
constructor(message: string, requestId?: string);
|
|
2109
2225
|
}
|
|
2110
|
-
declare class ConnectionError extends
|
|
2226
|
+
declare class ConnectionError extends ShipmailError {
|
|
2111
2227
|
constructor(message: string);
|
|
2112
2228
|
}
|
|
2113
|
-
declare class WebhookVerificationError extends
|
|
2229
|
+
declare class WebhookVerificationError extends ShipmailError {
|
|
2114
2230
|
constructor(message: string);
|
|
2115
2231
|
}
|
|
2116
2232
|
|
|
@@ -2128,4 +2244,4 @@ declare function verifyWebhook(body: string, headers: WebhookHeaders | Headers,
|
|
|
2128
2244
|
readonly toleranceInSeconds?: number | undefined;
|
|
2129
2245
|
}): Promise<WebhookEvent>;
|
|
2130
2246
|
|
|
2131
|
-
export { type AddSubscriberParams, type AddSubscribersBatchParams, type AddSubscribersBatchResult, type ApiErrorBody, type Audience, type AudienceFeed, AuthenticationError, AuthorizationError, type BookingPage, CONFERENCING_PROVIDER_IDS, type CalendarAvailability, type CalendarAvailabilityParams, type CalendarAvailabilitySlot, type CalendarEvent, type CalendarEventPrivacy, type CalendarEventStatus, type CalendarFreeBusyStatus, type CapabilitiesResponse, type CapabilityResourceConstraints, type ConferencingProviderId, ConflictError, ConnectionError, type ConsumePartnerMailboxCredentialGrantParams, type CreateAudienceParams, 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 InboxThreadReplyState, type InboxThreadReplyStateResult, type InboxThreadSummary, type InboxThreads, type InjectSandboxInboundParams, InternalServerError, type ListAudiencesParams, type ListBookingPagesParams, type ListCalendarEventsParams, type ListDeliveriesParams, type ListDomainsParams, type ListInboxMessagesParams, type ListInboxThreadsParams, type ListMailboxesParams, 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 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 NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, 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 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,
|
|
2247
|
+
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 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 InboxThreadReplyState, type InboxThreadReplyStateResult, 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 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 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 NewsletterAssetKind, type NewsletterAssetListResponse, type NewsletterAssetStorageUsage, 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 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 UpdateInboxThreadReplyStateParams, 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 };
|