@masters-union/outbound-sdk 0.4.5 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -47,7 +47,35 @@ interface SendEmailResponse {
47
47
  interface BulkEmailParams {
48
48
  fromEmail: string;
49
49
  emailSubject: string;
50
- emails: BulkEmailRecipient[];
50
+ /**
51
+ * Inline recipients, up to 1000 per request. Mutually exclusive with `listId`.
52
+ * Required unless `listId` is given.
53
+ */
54
+ emails?: Array<BulkEmailRecipient | BulkEmailMergeRecipient>;
55
+ /**
56
+ * Send to a saved contact list instead. NO RECIPIENT CAP: the server expands the
57
+ * list in the background and returns one job id to track. `htmlBody` is required
58
+ * in this mode, and `mapping` says which contact column feeds each `{{variable}}`.
59
+ */
60
+ listId?: string;
61
+ /**
62
+ * OPTIONAL shared HTML body (mail merge). Supply it once and give each recipient
63
+ * a small `variables` object instead of its own full body: the template then
64
+ * crosses the wire once rather than once per recipient.
65
+ *
66
+ * BACKWARD COMPATIBLE: rendering happens if and only if a recipient carries a
67
+ * `variables` object. A recipient without one is sent verbatim, even if its body
68
+ * contains `{{...}}`.
69
+ */
70
+ htmlBody?: string;
71
+ /** OPTIONAL shared plain-text body (mail merge). */
72
+ textBody?: string;
73
+ /** `{ variableName: columnName }` for a list send. */
74
+ mapping?: VariableMapping;
75
+ /** Values for variables no column supplies, applied to every recipient. */
76
+ defaults?: Record<string, string>;
77
+ /** Whether a contact missing a variable is skipped (default) or sent anyway. */
78
+ onMissingVariable?: 'skip' | 'send';
51
79
  senderName?: string;
52
80
  replyTo?: string;
53
81
  /**
@@ -63,7 +91,38 @@ interface BulkEmailParams {
63
91
  }
64
92
  interface BulkEmailRecipient {
65
93
  toEmail: string;
94
+ /**
95
+ * This recipient's own HTML body. Still REQUIRED on this shape, deliberately —
96
+ * making it optional would turn `recipient.htmlBody.length` into a compile error
97
+ * for anyone who upgraded. To omit it, use the mail-merge shape
98
+ * `BulkEmailMergeRecipient` instead, which the `emails` array also accepts.
99
+ */
66
100
  htmlBody: string;
101
+ /**
102
+ * Optional mail-merge values. Its PRESENCE is what opts this entry into
103
+ * server-side rendering, so omit it entirely for a body sent verbatim — even one
104
+ * containing a literal `{{...}}`.
105
+ */
106
+ variables?: Record<string, string>;
107
+ subject?: string;
108
+ textBody?: string;
109
+ ccEmail?: string;
110
+ bccEmail?: string;
111
+ metadata?: Record<string, unknown>;
112
+ attachments?: Attachment[];
113
+ }
114
+ /**
115
+ * A mail-merge recipient: no body of its own, because the request carries a shared
116
+ * `htmlBody` that is rendered per recipient from `variables`.
117
+ *
118
+ * A SEPARATE interface rather than loosening `BulkEmailRecipient.htmlBody`, so that
119
+ * adding mail merge cannot break a single existing consumer's build.
120
+ */
121
+ interface BulkEmailMergeRecipient {
122
+ toEmail: string;
123
+ variables?: Record<string, string>;
124
+ /** Overrides the shared body for just this recipient. */
125
+ htmlBody?: string;
67
126
  subject?: string;
68
127
  textBody?: string;
69
128
  ccEmail?: string;
@@ -268,6 +327,16 @@ interface TemplateSendParams {
268
327
  interface TemplateBulkSendParams {
269
328
  templateId: string;
270
329
  fromEmail: string;
330
+ /**
331
+ * Send to a saved contact list instead of `recipients`. No recipient cap — the
332
+ * server expands the list in the background.
333
+ */
334
+ listId?: string;
335
+ /** `{ variableName: columnName }` for a list send. */
336
+ mapping?: VariableMapping;
337
+ /** Values for variables no column supplies. */
338
+ defaults?: Record<string, string>;
339
+ onMissingVariable?: 'skip' | 'send';
271
340
  senderName?: string;
272
341
  replyTo?: string;
273
342
  /**
@@ -280,7 +349,8 @@ interface TemplateBulkSendParams {
280
349
  priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
281
350
  idempotencyKey?: string;
282
351
  campaignId?: string;
283
- recipients: TemplateBulkRecipient[];
352
+ /** Inline recipients, up to 1000. Mutually exclusive with `listId`. */
353
+ recipients?: TemplateBulkRecipient[];
284
354
  }
285
355
  interface TemplateBulkRecipient {
286
356
  toEmail: string;
@@ -782,6 +852,213 @@ interface CampaignAnalytics {
782
852
  bounceReasons: CampaignBounceReason[];
783
853
  timeseries: CampaignTimeseriesPoint[];
784
854
  }
855
+ /** Only `subscribed` is ever sent to. */
856
+ type ContactStatus = 'subscribed' | 'invalid' | 'bounced' | 'complained' | 'unsubscribed' | 'suppressed';
857
+ /** The precise cause behind a non-subscribed status. */
858
+ type ContactStatusReason = 'invalid_format' | 'too_long' | 'bounce' | 'complaint' | 'unsubscribe' | 'manual' | 'ses_send_reject';
859
+ interface ContactList {
860
+ id: string;
861
+ name: string;
862
+ description: string | null;
863
+ status: 'active' | 'deleting';
864
+ contactCount: number;
865
+ /** Every attribute key seen on import — the valid targets for a send `mapping`. */
866
+ fields: string[];
867
+ metadata: Record<string, unknown> | null;
868
+ lastImportAt: string | null;
869
+ lastSentAt: string | null;
870
+ lastValidatedAt: string | null;
871
+ createdAt: string;
872
+ updatedAt: string;
873
+ }
874
+ interface ContactListDetail {
875
+ list: ContactList;
876
+ /** How many contacts sit in each status. */
877
+ statusBreakdown: Record<ContactStatus, number>;
878
+ /** Shorthand for `statusBreakdown.subscribed` — how many this list can reach. */
879
+ sendable: number;
880
+ sendablePercent: number;
881
+ }
882
+ interface Contact {
883
+ id: string;
884
+ email: string;
885
+ /** The original CSV value, present only when sanitization changed it. */
886
+ emailRaw: string | null;
887
+ name: string | null;
888
+ attributes: Record<string, string>;
889
+ status: ContactStatus;
890
+ statusReason: ContactStatusReason | null;
891
+ statusChangedAt: string | null;
892
+ source: 'import' | 'api' | 'manual';
893
+ createdAt: string;
894
+ updatedAt: string;
895
+ }
896
+ interface CreateContactListParams {
897
+ name: string;
898
+ description?: string;
899
+ metadata?: Record<string, unknown>;
900
+ }
901
+ interface UpdateContactListParams {
902
+ name?: string;
903
+ description?: string | null;
904
+ metadata?: Record<string, unknown> | null;
905
+ }
906
+ interface ListContactListsParams {
907
+ page?: number;
908
+ limit?: number;
909
+ search?: string;
910
+ sort?: 'recent' | 'created' | 'name' | 'size';
911
+ }
912
+ interface ListContactListsResponse {
913
+ lists: ContactList[];
914
+ pagination: {
915
+ page: number;
916
+ limit: number;
917
+ total: number;
918
+ totalPages: number;
919
+ };
920
+ quota: {
921
+ used: number;
922
+ allocated: number;
923
+ remaining: number;
924
+ };
925
+ }
926
+ interface ImportContactRow {
927
+ email: string;
928
+ name?: string;
929
+ /** Anything else the CSV carried. These keys become the list's `fields`. */
930
+ attributes?: Record<string, string>;
931
+ }
932
+ interface ImportContactsParams {
933
+ rows: ImportContactRow[];
934
+ /**
935
+ * One id per FILE. Together with `chunkIndex` it makes a retried chunk a no-op
936
+ * instead of a double-insert, so a failed upload is safe to retry blindly.
937
+ */
938
+ importId?: string;
939
+ chunkIndex?: number;
940
+ /** Which row wins when the same address appears twice in one chunk. */
941
+ duplicatesInFile?: 'first' | 'last';
942
+ /**
943
+ * What to do with an address already in the list. `update` merges attributes and
944
+ * refreshes the name; it NEVER re-subscribes a bounced or opted-out contact.
945
+ */
946
+ onExisting?: 'skip' | 'update';
947
+ }
948
+ interface ImportContactsResponse {
949
+ importId: string | null;
950
+ chunkIndex: number;
951
+ /** Rows with no usable address at all — the only rows that are not stored. */
952
+ rejected: Array<{
953
+ row: number;
954
+ value: string;
955
+ reason: string;
956
+ }>;
957
+ /** A sample of the addresses stored with `status: 'invalid'`. */
958
+ invalidSamples: Array<{
959
+ email: string;
960
+ emailRaw: string | null;
961
+ reason: ContactStatusReason;
962
+ }>;
963
+ summary: {
964
+ requested: number;
965
+ added: number;
966
+ updated: number;
967
+ skipped: number;
968
+ /** How many addresses sanitization actually changed. */
969
+ sanitized: number;
970
+ /** Stored, but marked invalid — NOT discarded. */
971
+ invalid: number;
972
+ /** Stored, but already on your suppression list. */
973
+ suppressed: number;
974
+ duplicatesInFile: number;
975
+ rejected: number;
976
+ };
977
+ list: {
978
+ id: string;
979
+ contactCount: number;
980
+ fields: string[];
981
+ };
982
+ }
983
+ interface ListContactsParams {
984
+ limit?: number;
985
+ /** From the previous response's `pagination.nextCursor`. Keyset, not offset. */
986
+ cursor?: string;
987
+ sort?: 'created' | 'email';
988
+ status?: ContactStatus;
989
+ search?: string;
990
+ }
991
+ interface ListContactsResponse {
992
+ contacts: Contact[];
993
+ pagination: {
994
+ limit: number;
995
+ hasMore: boolean;
996
+ nextCursor: string | null;
997
+ /** A FLOOR when `totalCapped` is true — an exact filtered count is not run per page. */
998
+ total: number;
999
+ totalCapped: boolean;
1000
+ };
1001
+ }
1002
+ interface AddContactParams {
1003
+ email: string;
1004
+ name?: string;
1005
+ attributes?: Record<string, string>;
1006
+ }
1007
+ interface UpdateContactParams {
1008
+ name?: string;
1009
+ /** REPLACES the stored object wholesale. Import merges instead. */
1010
+ attributes?: Record<string, string>;
1011
+ status?: ContactStatus;
1012
+ }
1013
+ interface BulkDeleteContactsParams {
1014
+ contactIds?: string[];
1015
+ emails?: string[];
1016
+ /** A filter rather than ids — how you clear every invalid address in one call. */
1017
+ status?: ContactStatus;
1018
+ all?: boolean;
1019
+ }
1020
+ interface BulkDeleteContactsResponse {
1021
+ message: string;
1022
+ deleted?: number;
1023
+ listId?: string;
1024
+ }
1025
+ interface ContactListFieldsResponse {
1026
+ fields: Array<{
1027
+ name: string;
1028
+ sample: string | null;
1029
+ }>;
1030
+ /** Mappable alongside `fields`, but not attributes. */
1031
+ reservedFields: string[];
1032
+ }
1033
+ interface RecountContactListResponse {
1034
+ contactCount: number;
1035
+ previous: number;
1036
+ drift: number | null;
1037
+ timedOut?: boolean;
1038
+ message?: string;
1039
+ }
1040
+ interface AcceptedResponse {
1041
+ message: string;
1042
+ listId?: string;
1043
+ }
1044
+ /**
1045
+ * Which contact column feeds each `{{variable}}`, as `{ variableName: columnName }`.
1046
+ * Omit an entry when the column is already named the same as the variable.
1047
+ * `email` and `name` are always mappable in addition to the list's own fields.
1048
+ */
1049
+ type VariableMapping = Record<string, string>;
1050
+ interface ListSendResponse {
1051
+ message: string;
1052
+ mode: 'list';
1053
+ jobId: string;
1054
+ listId: string;
1055
+ listName: string;
1056
+ /** How many contacts were sendable when the send was accepted. */
1057
+ estimatedRecipientCount: number;
1058
+ status: 'expanding';
1059
+ statusUrl: string;
1060
+ usingSesTemplate?: boolean;
1061
+ }
785
1062
 
786
1063
  declare class HttpClient {
787
1064
  private config;
@@ -801,6 +1078,23 @@ declare class EmailResource {
801
1078
  private http;
802
1079
  constructor(http: HttpClient);
803
1080
  send(params: SendEmailParams, overrides?: RequestOverrides): Promise<SendEmailResponse>;
1081
+ /**
1082
+ * Send to many recipients at once.
1083
+ *
1084
+ * Three shapes, discriminated by what you pass:
1085
+ * - `emails[]` with a full `htmlBody` each — the original behaviour, unchanged.
1086
+ * - `emails[]` + a shared `htmlBody` + per-recipient `variables` — MAIL MERGE.
1087
+ * The template crosses the wire once instead of once per recipient.
1088
+ * - `listId` (+ `mapping`) — a saved contact list, with NO recipient cap. The
1089
+ * server materializes the recipients in the background and returns a job id.
1090
+ *
1091
+ * OVERLOADED rather than returning a union, so existing calls keep resolving to
1092
+ * `BulkEmailResponse` exactly as before. A bare union would have made
1093
+ * `res.recipientCount` a compile error for every caller that upgraded.
1094
+ */
1095
+ bulk(params: BulkEmailParams & {
1096
+ listId: string;
1097
+ }, overrides?: RequestOverrides): Promise<ListSendResponse>;
804
1098
  bulk(params: BulkEmailParams, overrides?: RequestOverrides): Promise<BulkEmailResponse>;
805
1099
  status(jobId: string, overrides?: RequestOverrides): Promise<JobStatusResponse>;
806
1100
  /**
@@ -850,6 +1144,19 @@ declare class TemplatesResource {
850
1144
  }, overrides?: RequestOverrides): Promise<TemplateResponse>;
851
1145
  preview(id: string, params?: TemplatePreviewParams, overrides?: RequestOverrides): Promise<TemplatePreviewResponse>;
852
1146
  send(params: TemplateSendParams, overrides?: RequestOverrides): Promise<SendEmailResponse>;
1147
+ /**
1148
+ * Send a template to many recipients.
1149
+ *
1150
+ * Pass `recipients[]` (up to 1000) for an inline send, or `listId` (+ `mapping`)
1151
+ * to send to a whole saved contact list with no recipient cap — the server
1152
+ * expands the list in the background.
1153
+ *
1154
+ * Overloaded rather than returning a union, so existing calls keep resolving to
1155
+ * `TemplateBulkSendResponse` and upgrading the SDK cannot break a build.
1156
+ */
1157
+ bulkSend(params: TemplateBulkSendParams & {
1158
+ listId: string;
1159
+ }, overrides?: RequestOverrides): Promise<ListSendResponse>;
853
1160
  bulkSend(params: TemplateBulkSendParams, overrides?: RequestOverrides): Promise<TemplateBulkSendResponse>;
854
1161
  stats(overrides?: RequestOverrides): Promise<TemplateStatsResponse>;
855
1162
  }
@@ -942,6 +1249,97 @@ declare class CampaignsResource {
942
1249
  analytics(campaignId: string, params?: CampaignAnalyticsParams, overrides?: RequestOverrides): Promise<CampaignAnalytics>;
943
1250
  }
944
1251
 
1252
+ /**
1253
+ * Contact lists: reusable audiences you can send to without a recipient limit.
1254
+ *
1255
+ * The per-request cap on `email.bulk` / `templates.bulkSend` exists because those
1256
+ * carry their recipients in the request body. A list send carries only a `listId`,
1257
+ * and the server expands the list in the background — so there is no cap, and the
1258
+ * caller gets one job id to track however large the audience is.
1259
+ *
1260
+ * ── Address hygiene ──
1261
+ * Every imported address is sanitized (display-name unwrapping, `mailto:`,
1262
+ * zero-width characters, quotes, case) and then validated with the SAME rules the
1263
+ * send path applies. Addresses that fail are STORED with `status: 'invalid'` rather
1264
+ * than discarded, so you can list them, export them and fix them. Addresses on your
1265
+ * suppression list are stored with the matching status. Only `subscribed` contacts
1266
+ * are ever sent to, and bounces, complaints and unsubscribes flow back onto the
1267
+ * contact automatically.
1268
+ */
1269
+ declare class ContactListsResource {
1270
+ private http;
1271
+ constructor(http: HttpClient);
1272
+ create(params: CreateContactListParams, overrides?: RequestOverrides): Promise<{
1273
+ message: string;
1274
+ list: ContactList;
1275
+ }>;
1276
+ list(params?: ListContactListsParams, overrides?: RequestOverrides): Promise<ListContactListsResponse>;
1277
+ /** Auto-paginating iterator over every contact list, mirroring templates.listAll(). */
1278
+ listAll(params?: Omit<ListContactListsParams, 'page'>, overrides?: RequestOverrides): AsyncGenerator<ContactList>;
1279
+ /** A list plus its per-status breakdown (how many are sendable, invalid, bounced...). */
1280
+ get(listId: string, overrides?: RequestOverrides): Promise<ContactListDetail>;
1281
+ update(listId: string, params: UpdateContactListParams, overrides?: RequestOverrides): Promise<{
1282
+ message: string;
1283
+ list: ContactList;
1284
+ }>;
1285
+ /**
1286
+ * Delete a list. Returns 202: the contacts are removed by a background job in
1287
+ * chunks, so a multi-million-row list does not block on one enormous transaction.
1288
+ * Fails with a conflict while a send is still expanding this list.
1289
+ */
1290
+ delete(listId: string, overrides?: RequestOverrides): Promise<AcceptedResponse>;
1291
+ /**
1292
+ * Import a chunk of contacts (max 1000 rows per call).
1293
+ *
1294
+ * Pass the same `importId` with an incrementing `chunkIndex` for every chunk of
1295
+ * one file: that pair makes a retried chunk a no-op instead of a double-insert,
1296
+ * so a network failure mid-upload is safe to retry blindly.
1297
+ *
1298
+ * `onExisting: 'update'` merges attributes into contacts already in the list. It
1299
+ * never re-subscribes someone who bounced, complained or opted out.
1300
+ */
1301
+ importContacts(listId: string, params: ImportContactsParams, overrides?: RequestOverrides): Promise<ImportContactsResponse>;
1302
+ /**
1303
+ * List contacts. KEYSET paginated: pass the previous response's
1304
+ * `pagination.nextCursor` as `cursor` to advance. There is no page number,
1305
+ * because offset paging degrades badly past a few hundred pages.
1306
+ */
1307
+ contacts(listId: string, params?: ListContactsParams, overrides?: RequestOverrides): Promise<ListContactsResponse>;
1308
+ /** Auto-paginating iterator over every contact in a list. */
1309
+ contactsAll(listId: string, params?: Omit<ListContactsParams, 'cursor'>, overrides?: RequestOverrides): AsyncGenerator<Contact>;
1310
+ addContact(listId: string, params: AddContactParams, overrides?: RequestOverrides): Promise<{
1311
+ message: string;
1312
+ contact: Contact;
1313
+ }>;
1314
+ /** `attributes` REPLACES the stored object wholesale here; import merges instead. */
1315
+ updateContact(listId: string, contactId: string, params: UpdateContactParams, overrides?: RequestOverrides): Promise<{
1316
+ message: string;
1317
+ contact: Contact;
1318
+ }>;
1319
+ deleteContact(listId: string, contactId: string, overrides?: RequestOverrides): Promise<void>;
1320
+ /**
1321
+ * Delete many contacts. Pass `contactIds` or `emails` (up to 1000), or a FILTER
1322
+ * — `{ status: 'invalid' }` or `{ all: true }` — which is how you clear tens of
1323
+ * thousands of dead addresses in one small request. Filtered deletes return 202
1324
+ * and run in the background.
1325
+ */
1326
+ bulkDeleteContacts(listId: string, params: BulkDeleteContactsParams, overrides?: RequestOverrides): Promise<BulkDeleteContactsResponse>;
1327
+ /**
1328
+ * The column names available for send-time variable mapping, with a sample value
1329
+ * for each. This is what tells you which `mapping` keys a list will accept.
1330
+ */
1331
+ fields(listId: string, options?: {
1332
+ refresh?: boolean;
1333
+ }, overrides?: RequestOverrides): Promise<ContactListFieldsResponse>;
1334
+ /**
1335
+ * Re-run validation and re-sync suppression across the whole list. Useful after a
1336
+ * bulk suppression import, or to refresh a list that has been sitting. Returns 202.
1337
+ */
1338
+ revalidate(listId: string, overrides?: RequestOverrides): Promise<AcceptedResponse>;
1339
+ /** Reconcile the denormalized contact count with an exact COUNT. */
1340
+ recount(listId: string, overrides?: RequestOverrides): Promise<RecountContactListResponse>;
1341
+ }
1342
+
945
1343
  declare class Outbound {
946
1344
  readonly email: EmailResource;
947
1345
  readonly templates: TemplatesResource;
@@ -950,6 +1348,7 @@ declare class Outbound {
950
1348
  readonly dashboard: DashboardResource;
951
1349
  readonly quota: QuotaResource;
952
1350
  readonly campaigns: CampaignsResource;
1351
+ readonly contactLists: ContactListsResource;
953
1352
  constructor(config?: OutboundConfig);
954
1353
  /**
955
1354
  * Verify a webhook signature using HMAC-SHA256.
@@ -993,4 +1392,4 @@ declare class NetworkError extends OutboundError {
993
1392
  constructor(message?: string);
994
1393
  }
995
1394
 
996
- export { type AddSuppressionParams, type AnyIncomingWebhookPayload, type Attachment, AuthenticationError, BadRequestError, type BulkAddSuppressionsParams, type BulkAddSuppressionsResponse, type BulkEmailParams, type BulkEmailRecipient, type BulkEmailResponse, type BulkRemoveSuppressionsParams, type BulkRemoveSuppressionsResponse, type BulkResponseRecipient, type CampaignAnalytics, type CampaignAnalyticsParams, type CampaignBounceReason, type CampaignDomainStat, type CampaignRates, type CampaignStatus, type CampaignSummary, type CampaignTimeseriesPoint, type CampaignTotals, type CancelEmailParams, type CancelEmailResponse, ConflictError, type CreateTemplateParams, type CreateWebhookParams, type CreateWebhookResponse, type DashboardResponse, type DedicatedIpWarmup, type EmailJob, type EmailList, type EmailRecipientStatus, type EmailStatus, ForbiddenError, type GlobalQuotaResponse, type IncomingWebhookEvent, type IncomingWebhookEventV2, type IncomingWebhookPayload, type IncomingWebhookPayloadV2, type IpPoolStatus, type JobStatusResponse, type ListCampaignsParams, type ListCampaignsResponse, type ListSuppressionsParams, type ListSuppressionsResponse, type ListTemplatesParams, type ListTemplatesResponse, type ListWebhooksResponse, type MessageContentResponse, type MessageStatusRecipient, type MessageStatusResponse, NetworkError, NotFoundError, Outbound, type OutboundConfig, OutboundError, type QuotaResponse, RateLimitError, type RejectedEmail, type RequestOverrides, type ResolvedConfig, type SearchSuppressionsParams, type SearchSuppressionsResponse, type SendEmailParams, type SendEmailResponse, ServerError, type Suppression, type SuppressionReason, type SuppressionResponse, type Template, type TemplateBulkRecipient, type TemplateBulkSendParams, type TemplateBulkSendResponse, type TemplatePreviewParams, type TemplatePreviewResponse, type TemplateResponse, type TemplateSendParams, type TemplateStatsResponse, TimeoutError, type UpdateTemplateParams, type UpdateWebhookParams, type UpdateWebhookResponse, type Webhook, type WebhookEvent, type WebhookEventDetails, type WebhookEventStatus, type WebhookRetryStrategy };
1395
+ export { type AcceptedResponse, type AddContactParams, type AddSuppressionParams, type AnyIncomingWebhookPayload, type Attachment, AuthenticationError, BadRequestError, type BulkAddSuppressionsParams, type BulkAddSuppressionsResponse, type BulkDeleteContactsParams, type BulkDeleteContactsResponse, type BulkEmailMergeRecipient, type BulkEmailParams, type BulkEmailRecipient, type BulkEmailResponse, type BulkRemoveSuppressionsParams, type BulkRemoveSuppressionsResponse, type BulkResponseRecipient, type CampaignAnalytics, type CampaignAnalyticsParams, type CampaignBounceReason, type CampaignDomainStat, type CampaignRates, type CampaignStatus, type CampaignSummary, type CampaignTimeseriesPoint, type CampaignTotals, type CancelEmailParams, type CancelEmailResponse, type CheckQuotaResponse, ConflictError, type Contact, type ContactList, type ContactListDetail, type ContactListFieldsResponse, type ContactStatus, type ContactStatusReason, type CreateContactListParams, type CreateTemplateParams, type CreateWebhookParams, type CreateWebhookResponse, type DashboardResponse, type DedicatedIpWarmup, type EmailJob, type EmailList, type EmailRecipientStatus, type EmailStatus, ForbiddenError, type GlobalQuotaResponse, type ImportContactRow, type ImportContactsParams, type ImportContactsResponse, type IncomingWebhookEvent, type IncomingWebhookEventV2, type IncomingWebhookPayload, type IncomingWebhookPayloadV2, type IpPoolStatus, type JobStatusResponse, type ListCampaignsParams, type ListCampaignsResponse, type ListContactListsParams, type ListContactListsResponse, type ListContactsParams, type ListContactsResponse, type ListSendResponse, type ListSuppressionsParams, type ListSuppressionsResponse, type ListTemplatesParams, type ListTemplatesResponse, type ListWebhooksResponse, type MessageContentResponse, type MessageStatusRecipient, type MessageStatusResponse, NetworkError, NotFoundError, Outbound, type OutboundConfig, OutboundError, type QuotaResponse, RateLimitError, type RecountContactListResponse, type RejectedEmail, type RequestOverrides, type ResolvedConfig, type SearchSuppressionsParams, type SearchSuppressionsResponse, type SendEmailParams, type SendEmailResponse, ServerError, type Suppression, type SuppressionReason, type SuppressionResponse, type Template, type TemplateBulkRecipient, type TemplateBulkSendParams, type TemplateBulkSendResponse, type TemplatePreviewParams, type TemplatePreviewResponse, type TemplateResponse, type TemplateSendParams, type TemplateStatsResponse, TimeoutError, type UpdateContactListParams, type UpdateContactParams, type UpdateTemplateParams, type UpdateWebhookParams, type UpdateWebhookResponse, type VariableMapping, type Webhook, type WebhookEvent, type WebhookEventDetails, type WebhookEventStatus, type WebhookRetryStrategy };