@distilled.cloud/mailchimp 0.0.0 → 1.0.0-rc.19

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.
Files changed (59) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +102 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +59 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +68 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +44 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +10 -0
  16. package/lib/index.lazy.js +10 -0
  17. package/lib/index.lazy.js.map +1 -0
  18. package/lib/pagination.d.ts +11 -0
  19. package/lib/pagination.d.ts.map +1 -0
  20. package/lib/pagination.js +1 -0
  21. package/lib/protocol.d.ts +25 -0
  22. package/lib/protocol.d.ts.map +1 -0
  23. package/lib/protocol.js +1 -0
  24. package/lib/retry.d.ts +53 -0
  25. package/lib/retry.d.ts.map +1 -0
  26. package/lib/retry.js +1 -0
  27. package/lib/services/index.d.ts +3 -0
  28. package/lib/services/index.d.ts.map +1 -0
  29. package/lib/services/index.js +2 -0
  30. package/lib/services/marketing.d.ts +24805 -0
  31. package/lib/services/marketing.d.ts.map +1 -0
  32. package/lib/services/marketing.js +409 -0
  33. package/lib/services/marketing.js.map +1 -0
  34. package/lib/services/transactional.d.ts +3805 -0
  35. package/lib/services/transactional.d.ts.map +1 -0
  36. package/lib/services/transactional.js +143 -0
  37. package/lib/services/transactional.js.map +1 -0
  38. package/lib/services.lazy/index.js +3 -0
  39. package/lib/services.lazy/marketing.js +3 -0
  40. package/lib/services.lazy/transactional.js +4 -0
  41. package/lib/subscriber-hash.d.ts +11 -0
  42. package/lib/subscriber-hash.d.ts.map +1 -0
  43. package/lib/subscriber-hash.js +2 -0
  44. package/lib/subscriber-hash.js.map +1 -0
  45. package/lib/traits.d.ts +7 -0
  46. package/lib/traits.d.ts.map +1 -0
  47. package/lib/traits.js +1 -0
  48. package/package.json +88 -2
  49. package/src/credentials.ts +156 -0
  50. package/src/errors.ts +81 -0
  51. package/src/index.ts +50 -0
  52. package/src/pagination.ts +69 -0
  53. package/src/protocol.ts +196 -0
  54. package/src/retry.ts +72 -0
  55. package/src/services/index.ts +3 -0
  56. package/src/services/marketing.ts +43348 -0
  57. package/src/services/transactional.ts +7512 -0
  58. package/src/subscriber-hash.ts +87 -0
  59. package/src/traits.ts +40 -0
@@ -0,0 +1,3805 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import { type MailchimpTransactionalOpError, type MailchimpTransactionalOpContext } from "../protocol.ts";
4
+ export type { MailchimpTransactionalOpError, MailchimpTransactionalOpContext };
5
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
+ readonly code: any;
7
+ readonly message: any;
8
+ }> & (new (...args: any[]) => {
9
+ "@distilled.cloud/error/categories": {
10
+ BadRequestError: true;
11
+ };
12
+ });
13
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
14
+ }
15
+ declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
16
+ readonly code: any;
17
+ readonly message: any;
18
+ }> & (new (...args: any[]) => {
19
+ "@distilled.cloud/error/categories": {
20
+ AuthError: true;
21
+ };
22
+ });
23
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
24
+ }
25
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
26
+ readonly code: any;
27
+ readonly message: any;
28
+ }> & (new (...args: any[]) => {
29
+ "@distilled.cloud/error/categories": {
30
+ BadRequestError: true;
31
+ };
32
+ });
33
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
34
+ }
35
+ declare const PaymentRequired_base: S.TaggedErrorClass<"PaymentRequired", {
36
+ readonly code: any;
37
+ readonly message: any;
38
+ }> & (new (...args: any[]) => {
39
+ "@distilled.cloud/error/categories": {
40
+ QuotaError: true;
41
+ };
42
+ });
43
+ export declare class PaymentRequired extends /*@__PURE__*/ PaymentRequired_base {
44
+ }
45
+ declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
46
+ readonly code: any;
47
+ readonly message: any;
48
+ }> & (new (...args: any[]) => {
49
+ "@distilled.cloud/error/categories": {
50
+ BadRequestError: true;
51
+ };
52
+ });
53
+ export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
54
+ }
55
+ export interface AddAllowlistEntryRequest {
56
+ /** an email address to add to the allowlist */
57
+ email: string;
58
+ /** an optional description of why the email was added to the allowlist */
59
+ comment?: string | undefined;
60
+ }
61
+ export interface AddAllowlistEntryResponse {
62
+ /** the email address you provided */
63
+ email?: string | null | undefined;
64
+ /** whether the operation succeeded */
65
+ added?: boolean | null | undefined;
66
+ }
67
+ export interface AddInboundDomainRequest {
68
+ /** a domain name; Validation: strip_tags, required */
69
+ domain: string;
70
+ }
71
+ export interface AddInboundDomainResponse {
72
+ /** the domain name that is accepting mail */
73
+ domain?: string | null | undefined;
74
+ /** the date and time that the inbound domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format */
75
+ created_at?: string | null | undefined;
76
+ /** true if this inbound domain has successfully set up an MX record to deliver mail to the Mandrill servers */
77
+ valid_mx?: boolean | null | undefined;
78
+ }
79
+ export interface AddInboundRouteRequest {
80
+ /** An existing inbound domain (required if phone is not provided) */
81
+ domain?: string | undefined;
82
+ /** The SMS program phone number - the TO number that receives inbound SMS (required if domain is not provided) */
83
+ phone?: string | undefined;
84
+ /** For email: the mailbox pattern (e.g., "mailbox-*"). For SMS: not used, the phone number is the pattern. */
85
+ pattern?: string | undefined;
86
+ /** the webhook URL where the inbound messages will be published */
87
+ url: string;
88
+ }
89
+ export interface AddInboundRouteResponse {
90
+ /** the unique identifier of the route */
91
+ id?: string | null | undefined;
92
+ /** the search pattern that the mailbox name should match */
93
+ pattern?: string | null | undefined;
94
+ /** the webhook URL where inbound messages will be published */
95
+ url?: string | null | undefined;
96
+ }
97
+ export interface AddMetadataFieldRequest {
98
+ /** a unique identifier for the metadata field */
99
+ name: string;
100
+ /** Mustache template to control how the metadata is rendered in your activity log */
101
+ view_template?: string | undefined;
102
+ }
103
+ /** the current state of the metadata field */
104
+ export type AddMetadataFieldResponseState = "active" | "delete" | "index";
105
+ export interface AddMetadataFieldResponse {
106
+ /** the unique identifier of the metadata field to update */
107
+ name?: string | null | undefined;
108
+ /** the current state of the metadata field */
109
+ state?: AddMetadataFieldResponseState | null | undefined;
110
+ /** Mustache template to control how the metadata is rendered in your activity log */
111
+ view_template?: string | null | undefined;
112
+ }
113
+ export interface AddRejectRequest {
114
+ /** an email address to block */
115
+ email: string;
116
+ /** an optional comment describing the rejection */
117
+ comment?: string | undefined;
118
+ /** an optional unique identifier for the subaccount to limit the denylist entry */
119
+ subaccount?: string | undefined;
120
+ }
121
+ export interface AddRejectResponse {
122
+ /** the email address you provided */
123
+ email?: string | null | undefined;
124
+ /** whether the operation succeeded */
125
+ added?: boolean | null | undefined;
126
+ }
127
+ export interface AddSenderDomainRequest {
128
+ /** a domain name */
129
+ domain: string;
130
+ }
131
+ /** details about the domain's SPF record */
132
+ export interface AddSenderDomainResponseSpf {
133
+ /** whether the domain's SPF record is valid for use with Mandrill */
134
+ valid?: boolean | null | undefined;
135
+ /** when the domain's SPF record will be considered valid for use with Mandrill as a UTC string in YYYY-MM-DD HH:MM:SS format. If set, this indicates that the record is valid now, but was previously invalid, and Mandrill will wait until the record's TTL elapses to start using it. */
136
+ valid_after?: string | null | undefined;
137
+ /** an error describing the spf record, or null if the record is correct */
138
+ error?: string | null | undefined;
139
+ }
140
+ /** details about the domain's DKIM record */
141
+ export interface AddSenderDomainResponseDkim {
142
+ /** whether the domain's DKIM record is valid for use with Mandrill */
143
+ valid?: boolean | null | undefined;
144
+ /** when the domain's DKIM record will be considered valid for use with Mandrill as a UTC string in YYYY-MM-DD HH:MM:SS format. If set, this indicates that the record is valid now, but was previously invalid, and Mandrill will wait until the record's TTL elapses to start using it. */
145
+ valid_after?: string | null | undefined;
146
+ /** an error describing the DKIM record, or null if the record is correct */
147
+ error?: string | null | undefined;
148
+ }
149
+ export interface AddSenderDomainResponse {
150
+ /** the sender domain name */
151
+ domain?: string | null | undefined;
152
+ /** the date and time that the sending domain was first seen as a UTC string in YYYY-MM-DD HH:MM:SS format */
153
+ created_at?: string | null | undefined;
154
+ /** when the domain's DNS settings were last tested as a UTC string in YYYY-MM-DD HH:MM:SS format */
155
+ last_tested_at?: string | null | undefined;
156
+ /** details about the domain's SPF record */
157
+ spf?: AddSenderDomainResponseSpf | null | undefined;
158
+ /** details about the domain's DKIM record */
159
+ dkim?: AddSenderDomainResponseDkim | null | undefined;
160
+ /** if the domain has been verified, this indicates when that verification occurred as a UTC string in YYYY-MM-DD HH:MM:SS format */
161
+ verified_at?: string | null | undefined;
162
+ /** whether this domain can be used to authenticate mail, either for itself or as a custom signing domain. If this is false but spf and dkim are both valid, you will need to verify the domain before using it to authenticate mail */
163
+ valid_signing?: boolean | null | undefined;
164
+ /** a unique key used to verify a domain by adding a TXT record. Append this key to 'mandrill_verify.' and add it to your domain's TXT records to verify */
165
+ verify_txt_key?: string | null | undefined;
166
+ }
167
+ export interface AddSmsRejectRequest {
168
+ /** a phone number to block in E.164 format */
169
+ phone: string;
170
+ /** an optional comment describing the rejection */
171
+ comment?: string | undefined;
172
+ /** an optional unique identifier for the subaccount to limit the denylist entry */
173
+ subaccount?: string | undefined;
174
+ }
175
+ export interface AddSmsRejectResponse {
176
+ /** the phone number you provided */
177
+ phone?: string | null | undefined;
178
+ /** whether the operation succeeded */
179
+ added?: boolean | null | undefined;
180
+ /** the subaccount denylist the phone number was added to, if any */
181
+ subaccount?: string | null | undefined;
182
+ }
183
+ export interface AddSubaccountRequest {
184
+ /** a unique identifier for the subaccount to be used in sending calls */
185
+ id: string;
186
+ /** an optional display name to further identify the subaccount */
187
+ name?: string | undefined;
188
+ /** optional extra text to associate with the subaccount */
189
+ notes?: string | undefined;
190
+ /** an optional manual hourly quota for the subaccount. If not specified, Mandrill will manage this based on reputation */
191
+ custom_quota?: number | undefined;
192
+ }
193
+ /** the current sending status of the subaccount */
194
+ export type AddSubaccountResponseStatus = "active" | "paused";
195
+ export interface AddSubaccountResponse {
196
+ /** a unique indentifier for the subaccount */
197
+ id?: string | null | undefined;
198
+ /** an optional display name for the subaccount */
199
+ name?: string | null | undefined;
200
+ /** an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation */
201
+ custom_quota?: number | null | undefined;
202
+ /** the current sending status of the subaccount */
203
+ status?: AddSubaccountResponseStatus | null | undefined;
204
+ /** the subaccount's current reputation on a scale from 0 to 100 */
205
+ reputation?: number | null | undefined;
206
+ /** the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
207
+ created_at?: string | null | undefined;
208
+ /** the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format */
209
+ first_sent_at?: string | null | undefined;
210
+ /** the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC) */
211
+ sent_weekly?: number | null | undefined;
212
+ /** the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC) */
213
+ sent_monthly?: number | null | undefined;
214
+ /** the number of emails the subaccount has sent since it was created */
215
+ sent_total?: number | null | undefined;
216
+ }
217
+ /** an optional array of up to 10 labels to use for filtering templates */
218
+ export type AddTemplateRequestLabelsList = Array<string>;
219
+ export interface AddTemplateRequest {
220
+ /** the name for the new template - must be unique */
221
+ name: string;
222
+ /** a default sending address for emails sent using this template */
223
+ from_email?: string | undefined;
224
+ /** a default from name to be used */
225
+ from_name?: string | undefined;
226
+ /** a default subject line to be used */
227
+ subject?: string | undefined;
228
+ /** the HTML code for the template with mc:edit attributes for the editable elements */
229
+ code?: string | undefined;
230
+ /** a default text part to be used when sending with this template */
231
+ text?: string | undefined;
232
+ /** set to false to add a draft template without publishing */
233
+ publish?: boolean | undefined;
234
+ /** an optional array of up to 10 labels to use for filtering templates */
235
+ labels?: AddTemplateRequestLabelsList | undefined;
236
+ }
237
+ /** the list of labels applied to the template */
238
+ export type AddTemplateResponseLabelsList = Array<string>;
239
+ export interface AddTemplateResponse {
240
+ /** the immutable unique code name of the template */
241
+ slug?: string | null | undefined;
242
+ /** the name of the template */
243
+ name?: string | null | undefined;
244
+ /** the list of labels applied to the template */
245
+ labels?: AddTemplateResponseLabelsList | null | undefined;
246
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements - draft version */
247
+ code?: string | null | undefined;
248
+ /** the subject line of the template, if provided - draft version */
249
+ subject?: string | null | undefined;
250
+ /** the default sender address for the template, if provided - draft version */
251
+ from_email?: string | null | undefined;
252
+ /** the default sender from name for the template, if provided - draft version */
253
+ from_name?: string | null | undefined;
254
+ /** the default text part of messages sent with the template, if provided - draft version */
255
+ text?: string | null | undefined;
256
+ /** the same as the template name - kept as a separate field for backwards compatibility */
257
+ publish_name?: string | null | undefined;
258
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements that are available as published, if it has been published */
259
+ publish_code?: string | null | undefined;
260
+ /** the subject line of the template, if provided */
261
+ publish_subject?: string | null | undefined;
262
+ /** the default sender address for the template, if provided */
263
+ publish_from_email?: string | null | undefined;
264
+ /** the default sender from name for the template, if provided */
265
+ publish_from_name?: string | null | undefined;
266
+ /** the default text part of messages sent with the template, if provided */
267
+ publish_text?: string | null | undefined;
268
+ /** the date and time the template was last published as a UTC string in YYYY-MM-DD HH:MM:SS format, or null if it has not been published */
269
+ published_at?: string | null | undefined;
270
+ /** the date and time the template was first created as a UTC string in YYYY-MM-DD HH:MM:SS format */
271
+ created_at?: string | null | undefined;
272
+ /** the date and time the template was last modified as a UTC string in YYYY-MM-DD HH:MM:SS format */
273
+ updated_at?: string | null | undefined;
274
+ /** indicates if the template is malformed or corrupt */
275
+ is_broken_template?: boolean | null | undefined;
276
+ }
277
+ export interface AddTrackingDomainRequest {
278
+ /** a domain name */
279
+ domain: string;
280
+ }
281
+ /** details about the domain's CNAME record */
282
+ export interface AddTrackingDomainResponseCname {
283
+ /** whether the domain's CNAME record is valid for use with Mandrill */
284
+ valid?: boolean | null | undefined;
285
+ /** when the domain's CNAME record will be considered valid for use with Mandrill as a UTC string in YYYY-MM-DD HH:MM:SS format. If set, this indicates that the record is valid now, but was previously invalid, and Mandrill will wait until the record's TTL elapses to start using it. */
286
+ valid_after?: string | null | undefined;
287
+ /** an error describing the CNAME record, or null if the record is correct */
288
+ error?: string | null | undefined;
289
+ }
290
+ export interface AddTrackingDomainResponse {
291
+ /** the tracking domain name */
292
+ domain?: string | null | undefined;
293
+ /** the date and time that the tracking domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format */
294
+ created_at?: string | null | undefined;
295
+ /** when the domain's DNS settings were last tested as a UTC string in YYYY-MM-DD HH:MM:SS format */
296
+ last_tested_at?: string | null | undefined;
297
+ /** details about the domain's CNAME record */
298
+ cname?: AddTrackingDomainResponseCname | null | undefined;
299
+ /** whether this domain can be used as a tracking domain for email. */
300
+ valid_tracking?: boolean | null | undefined;
301
+ }
302
+ /** the individual event to listen for */
303
+ export type AddWebhookRequestEventsItem = "send" | "hard_bounce" | "soft_bounce" | "open" | "click" | "spam" | "unsub" | "reject" | "blacklist" | "whitelist";
304
+ /** an optional list of events that will be posted to the webhook */
305
+ export type AddWebhookRequestEventsList = Array<AddWebhookRequestEventsItem | (string & {})>;
306
+ export interface AddWebhookRequest {
307
+ /** the URL to POST batches of events */
308
+ url: string;
309
+ /** an optional description of the webhook */
310
+ description?: string | undefined;
311
+ /** an optional list of events that will be posted to the webhook */
312
+ events?: AddWebhookRequestEventsList | undefined;
313
+ }
314
+ /** the individual message event */
315
+ export type AddWebhookResponseEventsItem = "send" | "hard_bounce" | "soft_bounce" | "open" | "click" | "spam" | "unsub" | "reject";
316
+ /** The message events that will be posted to the hook */
317
+ export type AddWebhookResponseEventsList = Array<AddWebhookResponseEventsItem>;
318
+ export interface AddWebhookResponse {
319
+ /** a unique integer indentifier for the webhook */
320
+ id?: number | null | undefined;
321
+ /** The URL that the event data will be posted to */
322
+ url?: string | null | undefined;
323
+ /** a description of the webhook */
324
+ description?: string | null | undefined;
325
+ /** the key used to requests for this webhook */
326
+ auth_key?: string | null | undefined;
327
+ /** The message events that will be posted to the hook */
328
+ events?: AddWebhookResponseEventsList | null | undefined;
329
+ /** the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
330
+ created_at?: string | null | undefined;
331
+ /** the date and time that the webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS format */
332
+ last_sent_at?: string | null | undefined;
333
+ /** the number of event batches that have ever been sent to this webhook */
334
+ batches_sent?: number | null | undefined;
335
+ /** the total number of events that have ever been sent to this webhook */
336
+ events_sent?: number | null | undefined;
337
+ /** if we've ever gotten an error trying to post to this webhook, the last error that we've seen */
338
+ last_error?: string | null | undefined;
339
+ }
340
+ export interface CancelIpWarmupRequest {
341
+ /** a dedicated ip address */
342
+ ip: string;
343
+ }
344
+ /** information about the ip's custom dns, if it has been configured */
345
+ export interface CancelIpWarmupResponseCustomDns {
346
+ /** a boolean indicating whether custom dns has been configured for this ip */
347
+ enabled?: boolean | null | undefined;
348
+ /** whether the ip's custom dns is currently valid */
349
+ valid?: boolean | null | undefined;
350
+ /** if the ip's custom dns is invalid, this will include details about the error */
351
+ error?: string | null | undefined;
352
+ }
353
+ /** information about the ip's warmup status */
354
+ export interface CancelIpWarmupResponseWarmup {
355
+ /** whether the ip is currently in warmup mode */
356
+ warming_up?: boolean | null | undefined;
357
+ /** the start time for the warmup process as a UTC string in YYYY-MM-DD HH:MM:SS format */
358
+ start_at?: string | null | undefined;
359
+ /** the end date and time for the warmup process as a UTC string in YYYY-MM-DD HH:MM:SS format */
360
+ end_at?: string | null | undefined;
361
+ }
362
+ export interface CancelIpWarmupResponse {
363
+ /** the ip address */
364
+ ip?: string | null | undefined;
365
+ /** the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
366
+ created_at?: string | null | undefined;
367
+ /** the name of the pool that this dedicated IP belongs to */
368
+ pool?: string | null | undefined;
369
+ /** the domain name (reverse dns) of this dedicated IP */
370
+ domain?: string | null | undefined;
371
+ /** information about the ip's custom dns, if it has been configured */
372
+ custom_dns?: CancelIpWarmupResponseCustomDns | null | undefined;
373
+ /** information about the ip's warmup status */
374
+ warmup?: CancelIpWarmupResponseWarmup | null | undefined;
375
+ }
376
+ export interface CancelScheduledMessageRequest {
377
+ /** a scheduled email id, as returned by any of the messages/send calls or messages/list-scheduled */
378
+ id: string;
379
+ }
380
+ /** a scheduled email */
381
+ export interface CancelScheduledMessageResponseBodyItem {
382
+ /** the scheduled message id */
383
+ _id?: string | null | undefined;
384
+ /** the UTC timestamp when the message was created, in YYYY-MM-DD HH:MM:SS format */
385
+ created_at?: string | null | undefined;
386
+ /** the UTC timestamp when the message will be sent, in YYYY-MM-DD HH:MM:SS format */
387
+ send_at?: string | null | undefined;
388
+ /** the email's sender address */
389
+ from_email?: string | null | undefined;
390
+ /** the email's recipient */
391
+ to?: string | null | undefined;
392
+ /** the email's subject */
393
+ subject?: string | null | undefined;
394
+ }
395
+ /** information about the scheduled email that was cancelled. */
396
+ export type CancelScheduledMessageResponseBodyList = Array<CancelScheduledMessageResponseBodyItem>;
397
+ export type CancelScheduledMessageResponse = CancelScheduledMessageResponseBodyList;
398
+ export interface CheckInboundDomainRequest {
399
+ /** an existing inbound domain */
400
+ domain: string;
401
+ }
402
+ export interface CheckInboundDomainResponse {
403
+ /** the domain name that is accepting mail */
404
+ domain?: string | null | undefined;
405
+ /** the date and time that the inbound domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format */
406
+ created_at?: string | null | undefined;
407
+ /** true if this inbound domain has successfully set up an MX record to deliver mail to the Mandrill servers */
408
+ valid_mx?: boolean | null | undefined;
409
+ }
410
+ export interface CheckIpCustomDnsRequest {
411
+ /** a dedicated ip address */
412
+ ip: string;
413
+ /** the domain name to test */
414
+ domain: string;
415
+ }
416
+ export interface CheckIpCustomDnsResponse {
417
+ /** whether the domain name has a correctly-configured A record pointing to the ip address */
418
+ valid?: string | null | undefined;
419
+ /** if valid is false, this will contain details about why the domain's A record is incorrect */
420
+ error?: string | null | undefined;
421
+ }
422
+ export interface CheckSenderDomainRequest {
423
+ /** a domain name */
424
+ domain: string;
425
+ }
426
+ /** details about the domain's SPF record */
427
+ export type CheckSenderDomainResponseSpf = AddSenderDomainResponseSpf;
428
+ /** details about the domain's Legacy DKIM record */
429
+ export interface CheckSenderDomainResponseDkim {
430
+ /** whether the domain's Legacy DKIM record is valid for use with Mandrill */
431
+ valid?: boolean | null | undefined;
432
+ /** when the domain's Legacy DKIM record will be considered valid for use with Mandrill as a UTC string in YYYY-MM-DD HH:MM:SS format. If set, this indicates that the record is valid now, but was previously invalid, and Mandrill will wait until the record's TTL elapses to start using it. */
433
+ valid_after?: string | null | undefined;
434
+ /** an error describing the Legacy DKIM record, or null if the record is correct */
435
+ error?: string | null | undefined;
436
+ }
437
+ /** details about the domain's rotatable 2048 bit DKIM record */
438
+ export type CheckSenderDomainResponseDkim2 = AddSenderDomainResponseDkim;
439
+ /** details about the domain's DMARC record */
440
+ export interface CheckSenderDomainResponseDmarc {
441
+ /** whether the domain's DMARC record is valid for use with Mandrill */
442
+ valid?: boolean | null | undefined;
443
+ /** an error describing the DMARC record, or null if the record is correct */
444
+ error?: string | null | undefined;
445
+ }
446
+ export interface CheckSenderDomainResponse {
447
+ /** the sender domain name */
448
+ domain?: string | null | undefined;
449
+ /** the date and time that the sending domain was first seen as a UTC string in YYYY-MM-DD HH:MM:SS format */
450
+ created_at?: string | null | undefined;
451
+ /** when the domain's DNS settings were last tested as a UTC string in YYYY-MM-DD HH:MM:SS format */
452
+ last_tested_at?: string | null | undefined;
453
+ /** details about the domain's SPF record */
454
+ spf?: AddSenderDomainResponseSpf | null | undefined;
455
+ /** details about the domain's Legacy DKIM record */
456
+ dkim?: CheckSenderDomainResponseDkim | null | undefined;
457
+ /** details about the domain's rotatable 2048 bit DKIM record */
458
+ dkim2?: AddSenderDomainResponseDkim | null | undefined;
459
+ /** details about the domain's DMARC record */
460
+ dmarc?: CheckSenderDomainResponseDmarc | null | undefined;
461
+ /** if the domain has been verified, this indicates when that verification occurred as a UTC string in YYYY-MM-DD HH:MM:SS format */
462
+ verified_at?: string | null | undefined;
463
+ /** whether this domain can be used to authenticate mail, either for itself or as a custom signing domain. If this is false but spf and dkim are both valid, you will need to verify the domain before using it to authenticate mail */
464
+ valid_signing?: boolean | null | undefined;
465
+ /** a unique key used to verify a domain by adding a TXT record. Append this key to 'mandrill_verify.' and add it to your domain's TXT records to verify */
466
+ verify_txt_key?: string | null | undefined;
467
+ }
468
+ export interface CheckTrackingDomainRequest {
469
+ /** an existing tracking domain name */
470
+ domain: string;
471
+ }
472
+ /** details about the domain's CNAME record */
473
+ export type CheckTrackingDomainResponseCname = AddTrackingDomainResponseCname;
474
+ export interface CheckTrackingDomainResponse {
475
+ /** the tracking domain name */
476
+ domain?: string | null | undefined;
477
+ /** the date and time that the tracking domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format */
478
+ created_at?: string | null | undefined;
479
+ /** when the domain's DNS settings were last tested as a UTC string in YYYY-MM-DD HH:MM:SS format */
480
+ last_tested_at?: string | null | undefined;
481
+ /** details about the domain's CNAME record */
482
+ cname?: AddTrackingDomainResponseCname | null | undefined;
483
+ /** whether this domain can be used as a tracking domain for email. */
484
+ valid_tracking?: boolean | null | undefined;
485
+ }
486
+ export interface CreateIpPoolRequest {
487
+ /** the name of a pool to create */
488
+ pool: string;
489
+ }
490
+ /** information about the ip's custom dns, if it has been configured */
491
+ export type CreateIpPoolResponseIpsItemCustomDns = CancelIpWarmupResponseCustomDns;
492
+ /** information about the ip's warmup status */
493
+ export type CreateIpPoolResponseIpsItemWarmup = CancelIpWarmupResponseWarmup;
494
+ /** information about each dedicated IP */
495
+ export interface CreateIpPoolResponseIpsItem {
496
+ /** the ip address */
497
+ ip?: string | null | undefined;
498
+ /** the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
499
+ created_at?: string | null | undefined;
500
+ /** the name of the pool that this dedicated IP belongs to */
501
+ pool?: string | null | undefined;
502
+ /** the domain name (reverse dns) of this dedicated IP */
503
+ domain?: string | null | undefined;
504
+ /** information about the ip's custom dns, if it has been configured */
505
+ custom_dns?: CancelIpWarmupResponseCustomDns | null | undefined;
506
+ /** information about the ip's warmup status */
507
+ warmup?: CancelIpWarmupResponseWarmup | null | undefined;
508
+ }
509
+ /** the dedicated IPs in this pool */
510
+ export type CreateIpPoolResponseIpsList = Array<CreateIpPoolResponseIpsItem>;
511
+ export interface CreateIpPoolResponse {
512
+ /** this pool's name */
513
+ name?: string | null | undefined;
514
+ /** the date and time that this pool was created as a UTC timestamp in YYYY-MM-DD HH:MM:SS format */
515
+ created_at?: string | null | undefined;
516
+ /** the dedicated IPs in this pool */
517
+ ips?: CreateIpPoolResponseIpsList | null | undefined;
518
+ }
519
+ export interface DeleteAllowlistEntryRequest {
520
+ /** the email address to remove from the allowlist */
521
+ email: string;
522
+ }
523
+ export interface DeleteAllowlistEntryResponse {
524
+ /** the email address that was removed from the denylist */
525
+ email?: string | null | undefined;
526
+ /** whether the address was deleted successfully */
527
+ deleted?: boolean | null | undefined;
528
+ }
529
+ export interface DeleteInboundDomainRequest {
530
+ /** an existing inbound domain */
531
+ domain: string;
532
+ }
533
+ export interface DeleteInboundDomainResponse {
534
+ /** the domain name that is accepting mail */
535
+ domain?: string | null | undefined;
536
+ /** the date and time that the inbound domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format */
537
+ created_at?: string | null | undefined;
538
+ /** true if this inbound domain has successfully set up an MX record to deliver mail to the Mandrill servers */
539
+ valid_mx?: boolean | null | undefined;
540
+ }
541
+ export interface DeleteInboundRouteRequest {
542
+ /** the unique identifier of an existing route */
543
+ id: string;
544
+ }
545
+ export interface DeleteInboundRouteResponse {
546
+ /** the unique identifier of the route */
547
+ id?: string | null | undefined;
548
+ /** the search pattern that the mailbox name should match */
549
+ pattern?: string | null | undefined;
550
+ /** the webhook URL where inbound messages will be published */
551
+ url?: string | null | undefined;
552
+ }
553
+ export interface DeleteIpRequest {
554
+ /** the dedicated ip to remove from your account */
555
+ ip: string;
556
+ }
557
+ export interface DeleteIpResponse {
558
+ /** the ip address */
559
+ ip?: string | null | undefined;
560
+ /** a boolean indicating whether the ip was successfully deleted */
561
+ deleted?: string | null | undefined;
562
+ }
563
+ export interface DeleteIpPoolRequest {
564
+ /** the name of the pool to delete */
565
+ pool: string;
566
+ }
567
+ export interface DeleteIpPoolResponse {
568
+ /** the name of the pool */
569
+ pool?: string | null | undefined;
570
+ /** whether the pool was deleted */
571
+ deleted?: boolean | null | undefined;
572
+ }
573
+ export interface DeleteMetadataFieldRequest {
574
+ /** the unique identifier of the metadata field to update */
575
+ name: string;
576
+ }
577
+ /** the current state of the metadata field */
578
+ export type DeleteMetadataFieldResponseState = "active" | "delete" | "index";
579
+ export interface DeleteMetadataFieldResponse {
580
+ /** the unique identifier of the metadata field to update */
581
+ name?: string | null | undefined;
582
+ /** the current state of the metadata field */
583
+ state?: DeleteMetadataFieldResponseState | null | undefined;
584
+ /** Mustache template to control how the metadata is rendered in your activity log */
585
+ view_template?: string | null | undefined;
586
+ }
587
+ export interface DeleteRejectRequest {
588
+ /** an email address */
589
+ email: string;
590
+ /** an optional unique identifier for the subaccount to limit the denylist deletion */
591
+ subaccount?: string | undefined;
592
+ }
593
+ export interface DeleteRejectResponse {
594
+ /** the email address that was removed from the denylist */
595
+ email?: string | null | undefined;
596
+ /** whether the address was deleted successfully. */
597
+ deleted?: boolean | null | undefined;
598
+ /** the subaccount denylist that the address was removed from, if any */
599
+ subaccount?: string | null | undefined;
600
+ }
601
+ export interface DeleteSenderDomainRequest {
602
+ /** the domain name to delete */
603
+ domain: string;
604
+ }
605
+ /** Details about the domain's SPF record. */
606
+ export interface DeleteSenderDomainResponseSpf {
607
+ /** Whether this verification is valid. */
608
+ valid?: boolean | null | undefined;
609
+ /** The date and time that this verification was last tested. */
610
+ valid_after?: string | null | undefined;
611
+ /** An error message indicating why the verification failed. */
612
+ error?: string | null | undefined;
613
+ }
614
+ /** Details about the domain's DKIM record. */
615
+ export type DeleteSenderDomainResponseDkim = DeleteSenderDomainResponseSpf;
616
+ /** Details about the domain's second DKIM record. */
617
+ export type DeleteSenderDomainResponseDkim2 = DeleteSenderDomainResponseSpf;
618
+ /** Details about the domain's DMARC record. */
619
+ export interface DeleteSenderDomainResponseDmarc {
620
+ /** Whether this verification is valid. */
621
+ valid?: boolean | null | undefined;
622
+ /** An error message indicating why the verification failed. */
623
+ error?: string | null | undefined;
624
+ }
625
+ export interface DeleteSenderDomainResponse {
626
+ domain?: string | null | undefined;
627
+ /** The date and time that the sending domain was first seen. */
628
+ created_at?: string | null | undefined;
629
+ /** The date and time that the sending domain was last tested. */
630
+ last_tested_at?: string | null | undefined;
631
+ /** Details about the domain's SPF record. */
632
+ spf?: DeleteSenderDomainResponseSpf | null | undefined;
633
+ /** Details about the domain's DKIM record. */
634
+ dkim?: DeleteSenderDomainResponseSpf | null | undefined;
635
+ /** Details about the domain's second DKIM record. */
636
+ dkim2?: DeleteSenderDomainResponseSpf | null | undefined;
637
+ /** Details about the domain's DMARC record. */
638
+ dmarc?: DeleteSenderDomainResponseDmarc | null | undefined;
639
+ /** The date and time that the sending domain was verified. */
640
+ verified_at?: string | null | undefined;
641
+ /** Whether this domain can be used to sign messages. */
642
+ valid_signing?: boolean | null | undefined;
643
+ /** The key for the TXT record used to verify the domain. */
644
+ verify_txt_key?: string | null | undefined;
645
+ }
646
+ export interface DeleteSmsRejectRequest {
647
+ /** a phone number in E.164 format */
648
+ phone: string;
649
+ /** an optional unique identifier for the subaccount to limit the denylist deletion */
650
+ subaccount?: string | undefined;
651
+ }
652
+ export interface DeleteSmsRejectResponse {
653
+ /** the phone number you provided */
654
+ phone?: string | null | undefined;
655
+ /** whether the operation succeeded */
656
+ deleted?: boolean | null | undefined;
657
+ /** the subaccount denylist the phone number was deleted from, if any */
658
+ subaccount?: string | null | undefined;
659
+ }
660
+ export interface DeleteSubaccountRequest {
661
+ /** the unique identifier of the subaccount to delete */
662
+ id: string;
663
+ }
664
+ /** the current sending status of the subaccount */
665
+ export type DeleteSubaccountResponseStatus = "active" | "paused";
666
+ export interface DeleteSubaccountResponse {
667
+ /** a unique indentifier for the subaccount */
668
+ id?: string | null | undefined;
669
+ /** an optional display name for the subaccount */
670
+ name?: string | null | undefined;
671
+ /** an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation */
672
+ custom_quota?: number | null | undefined;
673
+ /** the current sending status of the subaccount */
674
+ status?: DeleteSubaccountResponseStatus | null | undefined;
675
+ /** the subaccount's current reputation on a scale from 0 to 100 */
676
+ reputation?: number | null | undefined;
677
+ /** the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
678
+ created_at?: string | null | undefined;
679
+ /** the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format */
680
+ first_sent_at?: string | null | undefined;
681
+ /** the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC) */
682
+ sent_weekly?: number | null | undefined;
683
+ /** the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC) */
684
+ sent_monthly?: number | null | undefined;
685
+ /** the number of emails the subaccount has sent since it was created */
686
+ sent_total?: number | null | undefined;
687
+ }
688
+ export interface DeleteTagRequest {
689
+ /** a tag name */
690
+ tag: string;
691
+ }
692
+ export interface DeleteTagResponse {
693
+ /** the actual tag as a string */
694
+ tag?: string | null | undefined;
695
+ /** the tag's current reputation on a scale from 0 to 100. */
696
+ reputation?: number | null | undefined;
697
+ /** the total number of messages sent with this tag */
698
+ sent?: number | null | undefined;
699
+ /** the total number of hard bounces by messages with this tag */
700
+ hard_bounces?: number | null | undefined;
701
+ /** the total number of soft bounces by messages with this tag */
702
+ soft_bounces?: number | null | undefined;
703
+ /** the total number of rejected messages with this tag */
704
+ rejects?: number | null | undefined;
705
+ /** the total number of spam complaints received for messages with this tag */
706
+ complaints?: number | null | undefined;
707
+ /** the total number of unsubscribe requests received for messages with this tag */
708
+ unsubs?: number | null | undefined;
709
+ /** the total number of times messages with this tag have been opened */
710
+ opens?: number | null | undefined;
711
+ /** the total number of times tracked URLs in messages with this tag have been clicked */
712
+ clicks?: number | null | undefined;
713
+ /** the number of unique opens for emails sent with this tag */
714
+ unique_opens?: number | null | undefined;
715
+ /** the number of unique clicks for emails sent with this tag */
716
+ unique_clicks?: number | null | undefined;
717
+ }
718
+ export interface DeleteTemplateRequest {
719
+ /** the immutable name of an existing template */
720
+ name: string;
721
+ }
722
+ /** the list of labels applied to the template */
723
+ export type DeleteTemplateResponseLabelsList = Array<string>;
724
+ export interface DeleteTemplateResponse {
725
+ /** the immutable unique code name of the template */
726
+ slug?: string | null | undefined;
727
+ /** the name of the template */
728
+ name?: string | null | undefined;
729
+ /** the list of labels applied to the template */
730
+ labels?: DeleteTemplateResponseLabelsList | null | undefined;
731
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements - draft version */
732
+ code?: string | null | undefined;
733
+ /** the subject line of the template, if provided - draft version */
734
+ subject?: string | null | undefined;
735
+ /** the default sender address for the template, if provided - draft version */
736
+ from_email?: string | null | undefined;
737
+ /** the default sender from name for the template, if provided - draft version */
738
+ from_name?: string | null | undefined;
739
+ /** the default text part of messages sent with the template, if provided - draft version */
740
+ text?: string | null | undefined;
741
+ /** the same as the template name - kept as a separate field for backwards compatibility */
742
+ publish_name?: string | null | undefined;
743
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements that are available as published, if it has been published */
744
+ publish_code?: string | null | undefined;
745
+ /** the subject line of the template, if provided */
746
+ publish_subject?: string | null | undefined;
747
+ /** the default sender address for the template, if provided */
748
+ publish_from_email?: string | null | undefined;
749
+ /** the default sender from name for the template, if provided */
750
+ publish_from_name?: string | null | undefined;
751
+ /** the default text part of messages sent with the template, if provided */
752
+ publish_text?: string | null | undefined;
753
+ /** the date and time the template was last published as a UTC string in YYYY-MM-DD HH:MM:SS format, or null if it has not been published */
754
+ published_at?: string | null | undefined;
755
+ /** the date and time the template was first created as a UTC string in YYYY-MM-DD HH:MM:SS format */
756
+ created_at?: string | null | undefined;
757
+ /** the date and time the template was last modified as a UTC string in YYYY-MM-DD HH:MM:SS format */
758
+ updated_at?: string | null | undefined;
759
+ /** indicates if the template is malformed or corrupt */
760
+ is_broken_template?: boolean | null | undefined;
761
+ }
762
+ export interface DeleteTrackingDomainRequest {
763
+ /** the tracking domain name to delete */
764
+ domain: string;
765
+ }
766
+ /** CNAME record verification status and details */
767
+ export interface DeleteTrackingDomainResponseCname {
768
+ /** Whether the CNAME record is properly configured */
769
+ valid: boolean;
770
+ /** When the CNAME will be valid (if applicable) */
771
+ valid_after: string;
772
+ /** an error describing the CNAME record, or null if the record is correct */
773
+ error: unknown;
774
+ }
775
+ export interface DeleteTrackingDomainResponse {
776
+ /** The tracking domain name */
777
+ domain?: string | null | undefined;
778
+ /** When the domain was added to the account (UTC YYYY-MM-DD HH:MM:SS.microseconds) */
779
+ created_at?: string | null | undefined;
780
+ /** When the domain was last tested for CNAME configuration (UTC YYYY-MM-DD HH:MM:SS.microseconds) */
781
+ last_tested_at?: string | null | undefined;
782
+ /** CNAME record verification status and details */
783
+ cname?: DeleteTrackingDomainResponseCname | null | undefined;
784
+ /** Whether this domain is ready to be used for tracking */
785
+ valid_tracking?: boolean | null | undefined;
786
+ }
787
+ export interface DeleteWebhookRequest {
788
+ /** the unique identifier of a webhook belonging to this account */
789
+ id: number;
790
+ }
791
+ /** the individual message event */
792
+ export type DeleteWebhookResponseEventsItem = "send" | "hard_bounce" | "soft_bounce" | "open" | "click" | "spam" | "unsub" | "reject";
793
+ /** The message events that will be posted to the hook */
794
+ export type DeleteWebhookResponseEventsList = Array<DeleteWebhookResponseEventsItem>;
795
+ export interface DeleteWebhookResponse {
796
+ /** a unique integer indentifier for the webhook */
797
+ id?: number | null | undefined;
798
+ /** The URL that the event data will be posted to */
799
+ url?: string | null | undefined;
800
+ /** a description of the webhook */
801
+ description?: string | null | undefined;
802
+ /** the key used to requests for this webhook */
803
+ auth_key?: string | null | undefined;
804
+ /** The message events that will be posted to the hook */
805
+ events?: DeleteWebhookResponseEventsList | null | undefined;
806
+ /** the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
807
+ created_at?: string | null | undefined;
808
+ /** the date and time that the webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS format */
809
+ last_sent_at?: string | null | undefined;
810
+ /** the number of event batches that have ever been sent to this webhook */
811
+ batches_sent?: number | null | undefined;
812
+ /** the total number of events that have ever been sent to this webhook */
813
+ events_sent?: number | null | undefined;
814
+ /** if we've ever gotten an error trying to post to this webhook, the last error that we've seen */
815
+ last_error?: string | null | undefined;
816
+ }
817
+ /** an array of tag names to narrow the export to; will match messages that contain ANY of the tags */
818
+ export type ExportActivityRequestTagsList = Array<string>;
819
+ /** an array of senders to narrow the export to */
820
+ export type ExportActivityRequestSendersList = Array<string>;
821
+ /** a message state */
822
+ export type ExportActivityRequestStatesItem = "sent" | "rejected" | "bounced" | "soft-bounced" | "spam" | "unsub";
823
+ /** an array of message states to narrow the export to; messages with ANY of the states will be included */
824
+ export type ExportActivityRequestStatesList = Array<ExportActivityRequestStatesItem | (string & {})>;
825
+ /** an array of api keys to narrow the export to; messsagse sent with ANY of the keys will be included */
826
+ export type ExportActivityRequestApiKeysList = Array<string>;
827
+ export interface ExportActivityRequest {
828
+ /** an optional email address to notify when the export job has finished */
829
+ notify_email?: string | undefined;
830
+ /** start date as a UTC string in YYYY-MM-DD HH:MM:SS format */
831
+ date_from?: string | undefined;
832
+ /** end date as a UTC string in YYYY-MM-DD HH:MM:SS format */
833
+ date_to?: string | undefined;
834
+ /** an array of tag names to narrow the export to; will match messages that contain ANY of the tags */
835
+ tags?: ExportActivityRequestTagsList | undefined;
836
+ /** an array of senders to narrow the export to */
837
+ senders?: ExportActivityRequestSendersList | undefined;
838
+ /** an array of message states to narrow the export to; messages with ANY of the states will be included */
839
+ states?: ExportActivityRequestStatesList | undefined;
840
+ /** an array of api keys to narrow the export to; messsagse sent with ANY of the keys will be included */
841
+ api_keys?: ExportActivityRequestApiKeysList | undefined;
842
+ }
843
+ export interface ExportActivityResponse {
844
+ /** the unique identifier for this Export. Use this identifier when checking the export job's status */
845
+ id?: string | null | undefined;
846
+ /** the date and time that the export job was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
847
+ created_at?: string | null | undefined;
848
+ /** the type of the export job */
849
+ type?: string | null | undefined;
850
+ /** the date and time that the export job was finished as a UTC string in YYYY-MM-DD HH:MM:SS format, or null for jobs that have not run */
851
+ finished_at?: string | null | undefined;
852
+ /** the export job's state */
853
+ state?: string | null | undefined;
854
+ /** the url for the export job's results, if the job is complete */
855
+ result_url?: string | null | undefined;
856
+ }
857
+ export interface ExportAllowlistRequest {
858
+ /** an optional email address to notify when the export job has finished. */
859
+ notify_email?: string | undefined;
860
+ }
861
+ export interface ExportAllowlistResponse {
862
+ /** the unique identifier for this Export. Use this identifier when checking the export job's status */
863
+ id?: string | null | undefined;
864
+ /** the date and time that the export job was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
865
+ created_at?: string | null | undefined;
866
+ /** the type of the export job */
867
+ type?: string | null | undefined;
868
+ /** the date and time that the export job was finished as a UTC string in YYYY-MM-DD HH:MM:SS format, or null for jobs that have not run */
869
+ finished_at?: string | null | undefined;
870
+ /** the export job's state */
871
+ state?: string | null | undefined;
872
+ /** the url for the export job's results, if the job is complete */
873
+ result_url?: string | null | undefined;
874
+ }
875
+ export interface ExportRejectsRequest {
876
+ /** an optional email address to notify when the export job has finished. */
877
+ notify_email?: string | undefined;
878
+ }
879
+ export interface ExportRejectsResponse {
880
+ /** the unique identifier for this Export. Use this identifier when checking the export job's status */
881
+ id?: string | null | undefined;
882
+ /** the date and time that the export job was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
883
+ created_at?: string | null | undefined;
884
+ /** the type of the export job - activity, reject, or whitelist */
885
+ type?: string | null | undefined;
886
+ /** the date and time that the export job was finished as a UTC string in YYYY-MM-DD HH:MM:SS format */
887
+ finished_at?: string | null | undefined;
888
+ /** the export job's state - waiting, working, complete, error, or expired. */
889
+ state?: string | null | undefined;
890
+ /** the url for the export job's results, if the job is completed. */
891
+ result_url?: string | null | undefined;
892
+ }
893
+ export interface ExportWhitelistRequest {
894
+ /** an optional email address to notify when the export job has finished. */
895
+ notify_email?: string | undefined;
896
+ }
897
+ export interface ExportWhitelistResponse {
898
+ /** the unique identifier for this Export. Use this identifier when checking the export job's status */
899
+ id?: string | null | undefined;
900
+ /** the date and time that the export job was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
901
+ created_at?: string | null | undefined;
902
+ /** the type of the export job */
903
+ type?: string | null | undefined;
904
+ /** the date and time that the export job was finished as a UTC string in YYYY-MM-DD HH:MM:SS format, or null for jobs that have not run */
905
+ finished_at?: string | null | undefined;
906
+ /** the export job's state */
907
+ state?: string | null | undefined;
908
+ /** the url for the export job's results, if the job is complete */
909
+ result_url?: string | null | undefined;
910
+ }
911
+ export interface GetAllTagsTimeSeriesRequest {
912
+ }
913
+ /** the stats for a single hour */
914
+ export interface GetAllTagsTimeSeriesResponseBodyItem {
915
+ /** the hour as a UTC date string in YYYY-MM-DD HH:MM:SS format */
916
+ time?: string | null | undefined;
917
+ /** the number of emails that were sent during the hour */
918
+ sent?: number | null | undefined;
919
+ /** the number of emails that hard bounced during the hour */
920
+ hard_bounces?: number | null | undefined;
921
+ /** the number of emails that soft bounced during the hour */
922
+ soft_bounces?: number | null | undefined;
923
+ /** the number of emails that were rejected during the hour */
924
+ rejects?: number | null | undefined;
925
+ /** the number of spam complaints received during the hour */
926
+ complaints?: number | null | undefined;
927
+ /** the number of unsubscribes received during the hour */
928
+ unsubs?: number | null | undefined;
929
+ /** the number of emails opened during the hour */
930
+ opens?: number | null | undefined;
931
+ /** the number of unique opens generated by messages sent during the hour */
932
+ unique_opens?: number | null | undefined;
933
+ /** the number of tracked URLs clicked during the hour */
934
+ clicks?: number | null | undefined;
935
+ /** the number of unique clicks generated by messages sent during the hour */
936
+ unique_clicks?: number | null | undefined;
937
+ }
938
+ /** the array of history information */
939
+ export type GetAllTagsTimeSeriesResponseBodyList = Array<GetAllTagsTimeSeriesResponseBodyItem>;
940
+ export type GetAllTagsTimeSeriesResponse = GetAllTagsTimeSeriesResponseBodyList;
941
+ export interface GetExportRequest {
942
+ /** an export job identifier */
943
+ id: string;
944
+ }
945
+ export interface GetExportResponse {
946
+ /** the unique identifier for this Export. Use this identifier when checking the export job's status */
947
+ id?: string | null | undefined;
948
+ /** the date and time that the export job was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
949
+ created_at?: string | null | undefined;
950
+ /** the type of the export job - activity, reject, or allowlist */
951
+ type?: string | null | undefined;
952
+ /** the date and time that the export job was finished as a UTC string in YYYY-MM-DD HH:MM:SS format */
953
+ finished_at?: string | null | undefined;
954
+ /** the export job's state - waiting, working, complete, error, or expired. */
955
+ state?: string | null | undefined;
956
+ /** the url for the export job's results, if the job is completed. */
957
+ result_url?: string | null | undefined;
958
+ }
959
+ export interface GetIpRequest {
960
+ /** a dedicated IP address */
961
+ ip?: string | undefined;
962
+ }
963
+ /** information about the ip's custom dns, if it has been configured */
964
+ export type GetIpResponseCustomDns = CancelIpWarmupResponseCustomDns;
965
+ /** information about the ip's warmup status */
966
+ export type GetIpResponseWarmup = CancelIpWarmupResponseWarmup;
967
+ export interface GetIpResponse {
968
+ /** the ip address */
969
+ ip?: string | null | undefined;
970
+ /** the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
971
+ created_at?: string | null | undefined;
972
+ /** the name of the pool that this dedicated IP belongs to */
973
+ pool?: string | null | undefined;
974
+ /** the domain name (reverse dns) of this dedicated IP */
975
+ domain?: string | null | undefined;
976
+ /** information about the ip's custom dns, if it has been configured */
977
+ custom_dns?: CancelIpWarmupResponseCustomDns | null | undefined;
978
+ /** information about the ip's warmup status */
979
+ warmup?: CancelIpWarmupResponseWarmup | null | undefined;
980
+ }
981
+ export interface GetIpPoolRequest {
982
+ /** a pool name */
983
+ pool: string;
984
+ }
985
+ /** information about the ip's custom dns, if it has been configured */
986
+ export type GetIpPoolResponseIpsItemCustomDns = CancelIpWarmupResponseCustomDns;
987
+ /** information about the ip's warmup status */
988
+ export type GetIpPoolResponseIpsItemWarmup = CancelIpWarmupResponseWarmup;
989
+ /** information about each dedicated IP */
990
+ export type GetIpPoolResponseIpsItem = CreateIpPoolResponseIpsItem;
991
+ /** the dedicated IPs in this pool */
992
+ export type GetIpPoolResponseIpsList = Array<CreateIpPoolResponseIpsItem>;
993
+ export interface GetIpPoolResponse {
994
+ /** this pool's name */
995
+ name?: string | null | undefined;
996
+ /** the date and time that this pool was created as a UTC timestamp in YYYY-MM-DD HH:MM:SS format */
997
+ created_at?: string | null | undefined;
998
+ /** the dedicated IPs in this pool */
999
+ ips?: GetIpPoolResponseIpsList | null | undefined;
1000
+ }
1001
+ export interface GetMcTemplateRequest {
1002
+ /** the id of the Mailchimp template */
1003
+ mc_template_id: number;
1004
+ }
1005
+ /** Array of labels (always empty for transactional templates) */
1006
+ export type GetMcTemplateResponseLabelsList = Array<string>;
1007
+ export interface GetMcTemplateResponse {
1008
+ /** Mailchimp template ID */
1009
+ mc_template_id?: number | null | undefined;
1010
+ /** Template name */
1011
+ mc_template_name?: string | null | undefined;
1012
+ /** Array of labels (always empty for transactional templates) */
1013
+ labels?: GetMcTemplateResponseLabelsList | null | undefined;
1014
+ /** Template HTML (draft version) */
1015
+ code?: string | null | undefined;
1016
+ /** Default subject line */
1017
+ subject?: string | null | undefined;
1018
+ /** Default sending address */
1019
+ from_email?: string | null | undefined;
1020
+ /** Default from name */
1021
+ from_name?: string | null | undefined;
1022
+ /** Template text (draft version) */
1023
+ text?: string | null | undefined;
1024
+ /** Template HTML (published version) */
1025
+ publish_code?: string | null | undefined;
1026
+ /** Template text (published version) */
1027
+ publish_text?: string | null | undefined;
1028
+ /** Date and time when template was published in UTC YYYY-MM-DD HH:MM:SS format */
1029
+ published_at?: string | null | undefined;
1030
+ /** Date and time when template was created in UTC YYYY-MM-DD HH:MM:SS format */
1031
+ created_at?: string | null | undefined;
1032
+ /** Date and time when template was last updated in UTC YYYY-MM-DD HH:MM:SS format */
1033
+ updated_at?: string | null | undefined;
1034
+ /** Date and time when template draft was last updated in UTC YYYY-MM-DD HH:MM:SS format */
1035
+ draft_updated_at?: string | null | undefined;
1036
+ /** Whether template has rendering errors */
1037
+ is_broken_template?: boolean | null | undefined;
1038
+ }
1039
+ export interface GetMcTemplateTimeSeriesRequest {
1040
+ /** the id of the Mailchimp template to get time series data for */
1041
+ mc_template_id: number;
1042
+ }
1043
+ export interface GetMcTemplateTimeSeriesResponseBodyItem {
1044
+ /** The hour as a UTC date string in YYYY-MM-DD HH:00:00 format */
1045
+ time?: string | null | undefined;
1046
+ /** The number of emails sent during the time period */
1047
+ sent?: number | null | undefined;
1048
+ /** The number of emails hard bounced during the time period */
1049
+ hard_bounces?: number | null | undefined;
1050
+ /** The number of emails soft bounced during the time period */
1051
+ soft_bounces?: number | null | undefined;
1052
+ /** The number of emails rejected during the time period */
1053
+ rejects?: number | null | undefined;
1054
+ /** The number of spam complaints received during the time period */
1055
+ complaints?: number | null | undefined;
1056
+ /** The number of unsubscribes during the time period */
1057
+ unsubs?: number | null | undefined;
1058
+ /** The number of emails opened during the time period */
1059
+ opens?: number | null | undefined;
1060
+ /** The number of unique opens during the time period */
1061
+ unique_opens?: number | null | undefined;
1062
+ /** The number of URLs clicked during the time period */
1063
+ clicks?: number | null | undefined;
1064
+ /** The number of unique clicks during the time period */
1065
+ unique_clicks?: number | null | undefined;
1066
+ }
1067
+ /** Array of hourly stats for the template */
1068
+ export type GetMcTemplateTimeSeriesResponseBodyList = Array<GetMcTemplateTimeSeriesResponseBodyItem>;
1069
+ export type GetMcTemplateTimeSeriesResponse = GetMcTemplateTimeSeriesResponseBodyList;
1070
+ export interface GetMessageRequest {
1071
+ /** the unique id of the message to get - passed as the "_id" field in webhooks, send calls, or search calls */
1072
+ id: string;
1073
+ }
1074
+ /** list of tags on this message */
1075
+ export type GetMessageResponseTagsList = Array<string>;
1076
+ /** information on an individual open */
1077
+ export interface GetMessageResponseOpensDetailItem {
1078
+ /** the unix timestamp from when the message was opened */
1079
+ ts?: number | null | undefined;
1080
+ /** the IP address that generated the open */
1081
+ ip?: string | null | undefined;
1082
+ /** the approximate region and country that the opening IP is located */
1083
+ location?: string | null | undefined;
1084
+ /** the email client or browser data of the open */
1085
+ ua?: string | null | undefined;
1086
+ }
1087
+ /** list of individual opens for the message */
1088
+ export type GetMessageResponseOpensDetailList = Array<GetMessageResponseOpensDetailItem>;
1089
+ /** information on an individual click */
1090
+ export interface GetMessageResponseClicksDetailItem {
1091
+ /** the unix timestamp from when the message was clicked */
1092
+ ts?: number | null | undefined;
1093
+ /** the URL that was clicked on */
1094
+ url?: string | null | undefined;
1095
+ /** the IP address that generated the click */
1096
+ ip?: string | null | undefined;
1097
+ /** the approximate region and country that the clicking IP is located */
1098
+ location?: string | null | undefined;
1099
+ /** the email client or browser data of the click */
1100
+ ua?: string | null | undefined;
1101
+ }
1102
+ /** list of individual clicks for the message */
1103
+ export type GetMessageResponseClicksDetailList = Array<GetMessageResponseClicksDetailItem>;
1104
+ /** sending status of this message */
1105
+ export type GetMessageResponseState = "sent" | "bounced" | "rejected";
1106
+ /** information about a specific smtp event */
1107
+ export interface GetMessageResponseSmtpEventsItem {
1108
+ /** the Unix timestamp when the event occured */
1109
+ ts?: number | null | undefined;
1110
+ /** the message's state as a result of this event */
1111
+ type?: string | null | undefined;
1112
+ /** the SMTP response from the recipient's server */
1113
+ diag?: string | null | undefined;
1114
+ }
1115
+ /** a log of up to 3 smtp events for the message */
1116
+ export type GetMessageResponseSmtpEventsList = Array<GetMessageResponseSmtpEventsItem>;
1117
+ export interface GetMessageResponse {
1118
+ /** the Unix timestamp from when this message was sent */
1119
+ ts?: number | null | undefined;
1120
+ /** the message's unique id */
1121
+ _id?: string | null | undefined;
1122
+ /** the email address of the sender */
1123
+ sender?: string | null | undefined;
1124
+ /** the unique name of the template used, if any */
1125
+ template?: string | null | undefined;
1126
+ /** the message's subject line */
1127
+ subject?: string | null | undefined;
1128
+ /** the recipient email address */
1129
+ email?: string | null | undefined;
1130
+ /** list of tags on this message */
1131
+ tags?: GetMessageResponseTagsList | null | undefined;
1132
+ /** how many times has this message been opened */
1133
+ opens?: number | null | undefined;
1134
+ /** list of individual opens for the message */
1135
+ opens_detail?: GetMessageResponseOpensDetailList | null | undefined;
1136
+ /** how many times has a link been clicked in this message */
1137
+ clicks?: number | null | undefined;
1138
+ /** list of individual clicks for the message */
1139
+ clicks_detail?: GetMessageResponseClicksDetailList | null | undefined;
1140
+ /** sending status of this message */
1141
+ state?: GetMessageResponseState | null | undefined;
1142
+ /** any custom metadata provided when the message was sent */
1143
+ metadata?: unknown | null | undefined;
1144
+ /** a log of up to 3 smtp events for the message */
1145
+ smtp_events?: GetMessageResponseSmtpEventsList | null | undefined;
1146
+ }
1147
+ export interface GetMessageContentRequest {
1148
+ /** the unique id of the message to get - passed as the "_id" field in webhooks, send calls, or search calls */
1149
+ id: string;
1150
+ }
1151
+ /** the message recipient's information */
1152
+ export interface GetMessageContentResponseTo {
1153
+ /** the email address of the recipient */
1154
+ email?: string | null | undefined;
1155
+ /** the alias of the recipient (if any) */
1156
+ name?: string | null | undefined;
1157
+ }
1158
+ /** list of tags on this message */
1159
+ export type GetMessageContentResponseTagsList = Array<string>;
1160
+ /** information about an individual attachment */
1161
+ export interface GetMessageContentResponseAttachmentsItem {
1162
+ /** the file name of the attachment */
1163
+ name?: string | null | undefined;
1164
+ /** the MIME type of the attachment */
1165
+ type?: string | null | undefined;
1166
+ /** the content of the attachment as a base64 encoded string */
1167
+ content?: string | null | undefined;
1168
+ }
1169
+ /** an array of any attachments that can be found in the message */
1170
+ export type GetMessageContentResponseAttachmentsList = Array<GetMessageContentResponseAttachmentsItem>;
1171
+ export interface GetMessageContentResponse {
1172
+ /** the Unix timestamp from when this message was sent */
1173
+ ts?: number | null | undefined;
1174
+ /** the message's unique id */
1175
+ _id?: string | null | undefined;
1176
+ /** the email address of the sender */
1177
+ from_email?: string | null | undefined;
1178
+ /** the alias of the sender (if any) */
1179
+ from_name?: string | null | undefined;
1180
+ /** the message's subject line */
1181
+ subject?: string | null | undefined;
1182
+ /** the message recipient's information */
1183
+ to?: GetMessageContentResponseTo | null | undefined;
1184
+ /** list of tags on this message */
1185
+ tags?: GetMessageContentResponseTagsList | null | undefined;
1186
+ /** the key-value pairs of the custom MIME headers for the message's main document */
1187
+ headers?: unknown | null | undefined;
1188
+ /** the text part of the message, if any */
1189
+ text?: string | null | undefined;
1190
+ /** the HTML part of the message, if any */
1191
+ html?: string | null | undefined;
1192
+ /** an array of any attachments that can be found in the message */
1193
+ attachments?: GetMessageContentResponseAttachmentsList | null | undefined;
1194
+ }
1195
+ export interface GetSenderRequest {
1196
+ /** the email address of the sender */
1197
+ address: string;
1198
+ }
1199
+ /** stats for this sender so far today */
1200
+ export interface GetSenderResponseStatsToday {
1201
+ /** the number of emails sent for this sender so far today */
1202
+ sent?: number | null | undefined;
1203
+ /** the number of emails hard bounced for this sender so far today */
1204
+ hard_bounces?: number | null | undefined;
1205
+ /** the number of emails soft bounced for this sender so far today */
1206
+ soft_bounces?: number | null | undefined;
1207
+ /** the number of emails rejected for sending this sender so far today */
1208
+ rejects?: number | null | undefined;
1209
+ /** the number of spam complaints for this sender so far today */
1210
+ complaints?: number | null | undefined;
1211
+ /** the number of unsubscribes for this sender so far today */
1212
+ unsubs?: number | null | undefined;
1213
+ /** the number of times emails have been opened for this sender so far today */
1214
+ opens?: number | null | undefined;
1215
+ /** the number of unique opens for emails sent for this sender so far today */
1216
+ unique_opens?: number | null | undefined;
1217
+ /** the number of URLs that have been clicked for this sender so far today */
1218
+ clicks?: number | null | undefined;
1219
+ /** the number of unique clicks for emails sent for this sender so far today */
1220
+ unique_clicks?: number | null | undefined;
1221
+ }
1222
+ /** stats for this sender in the last 7 days */
1223
+ export interface GetSenderResponseStatsLast7Days {
1224
+ /** the number of emails sent for this sender in the last 7 days */
1225
+ sent?: number | null | undefined;
1226
+ /** the number of emails hard bounced for this sender in the last 7 days */
1227
+ hard_bounces?: number | null | undefined;
1228
+ /** the number of emails soft bounced for this sender in the last 7 days */
1229
+ soft_bounces?: number | null | undefined;
1230
+ /** the number of emails rejected for sending this sender in the last 7 days */
1231
+ rejects?: number | null | undefined;
1232
+ /** the number of spam complaints for this sender in the last 7 days */
1233
+ complaints?: number | null | undefined;
1234
+ /** the number of unsubscribes for this sender in the last 7 days */
1235
+ unsubs?: number | null | undefined;
1236
+ /** the number of times emails have been opened for this sender in the last 7 days */
1237
+ opens?: number | null | undefined;
1238
+ /** the number of unique opens for emails sent for this sender in the last 7 days */
1239
+ unique_opens?: number | null | undefined;
1240
+ /** the number of URLs that have been clicked for this sender in the last 7 days */
1241
+ clicks?: number | null | undefined;
1242
+ /** the number of unique clicks for emails sent for this sender in the last 7 days */
1243
+ unique_clicks?: number | null | undefined;
1244
+ }
1245
+ /** stats for this sender in the last 30 days */
1246
+ export interface GetSenderResponseStatsLast30Days {
1247
+ /** the number of emails sent for this sender in the last 30 days */
1248
+ sent?: number | null | undefined;
1249
+ /** the number of emails hard bounced for this sender in the last 30 days */
1250
+ hard_bounces?: number | null | undefined;
1251
+ /** the number of emails soft bounced for this sender in the last 30 days */
1252
+ soft_bounces?: number | null | undefined;
1253
+ /** the number of emails rejected for sending this sender in the last 30 days */
1254
+ rejects?: number | null | undefined;
1255
+ /** the number of spam complaints for this sender in the last 30 days */
1256
+ complaints?: number | null | undefined;
1257
+ /** the number of unsubscribes for this sender in the last 30 days */
1258
+ unsubs?: number | null | undefined;
1259
+ /** the number of times emails have been opened for this sender in the last 30 days */
1260
+ opens?: number | null | undefined;
1261
+ /** the number of unique opens for emails sent for this sender in the last 30 days */
1262
+ unique_opens?: number | null | undefined;
1263
+ /** the number of URLs that have been clicked for this sender in the last 30 days */
1264
+ clicks?: number | null | undefined;
1265
+ /** the number of unique clicks for emails sent for this sender in the last 30 days */
1266
+ unique_clicks?: number | null | undefined;
1267
+ }
1268
+ /** stats for this sender in the last 60 days */
1269
+ export interface GetSenderResponseStatsLast60Days {
1270
+ /** the number of emails sent for this sender in the last 60 days */
1271
+ sent?: number | null | undefined;
1272
+ /** the number of emails hard bounced for this sender in the last 60 days */
1273
+ hard_bounces?: number | null | undefined;
1274
+ /** the number of emails soft bounced for this sender in the last 60 days */
1275
+ soft_bounces?: number | null | undefined;
1276
+ /** the number of emails rejected for sending this sender in the last 60 days */
1277
+ rejects?: number | null | undefined;
1278
+ /** the number of spam complaints for this sender in the last 60 days */
1279
+ complaints?: number | null | undefined;
1280
+ /** the number of unsubscribes for this sender in the last 60 days */
1281
+ unsubs?: number | null | undefined;
1282
+ /** the number of times emails have been opened for this sender in the last 60 days */
1283
+ opens?: number | null | undefined;
1284
+ /** the number of unique opens for emails sent for this sender in the last 60 days */
1285
+ unique_opens?: number | null | undefined;
1286
+ /** the number of URLs that have been clicked for this sender in the last 60 days */
1287
+ clicks?: number | null | undefined;
1288
+ /** the number of unique clicks for emails sent for this sender in the last 60 days */
1289
+ unique_clicks?: number | null | undefined;
1290
+ }
1291
+ /** stats for this sender in the last 90 days */
1292
+ export interface GetSenderResponseStatsLast90Days {
1293
+ /** the number of emails sent for this sender in the last 90 days */
1294
+ sent?: number | null | undefined;
1295
+ /** the number of emails hard bounced for this sender in the last 90 days */
1296
+ hard_bounces?: number | null | undefined;
1297
+ /** the number of emails soft bounced for this sender in the last 90 days */
1298
+ soft_bounces?: number | null | undefined;
1299
+ /** the number of emails rejected for sending this sender in the last 90 days */
1300
+ rejects?: number | null | undefined;
1301
+ /** the number of spam complaints for this sender in the last 90 days */
1302
+ complaints?: number | null | undefined;
1303
+ /** the number of unsubscribes for this sender in the last 90 days */
1304
+ unsubs?: number | null | undefined;
1305
+ /** the number of times emails have been opened for this sender in the last 90 days */
1306
+ opens?: number | null | undefined;
1307
+ /** the number of unique opens for emails sent for this sender in the last 90 days */
1308
+ unique_opens?: number | null | undefined;
1309
+ /** the number of URLs that have been clicked for this sender in the last 90 days */
1310
+ clicks?: number | null | undefined;
1311
+ /** the number of unique clicks for emails sent for this sender in the last 90 days */
1312
+ unique_clicks?: number | null | undefined;
1313
+ }
1314
+ /** an aggregate summary of the sender's sending stats */
1315
+ export interface GetSenderResponseStats {
1316
+ /** stats for this sender so far today */
1317
+ today?: GetSenderResponseStatsToday | null | undefined;
1318
+ /** stats for this sender in the last 7 days */
1319
+ last_7_days?: GetSenderResponseStatsLast7Days | null | undefined;
1320
+ /** stats for this sender in the last 30 days */
1321
+ last_30_days?: GetSenderResponseStatsLast30Days | null | undefined;
1322
+ /** stats for this sender in the last 60 days */
1323
+ last_60_days?: GetSenderResponseStatsLast60Days | null | undefined;
1324
+ /** stats for this sender in the last 90 days */
1325
+ last_90_days?: GetSenderResponseStatsLast90Days | null | undefined;
1326
+ }
1327
+ export interface GetSenderResponse {
1328
+ /** the sender's email address */
1329
+ address?: string | null | undefined;
1330
+ /** the date and time that the sender was first seen by Mandrill as a UTC date string in YYYY-MM-DD HH:MM:SS format */
1331
+ created_at?: string | null | undefined;
1332
+ /** the total number of messages sent by this sender */
1333
+ sent?: number | null | undefined;
1334
+ /** the total number of hard bounces by messages by this sender */
1335
+ hard_bounces?: number | null | undefined;
1336
+ /** the total number of soft bounces by messages by this sender */
1337
+ soft_bounces?: number | null | undefined;
1338
+ /** the total number of rejected messages by this sender */
1339
+ rejects?: number | null | undefined;
1340
+ /** the total number of spam complaints received for messages by this sender */
1341
+ complaints?: number | null | undefined;
1342
+ /** the total number of unsubscribe requests received for messages by this sender */
1343
+ unsubs?: number | null | undefined;
1344
+ /** the total number of times messages by this sender have been opened */
1345
+ opens?: number | null | undefined;
1346
+ /** the total number of times tracked URLs in messages by this sender have been clicked */
1347
+ clicks?: number | null | undefined;
1348
+ /** an aggregate summary of the sender's sending stats */
1349
+ stats?: GetSenderResponseStats | null | undefined;
1350
+ }
1351
+ export interface GetSenderTimeSeriesRequest {
1352
+ /** the email address of the sender */
1353
+ address: string;
1354
+ }
1355
+ /** the stats for a single hour */
1356
+ export interface GetSenderTimeSeriesResponseBodyItem {
1357
+ /** the hour as a UTC date string in YYYY-MM-DD HH:MM:SS format */
1358
+ time?: string | null | undefined;
1359
+ /** the number of emails that were sent during the hour */
1360
+ sent?: number | null | undefined;
1361
+ /** the number of emails that hard bounced during the hour */
1362
+ hard_bounces?: number | null | undefined;
1363
+ /** the number of emails that soft bounced during the hour */
1364
+ soft_bounces?: number | null | undefined;
1365
+ /** the number of emails that were rejected during the hour */
1366
+ rejects?: number | null | undefined;
1367
+ /** the number of spam complaints received during the hour */
1368
+ complaints?: number | null | undefined;
1369
+ /** the number of emails opened during the hour */
1370
+ opens?: number | null | undefined;
1371
+ /** the number of unique opens generated by messages sent during the hour */
1372
+ unique_opens?: number | null | undefined;
1373
+ /** the number of tracked URLs clicked during the hour */
1374
+ clicks?: number | null | undefined;
1375
+ /** the number of unique clicks generated by messages sent during the hour */
1376
+ unique_clicks?: number | null | undefined;
1377
+ }
1378
+ /** the array of history information */
1379
+ export type GetSenderTimeSeriesResponseBodyList = Array<GetSenderTimeSeriesResponseBodyItem>;
1380
+ export type GetSenderTimeSeriesResponse = GetSenderTimeSeriesResponseBodyList;
1381
+ export interface GetSubaccountRequest {
1382
+ /** the unique identifier of the subaccount to query */
1383
+ id: string;
1384
+ }
1385
+ /** the current sending status of the subaccount */
1386
+ export type GetSubaccountResponseStatus = "active" | "paused";
1387
+ /** stats for this subaccount in the last 30 days */
1388
+ export interface GetSubaccountResponseLast30Days {
1389
+ /** the number of emails sent for this subaccount in the last 30 days */
1390
+ sent?: number | null | undefined;
1391
+ /** the number of emails hard bounced for this subaccount in the last 30 days */
1392
+ hard_bounces?: number | null | undefined;
1393
+ /** the number of emails soft bounced for this subaccount in the last 30 days */
1394
+ soft_bounces?: number | null | undefined;
1395
+ /** the number of emails rejected for sending this subaccount in the last 30 days */
1396
+ rejects?: number | null | undefined;
1397
+ /** the number of spam complaints for this subaccount in the last 30 days */
1398
+ complaints?: number | null | undefined;
1399
+ /** the number of unsbuscribes for this subaccount in the last 30 days */
1400
+ unsubs?: number | null | undefined;
1401
+ /** the number of times emails have been opened for this subaccount in the last 30 days */
1402
+ opens?: number | null | undefined;
1403
+ /** the number of unique opens for emails sent for this subaccount in the last 30 days */
1404
+ unique_opens?: number | null | undefined;
1405
+ /** the number of URLs that have been clicked for this subaccount in the last 30 days */
1406
+ clicks?: number | null | undefined;
1407
+ /** the number of unique clicks for emails sent for this subaccount in the last 30 days */
1408
+ unique_clicks?: number | null | undefined;
1409
+ }
1410
+ export interface GetSubaccountResponse {
1411
+ /** a unique indentifier for the subaccount */
1412
+ id?: string | null | undefined;
1413
+ /** an optional display name for the subaccount */
1414
+ name?: string | null | undefined;
1415
+ /** optional extra text to associate with the subaccount */
1416
+ notes?: string | null | undefined;
1417
+ /** an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation */
1418
+ custom_quota?: number | null | undefined;
1419
+ /** the current sending status of the subaccount */
1420
+ status?: GetSubaccountResponseStatus | null | undefined;
1421
+ /** the subaccount's current reputation on a scale from 0 to 100 */
1422
+ reputation?: number | null | undefined;
1423
+ /** the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
1424
+ created_at?: string | null | undefined;
1425
+ /** the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format */
1426
+ first_sent_at?: string | null | undefined;
1427
+ /** the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC) */
1428
+ sent_weekly?: number | null | undefined;
1429
+ /** the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC) */
1430
+ sent_monthly?: number | null | undefined;
1431
+ /** the number of emails the subaccount has sent since it was created */
1432
+ sent_total?: number | null | undefined;
1433
+ /** the number of emails the subaccount has sent in the last hour */
1434
+ sent_hourly?: number | null | undefined;
1435
+ /** the current hourly quota for the subaccount, either manual or reputation-based */
1436
+ hourly_quota?: number | null | undefined;
1437
+ /** stats for this subaccount in the last 30 days */
1438
+ last_30_days?: GetSubaccountResponseLast30Days | null | undefined;
1439
+ }
1440
+ export interface GetTagRequest {
1441
+ /** an existing tag name */
1442
+ tag: string;
1443
+ }
1444
+ /** stats with this tag so far today */
1445
+ export interface GetTagResponseStatsToday {
1446
+ /** the number of emails sent with this tag so far today */
1447
+ sent?: number | null | undefined;
1448
+ /** the number of emails hard bounced with this tag so far today */
1449
+ hard_bounces?: number | null | undefined;
1450
+ /** the number of emails soft bounced with this tag so far today */
1451
+ soft_bounces?: number | null | undefined;
1452
+ /** the number of emails rejected for sending this sender so far today */
1453
+ rejects?: number | null | undefined;
1454
+ /** the number of spam complaints with this tag so far today */
1455
+ complaints?: number | null | undefined;
1456
+ /** the number of unsubscribes with this tag so far today */
1457
+ unsubs?: number | null | undefined;
1458
+ /** the number of times emails have been opened with this tag so far today */
1459
+ opens?: number | null | undefined;
1460
+ /** the number of unique opens for emails sent with this tag so far today */
1461
+ unique_opens?: number | null | undefined;
1462
+ /** the number of URLs that have been clicked with this tag so far today */
1463
+ clicks?: number | null | undefined;
1464
+ /** the number of unique clicks for emails sent with this tag so far today */
1465
+ unique_clicks?: number | null | undefined;
1466
+ }
1467
+ /** stats with this tag in the last 7 days */
1468
+ export interface GetTagResponseStatsLast7Days {
1469
+ /** the number of emails sent with this tag in the last 7 days */
1470
+ sent?: number | null | undefined;
1471
+ /** the number of emails hard bounced with this tag in the last 7 days */
1472
+ hard_bounces?: number | null | undefined;
1473
+ /** the number of emails soft bounced with this tag in the last 7 days */
1474
+ soft_bounces?: number | null | undefined;
1475
+ /** the number of emails rejected for sending this sender in the last 7 days */
1476
+ rejects?: number | null | undefined;
1477
+ /** the number of spam complaints with this tag in the last 7 days */
1478
+ complaints?: number | null | undefined;
1479
+ /** the number of unsubscribes with this tag in the last 7 days */
1480
+ unsubs?: number | null | undefined;
1481
+ /** the number of times emails have been opened with this tag in the last 7 days */
1482
+ opens?: number | null | undefined;
1483
+ /** the number of unique opens for emails sent with this tag in the last 7 days */
1484
+ unique_opens?: number | null | undefined;
1485
+ /** the number of URLs that have been clicked with this tag in the last 7 days */
1486
+ clicks?: number | null | undefined;
1487
+ /** the number of unique clicks for emails sent with this tag in the last 7 days */
1488
+ unique_clicks?: number | null | undefined;
1489
+ }
1490
+ /** stats with this tag in the last 30 days */
1491
+ export interface GetTagResponseStatsLast30Days {
1492
+ /** the number of emails sent with this tag in the last 30 days */
1493
+ sent?: number | null | undefined;
1494
+ /** the number of emails hard bounced with this tag in the last 30 days */
1495
+ hard_bounces?: number | null | undefined;
1496
+ /** the number of emails soft bounced with this tag in the last 30 days */
1497
+ soft_bounces?: number | null | undefined;
1498
+ /** the number of emails rejected for sending this sender in the last 30 days */
1499
+ rejects?: number | null | undefined;
1500
+ /** the number of spam complaints with this tag in the last 30 days */
1501
+ complaints?: number | null | undefined;
1502
+ /** the number of unsubscribes with this tag in the last 30 days */
1503
+ unsubs?: number | null | undefined;
1504
+ /** the number of times emails have been opened with this tag in the last 30 days */
1505
+ opens?: number | null | undefined;
1506
+ /** the number of unique opens for emails sent with this tag in the last 30 days */
1507
+ unique_opens?: number | null | undefined;
1508
+ /** the number of URLs that have been clicked with this tag in the last 30 days */
1509
+ clicks?: number | null | undefined;
1510
+ /** the number of unique clicks for emails sent with this tag in the last 30 days */
1511
+ unique_clicks?: number | null | undefined;
1512
+ }
1513
+ /** stats with this tag in the last 60 days */
1514
+ export interface GetTagResponseStatsLast60Days {
1515
+ /** the number of emails sent with this tag in the last 60 days */
1516
+ sent?: number | null | undefined;
1517
+ /** the number of emails hard bounced with this tag in the last 60 days */
1518
+ hard_bounces?: number | null | undefined;
1519
+ /** the number of emails soft bounced with this tag in the last 60 days */
1520
+ soft_bounces?: number | null | undefined;
1521
+ /** the number of emails rejected for sending this sender in the last 60 days */
1522
+ rejects?: number | null | undefined;
1523
+ /** the number of spam complaints with this tag in the last 60 days */
1524
+ complaints?: number | null | undefined;
1525
+ /** the number of unsubscribes with this tag in the last 60 days */
1526
+ unsubs?: number | null | undefined;
1527
+ /** the number of times emails have been opened with this tag in the last 60 days */
1528
+ opens?: number | null | undefined;
1529
+ /** the number of unique opens for emails sent with this tag in the last 60 days */
1530
+ unique_opens?: number | null | undefined;
1531
+ /** the number of URLs that have been clicked with this tag in the last 60 days */
1532
+ clicks?: number | null | undefined;
1533
+ /** the number of unique clicks for emails sent with this tag in the last 60 days */
1534
+ unique_clicks?: number | null | undefined;
1535
+ }
1536
+ /** stats with this tag in the last 90 days */
1537
+ export interface GetTagResponseStatsLast90Days {
1538
+ /** the number of emails sent with this tag in the last 90 days */
1539
+ sent?: number | null | undefined;
1540
+ /** the number of emails hard bounced with this tag in the last 90 days */
1541
+ hard_bounces?: number | null | undefined;
1542
+ /** the number of emails soft bounced with this tag in the last 90 days */
1543
+ soft_bounces?: number | null | undefined;
1544
+ /** the number of emails rejected for sending this sender in the last 90 days */
1545
+ rejects?: number | null | undefined;
1546
+ /** the number of spam complaints with this tag in the last 90 days */
1547
+ complaints?: number | null | undefined;
1548
+ /** the number of unsubscribes with this tag in the last 90 days */
1549
+ unsubs?: number | null | undefined;
1550
+ /** the number of times emails have been opened with this tag in the last 90 days */
1551
+ opens?: number | null | undefined;
1552
+ /** the number of unique opens for emails sent with this tag in the last 90 days */
1553
+ unique_opens?: number | null | undefined;
1554
+ /** the number of URLs that have been clicked with this tag in the last 90 days */
1555
+ clicks?: number | null | undefined;
1556
+ /** the number of unique clicks for emails sent with this tag in the last 90 days */
1557
+ unique_clicks?: number | null | undefined;
1558
+ }
1559
+ /** an aggregate summary of the tag's sending stats */
1560
+ export interface GetTagResponseStats {
1561
+ /** stats with this tag so far today */
1562
+ today?: GetTagResponseStatsToday | null | undefined;
1563
+ /** stats with this tag in the last 7 days */
1564
+ last_7_days?: GetTagResponseStatsLast7Days | null | undefined;
1565
+ /** stats with this tag in the last 30 days */
1566
+ last_30_days?: GetTagResponseStatsLast30Days | null | undefined;
1567
+ /** stats with this tag in the last 60 days */
1568
+ last_60_days?: GetTagResponseStatsLast60Days | null | undefined;
1569
+ /** stats with this tag in the last 90 days */
1570
+ last_90_days?: GetTagResponseStatsLast90Days | null | undefined;
1571
+ }
1572
+ export interface GetTagResponse {
1573
+ /** the actual tag as a string */
1574
+ tag?: string | null | undefined;
1575
+ /** the total number of messages sent with this tag */
1576
+ sent?: number | null | undefined;
1577
+ /** the total number of hard bounces by messages with this tag */
1578
+ hard_bounces?: number | null | undefined;
1579
+ /** the total number of soft bounces by messages with this tag */
1580
+ soft_bounces?: number | null | undefined;
1581
+ /** the total number of rejected messages with this tag */
1582
+ rejects?: number | null | undefined;
1583
+ /** the total number of spam complaints received for messages with this tag */
1584
+ complaints?: number | null | undefined;
1585
+ /** the total number of unsubscribe requests received for messages with this tag */
1586
+ unsubs?: number | null | undefined;
1587
+ /** the total number of times messages with this tag have been opened */
1588
+ opens?: number | null | undefined;
1589
+ /** the total number of times tracked URLs in messages with this tag have been clicked */
1590
+ clicks?: number | null | undefined;
1591
+ /** an aggregate summary of the tag's sending stats */
1592
+ stats?: GetTagResponseStats | null | undefined;
1593
+ }
1594
+ export interface GetTagTimeSeriesRequest {
1595
+ /** an existing tag name */
1596
+ tag: string;
1597
+ }
1598
+ /** the stats for a single hour */
1599
+ export type GetTagTimeSeriesResponseBodyItem = GetAllTagsTimeSeriesResponseBodyItem;
1600
+ /** the array of history information */
1601
+ export type GetTagTimeSeriesResponseBodyList = Array<GetAllTagsTimeSeriesResponseBodyItem>;
1602
+ export type GetTagTimeSeriesResponse = GetTagTimeSeriesResponseBodyList;
1603
+ export interface GetTemplateRequest {
1604
+ /** the immutable name of an existing template */
1605
+ name: string;
1606
+ }
1607
+ /** the list of labels applied to the template */
1608
+ export type GetTemplateResponseLabelsList = Array<string>;
1609
+ export interface GetTemplateResponse {
1610
+ /** the immutable unique code name of the template */
1611
+ slug?: string | null | undefined;
1612
+ /** the name of the template */
1613
+ name?: string | null | undefined;
1614
+ /** the list of labels applied to the template */
1615
+ labels?: GetTemplateResponseLabelsList | null | undefined;
1616
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements - draft version */
1617
+ code?: string | null | undefined;
1618
+ /** the subject line of the template, if provided - draft version */
1619
+ subject?: string | null | undefined;
1620
+ /** the default sender address for the template, if provided - draft version */
1621
+ from_email?: string | null | undefined;
1622
+ /** the default sender from name for the template, if provided - draft version */
1623
+ from_name?: string | null | undefined;
1624
+ /** the default text part of messages sent with the template, if provided - draft version */
1625
+ text?: string | null | undefined;
1626
+ /** the same as the template name - kept as a separate field for backwards compatibility */
1627
+ publish_name?: string | null | undefined;
1628
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements that are available as published, if it has been published */
1629
+ publish_code?: string | null | undefined;
1630
+ /** the subject line of the template, if provided */
1631
+ publish_subject?: string | null | undefined;
1632
+ /** the default sender address for the template, if provided */
1633
+ publish_from_email?: string | null | undefined;
1634
+ /** the default sender from name for the template, if provided */
1635
+ publish_from_name?: string | null | undefined;
1636
+ /** the default text part of messages sent with the template, if provided */
1637
+ publish_text?: string | null | undefined;
1638
+ /** the date and time the template was last published as a UTC string in YYYY-MM-DD HH:MM:SS format, or null if it has not been published */
1639
+ published_at?: string | null | undefined;
1640
+ /** the date and time the template was first created as a UTC string in YYYY-MM-DD HH:MM:SS format */
1641
+ created_at?: string | null | undefined;
1642
+ /** the date and time the template was last modified as a UTC string in YYYY-MM-DD HH:MM:SS format */
1643
+ updated_at?: string | null | undefined;
1644
+ /** indicates if the template is malformed or corrupt */
1645
+ is_broken_template?: boolean | null | undefined;
1646
+ }
1647
+ export interface GetTemplateTimeSeriesRequest {
1648
+ /** the name of an existing template */
1649
+ name: string;
1650
+ }
1651
+ /** the stats for a single hour */
1652
+ export type GetTemplateTimeSeriesResponseBodyItem = GetSenderTimeSeriesResponseBodyItem;
1653
+ /** the array of history information */
1654
+ export type GetTemplateTimeSeriesResponseBodyList = Array<GetSenderTimeSeriesResponseBodyItem>;
1655
+ export type GetTemplateTimeSeriesResponse = GetTemplateTimeSeriesResponseBodyList;
1656
+ export interface GetUserRequest {
1657
+ }
1658
+ /** stats for this user so far today */
1659
+ export interface GetUserResponseStatsToday {
1660
+ /** the number of emails sent for this user so far today */
1661
+ sent?: number | null | undefined;
1662
+ /** the number of emails hard bounced for this user so far today */
1663
+ hard_bounces?: number | null | undefined;
1664
+ /** the number of emails soft bounced for this user so far today */
1665
+ soft_bounces?: number | null | undefined;
1666
+ /** the number of emails rejected for sending this sender so far today */
1667
+ rejects?: number | null | undefined;
1668
+ /** the number of spam complaints for this user so far today */
1669
+ complaints?: number | null | undefined;
1670
+ /** the number of unsubscribes for this user so far today */
1671
+ unsubs?: number | null | undefined;
1672
+ /** the number of times emails have been opened for this user so far today */
1673
+ opens?: number | null | undefined;
1674
+ /** the number of unique opens for emails sent for this user so far today */
1675
+ unique_opens?: number | null | undefined;
1676
+ /** the number of URLs that have been clicked for this user so far today */
1677
+ clicks?: number | null | undefined;
1678
+ /** the number of unique clicks for emails sent for this user so far today */
1679
+ unique_clicks?: number | null | undefined;
1680
+ }
1681
+ /** stats for this user in the last 7 days */
1682
+ export interface GetUserResponseStatsLast7Days {
1683
+ /** the number of emails sent for this user in the last 7 days */
1684
+ sent?: number | null | undefined;
1685
+ /** the number of emails hard bounced for this user in the last 7 days */
1686
+ hard_bounces?: number | null | undefined;
1687
+ /** the number of emails soft bounced for this user in the last 7 days */
1688
+ soft_bounces?: number | null | undefined;
1689
+ /** the number of emails rejected for sending this sender in the last 7 days */
1690
+ rejects?: number | null | undefined;
1691
+ /** the number of spam complaints for this user in the last 7 days */
1692
+ complaints?: number | null | undefined;
1693
+ /** the number of unsubscribes for this user in the last 7 days */
1694
+ unsubs?: number | null | undefined;
1695
+ /** the number of times emails have been opened for this user in the last 7 days */
1696
+ opens?: number | null | undefined;
1697
+ /** the number of unique opens for emails sent for this user in the last 7 days */
1698
+ unique_opens?: number | null | undefined;
1699
+ /** the number of URLs that have been clicked for this user in the last 7 days */
1700
+ clicks?: number | null | undefined;
1701
+ /** the number of unique clicks for emails sent for this user in the last 7 days */
1702
+ unique_clicks?: number | null | undefined;
1703
+ }
1704
+ /** stats for this user in the last 30 days */
1705
+ export interface GetUserResponseStatsLast30Days {
1706
+ /** the number of emails sent for this user in the last 30 days */
1707
+ sent?: number | null | undefined;
1708
+ /** the number of emails hard bounced for this user in the last 30 days */
1709
+ hard_bounces?: number | null | undefined;
1710
+ /** the number of emails soft bounced for this user in the last 30 days */
1711
+ soft_bounces?: number | null | undefined;
1712
+ /** the number of emails rejected for sending this sender in the last 30 days */
1713
+ rejects?: number | null | undefined;
1714
+ /** the number of spam complaints for this user in the last 30 days */
1715
+ complaints?: number | null | undefined;
1716
+ /** the number of unsubscribes for this user in the last 30 days */
1717
+ unsubs?: number | null | undefined;
1718
+ /** the number of times emails have been opened for this user in the last 30 days */
1719
+ opens?: number | null | undefined;
1720
+ /** the number of unique opens for emails sent for this user in the last 30 days */
1721
+ unique_opens?: number | null | undefined;
1722
+ /** the number of URLs that have been clicked for this user in the last 30 days */
1723
+ clicks?: number | null | undefined;
1724
+ /** the number of unique clicks for emails sent for this user in the last 30 days */
1725
+ unique_clicks?: number | null | undefined;
1726
+ }
1727
+ /** stats for this user in the last 60 days */
1728
+ export interface GetUserResponseStatsLast60Days {
1729
+ /** the number of emails sent for this user in the last 60 days */
1730
+ sent?: number | null | undefined;
1731
+ /** the number of emails hard bounced for this user in the last 60 days */
1732
+ hard_bounces?: number | null | undefined;
1733
+ /** the number of emails soft bounced for this user in the last 60 days */
1734
+ soft_bounces?: number | null | undefined;
1735
+ /** the number of emails rejected for sending this sender in the last 60 days */
1736
+ rejects?: number | null | undefined;
1737
+ /** the number of spam complaints for this user in the last 60 days */
1738
+ complaints?: number | null | undefined;
1739
+ /** the number of unsubscribes for this user in the last 60 days */
1740
+ unsubs?: number | null | undefined;
1741
+ /** the number of times emails have been opened for this user in the last 60 days */
1742
+ opens?: number | null | undefined;
1743
+ /** the number of unique opens for emails sent for this user in the last 60 days */
1744
+ unique_opens?: number | null | undefined;
1745
+ /** the number of URLs that have been clicked for this user in the last 60 days */
1746
+ clicks?: number | null | undefined;
1747
+ /** the number of unique clicks for emails sent for this user in the last 60 days */
1748
+ unique_clicks?: number | null | undefined;
1749
+ }
1750
+ /** stats for this user in the last 90 days */
1751
+ export interface GetUserResponseStatsLast90Days {
1752
+ /** the number of emails sent for this user in the last 90 days */
1753
+ sent?: number | null | undefined;
1754
+ /** the number of emails hard bounced for this user in the last 90 days */
1755
+ hard_bounces?: number | null | undefined;
1756
+ /** the number of emails soft bounced for this user in the last 90 days */
1757
+ soft_bounces?: number | null | undefined;
1758
+ /** the number of emails rejected for sending this sender in the last 90 days */
1759
+ rejects?: number | null | undefined;
1760
+ /** the number of spam complaints for this user in the last 90 days */
1761
+ complaints?: number | null | undefined;
1762
+ /** the number of unsubscribes for this user in the last 90 days */
1763
+ unsubs?: number | null | undefined;
1764
+ /** the number of times emails have been opened for this user in the last 90 days */
1765
+ opens?: number | null | undefined;
1766
+ /** the number of unique opens for emails sent for this user in the last 90 days */
1767
+ unique_opens?: number | null | undefined;
1768
+ /** the number of URLs that have been clicked for this user in the last 90 days */
1769
+ clicks?: number | null | undefined;
1770
+ /** the number of unique clicks for emails sent for this user in the last 90 days */
1771
+ unique_clicks?: number | null | undefined;
1772
+ }
1773
+ /** tats for the lifetime of the user's account */
1774
+ export interface GetUserResponseStatsAllTime {
1775
+ /** the number of emails sent in the lifetime of the user's account */
1776
+ sent?: number | null | undefined;
1777
+ /** the number of emails hard bounced in the lifetime of the user's account */
1778
+ hard_bounces?: number | null | undefined;
1779
+ /** the number of emails soft bounced in the lifetime of the user's account */
1780
+ soft_bounces?: number | null | undefined;
1781
+ /** the number of emails rejected for sending this user so far today */
1782
+ rejects?: number | null | undefined;
1783
+ /** the number of spam complaints in the lifetime of the user's account */
1784
+ complaints?: number | null | undefined;
1785
+ /** the number of unsubscribes in the lifetime of the user's account */
1786
+ unsubs?: number | null | undefined;
1787
+ /** the number of times emails have been opened in the lifetime of the user's account */
1788
+ opens?: number | null | undefined;
1789
+ /** the number of unique opens for emails sent in the lifetime of the user's account */
1790
+ unique_opens?: number | null | undefined;
1791
+ /** the number of URLs that have been clicked in the lifetime of the user's account */
1792
+ clicks?: number | null | undefined;
1793
+ /** the number of unique clicks for emails sent in the lifetime of the user's account */
1794
+ unique_clicks?: number | null | undefined;
1795
+ }
1796
+ /** an aggregate summary of the account's sending stats */
1797
+ export interface GetUserResponseStats {
1798
+ /** stats for this user so far today */
1799
+ today?: GetUserResponseStatsToday | null | undefined;
1800
+ /** stats for this user in the last 7 days */
1801
+ last_7_days?: GetUserResponseStatsLast7Days | null | undefined;
1802
+ /** stats for this user in the last 30 days */
1803
+ last_30_days?: GetUserResponseStatsLast30Days | null | undefined;
1804
+ /** stats for this user in the last 60 days */
1805
+ last_60_days?: GetUserResponseStatsLast60Days | null | undefined;
1806
+ /** stats for this user in the last 90 days */
1807
+ last_90_days?: GetUserResponseStatsLast90Days | null | undefined;
1808
+ /** tats for the lifetime of the user's account */
1809
+ all_time?: GetUserResponseStatsAllTime | null | undefined;
1810
+ }
1811
+ export interface GetUserResponse {
1812
+ /** the username of the user (used for SMTP authentication) */
1813
+ username?: string | null | undefined;
1814
+ /** the date and time that the user's Mandrill account was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
1815
+ created_at?: string | null | undefined;
1816
+ /** a unique, permanent identifier for this user */
1817
+ public_id?: string | null | undefined;
1818
+ /** the reputation of the user on a scale from 0 to 100, with 75 generally being a "good" reputation */
1819
+ reputation?: number | null | undefined;
1820
+ /** the maximum number of emails Mandrill will deliver for this user each hour. Any emails beyond that will be accepted and queued for later delivery. Users with higher reputations will have higher hourly quotas */
1821
+ hourly_quota?: number | null | undefined;
1822
+ /** the number of emails that are queued for delivery due to exceeding your monthly or hourly quotas */
1823
+ backlog?: number | null | undefined;
1824
+ /** an aggregate summary of the account's sending stats */
1825
+ stats?: GetUserResponseStats | null | undefined;
1826
+ }
1827
+ export interface GetWebhookRequest {
1828
+ /** the unique identifier of a webhook belonging to this account */
1829
+ id: number;
1830
+ }
1831
+ /** the individual message event */
1832
+ export type GetWebhookResponseEventsItem = "send" | "hard_bounce" | "soft_bounce" | "open" | "click" | "spam" | "unsub" | "reject";
1833
+ /** The message events that will be posted to the hook */
1834
+ export type GetWebhookResponseEventsList = Array<GetWebhookResponseEventsItem>;
1835
+ export interface GetWebhookResponse {
1836
+ /** a unique integer indentifier for the webhook */
1837
+ id?: number | null | undefined;
1838
+ /** The URL that the event data will be posted to */
1839
+ url?: string | null | undefined;
1840
+ /** a description of the webhook */
1841
+ description?: string | null | undefined;
1842
+ /** the key used to requests for this webhook */
1843
+ auth_key?: string | null | undefined;
1844
+ /** The message events that will be posted to the hook */
1845
+ events?: GetWebhookResponseEventsList | null | undefined;
1846
+ /** the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
1847
+ created_at?: string | null | undefined;
1848
+ /** the date and time that the webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS format */
1849
+ last_sent_at?: string | null | undefined;
1850
+ /** the number of event batches that have ever been sent to this webhook */
1851
+ batches_sent?: number | null | undefined;
1852
+ /** the total number of events that have ever been sent to this webhook */
1853
+ events_sent?: number | null | undefined;
1854
+ /** if we've ever gotten an error trying to post to this webhook, the last error that we've seen */
1855
+ last_error?: string | null | undefined;
1856
+ }
1857
+ export interface ListAllowlistEntriesRequest {
1858
+ /** an optional email address or prefix to search by */
1859
+ email?: string | undefined;
1860
+ }
1861
+ /** the information for each allowlist entry */
1862
+ export interface ListAllowlistEntriesResponseBodyItem {
1863
+ /** the email that is allowlisted */
1864
+ email?: string | null | undefined;
1865
+ /** a description of why the email was allowlisted */
1866
+ detail?: string | null | undefined;
1867
+ /** when the email was added to the allowlist */
1868
+ created_at?: string | null | undefined;
1869
+ }
1870
+ /** up to 1000 allowlist entries */
1871
+ export type ListAllowlistEntriesResponseBodyList = Array<ListAllowlistEntriesResponseBodyItem>;
1872
+ export type ListAllowlistEntriesResponse = ListAllowlistEntriesResponseBodyList;
1873
+ export interface ListExportsRequest {
1874
+ }
1875
+ /** the individual export info */
1876
+ export interface ListExportsResponseBodyItem {
1877
+ /** the unique identifier for this Export. Use this identifier when checking the export job's status */
1878
+ id?: string | null | undefined;
1879
+ /** the date and time that the export job was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
1880
+ created_at?: string | null | undefined;
1881
+ /** the type of the export job - activity, reject, or allowlist */
1882
+ type?: string | null | undefined;
1883
+ /** the date and time that the export job was finished as a UTC string in YYYY-MM-DD HH:MM:SS format */
1884
+ finished_at?: string | null | undefined;
1885
+ /** the export job's state - waiting, working, complete, error, or expired. */
1886
+ state?: string | null | undefined;
1887
+ /** the url for the export job's results, if the job is completed. */
1888
+ result_url?: string | null | undefined;
1889
+ }
1890
+ /** the account's exports */
1891
+ export type ListExportsResponseBodyList = Array<ListExportsResponseBodyItem>;
1892
+ export type ListExportsResponse = ListExportsResponseBodyList;
1893
+ export interface ListInboundDomainsRequest {
1894
+ }
1895
+ /** the individual domain info */
1896
+ export interface ListInboundDomainsResponseBodyItem {
1897
+ /** the domain name that is accepting mail */
1898
+ domain?: string | null | undefined;
1899
+ /** the date and time that the inbound domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format */
1900
+ created_at?: string | null | undefined;
1901
+ /** true if this inbound domain has successfully set up an MX record to deliver mail to the Mandrill servers */
1902
+ valid_mx?: boolean | null | undefined;
1903
+ }
1904
+ /** the inbound domains associated with the account */
1905
+ export type ListInboundDomainsResponseBodyList = Array<ListInboundDomainsResponseBodyItem>;
1906
+ export type ListInboundDomainsResponse = ListInboundDomainsResponseBodyList;
1907
+ export interface ListInboundRoutesRequest {
1908
+ /** The domain to check (required if phone is not provided) */
1909
+ domain?: string | undefined;
1910
+ /** The SMS program phone number (required if domain is not provided) */
1911
+ phone?: string | undefined;
1912
+ }
1913
+ /** the individual mailbox route */
1914
+ export interface ListInboundRoutesResponseBodyItem {
1915
+ /** the unique identifier of the route */
1916
+ id?: string | null | undefined;
1917
+ /** the search pattern that the mailbox name should match */
1918
+ pattern?: string | null | undefined;
1919
+ /** the webhook URL where inbound messages will be published */
1920
+ url?: string | null | undefined;
1921
+ }
1922
+ /** the routes associated with the domain */
1923
+ export type ListInboundRoutesResponseBodyList = Array<ListInboundRoutesResponseBodyItem>;
1924
+ export type ListInboundRoutesResponse = ListInboundRoutesResponseBodyList;
1925
+ export interface ListIpPoolsRequest {
1926
+ }
1927
+ /** information about the ip's custom dns, if it has been configured */
1928
+ export type ListIpPoolsResponseBodyItemIpsItemCustomDns = CancelIpWarmupResponseCustomDns;
1929
+ /** information about the ip's warmup status */
1930
+ export type ListIpPoolsResponseBodyItemIpsItemWarmup = CancelIpWarmupResponseWarmup;
1931
+ /** information about each dedicated IP */
1932
+ export type ListIpPoolsResponseBodyItemIpsItem = CreateIpPoolResponseIpsItem;
1933
+ /** the dedicated IPs in this pool */
1934
+ export type ListIpPoolsResponseBodyItemIpsList = Array<CreateIpPoolResponseIpsItem>;
1935
+ /** information about each dedicated IP pool */
1936
+ export interface ListIpPoolsResponseBodyItem {
1937
+ /** this pool's name */
1938
+ name?: string | null | undefined;
1939
+ /** the date and time that this pool was created as a UTC timestamp in YYYY-MM-DD HH:MM:SS format */
1940
+ created_at?: string | null | undefined;
1941
+ /** the dedicated IPs in this pool */
1942
+ ips?: ListIpPoolsResponseBodyItemIpsList | null | undefined;
1943
+ }
1944
+ /** the dedicated IP pools for your account, up to a maximum of 1,000 */
1945
+ export type ListIpPoolsResponseBodyList = Array<ListIpPoolsResponseBodyItem>;
1946
+ export type ListIpPoolsResponse = ListIpPoolsResponseBodyList;
1947
+ export interface ListIpsRequest {
1948
+ }
1949
+ /** information about the ip's custom dns, if it has been configured */
1950
+ export type ListIpsResponseBodyItemCustomDns = CancelIpWarmupResponseCustomDns;
1951
+ /** information about the ip's warmup status */
1952
+ export type ListIpsResponseBodyItemWarmup = CancelIpWarmupResponseWarmup;
1953
+ /** information about a single dedicated IP */
1954
+ export type ListIpsResponseBodyItem = CreateIpPoolResponseIpsItem;
1955
+ /** an array of objects for each dedicated IP */
1956
+ export type ListIpsResponseBodyList = Array<CreateIpPoolResponseIpsItem>;
1957
+ export type ListIpsResponse = ListIpsResponseBodyList;
1958
+ export interface ListMcTemplatesRequest {
1959
+ /** Optional search query to filter templates */
1960
+ search_query?: string | null | undefined;
1961
+ }
1962
+ /** Array of labels (always empty for transactional templates) */
1963
+ export type ListMcTemplatesResponseBodyItemLabelsList = Array<string>;
1964
+ /** Information about the Mailchimp Transactional template */
1965
+ export interface ListMcTemplatesResponseBodyItem {
1966
+ /** Mailchimp template ID */
1967
+ mc_template_id?: number | null | undefined;
1968
+ /** Template name */
1969
+ mc_template_name?: string | null | undefined;
1970
+ /** Array of labels (always empty for transactional templates) */
1971
+ labels?: ListMcTemplatesResponseBodyItemLabelsList | null | undefined;
1972
+ /** Template HTML (draft version) */
1973
+ code?: string | null | undefined;
1974
+ /** Default subject line */
1975
+ subject?: string | null | undefined;
1976
+ /** Default sending address */
1977
+ from_email?: string | null | undefined;
1978
+ /** Default from name */
1979
+ from_name?: string | null | undefined;
1980
+ /** Template text (draft version) */
1981
+ text?: string | null | undefined;
1982
+ /** Template HTML (published version) */
1983
+ publish_code?: string | null | undefined;
1984
+ /** Template text (published version) */
1985
+ publish_text?: string | null | undefined;
1986
+ /** Date and time when template was published in UTC YYYY-MM-DD HH:MM:SS format */
1987
+ published_at?: string | null | undefined;
1988
+ /** Date and time when template was created in UTC YYYY-MM-DD HH:MM:SS format */
1989
+ created_at?: string | null | undefined;
1990
+ /** Date and time when template was last updated in UTC YYYY-MM-DD HH:MM:SS format */
1991
+ updated_at?: string | null | undefined;
1992
+ /** Date and time when template draft was last updated in UTC YYYY-MM-DD HH:MM:SS format */
1993
+ draft_updated_at?: string | null | undefined;
1994
+ /** Whether template has rendering errors */
1995
+ is_broken_template?: boolean | null | undefined;
1996
+ }
1997
+ /** Array of Mailchimp Transactional templates */
1998
+ export type ListMcTemplatesResponseBodyList = Array<ListMcTemplatesResponseBodyItem>;
1999
+ export type ListMcTemplatesResponse = ListMcTemplatesResponseBodyList;
2000
+ export interface ListMetadataFieldsRequest {
2001
+ }
2002
+ /** the current state of the metadata field */
2003
+ export type ListMetadataFieldsResponseBodyItemState = "active" | "delete" | "index";
2004
+ /** the individual custom metadata field info */
2005
+ export interface ListMetadataFieldsResponseBodyItem {
2006
+ /** the unique identifier of the metadata field to update */
2007
+ name?: string | null | undefined;
2008
+ /** the current state of the metadata field */
2009
+ state?: ListMetadataFieldsResponseBodyItemState | null | undefined;
2010
+ /** Mustache template to control how the metadata is rendered in your activity log */
2011
+ view_template?: string | null | undefined;
2012
+ }
2013
+ /** the custom metadata fields for the account */
2014
+ export type ListMetadataFieldsResponseBodyList = Array<ListMetadataFieldsResponseBodyItem>;
2015
+ export type ListMetadataFieldsResponse = ListMetadataFieldsResponseBodyList;
2016
+ export interface ListRejectsRequest {
2017
+ /** an optional email address to search by */
2018
+ email?: string | undefined;
2019
+ /** whether to include rejections that have already expired. */
2020
+ include_expired?: boolean | undefined;
2021
+ /** an optional unique identifier for the subaccount to limit the denylist */
2022
+ subaccount?: string | undefined;
2023
+ }
2024
+ /** the sender that this denylist entry applies to, or null if none. */
2025
+ export interface ListRejectsResponseBodyItemSender {
2026
+ /** the sender's email address */
2027
+ address?: string | null | undefined;
2028
+ /** the date and time that the sender was first seen by Mandrill as a UTC date string in YYYY-MM-DD HH:MM:SS format */
2029
+ created_at?: string | null | undefined;
2030
+ /** the total number of messages sent by this sender */
2031
+ sent?: number | null | undefined;
2032
+ /** the total number of hard bounces by messages by this sender */
2033
+ hard_bounces?: number | null | undefined;
2034
+ /** the total number of soft bounces by messages by this sender */
2035
+ soft_bounces?: number | null | undefined;
2036
+ /** the total number of rejected messages by this sender */
2037
+ rejects?: number | null | undefined;
2038
+ /** the total number of spam complaints received for messages by this sender */
2039
+ complaints?: number | null | undefined;
2040
+ /** the total number of unsubscribe requests received for messages by this sender */
2041
+ unsubs?: number | null | undefined;
2042
+ /** the total number of times messages by this sender have been opened */
2043
+ opens?: number | null | undefined;
2044
+ /** the total number of times tracked URLs in messages by this sender have been clicked */
2045
+ clicks?: number | null | undefined;
2046
+ /** the number of unique opens for emails sent for this sender */
2047
+ unique_opens?: number | null | undefined;
2048
+ /** the number of unique clicks for emails sent for this sender */
2049
+ unique_clicks?: number | null | undefined;
2050
+ }
2051
+ /** the information for each rejection entry */
2052
+ export interface ListRejectsResponseBodyItem {
2053
+ /** the email that is blocked */
2054
+ email?: string | null | undefined;
2055
+ /** the type of event (hard-bounce, soft-bounce, spam, unsub, custom) that caused this rejection */
2056
+ reason?: string | null | undefined;
2057
+ /** extended details about the event, such as the SMTP diagnostic for bounces or the comment for manually-created rejections */
2058
+ detail?: string | null | undefined;
2059
+ /** when the email was added to the denylist */
2060
+ created_at?: string | null | undefined;
2061
+ /** the timestamp of the most recent event that either created or renewed this rejection */
2062
+ last_event_at?: string | null | undefined;
2063
+ /** when the denylist entry will expire (this may be in the past) */
2064
+ expires_at?: string | null | undefined;
2065
+ /** whether the denylist entry has expired */
2066
+ expired?: boolean | null | undefined;
2067
+ /** the sender that this denylist entry applies to, or null if none. */
2068
+ sender?: ListRejectsResponseBodyItemSender | null | undefined;
2069
+ /** the subaccount that this denylist entry applies to, or null if none. */
2070
+ subaccount?: string | null | undefined;
2071
+ }
2072
+ /** Up to 1000 rejection entries */
2073
+ export type ListRejectsResponseBodyList = Array<ListRejectsResponseBodyItem>;
2074
+ export type ListRejectsResponse = ListRejectsResponseBodyList;
2075
+ export interface ListScheduledMessagesRequest {
2076
+ /** an optional recipient address to restrict results to */
2077
+ to?: string | undefined;
2078
+ }
2079
+ /** a scheduled email */
2080
+ export type ListScheduledMessagesResponseBodyItem = CancelScheduledMessageResponseBodyItem;
2081
+ /** a list of up to 1000 scheduled emails */
2082
+ export type ListScheduledMessagesResponseBodyList = Array<CancelScheduledMessageResponseBodyItem>;
2083
+ export type ListScheduledMessagesResponse = ListScheduledMessagesResponseBodyList;
2084
+ export interface ListSenderDomainsRequest {
2085
+ }
2086
+ /** details about the domain's SPF record */
2087
+ export type ListSenderDomainsResponseBodyItemSpf = AddSenderDomainResponseSpf;
2088
+ /** details about the domain's Legacy DKIM record */
2089
+ export type ListSenderDomainsResponseBodyItemDkim = CheckSenderDomainResponseDkim;
2090
+ /** details about the domain's rotatable 2048 bit DKIM record */
2091
+ export type ListSenderDomainsResponseBodyItemDkim2 = AddSenderDomainResponseDkim;
2092
+ /** details about the domain's DMARC record */
2093
+ export type ListSenderDomainsResponseBodyItemDmarc = CheckSenderDomainResponseDmarc;
2094
+ /** the information on each sending domain for the account */
2095
+ export interface ListSenderDomainsResponseBodyItem {
2096
+ /** the sender domain name */
2097
+ domain?: string | null | undefined;
2098
+ /** the date and time that the sending domain was first seen as a UTC string in YYYY-MM-DD HH:MM:SS format */
2099
+ created_at?: string | null | undefined;
2100
+ /** when the domain's DNS settings were last tested as a UTC string in YYYY-MM-DD HH:MM:SS format */
2101
+ last_tested_at?: string | null | undefined;
2102
+ /** details about the domain's SPF record */
2103
+ spf?: AddSenderDomainResponseSpf | null | undefined;
2104
+ /** details about the domain's Legacy DKIM record */
2105
+ dkim?: CheckSenderDomainResponseDkim | null | undefined;
2106
+ /** details about the domain's rotatable 2048 bit DKIM record */
2107
+ dkim2?: AddSenderDomainResponseDkim | null | undefined;
2108
+ /** details about the domain's DMARC record */
2109
+ dmarc?: CheckSenderDomainResponseDmarc | null | undefined;
2110
+ /** if the domain has been verified, this indicates when that verification occurred as a UTC string in YYYY-MM-DD HH:MM:SS format */
2111
+ verified_at?: string | null | undefined;
2112
+ /** whether this domain can be used to authenticate mail, either for itself or as a custom signing domain. If this is false but spf and dkim are both valid, you will need to verify the domain before using it to authenticate mail */
2113
+ valid_signing?: boolean | null | undefined;
2114
+ /** a unique key used to verify a domain by adding a TXT record. Append this key to 'mandrill_verify.' and add it to your domain's TXT records to verify */
2115
+ verify_txt_key?: string | null | undefined;
2116
+ }
2117
+ /** an array of sender domain data, one for each sending domain used by the account */
2118
+ export type ListSenderDomainsResponseBodyList = Array<ListSenderDomainsResponseBodyItem>;
2119
+ export type ListSenderDomainsResponse = ListSenderDomainsResponseBodyList;
2120
+ export interface ListSendersRequest {
2121
+ }
2122
+ /** the information on each sending address in the account */
2123
+ export type ListSendersResponseBodyItem = ListRejectsResponseBodyItemSender;
2124
+ /** an array of sender data, one for each sending addresses used by the account */
2125
+ export type ListSendersResponseBodyList = Array<ListRejectsResponseBodyItemSender>;
2126
+ export type ListSendersResponse = ListSendersResponseBodyList;
2127
+ export interface ListSmsRejectsRequest {
2128
+ /** an optional phone number to search by in E.164 format */
2129
+ phone?: string | undefined;
2130
+ /** whether to include rejections that have already expired */
2131
+ include_expired?: boolean | undefined;
2132
+ /** an optional unique identifier for the subaccount to limit the denylist */
2133
+ subaccount?: string | undefined;
2134
+ }
2135
+ export interface ListSmsRejectsResponseBodyItem {
2136
+ /** the phone number on the denylist */
2137
+ phone?: string | null | undefined;
2138
+ /** the date and time that the entry was created */
2139
+ created_at?: string | null | undefined;
2140
+ /** the date and time that the entry expires */
2141
+ expires_at?: string | null | undefined;
2142
+ /** whether the entry has expired */
2143
+ expired?: boolean | null | undefined;
2144
+ /** the subaccount that the entry belongs to */
2145
+ subaccount?: string | null | undefined;
2146
+ }
2147
+ /** up to 1000 SMS denylist entries */
2148
+ export type ListSmsRejectsResponseBodyList = Array<ListSmsRejectsResponseBodyItem>;
2149
+ export type ListSmsRejectsResponse = ListSmsRejectsResponseBodyList;
2150
+ export interface ListSubaccountsRequest {
2151
+ /** an optional prefix to filter the subaccounts' ids and names */
2152
+ q?: string | undefined;
2153
+ }
2154
+ /** the current sending status of the subaccount */
2155
+ export type ListSubaccountsResponseBodyItemStatus = "active" | "paused";
2156
+ /** the individual subaccount info */
2157
+ export interface ListSubaccountsResponseBodyItem {
2158
+ /** a unique indentifier for the subaccount */
2159
+ id?: string | null | undefined;
2160
+ /** an optional display name for the subaccount */
2161
+ name?: string | null | undefined;
2162
+ /** an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation */
2163
+ custom_quota?: number | null | undefined;
2164
+ /** the current sending status of the subaccount */
2165
+ status?: ListSubaccountsResponseBodyItemStatus | null | undefined;
2166
+ /** the subaccount's current reputation on a scale from 0 to 100 */
2167
+ reputation?: number | null | undefined;
2168
+ /** the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
2169
+ created_at?: string | null | undefined;
2170
+ /** the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format */
2171
+ first_sent_at?: string | null | undefined;
2172
+ /** the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC) */
2173
+ sent_weekly?: number | null | undefined;
2174
+ /** the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC) */
2175
+ sent_monthly?: number | null | undefined;
2176
+ /** the number of emails the subaccount has sent since it was created */
2177
+ sent_total?: number | null | undefined;
2178
+ }
2179
+ /** the subaccounts for the account, up to a maximum of 1,000 */
2180
+ export type ListSubaccountsResponseBodyList = Array<ListSubaccountsResponseBodyItem>;
2181
+ export type ListSubaccountsResponse = ListSubaccountsResponseBodyList;
2182
+ export interface ListTagsRequest {
2183
+ }
2184
+ /** a user-defined tag */
2185
+ export interface ListTagsResponseBodyItem {
2186
+ /** the actual tag as a string */
2187
+ tag?: string | null | undefined;
2188
+ /** the tag's current reputation on a scale from 0 to 100. */
2189
+ reputation?: number | null | undefined;
2190
+ /** the total number of messages sent with this tag */
2191
+ sent?: number | null | undefined;
2192
+ /** the total number of hard bounces by messages with this tag */
2193
+ hard_bounces?: number | null | undefined;
2194
+ /** the total number of soft bounces by messages with this tag */
2195
+ soft_bounces?: number | null | undefined;
2196
+ /** the total number of rejected messages with this tag */
2197
+ rejects?: number | null | undefined;
2198
+ /** the total number of spam complaints received for messages with this tag */
2199
+ complaints?: number | null | undefined;
2200
+ /** the total number of unsubscribe requests received for messages with this tag */
2201
+ unsubs?: number | null | undefined;
2202
+ /** the total number of times messages with this tag have been opened */
2203
+ opens?: number | null | undefined;
2204
+ /** the total number of times tracked URLs in messages with this tag have been clicked */
2205
+ clicks?: number | null | undefined;
2206
+ /** the number of unique opens for emails sent with this tag */
2207
+ unique_opens?: number | null | undefined;
2208
+ /** the number of unique clicks for emails sent with this tag */
2209
+ unique_clicks?: number | null | undefined;
2210
+ }
2211
+ /** a list of user-defined tags */
2212
+ export type ListTagsResponseBodyList = Array<ListTagsResponseBodyItem>;
2213
+ export type ListTagsResponse = ListTagsResponseBodyList;
2214
+ export interface ListTemplatesRequest {
2215
+ /** an optional label to filter the templates */
2216
+ label?: string | undefined;
2217
+ }
2218
+ /** the list of labels applied to the template */
2219
+ export type ListTemplatesResponseBodyItemLabelsList = Array<string>;
2220
+ /** the information on each template in the account */
2221
+ export interface ListTemplatesResponseBodyItem {
2222
+ /** the immutable unique code name of the template */
2223
+ slug?: string | null | undefined;
2224
+ /** the name of the template */
2225
+ name?: string | null | undefined;
2226
+ /** the list of labels applied to the template */
2227
+ labels?: ListTemplatesResponseBodyItemLabelsList | null | undefined;
2228
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements - draft version */
2229
+ code?: string | null | undefined;
2230
+ /** the subject line of the template, if provided - draft version */
2231
+ subject?: string | null | undefined;
2232
+ /** the default sender address for the template, if provided - draft version */
2233
+ from_email?: string | null | undefined;
2234
+ /** the default sender from name for the template, if provided - draft version */
2235
+ from_name?: string | null | undefined;
2236
+ /** the default text part of messages sent with the template, if provided - draft version */
2237
+ text?: string | null | undefined;
2238
+ /** the same as the template name - kept as a separate field for backwards compatibility */
2239
+ publish_name?: string | null | undefined;
2240
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements that are available as published, if it has been published */
2241
+ publish_code?: string | null | undefined;
2242
+ /** the subject line of the template, if provided */
2243
+ publish_subject?: string | null | undefined;
2244
+ /** the default sender address for the template, if provided */
2245
+ publish_from_email?: string | null | undefined;
2246
+ /** the default sender from name for the template, if provided */
2247
+ publish_from_name?: string | null | undefined;
2248
+ /** the default text part of messages sent with the template, if provided */
2249
+ publish_text?: string | null | undefined;
2250
+ /** the date and time the template was last published as a UTC string in YYYY-MM-DD HH:MM:SS format, or null if it has not been published */
2251
+ published_at?: string | null | undefined;
2252
+ /** the date and time the template was first created as a UTC string in YYYY-MM-DD HH:MM:SS format */
2253
+ created_at?: string | null | undefined;
2254
+ /** the date and time the template was last modified as a UTC string in YYYY-MM-DD HH:MM:SS format */
2255
+ updated_at?: string | null | undefined;
2256
+ /** indicates if the template is malformed or corrupt */
2257
+ is_broken_template?: boolean | null | undefined;
2258
+ }
2259
+ /** an array of structs with information about each template */
2260
+ export type ListTemplatesResponseBodyList = Array<ListTemplatesResponseBodyItem>;
2261
+ export type ListTemplatesResponse = ListTemplatesResponseBodyList;
2262
+ export interface ListTrackingDomainsRequest {
2263
+ }
2264
+ /** details about the domain's CNAME record */
2265
+ export type ListTrackingDomainsResponseBodyItemCname = AddTrackingDomainResponseCname;
2266
+ /** the individual tracking domain */
2267
+ export interface ListTrackingDomainsResponseBodyItem {
2268
+ /** the tracking domain name */
2269
+ domain?: string | null | undefined;
2270
+ /** the date and time that the tracking domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format */
2271
+ created_at?: string | null | undefined;
2272
+ /** when the domain's DNS settings were last tested as a UTC string in YYYY-MM-DD HH:MM:SS format */
2273
+ last_tested_at?: string | null | undefined;
2274
+ /** details about the domain's CNAME record */
2275
+ cname?: AddTrackingDomainResponseCname | null | undefined;
2276
+ /** whether this domain can be used as a tracking domain for email. */
2277
+ valid_tracking?: boolean | null | undefined;
2278
+ }
2279
+ /** the tracking domains and their status */
2280
+ export type ListTrackingDomainsResponseBodyList = Array<ListTrackingDomainsResponseBodyItem>;
2281
+ export type ListTrackingDomainsResponse = ListTrackingDomainsResponseBodyList;
2282
+ export interface ListUserSendersRequest {
2283
+ }
2284
+ /** the information on each sending address in the account */
2285
+ export type ListUserSendersResponseBodyItem = ListRejectsResponseBodyItemSender;
2286
+ /** an array of sender data, one for each sending addresses used by the account */
2287
+ export type ListUserSendersResponseBodyList = Array<ListRejectsResponseBodyItemSender>;
2288
+ export type ListUserSendersResponse = ListUserSendersResponseBodyList;
2289
+ export interface ListWebhooksRequest {
2290
+ }
2291
+ /** the individual message event */
2292
+ export type ListWebhooksResponseBodyItemEventsItem = "send" | "hard_bounce" | "soft_bounce" | "open" | "click" | "spam" | "unsub" | "reject";
2293
+ /** The message events that will be posted to the hook */
2294
+ export type ListWebhooksResponseBodyItemEventsList = Array<ListWebhooksResponseBodyItemEventsItem>;
2295
+ /** the individual webhook info */
2296
+ export interface ListWebhooksResponseBodyItem {
2297
+ /** a unique integer indentifier for the webhook */
2298
+ id?: number | null | undefined;
2299
+ /** The URL that the event data will be posted to */
2300
+ url?: string | null | undefined;
2301
+ /** a description of the webhook */
2302
+ description?: string | null | undefined;
2303
+ /** the key used to requests for this webhook */
2304
+ auth_key?: string | null | undefined;
2305
+ /** The message events that will be posted to the hook */
2306
+ events?: ListWebhooksResponseBodyItemEventsList | null | undefined;
2307
+ /** the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
2308
+ created_at?: string | null | undefined;
2309
+ /** the date and time that the webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS format */
2310
+ last_sent_at?: string | null | undefined;
2311
+ /** the number of event batches that have ever been sent to this webhook */
2312
+ batches_sent?: number | null | undefined;
2313
+ /** the total number of events that have ever been sent to this webhook */
2314
+ events_sent?: number | null | undefined;
2315
+ /** if we've ever gotten an error trying to post to this webhook, the last error that we've seen */
2316
+ last_error?: string | null | undefined;
2317
+ }
2318
+ /** the webhooks associated with the account */
2319
+ export type ListWebhooksResponseBodyList = Array<ListWebhooksResponseBodyItem>;
2320
+ export type ListWebhooksResponse = ListWebhooksResponseBodyList;
2321
+ export interface ParseMessageRequest {
2322
+ /** the full MIME document of an email message */
2323
+ raw_message: string;
2324
+ }
2325
+ /** the information on a single recipient */
2326
+ export type ParseMessageResponseToItem = GetMessageContentResponseTo;
2327
+ /** an array of any recipients in the message */
2328
+ export type ParseMessageResponseToList = Array<GetMessageContentResponseTo>;
2329
+ /** information about an individual attachment */
2330
+ export interface ParseMessageResponseAttachmentsItem {
2331
+ /** the file name of the attachment */
2332
+ name?: string | null | undefined;
2333
+ /** the MIME type of the attachment */
2334
+ type?: string | null | undefined;
2335
+ /** if this is set to true, the attachment is not pure-text, and the content will be base64 encoded */
2336
+ binary?: boolean | null | undefined;
2337
+ /** the content of the attachment as a base64 encoded string */
2338
+ content?: string | null | undefined;
2339
+ }
2340
+ /** an array of any attachments that can be found in the message */
2341
+ export type ParseMessageResponseAttachmentsList = Array<ParseMessageResponseAttachmentsItem>;
2342
+ /** information about an individual image */
2343
+ export interface ParseMessageResponseImagesItem {
2344
+ /** the Content-ID of the embedded image */
2345
+ name?: string | null | undefined;
2346
+ /** the MIME type of the image */
2347
+ type?: string | null | undefined;
2348
+ /** the content of the image as a base64 encoded string */
2349
+ content?: string | null | undefined;
2350
+ }
2351
+ /** an array of any embedded images that can be found in the message */
2352
+ export type ParseMessageResponseImagesList = Array<ParseMessageResponseImagesItem>;
2353
+ export interface ParseMessageResponse {
2354
+ /** the subject of the message */
2355
+ subject?: string | null | undefined;
2356
+ /** the email address of the sender */
2357
+ from_email?: string | null | undefined;
2358
+ /** the alias of the sender (if any) */
2359
+ from_name?: string | null | undefined;
2360
+ /** an array of any recipients in the message */
2361
+ to?: ParseMessageResponseToList | null | undefined;
2362
+ /** the key-value pairs of the MIME headers for the message's main document */
2363
+ headers?: unknown | null | undefined;
2364
+ /** the text part of the message, if any */
2365
+ text?: string | null | undefined;
2366
+ /** the HTML part of the message, if any */
2367
+ html?: string | null | undefined;
2368
+ /** an array of any attachments that can be found in the message */
2369
+ attachments?: ParseMessageResponseAttachmentsList | null | undefined;
2370
+ /** an array of any embedded images that can be found in the message */
2371
+ images?: ParseMessageResponseImagesList | null | undefined;
2372
+ }
2373
+ export interface PauseSubaccountRequest {
2374
+ /** the unique identifier of the subaccount to pause */
2375
+ id: string;
2376
+ }
2377
+ /** the current sending status of the subaccount */
2378
+ export type PauseSubaccountResponseStatus = "active" | "paused";
2379
+ export interface PauseSubaccountResponse {
2380
+ /** a unique indentifier for the subaccount */
2381
+ id?: string | null | undefined;
2382
+ /** an optional display name for the subaccount */
2383
+ name?: string | null | undefined;
2384
+ /** an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation */
2385
+ custom_quota?: number | null | undefined;
2386
+ /** the current sending status of the subaccount */
2387
+ status?: PauseSubaccountResponseStatus | null | undefined;
2388
+ /** the subaccount's current reputation on a scale from 0 to 100 */
2389
+ reputation?: number | null | undefined;
2390
+ /** the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
2391
+ created_at?: string | null | undefined;
2392
+ /** the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format */
2393
+ first_sent_at?: string | null | undefined;
2394
+ /** the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC) */
2395
+ sent_weekly?: number | null | undefined;
2396
+ /** the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC) */
2397
+ sent_monthly?: number | null | undefined;
2398
+ /** the number of emails the subaccount has sent since it was created */
2399
+ sent_total?: number | null | undefined;
2400
+ }
2401
+ export interface PingRequest {
2402
+ }
2403
+ export type PingResponse = string;
2404
+ export interface Ping2Request {
2405
+ }
2406
+ export interface Ping2Response {
2407
+ /** a simple pong response */
2408
+ PING?: string | null | undefined;
2409
+ }
2410
+ export interface ProvisionIpRequest {
2411
+ /** whether to enable warmup mode for the ip */
2412
+ warmup?: boolean | undefined;
2413
+ /** the id of the pool to add the dedicated ip to, or null to use your account's default pool */
2414
+ pool?: string | undefined;
2415
+ }
2416
+ export interface ProvisionIpResponse {
2417
+ /** the date and time that the request was created as a UTC timestamp in YYYY-MM-DD HH:MM:SS format */
2418
+ requested_at?: string | null | undefined;
2419
+ }
2420
+ export interface PublishTemplateRequest {
2421
+ /** the immutable name of an existing template */
2422
+ name: string;
2423
+ }
2424
+ /** the list of labels applied to the template */
2425
+ export type PublishTemplateResponseLabelsList = Array<string>;
2426
+ export interface PublishTemplateResponse {
2427
+ /** the immutable unique code name of the template */
2428
+ slug?: string | null | undefined;
2429
+ /** the name of the template */
2430
+ name?: string | null | undefined;
2431
+ /** the list of labels applied to the template */
2432
+ labels?: PublishTemplateResponseLabelsList | null | undefined;
2433
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements - draft version */
2434
+ code?: string | null | undefined;
2435
+ /** the subject line of the template, if provided - draft version */
2436
+ subject?: string | null | undefined;
2437
+ /** the default sender address for the template, if provided - draft version */
2438
+ from_email?: string | null | undefined;
2439
+ /** the default sender from name for the template, if provided - draft version */
2440
+ from_name?: string | null | undefined;
2441
+ /** the default text part of messages sent with the template, if provided - draft version */
2442
+ text?: string | null | undefined;
2443
+ /** the same as the template name - kept as a separate field for backwards compatibility */
2444
+ publish_name?: string | null | undefined;
2445
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements that are available as published, if it has been published */
2446
+ publish_code?: string | null | undefined;
2447
+ /** the subject line of the template, if provided */
2448
+ publish_subject?: string | null | undefined;
2449
+ /** the default sender address for the template, if provided */
2450
+ publish_from_email?: string | null | undefined;
2451
+ /** the default sender from name for the template, if provided */
2452
+ publish_from_name?: string | null | undefined;
2453
+ /** the default text part of messages sent with the template, if provided */
2454
+ publish_text?: string | null | undefined;
2455
+ /** the date and time the template was last published as a UTC string in YYYY-MM-DD HH:MM:SS format, or null if it has not been published */
2456
+ published_at?: string | null | undefined;
2457
+ /** the date and time the template was first created as a UTC string in YYYY-MM-DD HH:MM:SS format */
2458
+ created_at?: string | null | undefined;
2459
+ /** the date and time the template was last modified as a UTC string in YYYY-MM-DD HH:MM:SS format */
2460
+ updated_at?: string | null | undefined;
2461
+ /** indicates if the template is malformed or corrupt */
2462
+ is_broken_template?: boolean | null | undefined;
2463
+ }
2464
+ /** Template version - "published" or "draft". Note: requesting "published" when the template has not been published will return a 404 error. */
2465
+ export type RenderMcTemplateRequestMcTemplateVersion = "published" | "draft";
2466
+ export interface RenderMcTemplateRequestMergeVarsItem {
2467
+ /** the merge variable name */
2468
+ name?: string | undefined;
2469
+ /** the merge variable value */
2470
+ content?: string | undefined;
2471
+ }
2472
+ /** an array of merge variables to inject into the template */
2473
+ export type RenderMcTemplateRequestMergeVarsList = Array<RenderMcTemplateRequestMergeVarsItem>;
2474
+ export interface RenderMcTemplateRequest {
2475
+ /** the id of the Mailchimp template to render */
2476
+ mc_template_id: number;
2477
+ /** Template version - "published" or "draft". Note: requesting "published" when the template has not been published will return a 404 error. */
2478
+ mc_template_version?: RenderMcTemplateRequestMcTemplateVersion | (string & {}) | undefined;
2479
+ /** an array of merge variables to inject into the template */
2480
+ merge_vars?: RenderMcTemplateRequestMergeVarsList | undefined;
2481
+ }
2482
+ export interface RenderMcTemplateResponse {
2483
+ /** The rendered HTML content with merge variables applied */
2484
+ html?: string | null | undefined;
2485
+ }
2486
+ /** the injection of a single piece of content into a single editable region */
2487
+ export interface RenderTemplateRequestTemplateContentItem {
2488
+ /** the name of the mc:edit editable region to inject into */
2489
+ name: string;
2490
+ /** the content to inject */
2491
+ content: string;
2492
+ }
2493
+ /** an array of template content to render. Each item in the array should be a struct with two keys - name: the name of the content block to set the content for, and content: the actual content to put into the block */
2494
+ export type RenderTemplateRequestTemplateContentList = Array<RenderTemplateRequestTemplateContentItem>;
2495
+ /** a single merge variable */
2496
+ export interface RenderTemplateRequestMergeVarsItem {
2497
+ /** the merge variable's name. Merge variable names are case-insensitive and may not start with _ */
2498
+ name?: string | undefined;
2499
+ /** the merge variable's content */
2500
+ content?: string | undefined;
2501
+ }
2502
+ /** optional merge variables to use for injecting merge field content. If this is not provided, no merge fields will be replaced. */
2503
+ export type RenderTemplateRequestMergeVarsList = Array<RenderTemplateRequestMergeVarsItem>;
2504
+ export interface RenderTemplateRequest {
2505
+ /** the immutable name of a template that exists in the user's account */
2506
+ template_name: string;
2507
+ /** an array of template content to render. Each item in the array should be a struct with two keys - name: the name of the content block to set the content for, and content: the actual content to put into the block */
2508
+ template_content: RenderTemplateRequestTemplateContentList;
2509
+ /** optional merge variables to use for injecting merge field content. If this is not provided, no merge fields will be replaced. */
2510
+ merge_vars?: RenderTemplateRequestMergeVarsList | undefined;
2511
+ }
2512
+ export interface RenderTemplateResponse {
2513
+ /** the rendered HTML as a string */
2514
+ html?: string | null | undefined;
2515
+ }
2516
+ export interface RescheduleMessageRequest {
2517
+ /** a scheduled email id, as returned by any of the messages/send calls or messages/list-scheduled */
2518
+ id: string;
2519
+ /** the new UTC timestamp when the message should sent. Mandrill can't time travel, so if you specify a time in past the message will be sent immediately; for future dates, you're limited to one year from the date of scheduling. */
2520
+ send_at: string;
2521
+ }
2522
+ /** a scheduled email */
2523
+ export type RescheduleMessageResponseBodyItem = CancelScheduledMessageResponseBodyItem;
2524
+ /** information about the scheduled email that was rescheduled. */
2525
+ export type RescheduleMessageResponseBodyList = Array<CancelScheduledMessageResponseBodyItem>;
2526
+ export type RescheduleMessageResponse = RescheduleMessageResponseBodyList;
2527
+ export interface ResumeSubaccountRequest {
2528
+ /** the unique identifier of the subaccount to resume */
2529
+ id: string;
2530
+ }
2531
+ /** the current sending status of the subaccount */
2532
+ export type ResumeSubaccountResponseStatus = "active" | "paused";
2533
+ export interface ResumeSubaccountResponse {
2534
+ /** a unique indentifier for the subaccount */
2535
+ id?: string | null | undefined;
2536
+ /** an optional display name for the subaccount */
2537
+ name?: string | null | undefined;
2538
+ /** an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation */
2539
+ custom_quota?: number | null | undefined;
2540
+ /** the current sending status of the subaccount */
2541
+ status?: ResumeSubaccountResponseStatus | null | undefined;
2542
+ /** the subaccount's current reputation on a scale from 0 to 100 */
2543
+ reputation?: number | null | undefined;
2544
+ /** the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
2545
+ created_at?: string | null | undefined;
2546
+ /** the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format */
2547
+ first_sent_at?: string | null | undefined;
2548
+ /** the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC) */
2549
+ sent_weekly?: number | null | undefined;
2550
+ /** the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC) */
2551
+ sent_monthly?: number | null | undefined;
2552
+ /** the number of emails the subaccount has sent since it was created */
2553
+ sent_total?: number | null | undefined;
2554
+ }
2555
+ /** an array of tag names to narrow the search to, will return messages that contain ANY of the tags */
2556
+ export type SearchMessagesRequestTagsList = Array<string>;
2557
+ /** an array of sender addresses to narrow the search to, will return messages sent by ANY of the senders */
2558
+ export type SearchMessagesRequestSendersList = Array<string>;
2559
+ /** an array of API keys to narrow the search to, will return messages sent by ANY of the keys */
2560
+ export type SearchMessagesRequestApiKeysList = Array<string>;
2561
+ export interface SearchMessagesRequest {
2562
+ /** search terms to find matching messages */
2563
+ query?: string | undefined;
2564
+ /** start date */
2565
+ date_from?: string | undefined;
2566
+ /** end date */
2567
+ date_to?: string | undefined;
2568
+ /** an array of tag names to narrow the search to, will return messages that contain ANY of the tags */
2569
+ tags?: SearchMessagesRequestTagsList | undefined;
2570
+ /** an array of sender addresses to narrow the search to, will return messages sent by ANY of the senders */
2571
+ senders?: SearchMessagesRequestSendersList | undefined;
2572
+ /** an array of API keys to narrow the search to, will return messages sent by ANY of the keys */
2573
+ api_keys?: SearchMessagesRequestApiKeysList | undefined;
2574
+ /** the maximum number of results to return, defaults to 100, 1000 is the maximum */
2575
+ limit?: number | undefined;
2576
+ }
2577
+ /** list of tags on this message */
2578
+ export type SearchMessagesResponseBodyItemTagsList = Array<string>;
2579
+ /** information on an individual open */
2580
+ export type SearchMessagesResponseBodyItemOpensDetailItem = GetMessageResponseOpensDetailItem;
2581
+ /** list of individual opens for the message */
2582
+ export type SearchMessagesResponseBodyItemOpensDetailList = Array<GetMessageResponseOpensDetailItem>;
2583
+ /** information on an individual click */
2584
+ export type SearchMessagesResponseBodyItemClicksDetailItem = GetMessageResponseClicksDetailItem;
2585
+ /** list of individual clicks for the message */
2586
+ export type SearchMessagesResponseBodyItemClicksDetailList = Array<GetMessageResponseClicksDetailItem>;
2587
+ /** sending status of this message */
2588
+ export type SearchMessagesResponseBodyItemState = "sent" | "bounced" | "rejected";
2589
+ /** the information for a single matching message */
2590
+ export interface SearchMessagesResponseBodyItem {
2591
+ /** the Unix timestamp from when this message was sent */
2592
+ ts?: number | null | undefined;
2593
+ /** the message's unique id */
2594
+ _id?: string | null | undefined;
2595
+ /** the email address of the sender */
2596
+ sender?: string | null | undefined;
2597
+ /** the unique name of the template used, if any */
2598
+ template?: string | null | undefined;
2599
+ /** the message's subject line */
2600
+ subject?: string | null | undefined;
2601
+ /** the recipient email address */
2602
+ email?: string | null | undefined;
2603
+ /** list of tags on this message */
2604
+ tags?: SearchMessagesResponseBodyItemTagsList | null | undefined;
2605
+ /** how many times has this message been opened */
2606
+ opens?: number | null | undefined;
2607
+ /** list of individual opens for the message */
2608
+ opens_detail?: SearchMessagesResponseBodyItemOpensDetailList | null | undefined;
2609
+ /** how many times has a link been clicked in this message */
2610
+ clicks?: number | null | undefined;
2611
+ /** list of individual clicks for the message */
2612
+ clicks_detail?: SearchMessagesResponseBodyItemClicksDetailList | null | undefined;
2613
+ /** sending status of this message */
2614
+ state?: SearchMessagesResponseBodyItemState | null | undefined;
2615
+ /** any custom metadata provided when the message was sent */
2616
+ metadata?: unknown | null | undefined;
2617
+ }
2618
+ /** an array of objects for each matching message */
2619
+ export type SearchMessagesResponseBodyList = Array<SearchMessagesResponseBodyItem>;
2620
+ export type SearchMessagesResponse = SearchMessagesResponseBodyList;
2621
+ /** an array of tag names to narrow the search to, will return messages that contain ANY of the tags */
2622
+ export type SearchMessagesTimeSeriesRequestTagsList = Array<string>;
2623
+ /** an array of sender addresses to narrow the search to, will return messages sent by ANY of the senders */
2624
+ export type SearchMessagesTimeSeriesRequestSendersList = Array<string>;
2625
+ export interface SearchMessagesTimeSeriesRequest {
2626
+ /** the search terms to find matching messages for */
2627
+ query?: string | undefined;
2628
+ /** start date */
2629
+ date_from?: string | undefined;
2630
+ /** end date */
2631
+ date_to?: string | undefined;
2632
+ /** an array of tag names to narrow the search to, will return messages that contain ANY of the tags */
2633
+ tags?: SearchMessagesTimeSeriesRequestTagsList | undefined;
2634
+ /** an array of sender addresses to narrow the search to, will return messages sent by ANY of the senders */
2635
+ senders?: SearchMessagesTimeSeriesRequestSendersList | undefined;
2636
+ }
2637
+ /** the stats for a single hour */
2638
+ export type SearchMessagesTimeSeriesResponseBodyItem = GetAllTagsTimeSeriesResponseBodyItem;
2639
+ /** the array of history information */
2640
+ export type SearchMessagesTimeSeriesResponseBodyList = Array<GetAllTagsTimeSeriesResponseBodyItem>;
2641
+ export type SearchMessagesTimeSeriesResponse = SearchMessagesTimeSeriesResponseBodyList;
2642
+ /** which version of the template to use - "draft" for draft content or "published" for published content. Defaults to "published". Note: requesting "published" when the template has not been published will return a 404 error. */
2643
+ export type SendMcTemplateRequestMcTemplateVersion = "draft" | "published";
2644
+ /** the header type to use for the recipient, defaults to "to" if not provided */
2645
+ export type SendMcTemplateRequestMessageToItemType = "to" | "cc" | "bcc";
2646
+ /** a single recipient's information */
2647
+ export interface SendMcTemplateRequestMessageToItem {
2648
+ /** the email address of the recipient */
2649
+ email: string;
2650
+ /** the optional display name to use for the recipient */
2651
+ name?: string | undefined;
2652
+ /** the header type to use for the recipient, defaults to "to" if not provided */
2653
+ type?: SendMcTemplateRequestMessageToItemType | (string & {}) | undefined;
2654
+ }
2655
+ /** an array of recipient information. */
2656
+ export type SendMcTemplateRequestMessageToList = Array<SendMcTemplateRequestMessageToItem>;
2657
+ /** the merge tag language to use when evaluating merge tags, either mailchimp or handlebars */
2658
+ export type SendMcTemplateRequestMessageMergeLanguage = "mailchimp" | "handlebars";
2659
+ /** a single global merge variable */
2660
+ export interface SendMcTemplateRequestMessageGlobalMergeVarsItem {
2661
+ /** the global merge variable's name. Merge variable names are case-insensitive and may not start with _ */
2662
+ name?: string | undefined;
2663
+ /** the global merge variable's content */
2664
+ content?: string | undefined;
2665
+ }
2666
+ /** global merge variables to use for all recipients. You can override these per recipient. */
2667
+ export type SendMcTemplateRequestMessageGlobalMergeVarsList = Array<SendMcTemplateRequestMessageGlobalMergeVarsItem>;
2668
+ export type SendMcTemplateRequestMessageMergeVarsItemVarsItem = RenderTemplateRequestMergeVarsItem;
2669
+ /** the recipient's merge variables */
2670
+ export type SendMcTemplateRequestMessageMergeVarsItemVarsList = Array<RenderTemplateRequestMergeVarsItem>;
2671
+ /** per-recipient merge variables */
2672
+ export interface SendMcTemplateRequestMessageMergeVarsItem {
2673
+ /** the email address of the recipient that the merge variables should apply to */
2674
+ rcpt: string;
2675
+ /** the recipient's merge variables */
2676
+ vars?: SendMcTemplateRequestMessageMergeVarsItemVarsList | undefined;
2677
+ }
2678
+ /** per-recipient merge variables, which override global merge variables with the same name. */
2679
+ export type SendMcTemplateRequestMessageMergeVarsList = Array<SendMcTemplateRequestMessageMergeVarsItem>;
2680
+ /** an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors. */
2681
+ export type SendMcTemplateRequestMessageTagsList = Array<string>;
2682
+ /** an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically. */
2683
+ export type SendMcTemplateRequestMessageGoogleAnalyticsDomainsList = Array<string>;
2684
+ /** metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api. */
2685
+ export interface SendMcTemplateRequestMessageMetadata {
2686
+ /** a valid website url */
2687
+ website?: string | undefined;
2688
+ }
2689
+ /** an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used. */
2690
+ export interface SendMcTemplateRequestMessageRecipientMetadataItemValues {
2691
+ user_id?: number | undefined;
2692
+ }
2693
+ /** metadata for a single recipient */
2694
+ export interface SendMcTemplateRequestMessageRecipientMetadataItem {
2695
+ /** the email address of the recipient that the metadata is associated with */
2696
+ rcpt?: string | undefined;
2697
+ /** an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used. */
2698
+ values?: SendMcTemplateRequestMessageRecipientMetadataItemValues | undefined;
2699
+ }
2700
+ /** Per-recipient metadata that will override the global values specified in the metadata parameter. */
2701
+ export type SendMcTemplateRequestMessageRecipientMetadataList = Array<SendMcTemplateRequestMessageRecipientMetadataItem>;
2702
+ /** a single supported attachment */
2703
+ export interface SendMcTemplateRequestMessageAttachmentsItem {
2704
+ /** the MIME type of the attachment */
2705
+ type?: string | undefined;
2706
+ /** the file name of the attachment */
2707
+ name?: string | undefined;
2708
+ /** the content of the attachment as a base64-encoded string */
2709
+ content?: string | undefined;
2710
+ }
2711
+ /** an array of supported attachments to add to the message */
2712
+ export type SendMcTemplateRequestMessageAttachmentsList = Array<SendMcTemplateRequestMessageAttachmentsItem>;
2713
+ /** a single embedded image */
2714
+ export interface SendMcTemplateRequestMessageImagesItem {
2715
+ /** the MIME type of the image - must start with "image/" */
2716
+ type?: string | undefined;
2717
+ /** the Content ID of the image - use <img src="cid:THIS_VALUE"> to reference the image in your HTML content */
2718
+ name?: string | undefined;
2719
+ /** the content of the image as a base64-encoded string */
2720
+ content?: string | undefined;
2721
+ }
2722
+ /** an array of embedded images to add to the message */
2723
+ export type SendMcTemplateRequestMessageImagesList = Array<SendMcTemplateRequestMessageImagesItem>;
2724
+ /** the other information on the message to send - same as /messages/send */
2725
+ export interface SendMcTemplateRequestMessage {
2726
+ /** optional full HTML content to be sent if not in template */
2727
+ html?: string | undefined;
2728
+ /** optional full text content to be sent */
2729
+ text?: string | undefined;
2730
+ /** the message subject */
2731
+ subject?: string | undefined;
2732
+ /** the sender email address */
2733
+ from_email?: string | undefined;
2734
+ /** optional from name to be used */
2735
+ from_name?: string | undefined;
2736
+ /** an array of recipient information. */
2737
+ to?: SendMcTemplateRequestMessageToList | undefined;
2738
+ /** optional extra headers to add to the message (most headers are allowed) */
2739
+ headers?: unknown | undefined;
2740
+ /** whether or not this message is important, and should be delivered ahead of non-important messages */
2741
+ important?: boolean | undefined;
2742
+ /** whether or not to turn on open tracking for the message */
2743
+ track_opens?: boolean | undefined;
2744
+ /** whether or not to turn on click tracking for the message */
2745
+ track_clicks?: boolean | undefined;
2746
+ /** whether or not to automatically generate a text part for messages that are not given text */
2747
+ auto_text?: boolean | undefined;
2748
+ /** whether or not to automatically generate an HTML part for messages that are not given HTML */
2749
+ auto_html?: boolean | undefined;
2750
+ /** whether or not to automatically inline all CSS styles provided in the message HTML - only for HTML documents less than 256KB in size */
2751
+ inline_css?: boolean | undefined;
2752
+ /** whether or not to strip the query string from URLs when aggregating tracked URL data */
2753
+ url_strip_qs?: boolean | undefined;
2754
+ /** whether or not to expose all recipients in to "To" header for each email */
2755
+ preserve_recipients?: boolean | undefined;
2756
+ /** set to false to remove content logging for sensitive emails */
2757
+ view_content_link?: boolean | undefined;
2758
+ /** an optional address to receive an exact copy of each recipient's email */
2759
+ bcc_address?: string | undefined;
2760
+ /** a custom domain to use for tracking opens and clicks instead of mandrillapp.com */
2761
+ tracking_domain?: string | undefined;
2762
+ /** a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients) */
2763
+ signing_domain?: string | undefined;
2764
+ /** a custom domain to use for the messages's return-path */
2765
+ return_path_domain?: string | undefined;
2766
+ /** whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided. */
2767
+ merge?: boolean | undefined;
2768
+ /** the merge tag language to use when evaluating merge tags, either mailchimp or handlebars */
2769
+ merge_language?: SendMcTemplateRequestMessageMergeLanguage | (string & {}) | undefined;
2770
+ /** global merge variables to use for all recipients. You can override these per recipient. */
2771
+ global_merge_vars?: SendMcTemplateRequestMessageGlobalMergeVarsList | undefined;
2772
+ /** per-recipient merge variables, which override global merge variables with the same name. */
2773
+ merge_vars?: SendMcTemplateRequestMessageMergeVarsList | undefined;
2774
+ /** an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors. */
2775
+ tags?: SendMcTemplateRequestMessageTagsList | undefined;
2776
+ /** the unique id of a subaccount for this message - must already exist or will fail with an error */
2777
+ subaccount?: string | undefined;
2778
+ /** an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically. */
2779
+ google_analytics_domains?: SendMcTemplateRequestMessageGoogleAnalyticsDomainsList | undefined;
2780
+ /** optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead. */
2781
+ google_analytics_campaign?: string | undefined;
2782
+ /** metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api. */
2783
+ metadata?: SendMcTemplateRequestMessageMetadata | undefined;
2784
+ /** Per-recipient metadata that will override the global values specified in the metadata parameter. */
2785
+ recipient_metadata?: SendMcTemplateRequestMessageRecipientMetadataList | undefined;
2786
+ /** an array of supported attachments to add to the message */
2787
+ attachments?: SendMcTemplateRequestMessageAttachmentsList | undefined;
2788
+ /** an array of embedded images to add to the message */
2789
+ images?: SendMcTemplateRequestMessageImagesList | undefined;
2790
+ }
2791
+ export interface SendMcTemplateRequest {
2792
+ /** the id of the Mailchimp template to send */
2793
+ mc_template_id: number;
2794
+ /** which version of the template to use - "draft" for draft content or "published" for published content. Defaults to "published". Note: requesting "published" when the template has not been published will return a 404 error. */
2795
+ mc_template_version?: SendMcTemplateRequestMcTemplateVersion | (string & {}) | undefined;
2796
+ /** the other information on the message to send - same as /messages/send */
2797
+ message: SendMcTemplateRequestMessage;
2798
+ /** enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async. */
2799
+ async?: boolean | undefined;
2800
+ /** the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead. */
2801
+ ip_pool?: string | undefined;
2802
+ /** when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately; for future dates, you're limited to one year from the date of scheduling. */
2803
+ send_at?: string | undefined;
2804
+ }
2805
+ /** the sending status of the recipient */
2806
+ export type SendMcTemplateResponseBodyItemStatus = "sent" | "queued" | "rejected" | "invalid";
2807
+ /** the reason for the rejection if the recipient status is "rejected" */
2808
+ export type SendMcTemplateResponseBodyItemRejectReason = "hard-bounce" | "soft-bounce" | "spam" | "unsub" | "custom" | "invalid-sender" | "invalid" | "test-mode-limit" | "unsigned" | "rule";
2809
+ /** the reason for the email being queued if the response status is "queued" */
2810
+ export type SendMcTemplateResponseBodyItemQueuedReason = "attachments" | "multiple-recipients" | "free-trial-sends-exhausted" | "hourly-quota-exhausted" | "monthly-limit-reached" | "sending-paused" | "sending-suspended" | "account-suspended" | "sending-backlogged";
2811
+ /** the sending results for a single recipient */
2812
+ export interface SendMcTemplateResponseBodyItem {
2813
+ /** the email address of the recipient */
2814
+ email?: string | null | undefined;
2815
+ /** the sending status of the recipient */
2816
+ status?: SendMcTemplateResponseBodyItemStatus | null | undefined;
2817
+ /** the reason for the rejection if the recipient status is "rejected" */
2818
+ reject_reason?: SendMcTemplateResponseBodyItemRejectReason | null | undefined;
2819
+ /** the reason for the email being queued if the response status is "queued" */
2820
+ queued_reason?: SendMcTemplateResponseBodyItemQueuedReason | null | undefined;
2821
+ /** the message's unique id */
2822
+ _id?: string | null | undefined;
2823
+ }
2824
+ /** an array of objects for each recipient containing the key "email" with the email address, and details of the message status for that recipient */
2825
+ export type SendMcTemplateResponseBodyList = Array<SendMcTemplateResponseBodyItem>;
2826
+ export type SendMcTemplateResponse = SendMcTemplateResponseBodyList;
2827
+ /** the header type to use for the recipient, defaults to "to" if not provided */
2828
+ export type SendMessageRequestMessageToItemType = "to" | "cc" | "bcc";
2829
+ /** a single recipient's information */
2830
+ export interface SendMessageRequestMessageToItem {
2831
+ /** the email address of the recipient */
2832
+ email: string;
2833
+ /** the optional display name to use for the recipient */
2834
+ name?: string | undefined;
2835
+ /** the header type to use for the recipient, defaults to "to" if not provided */
2836
+ type?: SendMessageRequestMessageToItemType | (string & {}) | undefined;
2837
+ }
2838
+ /** an array of recipient information. */
2839
+ export type SendMessageRequestMessageToList = Array<SendMessageRequestMessageToItem>;
2840
+ /** the merge tag language to use when evaluating merge tags, either mailchimp or handlebars */
2841
+ export type SendMessageRequestMessageMergeLanguage = "mailchimp" | "handlebars";
2842
+ /** a single global merge variable */
2843
+ export type SendMessageRequestMessageGlobalMergeVarsItem = SendMcTemplateRequestMessageGlobalMergeVarsItem;
2844
+ /** global merge variables to use for all recipients. You can override these per recipient. */
2845
+ export type SendMessageRequestMessageGlobalMergeVarsList = Array<SendMcTemplateRequestMessageGlobalMergeVarsItem>;
2846
+ export type SendMessageRequestMessageMergeVarsItemVarsItem = RenderTemplateRequestMergeVarsItem;
2847
+ /** the recipient's merge variables */
2848
+ export type SendMessageRequestMessageMergeVarsItemVarsList = Array<RenderTemplateRequestMergeVarsItem>;
2849
+ /** per-recipient merge variables */
2850
+ export interface SendMessageRequestMessageMergeVarsItem {
2851
+ /** the email address of the recipient that the merge variables should apply to */
2852
+ rcpt: string;
2853
+ /** the recipient's merge variables */
2854
+ vars?: SendMessageRequestMessageMergeVarsItemVarsList | undefined;
2855
+ }
2856
+ /** per-recipient merge variables, which override global merge variables with the same name. */
2857
+ export type SendMessageRequestMessageMergeVarsList = Array<SendMessageRequestMessageMergeVarsItem>;
2858
+ /** an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors. */
2859
+ export type SendMessageRequestMessageTagsList = Array<string>;
2860
+ /** an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically. */
2861
+ export type SendMessageRequestMessageGoogleAnalyticsDomainsList = Array<string>;
2862
+ /** metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api. */
2863
+ export type SendMessageRequestMessageMetadata = SendMcTemplateRequestMessageMetadata;
2864
+ /** an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used. */
2865
+ export type SendMessageRequestMessageRecipientMetadataItemValues = SendMcTemplateRequestMessageRecipientMetadataItemValues;
2866
+ /** metadata for a single recipient */
2867
+ export type SendMessageRequestMessageRecipientMetadataItem = SendMcTemplateRequestMessageRecipientMetadataItem;
2868
+ /** Per-recipient metadata that will override the global values specified in the metadata parameter. */
2869
+ export type SendMessageRequestMessageRecipientMetadataList = Array<SendMcTemplateRequestMessageRecipientMetadataItem>;
2870
+ /** a single supported attachment */
2871
+ export type SendMessageRequestMessageAttachmentsItem = SendMcTemplateRequestMessageAttachmentsItem;
2872
+ /** an array of supported attachments to add to the message */
2873
+ export type SendMessageRequestMessageAttachmentsList = Array<SendMcTemplateRequestMessageAttachmentsItem>;
2874
+ /** a single embedded image */
2875
+ export type SendMessageRequestMessageImagesItem = SendMcTemplateRequestMessageImagesItem;
2876
+ /** an array of embedded images to add to the message */
2877
+ export type SendMessageRequestMessageImagesList = Array<SendMcTemplateRequestMessageImagesItem>;
2878
+ /** the information on the message to send */
2879
+ export interface SendMessageRequestMessage {
2880
+ /** the full HTML content to be sent */
2881
+ html?: string | undefined;
2882
+ /** optional full text content to be sent */
2883
+ text?: string | undefined;
2884
+ /** the message subject */
2885
+ subject?: string | undefined;
2886
+ /** the sender email address */
2887
+ from_email?: string | undefined;
2888
+ /** optional from name to be used */
2889
+ from_name?: string | undefined;
2890
+ /** an array of recipient information. */
2891
+ to?: SendMessageRequestMessageToList | undefined;
2892
+ /** optional extra headers to add to the message (most headers are allowed) */
2893
+ headers?: unknown | undefined;
2894
+ /** whether or not this message is important, and should be delivered ahead of non-important messages */
2895
+ important?: boolean | undefined;
2896
+ /** whether or not to turn on open tracking for the message */
2897
+ track_opens?: boolean | undefined;
2898
+ /** whether or not to turn on click tracking for the message */
2899
+ track_clicks?: boolean | undefined;
2900
+ /** whether or not to automatically generate a text part for messages that are not given text */
2901
+ auto_text?: boolean | undefined;
2902
+ /** whether or not to automatically generate an HTML part for messages that are not given HTML */
2903
+ auto_html?: boolean | undefined;
2904
+ /** whether or not to automatically inline all CSS styles provided in the message HTML - only for HTML documents less than 256KB in size */
2905
+ inline_css?: boolean | undefined;
2906
+ /** whether or not to strip the query string from URLs when aggregating tracked URL data */
2907
+ url_strip_qs?: boolean | undefined;
2908
+ /** whether or not to expose all recipients in to "To" header for each email */
2909
+ preserve_recipients?: boolean | undefined;
2910
+ /** set to false to remove content logging for sensitive emails */
2911
+ view_content_link?: boolean | undefined;
2912
+ /** an optional address to receive an exact copy of each recipient's email */
2913
+ bcc_address?: string | undefined;
2914
+ /** a custom domain to use for tracking opens and clicks instead of mandrillapp.com */
2915
+ tracking_domain?: string | undefined;
2916
+ /** a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients) */
2917
+ signing_domain?: string | undefined;
2918
+ /** a custom domain to use for the messages's return-path */
2919
+ return_path_domain?: string | undefined;
2920
+ /** whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided. */
2921
+ merge?: boolean | undefined;
2922
+ /** the merge tag language to use when evaluating merge tags, either mailchimp or handlebars */
2923
+ merge_language?: SendMessageRequestMessageMergeLanguage | (string & {}) | undefined;
2924
+ /** global merge variables to use for all recipients. You can override these per recipient. */
2925
+ global_merge_vars?: SendMessageRequestMessageGlobalMergeVarsList | undefined;
2926
+ /** per-recipient merge variables, which override global merge variables with the same name. */
2927
+ merge_vars?: SendMessageRequestMessageMergeVarsList | undefined;
2928
+ /** an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors. */
2929
+ tags?: SendMessageRequestMessageTagsList | undefined;
2930
+ /** the unique id of a subaccount for this message - must already exist or will fail with an error */
2931
+ subaccount?: string | undefined;
2932
+ /** an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically. */
2933
+ google_analytics_domains?: SendMessageRequestMessageGoogleAnalyticsDomainsList | undefined;
2934
+ /** optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead. */
2935
+ google_analytics_campaign?: string | undefined;
2936
+ /** metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api. */
2937
+ metadata?: SendMcTemplateRequestMessageMetadata | undefined;
2938
+ /** Per-recipient metadata that will override the global values specified in the metadata parameter. */
2939
+ recipient_metadata?: SendMessageRequestMessageRecipientMetadataList | undefined;
2940
+ /** an array of supported attachments to add to the message */
2941
+ attachments?: SendMessageRequestMessageAttachmentsList | undefined;
2942
+ /** an array of embedded images to add to the message */
2943
+ images?: SendMessageRequestMessageImagesList | undefined;
2944
+ }
2945
+ export interface SendMessageRequest {
2946
+ /** the information on the message to send */
2947
+ message: SendMessageRequestMessage;
2948
+ /** enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async. */
2949
+ async?: boolean | undefined;
2950
+ /** the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead. */
2951
+ ip_pool?: string | undefined;
2952
+ /** when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately; for future dates, you're limited to one year from the date of scheduling. */
2953
+ send_at?: string | undefined;
2954
+ }
2955
+ /** the sending status of the recipient */
2956
+ export type SendMessageResponseBodyItemStatus = "sent" | "queued" | "scheduled" | "rejected" | "invalid";
2957
+ /** the reason for the rejection if the recipient status is "rejected" */
2958
+ export type SendMessageResponseBodyItemRejectReason = "hard-bounce" | "soft-bounce" | "spam" | "unsub" | "custom" | "invalid-sender" | "invalid" | "test-mode-limit" | "unsigned" | "rule";
2959
+ /** the reason for the email being queued if the response status is "queued" */
2960
+ export type SendMessageResponseBodyItemQueuedReason = "attachments" | "multiple-recipients" | "free-trial-sends-exhausted" | "hourly-quota-exhausted" | "monthly-limit-reached" | "sending-paused" | "sending-suspended" | "account-suspended" | "sending-backlogged";
2961
+ /** the sending results for a single recipient */
2962
+ export interface SendMessageResponseBodyItem {
2963
+ /** the email address of the recipient */
2964
+ email?: string | null | undefined;
2965
+ /** the sending status of the recipient */
2966
+ status?: SendMessageResponseBodyItemStatus | null | undefined;
2967
+ /** the reason for the rejection if the recipient status is "rejected" */
2968
+ reject_reason?: SendMessageResponseBodyItemRejectReason | null | undefined;
2969
+ /** the reason for the email being queued if the response status is "queued" */
2970
+ queued_reason?: SendMessageResponseBodyItemQueuedReason | null | undefined;
2971
+ /** the message's unique id */
2972
+ _id?: string | null | undefined;
2973
+ }
2974
+ /** an array of objects for each recipient containing the key "email" with the email address, and details of the message status for that recipient */
2975
+ export type SendMessageResponseBodyList = Array<SendMessageResponseBodyItem>;
2976
+ export type SendMessageResponse = SendMessageResponseBodyList;
2977
+ /** optionally define the recipients to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document */
2978
+ export type SendRawInboundRequestToList = Array<string>;
2979
+ export interface SendRawInboundRequest {
2980
+ /** the full MIME document of an email message */
2981
+ raw_message: string;
2982
+ /** optionally define the recipients to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document */
2983
+ to?: SendRawInboundRequestToList | undefined;
2984
+ /** the address specified in the MAIL FROM stage of the SMTP conversation. Required for the SPF check. */
2985
+ mail_from?: string | undefined;
2986
+ /** the identification provided by the client mta in the MTA state of the SMTP conversation. Required for the SPF check. */
2987
+ helo?: string | undefined;
2988
+ /** the remote MTA's ip address. Optional; required for the SPF check. */
2989
+ client_address?: string | undefined;
2990
+ }
2991
+ /** the individual recipient information */
2992
+ export interface SendRawInboundResponseBodyItem {
2993
+ /** the email address of the matching recipient */
2994
+ email?: string | null | undefined;
2995
+ /** the mailbox route pattern that the recipient matched */
2996
+ pattern?: string | null | undefined;
2997
+ /** the webhook URL that the message was posted to */
2998
+ url?: string | null | undefined;
2999
+ }
3000
+ /** an array of the information for each recipient in the message (usually one) that matched an inbound route */
3001
+ export type SendRawInboundResponseBodyList = Array<SendRawInboundResponseBodyItem>;
3002
+ export type SendRawInboundResponse = SendRawInboundResponseBodyList;
3003
+ /** optionally define the recipient to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document */
3004
+ export type SendRawMessageRequestToList = Array<string>;
3005
+ export interface SendRawMessageRequest {
3006
+ /** the full MIME document of an email message */
3007
+ raw_message: string;
3008
+ /** optionally define the sender address - otherwise we'll use the address found in the provided headers */
3009
+ from_email?: string | undefined;
3010
+ /** optionally define the sender alias */
3011
+ from_name?: string | undefined;
3012
+ /** optionally define the recipient to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document */
3013
+ to?: SendRawMessageRequestToList | undefined;
3014
+ /** enable a background sending mode that is optimized for bulk sending. In async mode, messages/sendRaw will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async. */
3015
+ async?: boolean | undefined;
3016
+ /** the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead. */
3017
+ ip_pool?: string | undefined;
3018
+ /** when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately; for future dates, you're limited to one year from the date of scheduling. */
3019
+ send_at?: string | undefined;
3020
+ /** a custom domain to use for the messages's return-path */
3021
+ return_path_domain?: string | undefined;
3022
+ }
3023
+ /** the sending status of the recipient */
3024
+ export type SendRawMessageResponseBodyItemStatus = "sent" | "queued" | "scheduled" | "rejected" | "invalid";
3025
+ /** the reason for the rejection if the recipient status is "rejected" */
3026
+ export type SendRawMessageResponseBodyItemRejectReason = "hard-bounce" | "soft-bounce" | "spam" | "unsub" | "custom" | "invalid-sender" | "invalid" | "test-mode-limit" | "unsigned" | "rule";
3027
+ /** the reason for the email being queued if the response status is "queued" */
3028
+ export type SendRawMessageResponseBodyItemQueuedReason = "attachments" | "multiple-recipients" | "free-trial-sends-exhausted" | "hourly-quota-exhausted" | "monthly-limit-reached" | "sending-paused" | "sending-suspended" | "account-suspended" | "sending-backlogged";
3029
+ /** the sending results for a single recipient */
3030
+ export interface SendRawMessageResponseBodyItem {
3031
+ /** the email address of the recipient */
3032
+ email?: string | null | undefined;
3033
+ /** the sending status of the recipient */
3034
+ status?: SendRawMessageResponseBodyItemStatus | null | undefined;
3035
+ /** the reason for the rejection if the recipient status is "rejected" */
3036
+ reject_reason?: SendRawMessageResponseBodyItemRejectReason | null | undefined;
3037
+ /** the reason for the email being queued if the response status is "queued" */
3038
+ queued_reason?: SendRawMessageResponseBodyItemQueuedReason | null | undefined;
3039
+ /** the message's unique id */
3040
+ _id?: string | null | undefined;
3041
+ }
3042
+ /** an array of objects for each recipient containing the key "email" with the email address, and details of the message status for that recipient */
3043
+ export type SendRawMessageResponseBodyList = Array<SendRawMessageResponseBodyItem>;
3044
+ export type SendRawMessageResponse = SendRawMessageResponseBodyList;
3045
+ /** the phone numbers to send the SMS message to */
3046
+ export type SendSmsRequestMessageSmsToList = Array<string>;
3047
+ /** The consent type for the message */
3048
+ export type SendSmsRequestMessageSmsConsent = "onetime" | "recurring" | "recurring-no-confirm";
3049
+ export interface SendSmsRequestMessageSms {
3050
+ /** the full SMS content to be sent */
3051
+ text: string;
3052
+ /** the phone numbers to send the SMS message to */
3053
+ to: SendSmsRequestMessageSmsToList;
3054
+ /** the phone number to send the SMS message from */
3055
+ from: string;
3056
+ /** The consent type for the message */
3057
+ consent: SendSmsRequestMessageSmsConsent | (string & {});
3058
+ /** whether or not to turn on click tracking for the message */
3059
+ track_clicks?: boolean | undefined;
3060
+ }
3061
+ export interface SendSmsRequestMessage {
3062
+ sms?: SendSmsRequestMessageSms | undefined;
3063
+ }
3064
+ export interface SendSmsRequest {
3065
+ message: SendSmsRequestMessage;
3066
+ /** enable a background sending mode that is optimized for bulk sending. In async mode, messages/send-sms will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async. */
3067
+ async?: boolean | undefined;
3068
+ }
3069
+ /** the sending status of the message */
3070
+ export type SendSmsResponseBodyItemStatus = "sent" | "queued" | "scheduled" | "rejected" | "invalid";
3071
+ /** the reason for the rejection if the recipient status is "rejected" */
3072
+ export type SendSmsResponseBodyItemRejectReason = "hard-bounce" | "soft-bounce" | "spam" | "unsub" | "custom" | "invalid-sender" | "invalid" | "test-mode-limit" | "unsigned" | "rule";
3073
+ /** The reason for the queueing if the recipient status is queued */
3074
+ export type SendSmsResponseBodyItemQueueReason = "multiple recipients" | "async requested by user";
3075
+ /** The sending results for a single SMS recipient */
3076
+ export interface SendSmsResponseBodyItem {
3077
+ /** the phone number of the recipient */
3078
+ to?: string | null | undefined;
3079
+ /** the phone number of the sender */
3080
+ from?: string | null | undefined;
3081
+ /** the sending status of the message */
3082
+ status?: SendSmsResponseBodyItemStatus | null | undefined;
3083
+ /** the reason for the rejection if the recipient status is "rejected" */
3084
+ reject_reason?: SendSmsResponseBodyItemRejectReason | null | undefined;
3085
+ /** The reason for the queueing if the recipient status is queued */
3086
+ queue_reason?: SendSmsResponseBodyItemQueueReason | null | undefined;
3087
+ /** The message's unique id */
3088
+ _id?: string | null | undefined;
3089
+ }
3090
+ /** SMS sending results */
3091
+ export type SendSmsResponseBodyList = Array<SendSmsResponseBodyItem>;
3092
+ export type SendSmsResponse = SendSmsResponseBodyList;
3093
+ /** the injection of a single piece of content into a single editable region */
3094
+ export interface SendTemplateRequestTemplateContentItem {
3095
+ /** the name of the mc:edit editable region to inject into */
3096
+ name?: string | undefined;
3097
+ /** the content to inject */
3098
+ content?: string | undefined;
3099
+ }
3100
+ /** an array of template content to send. Each item in the array should be a struct with two keys - name: the name of the content block to set the content for, and content: the actual content to put into the block */
3101
+ export type SendTemplateRequestTemplateContentList = Array<SendTemplateRequestTemplateContentItem>;
3102
+ /** the header type to use for the recipient, defaults to "to" if not provided */
3103
+ export type SendTemplateRequestMessageToItemType = "to" | "cc" | "bcc";
3104
+ /** a single recipient's information */
3105
+ export interface SendTemplateRequestMessageToItem {
3106
+ /** the email address of the recipient */
3107
+ email: string;
3108
+ /** the optional display name to use for the recipient */
3109
+ name?: string | undefined;
3110
+ /** the header type to use for the recipient, defaults to "to" if not provided */
3111
+ type?: SendTemplateRequestMessageToItemType | (string & {}) | undefined;
3112
+ }
3113
+ /** an array of recipient information. */
3114
+ export type SendTemplateRequestMessageToList = Array<SendTemplateRequestMessageToItem>;
3115
+ /** the merge tag language to use when evaluating merge tags, either mailchimp or handlebars */
3116
+ export type SendTemplateRequestMessageMergeLanguage = "mailchimp" | "handlebars";
3117
+ /** a single global merge variable */
3118
+ export type SendTemplateRequestMessageGlobalMergeVarsItem = SendMcTemplateRequestMessageGlobalMergeVarsItem;
3119
+ /** global merge variables to use for all recipients. You can override these per recipient. */
3120
+ export type SendTemplateRequestMessageGlobalMergeVarsList = Array<SendMcTemplateRequestMessageGlobalMergeVarsItem>;
3121
+ export type SendTemplateRequestMessageMergeVarsItemVarsItem = RenderTemplateRequestMergeVarsItem;
3122
+ /** the recipient's merge variables */
3123
+ export type SendTemplateRequestMessageMergeVarsItemVarsList = Array<RenderTemplateRequestMergeVarsItem>;
3124
+ /** per-recipient merge variables */
3125
+ export interface SendTemplateRequestMessageMergeVarsItem {
3126
+ /** the email address of the recipient that the merge variables should apply to */
3127
+ rcpt: string;
3128
+ /** the recipient's merge variables */
3129
+ vars?: SendTemplateRequestMessageMergeVarsItemVarsList | undefined;
3130
+ }
3131
+ /** per-recipient merge variables, which override global merge variables with the same name. */
3132
+ export type SendTemplateRequestMessageMergeVarsList = Array<SendTemplateRequestMessageMergeVarsItem>;
3133
+ /** an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors. */
3134
+ export type SendTemplateRequestMessageTagsList = Array<string>;
3135
+ /** an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically. */
3136
+ export type SendTemplateRequestMessageGoogleAnalyticsDomainsList = Array<string>;
3137
+ /** metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api. */
3138
+ export type SendTemplateRequestMessageMetadata = SendMcTemplateRequestMessageMetadata;
3139
+ /** an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used. */
3140
+ export type SendTemplateRequestMessageRecipientMetadataItemValues = SendMcTemplateRequestMessageRecipientMetadataItemValues;
3141
+ /** metadata for a single recipient */
3142
+ export type SendTemplateRequestMessageRecipientMetadataItem = SendMcTemplateRequestMessageRecipientMetadataItem;
3143
+ /** Per-recipient metadata that will override the global values specified in the metadata parameter. */
3144
+ export type SendTemplateRequestMessageRecipientMetadataList = Array<SendMcTemplateRequestMessageRecipientMetadataItem>;
3145
+ /** a single supported attachment */
3146
+ export type SendTemplateRequestMessageAttachmentsItem = SendMcTemplateRequestMessageAttachmentsItem;
3147
+ /** an array of supported attachments to add to the message */
3148
+ export type SendTemplateRequestMessageAttachmentsList = Array<SendMcTemplateRequestMessageAttachmentsItem>;
3149
+ /** a single embedded image */
3150
+ export type SendTemplateRequestMessageImagesItem = SendMcTemplateRequestMessageImagesItem;
3151
+ /** an array of embedded images to add to the message */
3152
+ export type SendTemplateRequestMessageImagesList = Array<SendMcTemplateRequestMessageImagesItem>;
3153
+ /** the other information on the message to send - same as /messages/send, but without the html content */
3154
+ export interface SendTemplateRequestMessage {
3155
+ /** optional full HTML content to be sent if not in template */
3156
+ html?: string | undefined;
3157
+ /** optional full text content to be sent */
3158
+ text?: string | undefined;
3159
+ /** the message subject */
3160
+ subject?: string | undefined;
3161
+ /** the sender email address */
3162
+ from_email?: string | undefined;
3163
+ /** optional from name to be used */
3164
+ from_name?: string | undefined;
3165
+ /** an array of recipient information. */
3166
+ to?: SendTemplateRequestMessageToList | undefined;
3167
+ /** optional extra headers to add to the message (most headers are allowed) */
3168
+ headers?: unknown | undefined;
3169
+ /** whether or not this message is important, and should be delivered ahead of non-important messages */
3170
+ important?: boolean | undefined;
3171
+ /** whether or not to turn on open tracking for the message */
3172
+ track_opens?: boolean | undefined;
3173
+ /** whether or not to turn on click tracking for the message */
3174
+ track_clicks?: boolean | undefined;
3175
+ /** whether or not to automatically generate a text part for messages that are not given text */
3176
+ auto_text?: boolean | undefined;
3177
+ /** whether or not to automatically generate an HTML part for messages that are not given HTML */
3178
+ auto_html?: boolean | undefined;
3179
+ /** whether or not to automatically inline all CSS styles provided in the message HTML - only for HTML documents less than 256KB in size */
3180
+ inline_css?: boolean | undefined;
3181
+ /** whether or not to strip the query string from URLs when aggregating tracked URL data */
3182
+ url_strip_qs?: boolean | undefined;
3183
+ /** whether or not to expose all recipients in to "To" header for each email */
3184
+ preserve_recipients?: boolean | undefined;
3185
+ /** set to false to remove content logging for sensitive emails */
3186
+ view_content_link?: boolean | undefined;
3187
+ /** an optional address to receive an exact copy of each recipient's email */
3188
+ bcc_address?: string | undefined;
3189
+ /** a custom domain to use for tracking opens and clicks instead of mandrillapp.com */
3190
+ tracking_domain?: string | undefined;
3191
+ /** a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients) */
3192
+ signing_domain?: string | undefined;
3193
+ /** a custom domain to use for the messages's return-path */
3194
+ return_path_domain?: string | undefined;
3195
+ /** whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided. */
3196
+ merge?: boolean | undefined;
3197
+ /** the merge tag language to use when evaluating merge tags, either mailchimp or handlebars */
3198
+ merge_language?: SendTemplateRequestMessageMergeLanguage | (string & {}) | undefined;
3199
+ /** global merge variables to use for all recipients. You can override these per recipient. */
3200
+ global_merge_vars?: SendTemplateRequestMessageGlobalMergeVarsList | undefined;
3201
+ /** per-recipient merge variables, which override global merge variables with the same name. */
3202
+ merge_vars?: SendTemplateRequestMessageMergeVarsList | undefined;
3203
+ /** an array of string to tag the message with. Stats are accumulated using tags, though we only store the first 100 we see, so this should not be unique or change frequently. Tags should be 50 characters or less. Any tags starting with an underscore are reserved for internal use and will cause errors. */
3204
+ tags?: SendTemplateRequestMessageTagsList | undefined;
3205
+ /** the unique id of a subaccount for this message - must already exist or will fail with an error */
3206
+ subaccount?: string | undefined;
3207
+ /** an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically. */
3208
+ google_analytics_domains?: SendTemplateRequestMessageGoogleAnalyticsDomainsList | undefined;
3209
+ /** optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead. */
3210
+ google_analytics_campaign?: string | undefined;
3211
+ /** metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api. */
3212
+ metadata?: SendMcTemplateRequestMessageMetadata | undefined;
3213
+ /** Per-recipient metadata that will override the global values specified in the metadata parameter. */
3214
+ recipient_metadata?: SendTemplateRequestMessageRecipientMetadataList | undefined;
3215
+ /** an array of supported attachments to add to the message */
3216
+ attachments?: SendTemplateRequestMessageAttachmentsList | undefined;
3217
+ /** an array of embedded images to add to the message */
3218
+ images?: SendTemplateRequestMessageImagesList | undefined;
3219
+ }
3220
+ export interface SendTemplateRequest {
3221
+ /** the immutable slug of a template that exists in the user's account. Make sure you don't use the template name as this one might change. */
3222
+ template_name: string;
3223
+ /** an array of template content to send. Each item in the array should be a struct with two keys - name: the name of the content block to set the content for, and content: the actual content to put into the block */
3224
+ template_content: SendTemplateRequestTemplateContentList;
3225
+ /** the other information on the message to send - same as /messages/send, but without the html content */
3226
+ message: SendTemplateRequestMessage;
3227
+ /** enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async. */
3228
+ async?: boolean | undefined;
3229
+ /** the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead. */
3230
+ ip_pool?: string | undefined;
3231
+ /** when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately; for future dates, you're limited to one year from the date of scheduling. */
3232
+ send_at?: string | undefined;
3233
+ }
3234
+ /** the sending status of the recipient */
3235
+ export type SendTemplateResponseBodyItemStatus = "sent" | "queued" | "rejected" | "invalid";
3236
+ /** the reason for the rejection if the recipient status is "rejected" */
3237
+ export type SendTemplateResponseBodyItemRejectReason = "hard-bounce" | "soft-bounce" | "spam" | "unsub" | "custom" | "invalid-sender" | "invalid" | "test-mode-limit" | "unsigned" | "rule";
3238
+ /** the reason for the email being queued if the response status is "queued" */
3239
+ export type SendTemplateResponseBodyItemQueuedReason = "attachments" | "multiple-recipients" | "free-trial-sends-exhausted" | "hourly-quota-exhausted" | "monthly-limit-reached" | "sending-paused" | "sending-suspended" | "account-suspended" | "sending-backlogged";
3240
+ /** the sending results for a single recipient */
3241
+ export interface SendTemplateResponseBodyItem {
3242
+ /** the email address of the recipient */
3243
+ email?: string | null | undefined;
3244
+ /** the sending status of the recipient */
3245
+ status?: SendTemplateResponseBodyItemStatus | null | undefined;
3246
+ /** the reason for the rejection if the recipient status is "rejected" */
3247
+ reject_reason?: SendTemplateResponseBodyItemRejectReason | null | undefined;
3248
+ /** the reason for the email being queued if the response status is "queued" */
3249
+ queued_reason?: SendTemplateResponseBodyItemQueuedReason | null | undefined;
3250
+ /** the message's unique id */
3251
+ _id?: string | null | undefined;
3252
+ }
3253
+ /** an array of objects for each recipient containing the key "email" with the email address, and details of the message status for that recipient */
3254
+ export type SendTemplateResponseBodyList = Array<SendTemplateResponseBodyItem>;
3255
+ export type SendTemplateResponse = SendTemplateResponseBodyList;
3256
+ export interface SetIpCustomDnsRequest {
3257
+ /** a dedicated ip address */
3258
+ ip: string;
3259
+ /** a domain name to set as the dedicated IP's custom dns name. */
3260
+ domain: string;
3261
+ }
3262
+ /** information about the ip's custom dns, if it has been configured */
3263
+ export type SetIpCustomDnsResponseCustomDns = CancelIpWarmupResponseCustomDns;
3264
+ /** information about the ip's warmup status */
3265
+ export type SetIpCustomDnsResponseWarmup = CancelIpWarmupResponseWarmup;
3266
+ export interface SetIpCustomDnsResponse {
3267
+ /** the ip address */
3268
+ ip?: string | null | undefined;
3269
+ /** the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
3270
+ created_at?: string | null | undefined;
3271
+ /** the name of the pool that this dedicated IP belongs to */
3272
+ pool?: string | null | undefined;
3273
+ /** the domain name (reverse dns) of this dedicated IP */
3274
+ domain?: string | null | undefined;
3275
+ /** information about the ip's custom dns, if it has been configured */
3276
+ custom_dns?: CancelIpWarmupResponseCustomDns | null | undefined;
3277
+ /** information about the ip's warmup status */
3278
+ warmup?: CancelIpWarmupResponseWarmup | null | undefined;
3279
+ }
3280
+ export interface SetIpPoolRequest {
3281
+ /** a dedicated ip address */
3282
+ ip: string;
3283
+ /** the name of the new pool to add the dedicated ip to */
3284
+ pool: string;
3285
+ /** whether to create the pool if it does not exist; if false and the pool does not exist, an Unknown_Pool will be thrown. */
3286
+ create_pool?: boolean | undefined;
3287
+ }
3288
+ /** information about the ip's custom dns, if it has been configured */
3289
+ export type SetIpPoolResponseCustomDns = CancelIpWarmupResponseCustomDns;
3290
+ /** information about the ip's warmup status */
3291
+ export type SetIpPoolResponseWarmup = CancelIpWarmupResponseWarmup;
3292
+ export interface SetIpPoolResponse {
3293
+ /** the ip address */
3294
+ ip?: string | null | undefined;
3295
+ /** the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
3296
+ created_at?: string | null | undefined;
3297
+ /** the name of the pool that this dedicated IP belongs to */
3298
+ pool?: string | null | undefined;
3299
+ /** the domain name (reverse dns) of this dedicated IP */
3300
+ domain?: string | null | undefined;
3301
+ /** information about the ip's custom dns, if it has been configured */
3302
+ custom_dns?: CancelIpWarmupResponseCustomDns | null | undefined;
3303
+ /** information about the ip's warmup status */
3304
+ warmup?: CancelIpWarmupResponseWarmup | null | undefined;
3305
+ }
3306
+ export interface StartIpWarmupRequest {
3307
+ /** a dedicated ip address */
3308
+ ip: string;
3309
+ }
3310
+ /** information about the ip's custom dns, if it has been configured */
3311
+ export type StartIpWarmupResponseCustomDns = CancelIpWarmupResponseCustomDns;
3312
+ /** information about the ip's warmup status */
3313
+ export type StartIpWarmupResponseWarmup = CancelIpWarmupResponseWarmup;
3314
+ export interface StartIpWarmupResponse {
3315
+ /** the ip address */
3316
+ ip?: string | null | undefined;
3317
+ /** the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
3318
+ created_at?: string | null | undefined;
3319
+ /** the name of the pool that this dedicated IP belongs to */
3320
+ pool?: string | null | undefined;
3321
+ /** the domain name (reverse dns) of this dedicated IP */
3322
+ domain?: string | null | undefined;
3323
+ /** information about the ip's custom dns, if it has been configured */
3324
+ custom_dns?: CancelIpWarmupResponseCustomDns | null | undefined;
3325
+ /** information about the ip's warmup status */
3326
+ warmup?: CancelIpWarmupResponseWarmup | null | undefined;
3327
+ }
3328
+ export interface UpdateInboundRouteRequest {
3329
+ /** the unique identifier of an existing mailbox route */
3330
+ id: string;
3331
+ /** For email: The search pattern that the mailbox name should match. For SMS: the sender's phone number (FROM number). Null to leave unchanged */
3332
+ pattern?: string | undefined;
3333
+ /** the webhook URL where the inbound messages will be published; Validation: webhookexists */
3334
+ url?: string | undefined;
3335
+ }
3336
+ export interface UpdateInboundRouteResponse {
3337
+ /** the unique identifier of the route */
3338
+ id?: string | null | undefined;
3339
+ /** the search pattern that the mailbox name should match */
3340
+ pattern?: string | null | undefined;
3341
+ /** the webhook URL where inbound messages will be published */
3342
+ url?: string | null | undefined;
3343
+ }
3344
+ export interface UpdateMetadataFieldRequest {
3345
+ /** the unique identifier of the metadata field to update */
3346
+ name: string;
3347
+ /** Mustache template to control how the metadata is rendered in your activity log */
3348
+ view_template: string;
3349
+ }
3350
+ /** the current state of the metadata field */
3351
+ export type UpdateMetadataFieldResponseState = "active" | "delete" | "index";
3352
+ export interface UpdateMetadataFieldResponse {
3353
+ /** the unique identifier of the metadata field to update */
3354
+ name?: string | null | undefined;
3355
+ /** the current state of the metadata field */
3356
+ state?: UpdateMetadataFieldResponseState | null | undefined;
3357
+ /** Mustache template to control how the metadata is rendered in your activity log */
3358
+ view_template?: string | null | undefined;
3359
+ }
3360
+ export interface UpdateSubaccountRequest {
3361
+ /** the unique identifier of the subaccount to update */
3362
+ id: string;
3363
+ /** an optional display name to further identify the subaccount */
3364
+ name?: string | undefined;
3365
+ /** optional extra text to associate with the subaccount */
3366
+ notes?: string | undefined;
3367
+ /** an optional manual hourly quota for the subaccount. If not specified, Mandrill will manage this based on reputation */
3368
+ custom_quota?: number | undefined;
3369
+ }
3370
+ /** the current sending status of the subaccount */
3371
+ export type UpdateSubaccountResponseStatus = "active" | "paused";
3372
+ export interface UpdateSubaccountResponse {
3373
+ /** a unique indentifier for the subaccount */
3374
+ id?: string | null | undefined;
3375
+ /** an optional display name for the subaccount */
3376
+ name?: string | null | undefined;
3377
+ /** an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation */
3378
+ custom_quota?: number | null | undefined;
3379
+ /** the current sending status of the subaccount */
3380
+ status?: UpdateSubaccountResponseStatus | null | undefined;
3381
+ /** the subaccount's current reputation on a scale from 0 to 100 */
3382
+ reputation?: number | null | undefined;
3383
+ /** the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
3384
+ created_at?: string | null | undefined;
3385
+ /** the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format */
3386
+ first_sent_at?: string | null | undefined;
3387
+ /** the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC) */
3388
+ sent_weekly?: number | null | undefined;
3389
+ /** the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC) */
3390
+ sent_monthly?: number | null | undefined;
3391
+ /** the number of emails the subaccount has sent since it was created */
3392
+ sent_total?: number | null | undefined;
3393
+ }
3394
+ /** an optional array of up to 10 labels to use for filtering templates */
3395
+ export type UpdateTemplateRequestLabelsList = Array<string>;
3396
+ export interface UpdateTemplateRequest {
3397
+ /** the immutable name of an existing template */
3398
+ name: string;
3399
+ /** the new default sending address */
3400
+ from_email?: string | undefined;
3401
+ /** the new default from name */
3402
+ from_name?: string | undefined;
3403
+ /** the new default subject line */
3404
+ subject?: string | undefined;
3405
+ /** the new code for the template */
3406
+ code?: string | undefined;
3407
+ /** the new default text part to be used */
3408
+ text?: string | undefined;
3409
+ /** set to false to update the draft version of the template without publishing */
3410
+ publish?: boolean | undefined;
3411
+ /** an optional array of up to 10 labels to use for filtering templates */
3412
+ labels?: UpdateTemplateRequestLabelsList | undefined;
3413
+ }
3414
+ /** the list of labels applied to the template */
3415
+ export type UpdateTemplateResponseLabelsList = Array<string>;
3416
+ export interface UpdateTemplateResponse {
3417
+ /** the immutable unique code name of the template */
3418
+ slug?: string | null | undefined;
3419
+ /** the name of the template */
3420
+ name?: string | null | undefined;
3421
+ /** the list of labels applied to the template */
3422
+ labels?: UpdateTemplateResponseLabelsList | null | undefined;
3423
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements - draft version */
3424
+ code?: string | null | undefined;
3425
+ /** the subject line of the template, if provided - draft version */
3426
+ subject?: string | null | undefined;
3427
+ /** the default sender address for the template, if provided - draft version */
3428
+ from_email?: string | null | undefined;
3429
+ /** the default sender from name for the template, if provided - draft version */
3430
+ from_name?: string | null | undefined;
3431
+ /** the default text part of messages sent with the template, if provided - draft version */
3432
+ text?: string | null | undefined;
3433
+ /** the same as the template name - kept as a separate field for backwards compatibility */
3434
+ publish_name?: string | null | undefined;
3435
+ /** the full HTML code of the template, with mc:edit attributes marking the editable elements that are available as published, if it has been published */
3436
+ publish_code?: string | null | undefined;
3437
+ /** the subject line of the template, if provided */
3438
+ publish_subject?: string | null | undefined;
3439
+ /** the default sender address for the template, if provided */
3440
+ publish_from_email?: string | null | undefined;
3441
+ /** the default sender from name for the template, if provided */
3442
+ publish_from_name?: string | null | undefined;
3443
+ /** the default text part of messages sent with the template, if provided */
3444
+ publish_text?: string | null | undefined;
3445
+ /** the date and time the template was last published as a UTC string in YYYY-MM-DD HH:MM:SS format, or null if it has not been published */
3446
+ published_at?: string | null | undefined;
3447
+ /** the date and time the template was first created as a UTC string in YYYY-MM-DD HH:MM:SS format */
3448
+ created_at?: string | null | undefined;
3449
+ /** the date and time the template was last modified as a UTC string in YYYY-MM-DD HH:MM:SS format */
3450
+ updated_at?: string | null | undefined;
3451
+ /** indicates if the template is malformed or corrupt */
3452
+ is_broken_template?: boolean | null | undefined;
3453
+ }
3454
+ /** the individual event to listen for */
3455
+ export type UpdateWebhookRequestEventsItem = "send" | "hard_bounce" | "soft_bounce" | "open" | "click" | "spam" | "unsub" | "reject" | "blacklist" | "whitelist";
3456
+ /** an optional list of events that will be posted to the webhook */
3457
+ export type UpdateWebhookRequestEventsList = Array<UpdateWebhookRequestEventsItem | (string & {})>;
3458
+ export interface UpdateWebhookRequest {
3459
+ /** the unique identifier of a webhook belonging to this account */
3460
+ id: number;
3461
+ /** the URL to POST batches of events. Requires webhook to exist. */
3462
+ url: string;
3463
+ /** an optional description of the webhook */
3464
+ description?: string | undefined;
3465
+ /** an optional list of events that will be posted to the webhook */
3466
+ events?: UpdateWebhookRequestEventsList | undefined;
3467
+ }
3468
+ /** the individual message event */
3469
+ export type UpdateWebhookResponseEventsItem = "send" | "hard_bounce" | "soft_bounce" | "open" | "click" | "spam" | "unsub" | "reject";
3470
+ /** The message events that will be posted to the hook */
3471
+ export type UpdateWebhookResponseEventsList = Array<UpdateWebhookResponseEventsItem>;
3472
+ export interface UpdateWebhookResponse {
3473
+ /** a unique integer indentifier for the webhook */
3474
+ id?: number | null | undefined;
3475
+ /** The URL that the event data will be posted to */
3476
+ url?: string | null | undefined;
3477
+ /** a description of the webhook */
3478
+ description?: string | null | undefined;
3479
+ /** the key used to requests for this webhook */
3480
+ auth_key?: string | null | undefined;
3481
+ /** The message events that will be posted to the hook */
3482
+ events?: UpdateWebhookResponseEventsList | null | undefined;
3483
+ /** the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format */
3484
+ created_at?: string | null | undefined;
3485
+ /** the date and time that the webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS format */
3486
+ last_sent_at?: string | null | undefined;
3487
+ /** the number of event batches that have ever been sent to this webhook */
3488
+ batches_sent?: number | null | undefined;
3489
+ /** the total number of events that have ever been sent to this webhook */
3490
+ events_sent?: number | null | undefined;
3491
+ /** if we've ever gotten an error trying to post to this webhook, the last error that we've seen */
3492
+ last_error?: string | null | undefined;
3493
+ }
3494
+ export interface VerifySenderDomainRequest {
3495
+ /** domain name at which you can receive email */
3496
+ domain: string;
3497
+ /** a mailbox at the domain where the verification email should be sent */
3498
+ mailbox: string;
3499
+ }
3500
+ export interface VerifySenderDomainResponse {
3501
+ /** "sent" indicates that the verification has been sent, "already_verified" indicates that the domain has already been verified with your account */
3502
+ status?: string | null | undefined;
3503
+ /** the domain name you provided */
3504
+ domain?: string | null | undefined;
3505
+ /** the email address the verification email was sent to */
3506
+ email?: string | null | undefined;
3507
+ }
3508
+ export type AddAllowlistEntryError = UnprocessableEntity | MailchimpTransactionalOpError;
3509
+ /** Add email to allowlist Adds an email to your email rejection allowlist. If the address is currently on your denylist, that denylist entry will be removed automatically. */
3510
+ export declare const addAllowlistEntry: API.OperationMethod<AddAllowlistEntryRequest, AddAllowlistEntryResponse, AddAllowlistEntryError, MailchimpTransactionalOpContext>;
3511
+ export type AddInboundDomainError = MailchimpTransactionalOpError;
3512
+ /** Add inbound domain Add an inbound domain to your account. */
3513
+ export declare const addInboundDomain: API.OperationMethod<AddInboundDomainRequest, AddInboundDomainResponse, AddInboundDomainError, MailchimpTransactionalOpContext>;
3514
+ export type AddInboundRouteError = NotFound | MailchimpTransactionalOpError;
3515
+ /** Add route Add a new route to an inbound domain or SMS program. Provide either domain or phone (not both). */
3516
+ export declare const addInboundRoute: API.OperationMethod<AddInboundRouteRequest, AddInboundRouteResponse, AddInboundRouteError, MailchimpTransactionalOpContext>;
3517
+ export type AddMetadataFieldError = UnprocessableEntity | MailchimpTransactionalOpError;
3518
+ /** Add metadata field Add a new custom metadata field to be indexed for the account. */
3519
+ export declare const addMetadataField: API.OperationMethod<AddMetadataFieldRequest, AddMetadataFieldResponse, AddMetadataFieldError, MailchimpTransactionalOpContext>;
3520
+ export type AddRejectError = NotFound | UnprocessableEntity | MailchimpTransactionalOpError;
3521
+ /** Add email to denylist Adds an email to your email rejection denylist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your denylist. Attempting to denylist an address that has been added to the allowlist will have no effect. */
3522
+ export declare const addReject: API.OperationMethod<AddRejectRequest, AddRejectResponse, AddRejectError, MailchimpTransactionalOpContext>;
3523
+ export type AddSenderDomainError = MailchimpTransactionalOpError;
3524
+ /** Add sender domain Adds a sender domain to your account. Sender domains are added automatically as you send, but you can use this call to add them ahead of time. */
3525
+ export declare const addSenderDomain: API.OperationMethod<AddSenderDomainRequest, AddSenderDomainResponse, AddSenderDomainError, MailchimpTransactionalOpContext>;
3526
+ export type AddSmsRejectError = NotFound | UnprocessableEntity | MailchimpTransactionalOpError;
3527
+ /** Add phone number to SMS denylist Adds a phone number to your SMS rejection denylist. Phone numbers that you add manually will never expire and there is no reputation penalty for removing them from your denylist. */
3528
+ export declare const addSmsReject: API.OperationMethod<AddSmsRejectRequest, AddSmsRejectResponse, AddSmsRejectError, MailchimpTransactionalOpContext>;
3529
+ export type AddSubaccountError = UnprocessableEntity | MailchimpTransactionalOpError;
3530
+ /** Add subaccount Add a new subaccount. */
3531
+ export declare const addSubaccount: API.OperationMethod<AddSubaccountRequest, AddSubaccountResponse, AddSubaccountError, MailchimpTransactionalOpContext>;
3532
+ export type AddTemplateError = UnprocessableEntity | MailchimpTransactionalOpError;
3533
+ /** Add template Add a new template. */
3534
+ export declare const addTemplate: API.OperationMethod<AddTemplateRequest, AddTemplateResponse, AddTemplateError, MailchimpTransactionalOpContext>;
3535
+ export type AddTrackingDomainError = BadRequest | MailchimpTransactionalOpError;
3536
+ /** Add tracking domains Add a tracking domain to your account. */
3537
+ export declare const addTrackingDomain: API.OperationMethod<AddTrackingDomainRequest, AddTrackingDomainResponse, AddTrackingDomainError, MailchimpTransactionalOpContext>;
3538
+ export type AddWebhookError = MailchimpTransactionalOpError;
3539
+ /** Add webhook Add a new webhook. */
3540
+ export declare const addWebhook: API.OperationMethod<AddWebhookRequest, AddWebhookResponse, AddWebhookError, MailchimpTransactionalOpContext>;
3541
+ export type CancelIpWarmupError = NotFound | MailchimpTransactionalOpError;
3542
+ /** Cancel ip warmup Cancels the warmup process for a dedicated IP. */
3543
+ export declare const cancelIpWarmup: API.OperationMethod<CancelIpWarmupRequest, CancelIpWarmupResponse, CancelIpWarmupError, MailchimpTransactionalOpContext>;
3544
+ export type CancelScheduledMessageError = NotFound | MailchimpTransactionalOpError;
3545
+ /** Cancel scheduled email Cancels a scheduled email. */
3546
+ export declare const cancelScheduledMessage: API.OperationMethod<CancelScheduledMessageRequest, CancelScheduledMessageResponse, CancelScheduledMessageError, MailchimpTransactionalOpContext>;
3547
+ export type CheckInboundDomainError = NotFound | MailchimpTransactionalOpError;
3548
+ /** Check domain settings Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call. */
3549
+ export declare const checkInboundDomain: API.OperationMethod<CheckInboundDomainRequest, CheckInboundDomainResponse, CheckInboundDomainError, MailchimpTransactionalOpContext>;
3550
+ export type CheckIpCustomDnsError = NotFound | MailchimpTransactionalOpError;
3551
+ /** Test custom dns Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP. */
3552
+ export declare const checkIpCustomDns: API.OperationMethod<CheckIpCustomDnsRequest, CheckIpCustomDnsResponse, CheckIpCustomDnsError, MailchimpTransactionalOpContext>;
3553
+ export type CheckSenderDomainError = MailchimpTransactionalOpError;
3554
+ /** Check domain settings Checks the SPF and DKIM settings for a domain, as well the domain verification. If you haven't already added this domain to your account, it will be added automatically. */
3555
+ export declare const checkSenderDomain: API.OperationMethod<CheckSenderDomainRequest, CheckSenderDomainResponse, CheckSenderDomainError, MailchimpTransactionalOpContext>;
3556
+ export type CheckTrackingDomainError = NotFound | MailchimpTransactionalOpError;
3557
+ /** Check cname settings Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call. */
3558
+ export declare const checkTrackingDomain: API.OperationMethod<CheckTrackingDomainRequest, CheckTrackingDomainResponse, CheckTrackingDomainError, MailchimpTransactionalOpContext>;
3559
+ export type CreateIpPoolError = MailchimpTransactionalOpError;
3560
+ /** Add ip pool Creates a pool and returns it. If a pool already exists with this name, no action will be performed. */
3561
+ export declare const createIpPool: API.OperationMethod<CreateIpPoolRequest, CreateIpPoolResponse, CreateIpPoolError, MailchimpTransactionalOpContext>;
3562
+ export type DeleteAllowlistEntryError = UnprocessableEntity | MailchimpTransactionalOpError;
3563
+ /** Remove email from allowlist Removes an email address from the allowlist. */
3564
+ export declare const deleteAllowlistEntry: API.OperationMethod<DeleteAllowlistEntryRequest, DeleteAllowlistEntryResponse, DeleteAllowlistEntryError, MailchimpTransactionalOpContext>;
3565
+ export type DeleteInboundDomainError = NotFound | MailchimpTransactionalOpError;
3566
+ /** Delete inbound domain Delete an inbound domain from the account. All mail will stop routing for this domain immediately. */
3567
+ export declare const deleteInboundDomain: API.OperationMethod<DeleteInboundDomainRequest, DeleteInboundDomainResponse, DeleteInboundDomainError, MailchimpTransactionalOpContext>;
3568
+ export type DeleteInboundRouteError = NotFound | MailchimpTransactionalOpError;
3569
+ /** Delete mailbox route Delete an existing inbound mailbox route. */
3570
+ export declare const deleteInboundRoute: API.OperationMethod<DeleteInboundRouteRequest, DeleteInboundRouteResponse, DeleteInboundRouteError, MailchimpTransactionalOpContext>;
3571
+ export type DeleteIpError = MailchimpTransactionalOpError;
3572
+ /** Delete ip address Deletes a dedicated IP. This is permanent and cannot be undone. */
3573
+ export declare const deleteIp: API.OperationMethod<DeleteIpRequest, DeleteIpResponse, DeleteIpError, MailchimpTransactionalOpContext>;
3574
+ export type DeleteIpPoolError = BadRequest | NotFound | MailchimpTransactionalOpError;
3575
+ /** Delete ip pool Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool. */
3576
+ export declare const deleteIpPool: API.OperationMethod<DeleteIpPoolRequest, DeleteIpPoolResponse, DeleteIpPoolError, MailchimpTransactionalOpContext>;
3577
+ export type DeleteMetadataFieldError = NotFound | MailchimpTransactionalOpError;
3578
+ /** Delete metadata field Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete. */
3579
+ export declare const deleteMetadataField: API.OperationMethod<DeleteMetadataFieldRequest, DeleteMetadataFieldResponse, DeleteMetadataFieldError, MailchimpTransactionalOpContext>;
3580
+ export type DeleteRejectError = NotFound | UnprocessableEntity | MailchimpTransactionalOpError;
3581
+ /** Delete email from denylist Deletes an email rejection. There is no limit to how many rejections you can remove from your denylist, but keep in mind that each deletion has an affect on your reputation. */
3582
+ export declare const deleteReject: API.OperationMethod<DeleteRejectRequest, DeleteRejectResponse, DeleteRejectError, MailchimpTransactionalOpContext>;
3583
+ export type DeleteSenderDomainError = Forbidden | NotFound | MailchimpTransactionalOpError;
3584
+ /** Delete sender domain Deletes an unverified sender domain from your account. Verified domains cannot be deleted via API and require login confirmation. */
3585
+ export declare const deleteSenderDomain: API.OperationMethod<DeleteSenderDomainRequest, DeleteSenderDomainResponse, DeleteSenderDomainError, MailchimpTransactionalOpContext>;
3586
+ export type DeleteSmsRejectError = NotFound | UnprocessableEntity | MailchimpTransactionalOpError;
3587
+ /** Delete phone number from SMS denylist Deletes an SMS rejection. There is no limit to how many rejections you can remove from your denylist, but keep in mind that each deletion has an affect on your reputation. */
3588
+ export declare const deleteSmsReject: API.OperationMethod<DeleteSmsRejectRequest, DeleteSmsRejectResponse, DeleteSmsRejectError, MailchimpTransactionalOpContext>;
3589
+ export type DeleteSubaccountError = NotFound | MailchimpTransactionalOpError;
3590
+ /** Delete subaccount Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any future sending calls to this subaccount will fail. */
3591
+ export declare const deleteSubaccount: API.OperationMethod<DeleteSubaccountRequest, DeleteSubaccountResponse, DeleteSubaccountError, MailchimpTransactionalOpContext>;
3592
+ export type DeleteTagError = BadRequest | MailchimpTransactionalOpError;
3593
+ /** Delete tag Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this operation, so use it carefully. */
3594
+ export declare const deleteTag: API.OperationMethod<DeleteTagRequest, DeleteTagResponse, DeleteTagError, MailchimpTransactionalOpContext>;
3595
+ export type DeleteTemplateError = NotFound | MailchimpTransactionalOpError;
3596
+ /** Delete template Delete a template. */
3597
+ export declare const deleteTemplate: API.OperationMethod<DeleteTemplateRequest, DeleteTemplateResponse, DeleteTemplateError, MailchimpTransactionalOpContext>;
3598
+ export type DeleteTrackingDomainError = Forbidden | NotFound | MailchimpTransactionalOpError;
3599
+ /** Delete tracking domain Deletes an unverified tracking domain from your account. Valid tracking domains cannot be deleted via API and require login confirmation. */
3600
+ export declare const deleteTrackingDomain: API.OperationMethod<DeleteTrackingDomainRequest, DeleteTrackingDomainResponse, DeleteTrackingDomainError, MailchimpTransactionalOpContext>;
3601
+ export type DeleteWebhookError = NotFound | MailchimpTransactionalOpError;
3602
+ /** Delete webhook Delete an existing webhook. */
3603
+ export declare const deleteWebhook: API.OperationMethod<DeleteWebhookRequest, DeleteWebhookResponse, DeleteWebhookError, MailchimpTransactionalOpContext>;
3604
+ export type ExportActivityError = MailchimpTransactionalOpError;
3605
+ /** Export activity history Begins an export of your activity history. The activity will be exported to a zip archive containing a single file named activity.csv in the same format as you would be able to export from your account's activity view. It includes the following fields: Date, Email Address, Sender, Subject, Status, Tags, Opens, Clicks, Bounce Detail. If you have configured any custom metadata fields, they will be included in the exported data. */
3606
+ export declare const exportActivity: API.OperationMethod<ExportActivityRequest, ExportActivityResponse, ExportActivityError, MailchimpTransactionalOpContext>;
3607
+ export type ExportAllowlistError = MailchimpTransactionalOpError;
3608
+ /** Export Allowlist Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at. */
3609
+ export declare const exportAllowlist: API.OperationMethod<ExportAllowlistRequest, ExportAllowlistResponse, ExportAllowlistError, MailchimpTransactionalOpContext>;
3610
+ export type ExportRejectsError = MailchimpTransactionalOpError;
3611
+ /** Export denylist Begins an export of your rejection denylist. The denylist will be exported to a zip archive containing a single file named rejects.csv that includes the following fields: email, reason, detail, created_at, expires_at, last_event_at, expires_at. */
3612
+ export declare const exportRejects: API.OperationMethod<ExportRejectsRequest, ExportRejectsResponse, ExportRejectsError, MailchimpTransactionalOpContext>;
3613
+ export type ExportWhitelistError = MailchimpTransactionalOpError;
3614
+ /** Export Allowlist Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at. */
3615
+ export declare const exportWhitelist: API.OperationMethod<ExportWhitelistRequest, ExportWhitelistResponse, ExportWhitelistError, MailchimpTransactionalOpContext>;
3616
+ export type GetAllTagsTimeSeriesError = MailchimpTransactionalOpError;
3617
+ /** View all tags history Return the recent history (hourly stats for the last 30 days) for all tags. */
3618
+ export declare const getAllTagsTimeSeries: API.OperationMethod<GetAllTagsTimeSeriesRequest, GetAllTagsTimeSeriesResponse, GetAllTagsTimeSeriesError, MailchimpTransactionalOpContext>;
3619
+ export type GetExportError = NotFound | MailchimpTransactionalOpError;
3620
+ /** View export info Returns information about an export job. If the export job's state is 'complete', the returned data will include a URL you can use to fetch the results. Every export job produces a zip archive, but the format of the archive is distinct for each job type. The api calls that initiate exports include more details about the output format for that job type. */
3621
+ export declare const getExport: API.OperationMethod<GetExportRequest, GetExportResponse, GetExportError, MailchimpTransactionalOpContext>;
3622
+ export type GetIpError = MailchimpTransactionalOpError;
3623
+ /** Get ip info Retrieves information about a single dedicated IP. */
3624
+ export declare const getIp: API.OperationMethod<GetIpRequest, GetIpResponse, GetIpError, MailchimpTransactionalOpContext>;
3625
+ export type GetIpPoolError = NotFound | MailchimpTransactionalOpError;
3626
+ /** Get ip pool info Describes a single dedicated IP pool. */
3627
+ export declare const getIpPool: API.OperationMethod<GetIpPoolRequest, GetIpPoolResponse, GetIpPoolError, MailchimpTransactionalOpContext>;
3628
+ export type GetMcTemplateError = NotFound | MailchimpTransactionalOpError;
3629
+ /** Get Mailchimp Template info Get information about a Mailchimp Transactional template in your account. */
3630
+ export declare const getMcTemplate: API.OperationMethod<GetMcTemplateRequest, GetMcTemplateResponse, GetMcTemplateError, MailchimpTransactionalOpContext>;
3631
+ export type GetMcTemplateTimeSeriesError = NotFound | MailchimpTransactionalOpError;
3632
+ /** Get Mailchimp Transactional Template Time Series Return the recent history (hourly stats for the last 30 days) for a Mailchimp Transactional template. Returns an empty array if the template exists but has never been used to send messages. */
3633
+ export declare const getMcTemplateTimeSeries: API.OperationMethod<GetMcTemplateTimeSeriesRequest, GetMcTemplateTimeSeriesResponse, GetMcTemplateTimeSeriesError, MailchimpTransactionalOpContext>;
3634
+ export type GetMessageError = NotFound | MailchimpTransactionalOpError;
3635
+ /** Get message info Get the information for a single recently sent message. */
3636
+ export declare const getMessage: API.OperationMethod<GetMessageRequest, GetMessageResponse, GetMessageError, MailchimpTransactionalOpContext>;
3637
+ export type GetMessageContentError = NotFound | MailchimpTransactionalOpError;
3638
+ /** Get message content Get the full content of a recently sent message. */
3639
+ export declare const getMessageContent: API.OperationMethod<GetMessageContentRequest, GetMessageContentResponse, GetMessageContentError, MailchimpTransactionalOpContext>;
3640
+ export type GetSenderError = NotFound | MailchimpTransactionalOpError;
3641
+ /** Get sender info Return more detailed information about a single sender, including aggregates of recent stats. */
3642
+ export declare const getSender: API.OperationMethod<GetSenderRequest, GetSenderResponse, GetSenderError, MailchimpTransactionalOpContext>;
3643
+ export type GetSenderTimeSeriesError = NotFound | MailchimpTransactionalOpError;
3644
+ /** View sender history Return the recent history (hourly stats for the last 30 days) for a sender. */
3645
+ export declare const getSenderTimeSeries: API.OperationMethod<GetSenderTimeSeriesRequest, GetSenderTimeSeriesResponse, GetSenderTimeSeriesError, MailchimpTransactionalOpContext>;
3646
+ export type GetSubaccountError = NotFound | MailchimpTransactionalOpError;
3647
+ /** Get subaccount info Given the ID of an existing subaccount, return the data about it. */
3648
+ export declare const getSubaccount: API.OperationMethod<GetSubaccountRequest, GetSubaccountResponse, GetSubaccountError, MailchimpTransactionalOpContext>;
3649
+ export type GetTagError = BadRequest | MailchimpTransactionalOpError;
3650
+ /** Get tag info Return more detailed information about a single tag, including aggregates of recent stats. */
3651
+ export declare const getTag: API.OperationMethod<GetTagRequest, GetTagResponse, GetTagError, MailchimpTransactionalOpContext>;
3652
+ export type GetTagTimeSeriesError = BadRequest | MailchimpTransactionalOpError;
3653
+ /** View tag history Return the recent history (hourly stats for the last 30 days) for a tag. */
3654
+ export declare const getTagTimeSeries: API.OperationMethod<GetTagTimeSeriesRequest, GetTagTimeSeriesResponse, GetTagTimeSeriesError, MailchimpTransactionalOpContext>;
3655
+ export type GetTemplateError = NotFound | MailchimpTransactionalOpError;
3656
+ /** Get template info Get the information for an existing template. */
3657
+ export declare const getTemplate: API.OperationMethod<GetTemplateRequest, GetTemplateResponse, GetTemplateError, MailchimpTransactionalOpContext>;
3658
+ export type GetTemplateTimeSeriesError = NotFound | MailchimpTransactionalOpError;
3659
+ /** Get template history Return the recent history (hourly stats for the last 30 days) for a template. */
3660
+ export declare const getTemplateTimeSeries: API.OperationMethod<GetTemplateTimeSeriesRequest, GetTemplateTimeSeriesResponse, GetTemplateTimeSeriesError, MailchimpTransactionalOpContext>;
3661
+ export type GetUserError = MailchimpTransactionalOpError;
3662
+ /** Get user info Return the information about the API-connected user. */
3663
+ export declare const getUser: API.OperationMethod<GetUserRequest, GetUserResponse, GetUserError, MailchimpTransactionalOpContext>;
3664
+ export type GetWebhookError = NotFound | MailchimpTransactionalOpError;
3665
+ /** Get webhook info Given the ID of an existing webhook, return the data about it. */
3666
+ export declare const getWebhook: API.OperationMethod<GetWebhookRequest, GetWebhookResponse, GetWebhookError, MailchimpTransactionalOpContext>;
3667
+ export type ListAllowlistEntriesError = MailchimpTransactionalOpError;
3668
+ /** List allowlisted emails Retrieves your email rejection allowlist. You can provide an email address or search prefix to limit the results. Returns up to 1000 results. */
3669
+ export declare const listAllowlistEntries: API.OperationMethod<ListAllowlistEntriesRequest, ListAllowlistEntriesResponse, ListAllowlistEntriesError, MailchimpTransactionalOpContext>;
3670
+ export type ListExportsError = MailchimpTransactionalOpError;
3671
+ /** List exports Returns a list of your exports. */
3672
+ export declare const listExports: API.OperationMethod<ListExportsRequest, ListExportsResponse, ListExportsError, MailchimpTransactionalOpContext>;
3673
+ export type ListInboundDomainsError = MailchimpTransactionalOpError;
3674
+ /** List inbound domains List the domains that have been configured for inbound delivery. */
3675
+ export declare const listInboundDomains: API.OperationMethod<ListInboundDomainsRequest, ListInboundDomainsResponse, ListInboundDomainsError, MailchimpTransactionalOpContext>;
3676
+ export type ListInboundRoutesError = NotFound | MailchimpTransactionalOpError;
3677
+ /** List routes List the routes defined for an inbound domain or SMS program. Provide either domain or phone (not both). */
3678
+ export declare const listInboundRoutes: API.OperationMethod<ListInboundRoutesRequest, ListInboundRoutesResponse, ListInboundRoutesError, MailchimpTransactionalOpContext>;
3679
+ export type ListIpPoolsError = MailchimpTransactionalOpError;
3680
+ /** List ip pools Lists your dedicated IP pools. */
3681
+ export declare const listIpPools: API.OperationMethod<ListIpPoolsRequest, ListIpPoolsResponse, ListIpPoolsError, MailchimpTransactionalOpContext>;
3682
+ export type ListIpsError = MailchimpTransactionalOpError;
3683
+ /** List ip addresses Lists your dedicated IPs. */
3684
+ export declare const listIps: API.OperationMethod<ListIpsRequest, ListIpsResponse, ListIpsError, MailchimpTransactionalOpContext>;
3685
+ export type ListMcTemplatesError = MailchimpTransactionalOpError;
3686
+ /** List Mailchimp Transactional Templates Return a list of all Mailchimp Transactional templates available to this user. */
3687
+ export declare const listMcTemplates: API.OperationMethod<ListMcTemplatesRequest, ListMcTemplatesResponse, ListMcTemplatesError, MailchimpTransactionalOpContext>;
3688
+ export type ListMetadataFieldsError = MailchimpTransactionalOpError;
3689
+ /** List metadata fields Get the list of custom metadata fields indexed for the account. */
3690
+ export declare const listMetadataFields: API.OperationMethod<ListMetadataFieldsRequest, ListMetadataFieldsResponse, ListMetadataFieldsError, MailchimpTransactionalOpContext>;
3691
+ export type ListRejectsError = NotFound | MailchimpTransactionalOpError;
3692
+ /** List denylisted emails Retrieves your email rejection denylist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them. */
3693
+ export declare const listRejects: API.OperationMethod<ListRejectsRequest, ListRejectsResponse, ListRejectsError, MailchimpTransactionalOpContext>;
3694
+ export type ListScheduledMessagesError = MailchimpTransactionalOpError;
3695
+ /** List scheduled emails Queries your scheduled emails. */
3696
+ export declare const listScheduledMessages: API.OperationMethod<ListScheduledMessagesRequest, ListScheduledMessagesResponse, ListScheduledMessagesError, MailchimpTransactionalOpContext>;
3697
+ export type ListSenderDomainsError = MailchimpTransactionalOpError;
3698
+ /** List sender domains Returns the sender domains that have been added to this account. */
3699
+ export declare const listSenderDomains: API.OperationMethod<ListSenderDomainsRequest, ListSenderDomainsResponse, ListSenderDomainsError, MailchimpTransactionalOpContext>;
3700
+ export type ListSendersError = MailchimpTransactionalOpError;
3701
+ /** List account senders Return the senders that have tried to use this account. */
3702
+ export declare const listSenders: API.OperationMethod<ListSendersRequest, ListSendersResponse, ListSendersError, MailchimpTransactionalOpContext>;
3703
+ export type ListSmsRejectsError = UnprocessableEntity | MailchimpTransactionalOpError;
3704
+ /** List SMS denylist entries Retrieves your SMS rejection denylist. You can provide a phone number to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them. */
3705
+ export declare const listSmsRejects: API.OperationMethod<ListSmsRejectsRequest, ListSmsRejectsResponse, ListSmsRejectsError, MailchimpTransactionalOpContext>;
3706
+ export type ListSubaccountsError = MailchimpTransactionalOpError;
3707
+ /** List subaccounts Get the list of subaccounts defined for the account, optionally filtered by a prefix. */
3708
+ export declare const listSubaccounts: API.OperationMethod<ListSubaccountsRequest, ListSubaccountsResponse, ListSubaccountsError, MailchimpTransactionalOpContext>;
3709
+ export type ListTagsError = MailchimpTransactionalOpError;
3710
+ /** List tags Return all of the user-defined tag information. */
3711
+ export declare const listTags: API.OperationMethod<ListTagsRequest, ListTagsResponse, ListTagsError, MailchimpTransactionalOpContext>;
3712
+ export type ListTemplatesError = MailchimpTransactionalOpError;
3713
+ /** List templates Return a list of all the templates available to this user. */
3714
+ export declare const listTemplates: API.OperationMethod<ListTemplatesRequest, ListTemplatesResponse, ListTemplatesError, MailchimpTransactionalOpContext>;
3715
+ export type ListTrackingDomainsError = MailchimpTransactionalOpError;
3716
+ /** List tracking domains Get the list of tracking domains set up for this account. */
3717
+ export declare const listTrackingDomains: API.OperationMethod<ListTrackingDomainsRequest, ListTrackingDomainsResponse, ListTrackingDomainsError, MailchimpTransactionalOpContext>;
3718
+ export type ListUserSendersError = MailchimpTransactionalOpError;
3719
+ /** List account senders Return the senders that have tried to use this account, both verified and unverified. */
3720
+ export declare const listUserSenders: API.OperationMethod<ListUserSendersRequest, ListUserSendersResponse, ListUserSendersError, MailchimpTransactionalOpContext>;
3721
+ export type ListWebhooksError = MailchimpTransactionalOpError;
3722
+ /** List webhooks Get the list of all webhooks defined on the account. */
3723
+ export declare const listWebhooks: API.OperationMethod<ListWebhooksRequest, ListWebhooksResponse, ListWebhooksError, MailchimpTransactionalOpContext>;
3724
+ export type ParseMessageError = UnprocessableEntity | MailchimpTransactionalOpError;
3725
+ /** Parse mime document Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces. */
3726
+ export declare const parseMessage: API.OperationMethod<ParseMessageRequest, ParseMessageResponse, ParseMessageError, MailchimpTransactionalOpContext>;
3727
+ export type PauseSubaccountError = NotFound | MailchimpTransactionalOpError;
3728
+ /** Pause subaccount Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days until the subaccount is resumed. */
3729
+ export declare const pauseSubaccount: API.OperationMethod<PauseSubaccountRequest, PauseSubaccountResponse, PauseSubaccountError, MailchimpTransactionalOpContext>;
3730
+ export type PingError = MailchimpTransactionalOpError;
3731
+ /** Ping Validate an API key and respond to a ping. */
3732
+ export declare const ping: API.OperationMethod<PingRequest, PingResponse, PingError, MailchimpTransactionalOpContext>;
3733
+ export type Ping2Error = MailchimpTransactionalOpError;
3734
+ /** Ping 2 Validate an API key and respond to a ping (JSON parser version). */
3735
+ export declare const ping2: API.OperationMethod<Ping2Request, Ping2Response, Ping2Error, MailchimpTransactionalOpContext>;
3736
+ export type ProvisionIpError = PaymentRequired | NotFound | MailchimpTransactionalOpError;
3737
+ /** Request additional ip Requests an additional dedicated IP for your account. Accounts may have one outstanding request at any time, and provisioning requests are processed within 24 hours. */
3738
+ export declare const provisionIp: API.OperationMethod<ProvisionIpRequest, ProvisionIpResponse, ProvisionIpError, MailchimpTransactionalOpContext>;
3739
+ export type PublishTemplateError = NotFound | MailchimpTransactionalOpError;
3740
+ /** Publish template content Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft. */
3741
+ export declare const publishTemplate: API.OperationMethod<PublishTemplateRequest, PublishTemplateResponse, PublishTemplateError, MailchimpTransactionalOpContext>;
3742
+ export type RenderMcTemplateError = NotFound | UnprocessableEntity | MailchimpTransactionalOpError;
3743
+ /** Render Mailchimp Transactional Template Render a Mailchimp Transactional template with optional merge variables. */
3744
+ export declare const renderMcTemplate: API.OperationMethod<RenderMcTemplateRequest, RenderMcTemplateResponse, RenderMcTemplateError, MailchimpTransactionalOpContext>;
3745
+ export type RenderTemplateError = NotFound | MailchimpTransactionalOpError;
3746
+ /** Render html template Inject content and optionally merge fields into a template, returning the HTML that results. */
3747
+ export declare const renderTemplate: API.OperationMethod<RenderTemplateRequest, RenderTemplateResponse, RenderTemplateError, MailchimpTransactionalOpContext>;
3748
+ export type RescheduleMessageError = NotFound | MailchimpTransactionalOpError;
3749
+ /** Reschedule email Reschedules a scheduled email. */
3750
+ export declare const rescheduleMessage: API.OperationMethod<RescheduleMessageRequest, RescheduleMessageResponse, RescheduleMessageError, MailchimpTransactionalOpContext>;
3751
+ export type ResumeSubaccountError = NotFound | MailchimpTransactionalOpError;
3752
+ /** Resume subaccount Resume a paused subaccount's sending. */
3753
+ export declare const resumeSubaccount: API.OperationMethod<ResumeSubaccountRequest, ResumeSubaccountResponse, ResumeSubaccountError, MailchimpTransactionalOpContext>;
3754
+ export type SearchMessagesError = MailchimpTransactionalOpError;
3755
+ /** Search messages by date Search recently sent messages and optionally narrow by date range, tags, senders, and API keys. If no date range is specified, results within the last 7 days are returned. This method may be called up to 20 times per minute. If you need the data more often, you can use /messages/info.json to get the information for a single message, or webhooks to push activity to your own application for querying. */
3756
+ export declare const searchMessages: API.OperationMethod<SearchMessagesRequest, SearchMessagesResponse, SearchMessagesError, MailchimpTransactionalOpContext>;
3757
+ export type SearchMessagesTimeSeriesError = MailchimpTransactionalOpError;
3758
+ /** Search messages by hour Search the content of recently sent messages and return the aggregated hourly stats for matching messages. */
3759
+ export declare const searchMessagesTimeSeries: API.OperationMethod<SearchMessagesTimeSeriesRequest, SearchMessagesTimeSeriesResponse, SearchMessagesTimeSeriesError, MailchimpTransactionalOpContext>;
3760
+ export type SendMcTemplateError = PaymentRequired | NotFound | MailchimpTransactionalOpError;
3761
+ /** Send using Mailchimp template Send a new transactional message through Mandrill using a Mailchimp Transactional template. */
3762
+ export declare const sendMcTemplate: API.OperationMethod<SendMcTemplateRequest, SendMcTemplateResponse, SendMcTemplateError, MailchimpTransactionalOpContext>;
3763
+ export type SendMessageError = PaymentRequired | NotFound | MailchimpTransactionalOpError;
3764
+ /** Send new message Send a new transactional message through the Transactional API. */
3765
+ export declare const sendMessage: API.OperationMethod<SendMessageRequest, SendMessageResponse, SendMessageError, MailchimpTransactionalOpContext>;
3766
+ export type SendRawInboundError = NotFound | MailchimpTransactionalOpError;
3767
+ /** Send mime document Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP. */
3768
+ export declare const sendRawInbound: API.OperationMethod<SendRawInboundRequest, SendRawInboundResponse, SendRawInboundError, MailchimpTransactionalOpContext>;
3769
+ export type SendRawMessageError = PaymentRequired | NotFound | MailchimpTransactionalOpError;
3770
+ /** Send mime document Take a raw MIME document for a message, and send it exactly as if it were sent through the Transactional API's SMTP servers. */
3771
+ export declare const sendRawMessage: API.OperationMethod<SendRawMessageRequest, SendRawMessageResponse, SendRawMessageError, MailchimpTransactionalOpContext>;
3772
+ export type SendSmsError = NotFound | MailchimpTransactionalOpError;
3773
+ /** Send SMS message Send a new SMS message through Mandrill */
3774
+ export declare const sendSms: API.OperationMethod<SendSmsRequest, SendSmsResponse, SendSmsError, MailchimpTransactionalOpContext>;
3775
+ export type SendTemplateError = PaymentRequired | NotFound | MailchimpTransactionalOpError;
3776
+ /** Send using message template Send a new transactional message through the Transactional API using a template. */
3777
+ export declare const sendTemplate: API.OperationMethod<SendTemplateRequest, SendTemplateResponse, SendTemplateError, MailchimpTransactionalOpContext>;
3778
+ export type SetIpCustomDnsError = BadRequest | NotFound | MailchimpTransactionalOpError;
3779
+ /** Set custom dns Configures the custom DNS name for a dedicated IP. */
3780
+ export declare const setIpCustomDns: API.OperationMethod<SetIpCustomDnsRequest, SetIpCustomDnsResponse, SetIpCustomDnsError, MailchimpTransactionalOpContext>;
3781
+ export type SetIpPoolError = BadRequest | NotFound | MailchimpTransactionalOpError;
3782
+ /** Move ip to different pool Moves a dedicated IP to a different pool. */
3783
+ export declare const setIpPool: API.OperationMethod<SetIpPoolRequest, SetIpPoolResponse, SetIpPoolError, MailchimpTransactionalOpContext>;
3784
+ export type StartIpWarmupError = NotFound | MailchimpTransactionalOpError;
3785
+ /** Start ip warmup Begins the warmup process for a dedicated IP. During the warmup process, the Transactional API will gradually increase the percentage of your mail that is sent over the warming-up IP, over a period of roughly 30 days. The rest of your mail will be sent over shared IPs or other dedicated IPs in the same pool. */
3786
+ export declare const startIpWarmup: API.OperationMethod<StartIpWarmupRequest, StartIpWarmupResponse, StartIpWarmupError, MailchimpTransactionalOpContext>;
3787
+ export type UpdateInboundRouteError = NotFound | MailchimpTransactionalOpError;
3788
+ /** Update mailbox route Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged. */
3789
+ export declare const updateInboundRoute: API.OperationMethod<UpdateInboundRouteRequest, UpdateInboundRouteResponse, UpdateInboundRouteError, MailchimpTransactionalOpContext>;
3790
+ export type UpdateMetadataFieldError = NotFound | MailchimpTransactionalOpError;
3791
+ /** Update metadata field Update an existing custom metadata field. */
3792
+ export declare const updateMetadataField: API.OperationMethod<UpdateMetadataFieldRequest, UpdateMetadataFieldResponse, UpdateMetadataFieldError, MailchimpTransactionalOpContext>;
3793
+ export type UpdateSubaccountError = NotFound | MailchimpTransactionalOpError;
3794
+ /** Update subaccount Update an existing subaccount. */
3795
+ export declare const updateSubaccount: API.OperationMethod<UpdateSubaccountRequest, UpdateSubaccountResponse, UpdateSubaccountError, MailchimpTransactionalOpContext>;
3796
+ export type UpdateTemplateError = NotFound | MailchimpTransactionalOpError;
3797
+ /** Update template Update the code for an existing template. If null is provided for any fields, the values will remain unchanged. */
3798
+ export declare const updateTemplate: API.OperationMethod<UpdateTemplateRequest, UpdateTemplateResponse, UpdateTemplateError, MailchimpTransactionalOpContext>;
3799
+ export type UpdateWebhookError = NotFound | MailchimpTransactionalOpError;
3800
+ /** Update webhook Update an existing webhook. */
3801
+ export declare const updateWebhook: API.OperationMethod<UpdateWebhookRequest, UpdateWebhookResponse, UpdateWebhookError, MailchimpTransactionalOpContext>;
3802
+ export type VerifySenderDomainError = MailchimpTransactionalOpError;
3803
+ /** Verify domain Sends a verification email in order to verify ownership of a domain. Domain verification is a required step to confirm ownership of a domain. Once a domain has been verified in a Transactional API account, other accounts may not have their messages signed by that domain unless they also verify the domain. This prevents other Transactional API accounts from sending mail signed by your domain. */
3804
+ export declare const verifySenderDomain: API.OperationMethod<VerifySenderDomainRequest, VerifySenderDomainResponse, VerifySenderDomainError, MailchimpTransactionalOpContext>;
3805
+ //# sourceMappingURL=transactional.d.ts.map