@distilled.cloud/resend 1.0.0-rc.18 → 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.
@@ -39,28 +39,28 @@ export type EmailCcList = Array<string>;
39
39
  export type EmailReplyToList = Array<string>;
40
40
  export interface Email {
41
41
  /** The type of object. */
42
- object?: string;
42
+ object?: string | undefined;
43
43
  /** The ID of the email. */
44
- id?: string;
45
- to?: EmailToList;
44
+ id?: string | undefined;
45
+ to?: EmailToList | undefined;
46
46
  /** The email address of the sender. */
47
- from?: string;
47
+ from?: string | undefined;
48
48
  /** The date and time the email was created. */
49
- created_at?: string;
49
+ created_at?: string | undefined;
50
50
  /** The subject line of the email. */
51
- subject?: string;
51
+ subject?: string | undefined;
52
52
  /** The HTML body of the email. */
53
- html?: string;
53
+ html?: string | undefined;
54
54
  /** The plain text body of the email. */
55
- text?: string;
55
+ text?: string | undefined;
56
56
  /** The email addresses of the blind carbon copy recipients. */
57
- bcc?: EmailBccList;
57
+ bcc?: EmailBccList | undefined;
58
58
  /** The email addresses of the carbon copy recipients. */
59
- cc?: EmailCcList;
59
+ cc?: EmailCcList | undefined;
60
60
  /** The email addresses to which replies should be sent. */
61
- reply_to?: EmailReplyToList;
61
+ reply_to?: EmailReplyToList | undefined;
62
62
  /** The status of the email. */
63
- last_event?: string;
63
+ last_event?: string | undefined;
64
64
  }
65
65
  /** The API key can have full access to Resend's API or be only restricted to send emails. * full_access - Can create, delete, get, and update any resource. * sending_access - Can only send emails. */
66
66
  export type CreateApiKeyRequestPermission = "full_access" | "sending_access";
@@ -68,15 +68,15 @@ export interface CreateApiKeyRequest {
68
68
  /** The API key name. */
69
69
  name: string;
70
70
  /** The API key can have full access to Resend's API or be only restricted to send emails. * full_access - Can create, delete, get, and update any resource. * sending_access - Can only send emails. */
71
- permission?: CreateApiKeyRequestPermission | (string & {});
71
+ permission?: CreateApiKeyRequestPermission | (string & {}) | undefined;
72
72
  /** Restrict an API key to send emails only from a specific domain. Only used when the permission is sending_access. */
73
- domain_id?: string;
73
+ domain_id?: string | undefined;
74
74
  }
75
75
  export interface CreateApiKeyResponse {
76
76
  /** The ID of the API key. */
77
- id?: string;
77
+ id?: string | undefined;
78
78
  /** The token of the API key. */
79
- token?: string;
79
+ token?: string | undefined;
80
80
  }
81
81
  /** The initial status of the automation. Defaults to `disabled`. */
82
82
  export type CreateAutomationRequestStatus = "enabled" | "disabled";
@@ -115,7 +115,7 @@ export interface AutomationConnection {
115
115
  /** The `key` of the target step. */
116
116
  to: string;
117
117
  /** The type of connection. Defaults to `default`. */
118
- type?: AutomationConnectionType | (string & {});
118
+ type?: AutomationConnectionType | (string & {}) | undefined;
119
119
  }
120
120
  /** The connections between steps in the automation graph. */
121
121
  export type CreateAutomationRequestConnectionsList = Array<AutomationConnection>;
@@ -123,7 +123,7 @@ export interface CreateAutomationRequest {
123
123
  /** The name of the automation. */
124
124
  name: string;
125
125
  /** The initial status of the automation. Defaults to `disabled`. */
126
- status?: CreateAutomationRequestStatus | (string & {});
126
+ status?: CreateAutomationRequestStatus | (string & {}) | undefined;
127
127
  /** The steps that compose the automation workflow. Must include at least one `trigger` step. */
128
128
  steps: CreateAutomationRequestStepsList;
129
129
  /** The connections between steps in the automation graph. */
@@ -131,43 +131,43 @@ export interface CreateAutomationRequest {
131
131
  }
132
132
  export interface CreateAutomationResponse {
133
133
  /** Type of the response object. */
134
- object?: string;
134
+ object?: string | undefined;
135
135
  /** The ID of the created automation. */
136
- id?: string;
136
+ id?: string | undefined;
137
137
  }
138
138
  /** The email addresses to which replies should be sent. */
139
139
  export type CreateBroadcastRequestReplyToList = Array<string>;
140
140
  export interface CreateBroadcastRequest {
141
141
  /** Name of the broadcast. */
142
- name?: string;
142
+ name?: string | undefined;
143
143
  /** Unique identifier of the segment this broadcast will be sent to. */
144
144
  segment_id: string;
145
145
  /** Use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to. */
146
- audience_id?: string;
146
+ audience_id?: string | undefined;
147
147
  /** The email address of the sender. */
148
148
  from: string;
149
149
  /** The subject line of the email. */
150
150
  subject: string;
151
151
  /** The email addresses to which replies should be sent. */
152
- reply_to?: CreateBroadcastRequestReplyToList;
152
+ reply_to?: CreateBroadcastRequestReplyToList | undefined;
153
153
  /** The preview text of the email. */
154
- preview_text?: string;
154
+ preview_text?: string | undefined;
155
155
  /** The HTML version of the message. */
156
- html?: string;
156
+ html?: string | undefined;
157
157
  /** The plain text version of the message. */
158
- text?: string;
158
+ text?: string | undefined;
159
159
  /** The topic ID that the broadcast will be scoped to. */
160
- topic_id?: string;
160
+ topic_id?: string | undefined;
161
161
  /** Whether to send the broadcast immediately or keep it as a draft. */
162
- send?: boolean;
162
+ send?: boolean | undefined;
163
163
  /** Schedule time to send the broadcast. Can only be used if `send` is true. */
164
- scheduled_at?: string;
164
+ scheduled_at?: string | undefined;
165
165
  }
166
166
  export interface CreateBroadcastResponseSuccess {
167
167
  /** The ID of the broadcast. */
168
- id?: string;
168
+ id?: string | undefined;
169
169
  /** The object type of the response. */
170
- object?: string;
170
+ object?: string | undefined;
171
171
  }
172
172
  /** A map of custom property keys and values to create. */
173
173
  export type CreateContactRequestPropertiesMap = { [key: string]: unknown | undefined };
@@ -177,9 +177,9 @@ export type CreateContactRequestSegmentsList = Array<string>;
177
177
  export type CreateContactRequestTopicsItemSubscription = "opt_in" | "opt_out";
178
178
  export interface CreateContactRequestTopicsItem {
179
179
  /** The topic ID. */
180
- id?: string;
180
+ id?: string | undefined;
181
181
  /** The subscription status for this topic. */
182
- subscription?: CreateContactRequestTopicsItemSubscription | (string & {});
182
+ subscription?: CreateContactRequestTopicsItemSubscription | (string & {}) | undefined;
183
183
  }
184
184
  /** Array of topic subscriptions for the contact. */
185
185
  export type CreateContactRequestTopicsList = Array<CreateContactRequestTopicsItem>;
@@ -187,25 +187,25 @@ export interface CreateContactRequest {
187
187
  /** Email address of the contact. */
188
188
  email: string;
189
189
  /** First name of the contact. */
190
- first_name?: string;
190
+ first_name?: string | undefined;
191
191
  /** Last name of the contact. */
192
- last_name?: string;
192
+ last_name?: string | undefined;
193
193
  /** The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts. */
194
- unsubscribed?: boolean;
194
+ unsubscribed?: boolean | undefined;
195
195
  /** A map of custom property keys and values to create. */
196
- properties?: CreateContactRequestPropertiesMap;
196
+ properties?: CreateContactRequestPropertiesMap | undefined;
197
197
  /** Array of segment IDs to add the contact to. */
198
- segments?: CreateContactRequestSegmentsList;
198
+ segments?: CreateContactRequestSegmentsList | undefined;
199
199
  /** Array of topic subscriptions for the contact. */
200
- topics?: CreateContactRequestTopicsList;
200
+ topics?: CreateContactRequestTopicsList | undefined;
201
201
  /** Unique identifier of the audience to which the contact belongs. */
202
- audience_id?: string;
202
+ audience_id?: string | undefined;
203
203
  }
204
204
  export interface CreateContactResponseSuccess {
205
205
  /** Type of the response object. */
206
- object?: string;
206
+ object?: string | undefined;
207
207
  /** Unique identifier for the created contact. */
208
- id?: string;
208
+ id?: string | undefined;
209
209
  }
210
210
  /** The property type. */
211
211
  export type CreateContactPropertyRequestType = "string" | "number";
@@ -217,13 +217,13 @@ export interface CreateContactPropertyRequest {
217
217
  /** The property type. */
218
218
  type: CreateContactPropertyRequestType | (string & {});
219
219
  /** The default value to use when the property is not set for a contact. Must match the type specified in the type field. */
220
- fallback_value?: CreateContactPropertyRequestFallbackValue;
220
+ fallback_value?: CreateContactPropertyRequestFallbackValue | undefined;
221
221
  }
222
222
  export interface CreateContactPropertyResponseSuccess {
223
223
  /** The ID of the contact property. */
224
- id?: string;
224
+ id?: string | undefined;
225
225
  /** The object type of the response. */
226
- object?: string;
226
+ object?: string | undefined;
227
227
  }
228
228
  /** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
229
229
  export type CreateDomainRequestRegion = "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
@@ -236,26 +236,26 @@ export type DomainCapabilitiesReceiving = "enabled" | "disabled";
236
236
  /** Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled. */
237
237
  export interface DomainCapabilities {
238
238
  /** Enable or disable sending emails from this domain. */
239
- sending?: DomainCapabilitiesSending | (string & {});
239
+ sending?: DomainCapabilitiesSending | (string & {}) | undefined;
240
240
  /** Enable or disable receiving emails to this domain. */
241
- receiving?: DomainCapabilitiesReceiving | (string & {});
241
+ receiving?: DomainCapabilitiesReceiving | (string & {}) | undefined;
242
242
  }
243
243
  export interface CreateDomainRequest {
244
244
  /** The name of the domain you want to create. */
245
245
  name: string;
246
246
  /** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
247
- region?: CreateDomainRequestRegion | (string & {});
247
+ region?: CreateDomainRequestRegion | (string & {}) | undefined;
248
248
  /** For advanced use cases, choose a subdomain for the Return-Path address. Defaults to 'send' (i.e., send.yourdomain.tld). */
249
- custom_return_path?: string;
249
+ custom_return_path?: string | undefined;
250
250
  /** Track the open rate of each email. */
251
- open_tracking?: boolean;
251
+ open_tracking?: boolean | undefined;
252
252
  /** Track clicks within the body of each HTML email. */
253
- click_tracking?: boolean;
253
+ click_tracking?: boolean | undefined;
254
254
  /** TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent. */
255
- tls?: CreateDomainRequestTls | (string & {});
256
- capabilities?: DomainCapabilities;
255
+ tls?: CreateDomainRequestTls | (string & {}) | undefined;
256
+ capabilities?: DomainCapabilities | undefined;
257
257
  /** The subdomain to use for click and open tracking. */
258
- tracking_subdomain?: string;
258
+ tracking_subdomain?: string | undefined;
259
259
  }
260
260
  /** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
261
261
  export type DomainRecordRecord = "SPF" | "DKIM" | "Receiving" | "Tracking";
@@ -270,40 +270,40 @@ export type DomainRecordStatus =
270
270
  | "not_started";
271
271
  export interface DomainRecord {
272
272
  /** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
273
- record?: DomainRecordRecord;
273
+ record?: DomainRecordRecord | undefined;
274
274
  /** The name of the DNS record. */
275
- name?: string;
275
+ name?: string | undefined;
276
276
  /** The DNS record type. */
277
- type?: DomainRecordType;
277
+ type?: DomainRecordType | undefined;
278
278
  /** The time to live for the record. */
279
- ttl?: string;
279
+ ttl?: string | undefined;
280
280
  /** The status of the record. */
281
- status?: DomainRecordStatus;
281
+ status?: DomainRecordStatus | undefined;
282
282
  /** The value of the record. */
283
- value?: string;
283
+ value?: string | undefined;
284
284
  /** The priority of the record (only applicable for MX records). */
285
- priority?: number;
285
+ priority?: number | undefined;
286
286
  }
287
287
  export type CreateDomainResponseRecordsList = Array<DomainRecord>;
288
288
  export interface CreateDomainResponse {
289
289
  /** The ID of the domain. */
290
- id?: string;
290
+ id?: string | undefined;
291
291
  /** The name of the domain. */
292
- name?: string;
292
+ name?: string | undefined;
293
293
  /** The date and time the domain was created. */
294
- created_at?: string;
294
+ created_at?: string | undefined;
295
295
  /** The status of the domain. */
296
- status?: string;
297
- capabilities?: DomainCapabilities;
298
- records?: CreateDomainResponseRecordsList;
296
+ status?: string | undefined;
297
+ capabilities?: DomainCapabilities | undefined;
298
+ records?: CreateDomainResponseRecordsList | undefined;
299
299
  /** The region where the domain is hosted. */
300
- region?: string;
300
+ region?: string | undefined;
301
301
  /** Whether open tracking is enabled for this domain. */
302
- open_tracking?: boolean;
302
+ open_tracking?: boolean | undefined;
303
303
  /** Whether click tracking is enabled for this domain. */
304
- click_tracking?: boolean;
304
+ click_tracking?: boolean | undefined;
305
305
  /** The subdomain used for click and open tracking. */
306
- tracking_subdomain?: string;
306
+ tracking_subdomain?: string | undefined;
307
307
  }
308
308
  export type CreateEmailRequestToCase1List = Array<string>;
309
309
  /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
@@ -326,26 +326,26 @@ export interface CreateEmailRequestTemplate {
326
326
  /** The id of the published email template. */
327
327
  id: string;
328
328
  /** Template variables object with key/value pairs. */
329
- variables?: CreateEmailRequestTemplateVariablesMap;
329
+ variables?: CreateEmailRequestTemplateVariablesMap | undefined;
330
330
  }
331
331
  export interface Attachment {
332
332
  /** Content of an attached file. */
333
- content?: string;
333
+ content?: string | undefined;
334
334
  /** Name of attached file. */
335
- filename?: string;
335
+ filename?: string | undefined;
336
336
  /** Path where the attachment file is hosted */
337
- path?: string;
337
+ path?: string | undefined;
338
338
  /** Optional content type for the attachment, if not set it will be derived from the filename property */
339
- content_type?: string;
339
+ content_type?: string | undefined;
340
340
  /** Content ID for embedding inline images using cid references (e.g., cid:image001). */
341
- content_id?: string;
341
+ content_id?: string | undefined;
342
342
  }
343
343
  export type CreateEmailRequestAttachmentsList = Array<Attachment>;
344
344
  export interface Tag {
345
345
  /** The name of the email tag. It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). It can contain no more than 256 characters. */
346
- name?: string;
346
+ name?: string | undefined;
347
347
  /** The value of the email tag.It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). It can contain no more than 256 characters. */
348
- value?: string;
348
+ value?: string | undefined;
349
349
  }
350
350
  export type CreateEmailRequestTagsList = Array<Tag>;
351
351
  export interface CreateEmailRequest {
@@ -356,28 +356,28 @@ export interface CreateEmailRequest {
356
356
  /** Email subject. */
357
357
  subject: string;
358
358
  /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
359
- bcc?: CreateEmailRequestBcc;
359
+ bcc?: CreateEmailRequestBcc | undefined;
360
360
  /** Cc recipient email address. For multiple addresses, send as an array of strings. */
361
- cc?: CreateEmailRequestCc;
361
+ cc?: CreateEmailRequestCc | undefined;
362
362
  /** Reply-to email address. For multiple addresses, send as an array of strings. */
363
- reply_to?: CreateEmailRequestReplyTo;
363
+ reply_to?: CreateEmailRequestReplyTo | undefined;
364
364
  /** The HTML version of the message. */
365
- html?: string;
365
+ html?: string | undefined;
366
366
  /** The plain text version of the message. */
367
- text?: string;
368
- template?: CreateEmailRequestTemplate;
367
+ text?: string | undefined;
368
+ template?: CreateEmailRequestTemplate | undefined;
369
369
  /** Custom headers to add to the email. */
370
- headers?: unknown;
370
+ headers?: unknown | undefined;
371
371
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
372
- scheduled_at?: string;
373
- attachments?: CreateEmailRequestAttachmentsList;
374
- tags?: CreateEmailRequestTagsList;
372
+ scheduled_at?: string | undefined;
373
+ attachments?: CreateEmailRequestAttachmentsList | undefined;
374
+ tags?: CreateEmailRequestTagsList | undefined;
375
375
  /** The topic ID to scope the email to. If the recipient is a contact and opted-in to the topic, the email is sent. If opted-out, the email is not sent. If the recipient is not a contact, the email is sent if the topic's default subscription is opt_in. */
376
- topic_id?: string;
376
+ topic_id?: string | undefined;
377
377
  }
378
378
  export interface SendEmailResponse {
379
379
  /** The ID of the sent email. */
380
- id?: string;
380
+ id?: string | undefined;
381
381
  }
382
382
  export type SendEmailRequestToCase1List = Array<string>;
383
383
  /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
@@ -400,7 +400,7 @@ export interface SendEmailRequestTemplate {
400
400
  /** The id of the published email template. */
401
401
  id: string;
402
402
  /** Template variables object with key/value pairs. */
403
- variables?: SendEmailRequestTemplateVariablesMap;
403
+ variables?: SendEmailRequestTemplateVariablesMap | undefined;
404
404
  }
405
405
  export type SendEmailRequestAttachmentsList = Array<Attachment>;
406
406
  export type SendEmailRequestTagsList = Array<Tag>;
@@ -412,62 +412,62 @@ export interface SendEmailRequest {
412
412
  /** Email subject. */
413
413
  subject: string;
414
414
  /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
415
- bcc?: SendEmailRequestBcc;
415
+ bcc?: SendEmailRequestBcc | undefined;
416
416
  /** Cc recipient email address. For multiple addresses, send as an array of strings. */
417
- cc?: SendEmailRequestCc;
417
+ cc?: SendEmailRequestCc | undefined;
418
418
  /** Reply-to email address. For multiple addresses, send as an array of strings. */
419
- reply_to?: SendEmailRequestReplyTo;
419
+ reply_to?: SendEmailRequestReplyTo | undefined;
420
420
  /** The HTML version of the message. */
421
- html?: string;
421
+ html?: string | undefined;
422
422
  /** The plain text version of the message. */
423
- text?: string;
424
- template?: SendEmailRequestTemplate;
423
+ text?: string | undefined;
424
+ template?: SendEmailRequestTemplate | undefined;
425
425
  /** Custom headers to add to the email. */
426
- headers?: unknown;
426
+ headers?: unknown | undefined;
427
427
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
428
- scheduled_at?: string;
429
- attachments?: SendEmailRequestAttachmentsList;
430
- tags?: SendEmailRequestTagsList;
428
+ scheduled_at?: string | undefined;
429
+ attachments?: SendEmailRequestAttachmentsList | undefined;
430
+ tags?: SendEmailRequestTagsList | undefined;
431
431
  /** The topic ID to scope the email to. If the recipient is a contact and opted-in to the topic, the email is sent. If opted-out, the email is not sent. If the recipient is not a contact, the email is sent if the topic's default subscription is opt_in. */
432
- topic_id?: string;
432
+ topic_id?: string | undefined;
433
433
  }
434
434
  export type CreateEmailBatchRequestBodyList = Array<SendEmailRequest>;
435
435
  export interface CreateEmailBatchRequest {
436
- body?: CreateEmailBatchRequestBodyList;
436
+ body?: CreateEmailBatchRequestBodyList | undefined;
437
437
  }
438
438
  export interface CreateBatchEmailsResponseDataItem {
439
439
  /** The ID of the sent email. */
440
- id?: string;
440
+ id?: string | undefined;
441
441
  }
442
442
  export type CreateBatchEmailsResponseDataList = Array<CreateBatchEmailsResponseDataItem>;
443
443
  export interface CreateBatchEmailsResponse {
444
- data?: CreateBatchEmailsResponseDataList;
444
+ data?: CreateBatchEmailsResponseDataList | undefined;
445
445
  }
446
446
  export interface CreateEventRequest {
447
447
  /** The name of the event. Cannot start with the reserved `resend:` prefix. */
448
448
  name: string;
449
449
  /** An optional flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
450
- schema?: unknown | null;
450
+ schema?: unknown | null | undefined;
451
451
  }
452
452
  export interface CreateEventResponse {
453
453
  /** Type of the response object. */
454
- object?: string;
454
+ object?: string | undefined;
455
455
  /** The ID of the created event. */
456
- id?: string;
456
+ id?: string | undefined;
457
457
  }
458
458
  export interface CreateSegmentRequest {
459
459
  /** The name of the segment. */
460
460
  name: string;
461
461
  /** The ID of the audience this segment belongs to. */
462
- audience_id?: string;
462
+ audience_id?: string | undefined;
463
463
  /** Filter conditions for the segment. */
464
- filter?: unknown;
464
+ filter?: unknown | undefined;
465
465
  }
466
466
  export interface CreateSegmentResponseSuccess {
467
467
  /** The ID of the segment. */
468
- id?: string;
468
+ id?: string | undefined;
469
469
  /** The object type of the response. */
470
- object?: string;
470
+ object?: string | undefined;
471
471
  }
472
472
  /** Reply-to email addresses. */
473
473
  export type CreateTemplateRequestReplyToList = Array<string>;
@@ -487,31 +487,31 @@ export interface TemplateVariableInput {
487
487
  /** The type of the variable. */
488
488
  type: TemplateVariableInputType | (string & {});
489
489
  /** The fallback value of the variable. */
490
- fallback_value?: TemplateVariableInputFallbackValue;
490
+ fallback_value?: TemplateVariableInputFallbackValue | undefined;
491
491
  }
492
492
  export type CreateTemplateRequestVariablesList = Array<TemplateVariableInput>;
493
493
  export interface CreateTemplateRequest {
494
494
  /** The name of the template. */
495
495
  name: string;
496
496
  /** The alias of the template. */
497
- alias?: string;
497
+ alias?: string | undefined;
498
498
  /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
499
- from?: string;
499
+ from?: string | undefined;
500
500
  /** Email subject. */
501
- subject?: string;
501
+ subject?: string | undefined;
502
502
  /** Reply-to email addresses. */
503
- reply_to?: CreateTemplateRequestReplyToList;
503
+ reply_to?: CreateTemplateRequestReplyToList | undefined;
504
504
  /** The HTML version of the template. */
505
505
  html: string;
506
506
  /** The plain text version of the template. */
507
- text?: string;
508
- variables?: CreateTemplateRequestVariablesList;
507
+ text?: string | undefined;
508
+ variables?: CreateTemplateRequestVariablesList | undefined;
509
509
  }
510
510
  export interface CreateTemplateResponseSuccess {
511
511
  /** The ID of the template. */
512
- id?: string;
512
+ id?: string | undefined;
513
513
  /** The object type of the response. */
514
- object?: string;
514
+ object?: string | undefined;
515
515
  }
516
516
  /** The default subscription status for the topic. Cannot be changed after creation. */
517
517
  export type CreateTopicRequestDefaultSubscription = "opt_in" | "opt_out";
@@ -523,15 +523,15 @@ export interface CreateTopicRequest {
523
523
  /** The default subscription status for the topic. Cannot be changed after creation. */
524
524
  default_subscription: CreateTopicRequestDefaultSubscription | (string & {});
525
525
  /** A description of the topic. Max 200 characters. */
526
- description?: string;
526
+ description?: string | undefined;
527
527
  /** The visibility of the topic. Public topics are visible to all contacts on the unsubscribe page. Private topics are only visible to opted-in contacts. */
528
- visibility?: CreateTopicRequestVisibility | (string & {});
528
+ visibility?: CreateTopicRequestVisibility | (string & {}) | undefined;
529
529
  }
530
530
  export interface CreateTopicResponseSuccess {
531
531
  /** The ID of the topic. */
532
- id?: string;
532
+ id?: string | undefined;
533
533
  /** The object type of the response. */
534
- object?: string;
534
+ object?: string | undefined;
535
535
  }
536
536
  /** Array of event types to subscribe to. */
537
537
  export type CreateWebhookRequestEventsList = Array<string>;
@@ -543,11 +543,11 @@ export interface CreateWebhookRequest {
543
543
  }
544
544
  export interface CreateWebhookResponse {
545
545
  /** The type of object. */
546
- object?: string;
546
+ object?: string | undefined;
547
547
  /** The ID of the webhook. */
548
- id?: string;
548
+ id?: string | undefined;
549
549
  /** The secret key used to verify webhook payloads. */
550
- signing_secret?: string | Redacted.Redacted<string>;
550
+ signing_secret?: string | Redacted.Redacted<string> | undefined;
551
551
  }
552
552
  export interface DeleteApiKeyRequest {
553
553
  /** The API key ID. */
@@ -555,11 +555,11 @@ export interface DeleteApiKeyRequest {
555
555
  }
556
556
  export interface DeleteApiKeyResponse {
557
557
  /** The type of object. */
558
- object?: string;
558
+ object?: string | undefined;
559
559
  /** The ID of the API key. */
560
- id?: string;
560
+ id?: string | undefined;
561
561
  /** Indicates whether the API key was successfully deleted. */
562
- deleted?: boolean;
562
+ deleted?: boolean | undefined;
563
563
  }
564
564
  export interface DeleteAutomationRequest {
565
565
  /** The ID of the automation. */
@@ -567,11 +567,11 @@ export interface DeleteAutomationRequest {
567
567
  }
568
568
  export interface DeleteAutomationResponse {
569
569
  /** Type of the response object. */
570
- object?: string;
570
+ object?: string | undefined;
571
571
  /** The ID of the deleted automation. */
572
- id?: string;
572
+ id?: string | undefined;
573
573
  /** Indicates whether the automation was successfully deleted. */
574
- deleted?: boolean;
574
+ deleted?: boolean | undefined;
575
575
  }
576
576
  export interface DeleteBroadcastRequest {
577
577
  /** The Broadcast ID. */
@@ -579,11 +579,11 @@ export interface DeleteBroadcastRequest {
579
579
  }
580
580
  export interface RemoveBroadcastResponseSuccess {
581
581
  /** The ID of the broadcast. */
582
- id?: string;
582
+ id?: string | undefined;
583
583
  /** Type of the response object. */
584
- object?: string;
584
+ object?: string | undefined;
585
585
  /** The deleted attribute indicates that the corresponding broadcast has been deleted. */
586
- deleted?: boolean;
586
+ deleted?: boolean | undefined;
587
587
  }
588
588
  export interface DeleteContactRequest {
589
589
  /** The Contact ID or email address. */
@@ -591,11 +591,11 @@ export interface DeleteContactRequest {
591
591
  }
592
592
  export interface RemoveContactResponseSuccess {
593
593
  /** Type of the response object. */
594
- object?: string;
594
+ object?: string | undefined;
595
595
  /** Unique identifier for the removed contact. */
596
- id?: string;
596
+ id?: string | undefined;
597
597
  /** Indicates whether the contact was successfully deleted. */
598
- deleted?: boolean;
598
+ deleted?: boolean | undefined;
599
599
  }
600
600
  export interface DeleteContactPropertyRequest {
601
601
  /** The Contact Property ID. */
@@ -603,11 +603,11 @@ export interface DeleteContactPropertyRequest {
603
603
  }
604
604
  export interface RemoveContactPropertyResponseSuccess {
605
605
  /** The ID of the contact property. */
606
- id?: string;
606
+ id?: string | undefined;
607
607
  /** The object type. */
608
- object?: string;
608
+ object?: string | undefined;
609
609
  /** Indicates whether the contact property was successfully deleted. */
610
- deleted?: boolean;
610
+ deleted?: boolean | undefined;
611
611
  }
612
612
  export interface DeleteContactSegmentRequest {
613
613
  /** The Contact ID or email address. */
@@ -617,13 +617,13 @@ export interface DeleteContactSegmentRequest {
617
617
  }
618
618
  export interface RemoveContactFromSegmentResponseSuccess {
619
619
  /** The object type. */
620
- object?: string;
620
+ object?: string | undefined;
621
621
  /** The ID of the contact. */
622
- contact_id?: string;
622
+ contact_id?: string | undefined;
623
623
  /** The ID of the segment. */
624
- segment_id?: string;
624
+ segment_id?: string | undefined;
625
625
  /** Indicates whether the contact was successfully removed from the segment. */
626
- deleted?: boolean;
626
+ deleted?: boolean | undefined;
627
627
  }
628
628
  export interface DeleteDomainRequest {
629
629
  /** The ID of the domain. */
@@ -631,11 +631,11 @@ export interface DeleteDomainRequest {
631
631
  }
632
632
  export interface DeleteDomainResponse {
633
633
  /** The type of object. */
634
- object?: string;
634
+ object?: string | undefined;
635
635
  /** The ID of the domain. */
636
- id?: string;
636
+ id?: string | undefined;
637
637
  /** Indicates whether the domain was deleted successfully. */
638
- deleted?: boolean;
638
+ deleted?: boolean | undefined;
639
639
  }
640
640
  export interface DeleteEventRequest {
641
641
  /** The event ID (UUID) or event name. */
@@ -643,11 +643,11 @@ export interface DeleteEventRequest {
643
643
  }
644
644
  export interface RemoveEventResponse {
645
645
  /** Type of the response object. */
646
- object?: string;
646
+ object?: string | undefined;
647
647
  /** The ID of the deleted event. */
648
- id?: string;
648
+ id?: string | undefined;
649
649
  /** Indicates whether the event was deleted. */
650
- deleted?: boolean;
650
+ deleted?: boolean | undefined;
651
651
  }
652
652
  export interface DeleteSegmentRequest {
653
653
  /** The Segment ID. */
@@ -655,11 +655,11 @@ export interface DeleteSegmentRequest {
655
655
  }
656
656
  export interface RemoveSegmentResponseSuccess {
657
657
  /** The ID of the segment. */
658
- id?: string;
658
+ id?: string | undefined;
659
659
  /** The object type. */
660
- object?: string;
660
+ object?: string | undefined;
661
661
  /** Indicates whether the segment was successfully deleted. */
662
- deleted?: boolean;
662
+ deleted?: boolean | undefined;
663
663
  }
664
664
  export interface DeleteTemplateRequest {
665
665
  /** The Template ID or alias. */
@@ -667,11 +667,11 @@ export interface DeleteTemplateRequest {
667
667
  }
668
668
  export interface RemoveTemplateResponseSuccess {
669
669
  /** Type of the response object. */
670
- object?: string;
670
+ object?: string | undefined;
671
671
  /** The ID of the template. */
672
- id?: string;
672
+ id?: string | undefined;
673
673
  /** Indicates whether the template was successfully deleted. */
674
- deleted?: boolean;
674
+ deleted?: boolean | undefined;
675
675
  }
676
676
  export interface DeleteTopicRequest {
677
677
  /** The Topic ID. */
@@ -679,11 +679,11 @@ export interface DeleteTopicRequest {
679
679
  }
680
680
  export interface RemoveTopicResponseSuccess {
681
681
  /** The ID of the topic. */
682
- id?: string;
682
+ id?: string | undefined;
683
683
  /** The object type. */
684
- object?: string;
684
+ object?: string | undefined;
685
685
  /** Indicates whether the topic was successfully deleted. */
686
- deleted?: boolean;
686
+ deleted?: boolean | undefined;
687
687
  }
688
688
  export interface DeleteWebhookRequest {
689
689
  /** The Webhook ID. */
@@ -691,11 +691,11 @@ export interface DeleteWebhookRequest {
691
691
  }
692
692
  export interface DeleteWebhookResponse {
693
693
  /** The type of object. */
694
- object?: string;
694
+ object?: string | undefined;
695
695
  /** The ID of the deleted webhook. */
696
- id?: string;
696
+ id?: string | undefined;
697
697
  /** Indicates whether the webhook was successfully deleted. */
698
- deleted?: boolean;
698
+ deleted?: boolean | undefined;
699
699
  }
700
700
  export interface DuplicateTemplateRequest {
701
701
  /** The Template ID or alias. */
@@ -703,9 +703,9 @@ export interface DuplicateTemplateRequest {
703
703
  }
704
704
  export interface DuplicateTemplateResponseSuccess {
705
705
  /** The ID of the duplicated template. */
706
- id?: string;
706
+ id?: string | undefined;
707
707
  /** The object type of the response. */
708
- object?: string;
708
+ object?: string | undefined;
709
709
  }
710
710
  export interface GetAutomationRequest {
711
711
  /** The ID of the automation. */
@@ -726,11 +726,11 @@ export type AutomationStepResponseType =
726
726
  /** A step as returned when retrieving an automation. */
727
727
  export interface AutomationStepResponse {
728
728
  /** The unique key of this step within the automation graph. */
729
- key?: string;
729
+ key?: string | undefined;
730
730
  /** The type of automation step. */
731
- type?: AutomationStepResponseType;
731
+ type?: AutomationStepResponseType | undefined;
732
732
  /** Configuration for the step. Shape depends on `type`. For `delay` steps, config contains `{ duration: string }` with a human-readable duration (e.g. `"30 minutes"`). For `wait_for_event` steps, config contains `{ event_name: string, timeout?: string, filter_rule?: object }` where `timeout` is a human-readable duration. */
733
- config?: unknown;
733
+ config?: unknown | undefined;
734
734
  }
735
735
  /** The steps in the active version of the automation. */
736
736
  export type AutomationStepsList = Array<AutomationStepResponse>;
@@ -738,21 +738,21 @@ export type AutomationStepsList = Array<AutomationStepResponse>;
738
738
  export type AutomationConnectionsList = Array<AutomationConnection>;
739
739
  export interface Automation {
740
740
  /** Type of the response object. */
741
- object?: string;
741
+ object?: string | undefined;
742
742
  /** The ID of the automation. */
743
- id?: string;
743
+ id?: string | undefined;
744
744
  /** The name of the automation. */
745
- name?: string;
745
+ name?: string | undefined;
746
746
  /** The current status of the automation. */
747
- status?: AutomationStatus;
747
+ status?: AutomationStatus | undefined;
748
748
  /** The date and time the automation was created. */
749
- created_at?: string;
749
+ created_at?: string | undefined;
750
750
  /** The date and time the automation was last updated. */
751
- updated_at?: string;
751
+ updated_at?: string | undefined;
752
752
  /** The steps in the active version of the automation. */
753
- steps?: AutomationStepsList;
753
+ steps?: AutomationStepsList | undefined;
754
754
  /** The connections between steps in the active version of the automation. */
755
- connections?: AutomationConnectionsList;
755
+ connections?: AutomationConnectionsList | undefined;
756
756
  }
757
757
  export interface GetAutomationRunRequest {
758
758
  /** The ID of the automation. */
@@ -775,39 +775,39 @@ export type AutomationRunStepType =
775
775
  /** A step execution within an automation run. */
776
776
  export interface AutomationRunStep {
777
777
  /** The key of the automation step. */
778
- key?: string;
778
+ key?: string | undefined;
779
779
  /** The type of automation step. */
780
- type?: AutomationRunStepType;
780
+ type?: AutomationRunStepType | undefined;
781
781
  /** The execution status of this step. */
782
- status?: string;
782
+ status?: string | undefined;
783
783
  /** The date and time the step started executing. */
784
- started_at?: string | null;
784
+ started_at?: string | null | undefined;
785
785
  /** The date and time the step completed executing. */
786
- completed_at?: string | null;
786
+ completed_at?: string | null | undefined;
787
787
  /** The output produced by the step, if any. */
788
- output?: unknown | null;
788
+ output?: unknown | null | undefined;
789
789
  /** The error produced by the step, if any. */
790
- error?: unknown | null;
790
+ error?: unknown | null | undefined;
791
791
  /** The date and time the step record was created. */
792
- created_at?: string;
792
+ created_at?: string | undefined;
793
793
  }
794
794
  /** The steps executed in this run, sorted in graph order. */
795
795
  export type AutomationRunStepsList = Array<AutomationRunStep>;
796
796
  export interface AutomationRun {
797
797
  /** Type of the response object. */
798
- object?: string;
798
+ object?: string | undefined;
799
799
  /** The ID of the automation run. */
800
- id?: string;
800
+ id?: string | undefined;
801
801
  /** The current status of the automation run. */
802
- status?: AutomationRunStatus;
802
+ status?: AutomationRunStatus | undefined;
803
803
  /** The date and time the run started. */
804
- started_at?: string | null;
804
+ started_at?: string | null | undefined;
805
805
  /** The date and time the run completed. */
806
- completed_at?: string | null;
806
+ completed_at?: string | null | undefined;
807
807
  /** The date and time the run was created. */
808
- created_at?: string;
808
+ created_at?: string | undefined;
809
809
  /** The steps executed in this run, sorted in graph order. */
810
- steps?: AutomationRunStepsList;
810
+ steps?: AutomationRunStepsList | undefined;
811
811
  }
812
812
  export interface GetBroadcastRequest {
813
813
  /** The Broadcast ID. */
@@ -817,35 +817,35 @@ export interface GetBroadcastRequest {
817
817
  export type GetBroadcastResponseSuccessReplyToList = Array<string>;
818
818
  export interface GetBroadcastResponseSuccess {
819
819
  /** Unique identifier for the broadcast. */
820
- id?: string;
820
+ id?: string | undefined;
821
821
  /** Name of the broadcast. */
822
- name?: string;
822
+ name?: string | undefined;
823
823
  /** Deprecated: use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to. */
824
- audience_id?: string | null;
824
+ audience_id?: string | null | undefined;
825
825
  /** Unique identifier of the segment this broadcast will be sent to. */
826
- segment_id?: string | null;
826
+ segment_id?: string | null | undefined;
827
827
  /** The email address of the sender. */
828
- from?: string;
828
+ from?: string | undefined;
829
829
  /** The subject line of the email. */
830
- subject?: string;
830
+ subject?: string | undefined;
831
831
  /** The email addresses to which replies should be sent. */
832
- reply_to?: GetBroadcastResponseSuccessReplyToList;
832
+ reply_to?: GetBroadcastResponseSuccessReplyToList | undefined;
833
833
  /** The preview text of the email. */
834
- preview_text?: string;
834
+ preview_text?: string | undefined;
835
835
  /** The status of the broadcast. */
836
- status?: string;
836
+ status?: string | undefined;
837
837
  /** Timestamp indicating when the broadcast was created. */
838
- created_at?: string;
838
+ created_at?: string | undefined;
839
839
  /** Timestamp indicating when the broadcast is scheduled to be sent. */
840
- scheduled_at?: string;
840
+ scheduled_at?: string | undefined;
841
841
  /** Timestamp indicating when the broadcast was sent. */
842
- sent_at?: string;
842
+ sent_at?: string | undefined;
843
843
  /** The plain text version of the broadcast content. */
844
- text?: string | null;
844
+ text?: string | null | undefined;
845
845
  /** The HTML version of the broadcast content. */
846
- html?: string | null;
846
+ html?: string | null | undefined;
847
847
  /** The topic ID that the broadcast is scoped to. */
848
- topic_id?: string | null;
848
+ topic_id?: string | null | undefined;
849
849
  }
850
850
  export interface GetContactRequest {
851
851
  /** The Contact ID or email address. */
@@ -855,21 +855,21 @@ export interface GetContactRequest {
855
855
  export type GetContactResponseSuccessPropertiesMap = { [key: string]: unknown | undefined };
856
856
  export interface GetContactResponseSuccess {
857
857
  /** Type of the response object. */
858
- object?: string;
858
+ object?: string | undefined;
859
859
  /** Unique identifier for the contact. */
860
- id?: string;
860
+ id?: string | undefined;
861
861
  /** Email address of the contact. */
862
- email?: string;
862
+ email?: string | undefined;
863
863
  /** First name of the contact. */
864
- first_name?: string;
864
+ first_name?: string | undefined;
865
865
  /** Last name of the contact. */
866
- last_name?: string;
866
+ last_name?: string | undefined;
867
867
  /** Timestamp indicating when the contact was created. */
868
- created_at?: string;
868
+ created_at?: string | undefined;
869
869
  /** Indicates if the contact is unsubscribed. */
870
- unsubscribed?: boolean;
870
+ unsubscribed?: boolean | undefined;
871
871
  /** A map of custom property keys and values. */
872
- properties?: GetContactResponseSuccessPropertiesMap;
872
+ properties?: GetContactResponseSuccessPropertiesMap | undefined;
873
873
  }
874
874
  export interface GetContactPropertyRequest {
875
875
  /** The Contact Property ID. */
@@ -879,17 +879,17 @@ export interface GetContactPropertyRequest {
879
879
  export type GetContactPropertyResponseSuccessFallbackValue = string | number;
880
880
  export interface GetContactPropertyResponseSuccess {
881
881
  /** The object type. */
882
- object?: string;
882
+ object?: string | undefined;
883
883
  /** The ID of the contact property. */
884
- id?: string;
884
+ id?: string | undefined;
885
885
  /** The property key. */
886
- key?: string;
886
+ key?: string | undefined;
887
887
  /** The property type. */
888
- type?: string;
888
+ type?: string | undefined;
889
889
  /** The default value when the property is not set for a contact. */
890
- fallback_value?: GetContactPropertyResponseSuccessFallbackValue;
890
+ fallback_value?: GetContactPropertyResponseSuccessFallbackValue | undefined;
891
891
  /** Timestamp indicating when the contact property was created. */
892
- created_at?: string;
892
+ created_at?: string | undefined;
893
893
  }
894
894
  export interface GetDomainRequest {
895
895
  /** The ID of the domain. */
@@ -898,25 +898,25 @@ export interface GetDomainRequest {
898
898
  export type DomainRecordsList = Array<DomainRecord>;
899
899
  export interface Domain {
900
900
  /** The type of object. */
901
- object?: string;
901
+ object?: string | undefined;
902
902
  /** The ID of the domain. */
903
- id?: string;
903
+ id?: string | undefined;
904
904
  /** The name of the domain. */
905
- name?: string;
905
+ name?: string | undefined;
906
906
  /** The status of the domain. */
907
- status?: string;
907
+ status?: string | undefined;
908
908
  /** The date and time the domain was created. */
909
- created_at?: string;
909
+ created_at?: string | undefined;
910
910
  /** The region where the domain is hosted. */
911
- region?: string;
911
+ region?: string | undefined;
912
912
  /** Whether open tracking is enabled for this domain. */
913
- open_tracking?: boolean;
913
+ open_tracking?: boolean | undefined;
914
914
  /** Whether click tracking is enabled for this domain. */
915
- click_tracking?: boolean;
915
+ click_tracking?: boolean | undefined;
916
916
  /** The subdomain used for click and open tracking. */
917
- tracking_subdomain?: string;
918
- capabilities?: DomainCapabilities;
919
- records?: DomainRecordsList;
917
+ tracking_subdomain?: string | undefined;
918
+ capabilities?: DomainCapabilities | undefined;
919
+ records?: DomainRecordsList | undefined;
920
920
  }
921
921
  export interface GetEmailRequest {
922
922
  /** The ID of the email. */
@@ -932,23 +932,23 @@ export interface GetEmailAttachmentRequest {
932
932
  export type RetrievedAttachmentContentDisposition = "inline" | "attachment";
933
933
  export interface RetrievedAttachment {
934
934
  /** The type of object. */
935
- object?: string;
935
+ object?: string | undefined;
936
936
  /** The ID of the attachment. */
937
- id?: string;
937
+ id?: string | undefined;
938
938
  /** The filename of the attachment. */
939
- filename?: string;
939
+ filename?: string | undefined;
940
940
  /** The MIME type of the attachment. */
941
- content_type?: string;
941
+ content_type?: string | undefined;
942
942
  /** The content ID for inline attachments. */
943
- content_id?: string;
943
+ content_id?: string | undefined;
944
944
  /** How the attachment should be displayed. */
945
- content_disposition?: RetrievedAttachmentContentDisposition;
945
+ content_disposition?: RetrievedAttachmentContentDisposition | undefined;
946
946
  /** Signed URL to download the attachment content. */
947
- download_url?: string;
947
+ download_url?: string | undefined;
948
948
  /** Timestamp when the download URL expires. */
949
- expires_at?: string;
949
+ expires_at?: string | undefined;
950
950
  /** Size of the attachment in bytes. */
951
- size?: number;
951
+ size?: number | undefined;
952
952
  }
953
953
  export interface GetEmailReceivingRequest {
954
954
  /** The ID of the received email. */
@@ -966,50 +966,50 @@ export type GetReceivedEmailResponseReplyToList = Array<string>;
966
966
  export type GetReceivedEmailResponseAttachmentsItemContentDisposition = "inline" | "attachment";
967
967
  export interface GetReceivedEmailResponseAttachmentsItem {
968
968
  /** The ID of the attachment. */
969
- id?: string;
969
+ id?: string | undefined;
970
970
  /** The filename of the attachment. */
971
- filename?: string;
971
+ filename?: string | undefined;
972
972
  /** The MIME type of the attachment. */
973
- content_type?: string;
973
+ content_type?: string | undefined;
974
974
  /** The content ID for inline attachments. */
975
- content_id?: string;
975
+ content_id?: string | undefined;
976
976
  /** How the attachment should be displayed. */
977
- content_disposition?: GetReceivedEmailResponseAttachmentsItemContentDisposition;
977
+ content_disposition?: GetReceivedEmailResponseAttachmentsItemContentDisposition | undefined;
978
978
  /** Size of the attachment in bytes. */
979
- size?: number;
979
+ size?: number | undefined;
980
980
  }
981
981
  /** Array of attachments. */
982
982
  export type GetReceivedEmailResponseAttachmentsList =
983
983
  Array<GetReceivedEmailResponseAttachmentsItem>;
984
984
  export interface GetReceivedEmailResponse {
985
985
  /** The type of object. */
986
- object?: string;
986
+ object?: string | undefined;
987
987
  /** The ID of the received email. */
988
- id?: string;
988
+ id?: string | undefined;
989
989
  /** The recipient email addresses. */
990
- to?: GetReceivedEmailResponseToList;
990
+ to?: GetReceivedEmailResponseToList | undefined;
991
991
  /** The sender email address. */
992
- from?: string;
992
+ from?: string | undefined;
993
993
  /** The email subject. */
994
- subject?: string;
994
+ subject?: string | undefined;
995
995
  /** The unique message ID from the email headers. */
996
- message_id?: string;
996
+ message_id?: string | undefined;
997
997
  /** The BCC recipients. */
998
- bcc?: GetReceivedEmailResponseBccList | null;
998
+ bcc?: GetReceivedEmailResponseBccList | null | undefined;
999
999
  /** The CC recipients. */
1000
- cc?: GetReceivedEmailResponseCcList | null;
1000
+ cc?: GetReceivedEmailResponseCcList | null | undefined;
1001
1001
  /** The reply-to addresses. */
1002
- reply_to?: GetReceivedEmailResponseReplyToList | null;
1002
+ reply_to?: GetReceivedEmailResponseReplyToList | null | undefined;
1003
1003
  /** The HTML content of the email. */
1004
- html?: string | null;
1004
+ html?: string | null | undefined;
1005
1005
  /** The plain text content of the email. */
1006
- text?: string | null;
1006
+ text?: string | null | undefined;
1007
1007
  /** The email headers. */
1008
- headers?: unknown | null;
1008
+ headers?: unknown | null | undefined;
1009
1009
  /** Timestamp when the email was received. */
1010
- created_at?: string;
1010
+ created_at?: string | undefined;
1011
1011
  /** Array of attachments. */
1012
- attachments?: GetReceivedEmailResponseAttachmentsList;
1012
+ attachments?: GetReceivedEmailResponseAttachmentsList | undefined;
1013
1013
  }
1014
1014
  export interface GetEmailReceivingAttachmentRequest {
1015
1015
  /** The ID of the received email. */
@@ -1023,17 +1023,17 @@ export interface GetEventRequest {
1023
1023
  }
1024
1024
  export interface Event {
1025
1025
  /** Type of the response object. */
1026
- object?: string;
1026
+ object?: string | undefined;
1027
1027
  /** The event ID. */
1028
- id?: string;
1028
+ id?: string | undefined;
1029
1029
  /** The event name. */
1030
- name?: string;
1030
+ name?: string | undefined;
1031
1031
  /** A flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
1032
- schema?: unknown | null;
1032
+ schema?: unknown | null | undefined;
1033
1033
  /** The date and time the event was created. */
1034
- created_at?: string;
1034
+ created_at?: string | undefined;
1035
1035
  /** The date and time the event was last updated. */
1036
- updated_at?: string | null;
1036
+ updated_at?: string | null | undefined;
1037
1037
  }
1038
1038
  export interface GetLogRequest {
1039
1039
  /** The ID of the log. */
@@ -1043,23 +1043,23 @@ export interface GetLogRequest {
1043
1043
  export type LogMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
1044
1044
  export interface Log {
1045
1045
  /** Type of the response object. */
1046
- object?: string;
1046
+ object?: string | undefined;
1047
1047
  /** The log ID. */
1048
- id?: string;
1048
+ id?: string | undefined;
1049
1049
  /** The date the log was created. */
1050
- created_at?: string;
1050
+ created_at?: string | undefined;
1051
1051
  /** The API endpoint that was called. */
1052
- endpoint?: string;
1052
+ endpoint?: string | undefined;
1053
1053
  /** The HTTP method used. */
1054
- method?: LogMethod;
1054
+ method?: LogMethod | undefined;
1055
1055
  /** The HTTP status code of the response. */
1056
- response_status?: number;
1056
+ response_status?: number | undefined;
1057
1057
  /** The user agent of the request. */
1058
- user_agent?: string | null;
1058
+ user_agent?: string | null | undefined;
1059
1059
  /** The request body sent to the API. */
1060
- request_body?: unknown | null;
1060
+ request_body?: unknown | null | undefined;
1061
1061
  /** The response body returned by the API. */
1062
- response_body?: unknown | null;
1062
+ response_body?: unknown | null | undefined;
1063
1063
  }
1064
1064
  export interface GetSegmentRequest {
1065
1065
  /** The Segment ID. */
@@ -1067,17 +1067,17 @@ export interface GetSegmentRequest {
1067
1067
  }
1068
1068
  export interface GetSegmentResponseSuccess {
1069
1069
  /** The ID of the segment. */
1070
- id?: string;
1070
+ id?: string | undefined;
1071
1071
  /** The object type. */
1072
- object?: string;
1072
+ object?: string | undefined;
1073
1073
  /** The name of the segment. */
1074
- name?: string;
1074
+ name?: string | undefined;
1075
1075
  /** The ID of the audience this segment belongs to. */
1076
- audience_id?: string;
1076
+ audience_id?: string | undefined;
1077
1077
  /** Filter conditions for the segment. */
1078
- filter?: unknown;
1078
+ filter?: unknown | undefined;
1079
1079
  /** Timestamp indicating when the segment was created. */
1080
- created_at?: string;
1080
+ created_at?: string | undefined;
1081
1081
  }
1082
1082
  export interface GetTemplateRequest {
1083
1083
  /** The Template ID or alias. */
@@ -1097,53 +1097,53 @@ export type TemplateVariableFallbackValue =
1097
1097
  | TemplateVariableFallbackValueCase4List;
1098
1098
  export interface TemplateVariable {
1099
1099
  /** The ID of the template variable. */
1100
- id?: string;
1100
+ id?: string | undefined;
1101
1101
  /** The key of the variable. */
1102
1102
  key: string;
1103
1103
  /** The type of the variable. */
1104
1104
  type: TemplateVariableType;
1105
1105
  /** The fallback value of the variable. */
1106
- fallback_value?: TemplateVariableFallbackValue;
1106
+ fallback_value?: TemplateVariableFallbackValue | undefined;
1107
1107
  /** Timestamp indicating when the variable was created. */
1108
- created_at?: string;
1108
+ created_at?: string | undefined;
1109
1109
  /** Timestamp indicating when the variable was last updated. */
1110
- updated_at?: string;
1110
+ updated_at?: string | undefined;
1111
1111
  }
1112
1112
  export type TemplateVariablesList = Array<TemplateVariable>;
1113
1113
  /** The publication status of the template. */
1114
1114
  export type TemplateStatus = "draft" | "published";
1115
1115
  export interface Template {
1116
1116
  /** The type of object. */
1117
- object?: string;
1117
+ object?: string | undefined;
1118
1118
  /** The ID of the template. */
1119
- id?: string;
1119
+ id?: string | undefined;
1120
1120
  /** The ID of the current version of the template. */
1121
- current_version_id?: string;
1121
+ current_version_id?: string | undefined;
1122
1122
  /** The name of the template. */
1123
- name?: string;
1123
+ name?: string | undefined;
1124
1124
  /** The alias of the template. */
1125
- alias?: string;
1125
+ alias?: string | undefined;
1126
1126
  /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
1127
- from?: string;
1127
+ from?: string | undefined;
1128
1128
  /** Email subject. */
1129
- subject?: string;
1129
+ subject?: string | undefined;
1130
1130
  /** Reply-to email addresses. */
1131
- reply_to?: TemplateReplyToList | null;
1131
+ reply_to?: TemplateReplyToList | null | undefined;
1132
1132
  /** The HTML version of the template. */
1133
- html?: string;
1133
+ html?: string | undefined;
1134
1134
  /** The plain text version of the template. */
1135
- text?: string;
1136
- variables?: TemplateVariablesList;
1135
+ text?: string | undefined;
1136
+ variables?: TemplateVariablesList | undefined;
1137
1137
  /** Timestamp indicating when the template was created. */
1138
- created_at?: string;
1138
+ created_at?: string | undefined;
1139
1139
  /** Timestamp indicating when the template was last updated. */
1140
- updated_at?: string;
1140
+ updated_at?: string | undefined;
1141
1141
  /** The publication status of the template. */
1142
- status?: TemplateStatus;
1142
+ status?: TemplateStatus | undefined;
1143
1143
  /** Timestamp indicating when the template was published. */
1144
- published_at?: string | null;
1144
+ published_at?: string | null | undefined;
1145
1145
  /** Indicates whether the template has unpublished versions. */
1146
- has_unpublished_versions?: boolean;
1146
+ has_unpublished_versions?: boolean | undefined;
1147
1147
  }
1148
1148
  export interface GetTopicRequest {
1149
1149
  /** The Topic ID. */
@@ -1155,19 +1155,19 @@ export type GetTopicResponseSuccessDefaultSubscription = "opt_in" | "opt_out";
1155
1155
  export type GetTopicResponseSuccessVisibility = "public" | "private";
1156
1156
  export interface GetTopicResponseSuccess {
1157
1157
  /** The ID of the topic. */
1158
- id?: string;
1158
+ id?: string | undefined;
1159
1159
  /** The object type. */
1160
- object?: string;
1160
+ object?: string | undefined;
1161
1161
  /** The name of the topic. */
1162
- name?: string;
1162
+ name?: string | undefined;
1163
1163
  /** A description of the topic. */
1164
- description?: string;
1164
+ description?: string | undefined;
1165
1165
  /** The default subscription status for the topic. */
1166
- default_subscription?: GetTopicResponseSuccessDefaultSubscription;
1166
+ default_subscription?: GetTopicResponseSuccessDefaultSubscription | undefined;
1167
1167
  /** The visibility of the topic. */
1168
- visibility?: GetTopicResponseSuccessVisibility;
1168
+ visibility?: GetTopicResponseSuccessVisibility | undefined;
1169
1169
  /** Timestamp indicating when the topic was created. */
1170
- created_at?: string;
1170
+ created_at?: string | undefined;
1171
1171
  }
1172
1172
  export interface GetWebhookRequest {
1173
1173
  /** The Webhook ID. */
@@ -1177,246 +1177,246 @@ export interface GetWebhookRequest {
1177
1177
  export type GetWebhookResponseEventsList = Array<string>;
1178
1178
  export interface GetWebhookResponse {
1179
1179
  /** The type of object. */
1180
- object?: string;
1180
+ object?: string | undefined;
1181
1181
  /** The ID of the webhook. */
1182
- id?: string;
1182
+ id?: string | undefined;
1183
1183
  /** The URL where webhook events are sent. */
1184
- endpoint?: string;
1184
+ endpoint?: string | undefined;
1185
1185
  /** Array of event types subscribed to. */
1186
- events?: GetWebhookResponseEventsList | null;
1186
+ events?: GetWebhookResponseEventsList | null | undefined;
1187
1187
  /** The status of the webhook. */
1188
- status?: string;
1188
+ status?: string | undefined;
1189
1189
  /** Timestamp indicating when the webhook was created. */
1190
- created_at?: string;
1190
+ created_at?: string | undefined;
1191
1191
  /** The secret key used to verify webhook payloads. */
1192
- signing_secret?: string | Redacted.Redacted<string>;
1192
+ signing_secret?: string | Redacted.Redacted<string> | undefined;
1193
1193
  }
1194
1194
  export interface ListApiKeysRequest {
1195
1195
  /** Number of items to return. */
1196
- limit?: number;
1196
+ limit?: number | undefined;
1197
1197
  /** Return items after this cursor. */
1198
- after?: string;
1198
+ after?: string | undefined;
1199
1199
  /** Return items before this cursor. */
1200
- before?: string;
1200
+ before?: string | undefined;
1201
1201
  }
1202
1202
  export interface ApiKey {
1203
1203
  /** The ID of the API key. */
1204
- id?: string;
1204
+ id?: string | undefined;
1205
1205
  /** The name of the API key. */
1206
- name?: string;
1206
+ name?: string | undefined;
1207
1207
  /** The date and time the API key was created. */
1208
- created_at?: string;
1208
+ created_at?: string | undefined;
1209
1209
  /** The date and time the API key was last used. */
1210
- last_used_at?: string | null;
1210
+ last_used_at?: string | null | undefined;
1211
1211
  }
1212
1212
  export type ListApiKeysResponseDataList = Array<ApiKey>;
1213
1213
  export interface ListApiKeysResponse {
1214
1214
  /** Type of the response object. */
1215
- object?: string;
1215
+ object?: string | undefined;
1216
1216
  /** Indicates if there are more results available. */
1217
- has_more?: boolean;
1217
+ has_more?: boolean | undefined;
1218
1218
  data: ListApiKeysResponseDataList;
1219
1219
  }
1220
1220
  export interface ListAutomationRunsRequest {
1221
1221
  /** The ID of the automation. */
1222
1222
  automation_id: string;
1223
1223
  /** Filter runs by status. Comma-separated list of: running, completed, failed, cancelled. */
1224
- status?: string;
1224
+ status?: string | undefined;
1225
1225
  /** Number of items to return. */
1226
- limit?: number;
1226
+ limit?: number | undefined;
1227
1227
  /** Return items after this cursor. */
1228
- after?: string;
1228
+ after?: string | undefined;
1229
1229
  /** Return items before this cursor. */
1230
- before?: string;
1230
+ before?: string | undefined;
1231
1231
  }
1232
1232
  /** The current status of the automation run. */
1233
1233
  export type AutomationRunListItemStatus = "running" | "completed" | "failed" | "cancelled";
1234
1234
  export interface AutomationRunListItem {
1235
1235
  /** The ID of the automation run. */
1236
- id?: string;
1236
+ id?: string | undefined;
1237
1237
  /** The current status of the automation run. */
1238
- status?: AutomationRunListItemStatus;
1238
+ status?: AutomationRunListItemStatus | undefined;
1239
1239
  /** The date and time the run started. */
1240
- started_at?: string | null;
1240
+ started_at?: string | null | undefined;
1241
1241
  /** The date and time the run completed. */
1242
- completed_at?: string | null;
1242
+ completed_at?: string | null | undefined;
1243
1243
  /** The date and time the run was created. */
1244
- created_at?: string;
1244
+ created_at?: string | undefined;
1245
1245
  }
1246
1246
  /** Array of automation runs. */
1247
1247
  export type ListAutomationRunsResponseDataList = Array<AutomationRunListItem>;
1248
1248
  export interface ListAutomationRunsResponse {
1249
1249
  /** Type of the response object. */
1250
- object?: string;
1250
+ object?: string | undefined;
1251
1251
  /** Indicates if there are more results available. */
1252
- has_more?: boolean;
1252
+ has_more?: boolean | undefined;
1253
1253
  /** Array of automation runs. */
1254
1254
  data: ListAutomationRunsResponseDataList;
1255
1255
  }
1256
1256
  export type ListAutomationsRequestStatus = "enabled" | "disabled";
1257
1257
  export interface ListAutomationsRequest {
1258
1258
  /** Filter automations by status. */
1259
- status?: ListAutomationsRequestStatus | (string & {});
1259
+ status?: ListAutomationsRequestStatus | (string & {}) | undefined;
1260
1260
  /** Number of items to return. */
1261
- limit?: number;
1261
+ limit?: number | undefined;
1262
1262
  /** Return items after this cursor. */
1263
- after?: string;
1263
+ after?: string | undefined;
1264
1264
  /** Return items before this cursor. */
1265
- before?: string;
1265
+ before?: string | undefined;
1266
1266
  }
1267
1267
  /** The current status of the automation. */
1268
1268
  export type AutomationListItemStatus = "enabled" | "disabled";
1269
1269
  export interface AutomationListItem {
1270
1270
  /** The ID of the automation. */
1271
- id?: string;
1271
+ id?: string | undefined;
1272
1272
  /** The name of the automation. */
1273
- name?: string;
1273
+ name?: string | undefined;
1274
1274
  /** The current status of the automation. */
1275
- status?: AutomationListItemStatus;
1275
+ status?: AutomationListItemStatus | undefined;
1276
1276
  /** The date and time the automation was created. */
1277
- created_at?: string;
1277
+ created_at?: string | undefined;
1278
1278
  /** The date and time the automation was last updated. */
1279
- updated_at?: string;
1279
+ updated_at?: string | undefined;
1280
1280
  }
1281
1281
  /** Array of automations. */
1282
1282
  export type ListAutomationsResponseDataList = Array<AutomationListItem>;
1283
1283
  export interface ListAutomationsResponse {
1284
1284
  /** Type of the response object. */
1285
- object?: string;
1285
+ object?: string | undefined;
1286
1286
  /** Indicates if there are more results available. */
1287
- has_more?: boolean;
1287
+ has_more?: boolean | undefined;
1288
1288
  /** Array of automations. */
1289
1289
  data: ListAutomationsResponseDataList;
1290
1290
  }
1291
1291
  export interface ListBroadcastsRequest {
1292
1292
  /** Number of items to return. */
1293
- limit?: number;
1293
+ limit?: number | undefined;
1294
1294
  /** Return items after this cursor. */
1295
- after?: string;
1295
+ after?: string | undefined;
1296
1296
  /** Return items before this cursor. */
1297
- before?: string;
1297
+ before?: string | undefined;
1298
1298
  }
1299
1299
  export interface ListBroadcastsResponseSuccessDataItem {
1300
1300
  /** Unique identifier for the broadcast. */
1301
- id?: string;
1301
+ id?: string | undefined;
1302
1302
  /** Name of the broadcast. */
1303
- name?: string;
1303
+ name?: string | undefined;
1304
1304
  /** Deprecated. Use segment_id instead. */
1305
- audience_id?: string;
1305
+ audience_id?: string | undefined;
1306
1306
  /** Unique identifier of the segment this broadcast will be sent to. */
1307
- segment_id?: string;
1307
+ segment_id?: string | undefined;
1308
1308
  /** The status of the broadcast. */
1309
- status?: string;
1309
+ status?: string | undefined;
1310
1310
  /** Timestamp indicating when the broadcast was created. */
1311
- created_at?: string;
1311
+ created_at?: string | undefined;
1312
1312
  /** Timestamp indicating when the broadcast is scheduled to be sent. */
1313
- scheduled_at?: string;
1313
+ scheduled_at?: string | undefined;
1314
1314
  /** Timestamp indicating when the broadcast was sent. */
1315
- sent_at?: string;
1315
+ sent_at?: string | undefined;
1316
1316
  /** The topic ID that the broadcast is scoped to. */
1317
- topic_id?: string;
1317
+ topic_id?: string | undefined;
1318
1318
  }
1319
1319
  /** Array containing broadcast information. */
1320
1320
  export type ListBroadcastsResponseSuccessDataList = Array<ListBroadcastsResponseSuccessDataItem>;
1321
1321
  export interface ListBroadcastsResponseSuccess {
1322
1322
  /** Type of the response object. */
1323
- object?: string;
1323
+ object?: string | undefined;
1324
1324
  /** Indicates if there are more results available. */
1325
- has_more?: boolean;
1325
+ has_more?: boolean | undefined;
1326
1326
  /** Array containing broadcast information. */
1327
1327
  data: ListBroadcastsResponseSuccessDataList;
1328
1328
  }
1329
1329
  export interface ListContactPropertiesRequest {
1330
1330
  /** Number of items to return. */
1331
- limit?: number;
1331
+ limit?: number | undefined;
1332
1332
  /** Return items after this cursor. */
1333
- after?: string;
1333
+ after?: string | undefined;
1334
1334
  /** Return items before this cursor. */
1335
- before?: string;
1335
+ before?: string | undefined;
1336
1336
  }
1337
1337
  /** The default value when the property is not set for a contact. */
1338
1338
  export type ListContactPropertiesResponseSuccessDataItemFallbackValue = string | number;
1339
1339
  export interface ListContactPropertiesResponseSuccessDataItem {
1340
1340
  /** Unique identifier for the contact property. */
1341
- id?: string;
1341
+ id?: string | undefined;
1342
1342
  /** The property key. */
1343
- key?: string;
1343
+ key?: string | undefined;
1344
1344
  /** The property type. */
1345
- type?: string;
1345
+ type?: string | undefined;
1346
1346
  /** The default value when the property is not set for a contact. */
1347
- fallback_value?: ListContactPropertiesResponseSuccessDataItemFallbackValue;
1347
+ fallback_value?: ListContactPropertiesResponseSuccessDataItemFallbackValue | undefined;
1348
1348
  /** Timestamp indicating when the contact property was created. */
1349
- created_at?: string;
1349
+ created_at?: string | undefined;
1350
1350
  }
1351
1351
  /** Array containing contact property information. */
1352
1352
  export type ListContactPropertiesResponseSuccessDataList =
1353
1353
  Array<ListContactPropertiesResponseSuccessDataItem>;
1354
1354
  export interface ListContactPropertiesResponseSuccess {
1355
1355
  /** Type of the response object. */
1356
- object?: string;
1356
+ object?: string | undefined;
1357
1357
  /** Indicates if there are more results available. */
1358
- has_more?: boolean;
1358
+ has_more?: boolean | undefined;
1359
1359
  /** Array containing contact property information. */
1360
1360
  data: ListContactPropertiesResponseSuccessDataList;
1361
1361
  }
1362
1362
  export interface ListContactsRequest {
1363
1363
  /** Filter contacts by segment ID. */
1364
- segment_id?: string;
1364
+ segment_id?: string | undefined;
1365
1365
  /** Number of items to return. */
1366
- limit?: number;
1366
+ limit?: number | undefined;
1367
1367
  /** Return items after this cursor. */
1368
- after?: string;
1368
+ after?: string | undefined;
1369
1369
  /** Return items before this cursor. */
1370
- before?: string;
1370
+ before?: string | undefined;
1371
1371
  }
1372
1372
  export interface ListContactsResponseSuccessDataItem {
1373
1373
  /** Unique identifier for the contact. */
1374
- id?: string;
1374
+ id?: string | undefined;
1375
1375
  /** Email address of the contact. */
1376
- email?: string;
1376
+ email?: string | undefined;
1377
1377
  /** First name of the contact. */
1378
- first_name?: string;
1378
+ first_name?: string | undefined;
1379
1379
  /** Last name of the contact. */
1380
- last_name?: string;
1380
+ last_name?: string | undefined;
1381
1381
  /** Timestamp indicating when the contact was created. */
1382
- created_at?: string;
1382
+ created_at?: string | undefined;
1383
1383
  /** Indicates if the contact is unsubscribed. */
1384
- unsubscribed?: boolean;
1384
+ unsubscribed?: boolean | undefined;
1385
1385
  }
1386
1386
  /** Array containing contact information. */
1387
1387
  export type ListContactsResponseSuccessDataList = Array<ListContactsResponseSuccessDataItem>;
1388
1388
  export interface ListContactsResponseSuccess {
1389
1389
  /** Type of the response object. */
1390
- object?: string;
1390
+ object?: string | undefined;
1391
1391
  /** Array containing contact information. */
1392
- data?: ListContactsResponseSuccessDataList;
1392
+ data?: ListContactsResponseSuccessDataList | undefined;
1393
1393
  }
1394
1394
  export interface ListContactSegmentsRequest {
1395
1395
  /** The Contact ID or email address. */
1396
1396
  contact_id: string;
1397
1397
  /** Number of items to return. */
1398
- limit?: number;
1398
+ limit?: number | undefined;
1399
1399
  /** Return items after this cursor. */
1400
- after?: string;
1400
+ after?: string | undefined;
1401
1401
  /** Return items before this cursor. */
1402
- before?: string;
1402
+ before?: string | undefined;
1403
1403
  }
1404
1404
  export interface ListContactSegmentsResponseSuccessDataItem {
1405
1405
  /** Unique identifier for the segment. */
1406
- id?: string;
1406
+ id?: string | undefined;
1407
1407
  /** Name of the segment. */
1408
- name?: string;
1408
+ name?: string | undefined;
1409
1409
  /** Timestamp indicating when the contact was added to the segment. */
1410
- created_at?: string;
1410
+ created_at?: string | undefined;
1411
1411
  }
1412
1412
  /** Array containing segment information for this contact. */
1413
1413
  export type ListContactSegmentsResponseSuccessDataList =
1414
1414
  Array<ListContactSegmentsResponseSuccessDataItem>;
1415
1415
  export interface ListContactSegmentsResponseSuccess {
1416
1416
  /** Type of the response object. */
1417
- object?: string;
1417
+ object?: string | undefined;
1418
1418
  /** Indicates if there are more results available. */
1419
- has_more?: boolean;
1419
+ has_more?: boolean | undefined;
1420
1420
  /** Array containing segment information for this contact. */
1421
1421
  data: ListContactSegmentsResponseSuccessDataList;
1422
1422
  }
@@ -1424,111 +1424,111 @@ export interface ListContactTopicsRequest {
1424
1424
  /** The Contact ID or email address. */
1425
1425
  contact_id: string;
1426
1426
  /** Number of items to return. */
1427
- limit?: number;
1427
+ limit?: number | undefined;
1428
1428
  /** Return items after this cursor. */
1429
- after?: string;
1429
+ after?: string | undefined;
1430
1430
  /** Return items before this cursor. */
1431
- before?: string;
1431
+ before?: string | undefined;
1432
1432
  }
1433
1433
  /** The subscription status for this topic. */
1434
1434
  export type GetContactTopicsResponseSuccessDataItemSubscription = "opt_in" | "opt_out";
1435
1435
  export interface GetContactTopicsResponseSuccessDataItem {
1436
1436
  /** Unique identifier for the topic. */
1437
- id?: string;
1437
+ id?: string | undefined;
1438
1438
  /** Name of the topic. */
1439
- name?: string;
1439
+ name?: string | undefined;
1440
1440
  /** Description of the topic. */
1441
- description?: string;
1441
+ description?: string | undefined;
1442
1442
  /** The subscription status for this topic. */
1443
- subscription?: GetContactTopicsResponseSuccessDataItemSubscription;
1443
+ subscription?: GetContactTopicsResponseSuccessDataItemSubscription | undefined;
1444
1444
  }
1445
1445
  /** Array containing topic subscriptions for this contact. */
1446
1446
  export type GetContactTopicsResponseSuccessDataList =
1447
1447
  Array<GetContactTopicsResponseSuccessDataItem>;
1448
1448
  export interface GetContactTopicsResponseSuccess {
1449
1449
  /** Type of the response object. */
1450
- object?: string;
1450
+ object?: string | undefined;
1451
1451
  /** Indicates if there are more results available. */
1452
- has_more?: boolean;
1452
+ has_more?: boolean | undefined;
1453
1453
  /** Array containing topic subscriptions for this contact. */
1454
1454
  data: GetContactTopicsResponseSuccessDataList;
1455
1455
  }
1456
1456
  export interface ListDomainsRequest {
1457
1457
  /** Number of items to return. */
1458
- limit?: number;
1458
+ limit?: number | undefined;
1459
1459
  /** Return items after this cursor. */
1460
- after?: string;
1460
+ after?: string | undefined;
1461
1461
  /** Return items before this cursor. */
1462
- before?: string;
1462
+ before?: string | undefined;
1463
1463
  }
1464
1464
  export interface ListDomainsItem {
1465
1465
  /** The ID of the domain. */
1466
- id?: string;
1466
+ id?: string | undefined;
1467
1467
  /** The name of the domain. */
1468
- name?: string;
1468
+ name?: string | undefined;
1469
1469
  /** The status of the domain. */
1470
- status?: string;
1470
+ status?: string | undefined;
1471
1471
  /** The date and time the domain was created. */
1472
- created_at?: string;
1472
+ created_at?: string | undefined;
1473
1473
  /** The region where the domain is hosted. */
1474
- region?: string;
1475
- capabilities?: DomainCapabilities;
1474
+ region?: string | undefined;
1475
+ capabilities?: DomainCapabilities | undefined;
1476
1476
  }
1477
1477
  export type ListDomainsResponseDataList = Array<ListDomainsItem>;
1478
1478
  export interface ListDomainsResponse {
1479
1479
  /** Type of the response object. */
1480
- object?: string;
1480
+ object?: string | undefined;
1481
1481
  /** Indicates if there are more results available. */
1482
- has_more?: boolean;
1482
+ has_more?: boolean | undefined;
1483
1483
  data: ListDomainsResponseDataList;
1484
1484
  }
1485
1485
  export interface ListEmailAttachmentsRequest {
1486
1486
  /** The ID of the email. */
1487
1487
  email_id: string;
1488
1488
  /** Maximum number of attachments to return. */
1489
- limit?: number;
1489
+ limit?: number | undefined;
1490
1490
  /** Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'. */
1491
- after?: string;
1491
+ after?: string | undefined;
1492
1492
  /** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
1493
- before?: string;
1493
+ before?: string | undefined;
1494
1494
  }
1495
1495
  /** How the attachment should be displayed. */
1496
1496
  export type ListAttachmentsResponseDataItemContentDisposition = "inline" | "attachment";
1497
1497
  export interface ListAttachmentsResponseDataItem {
1498
1498
  /** The ID of the attachment. */
1499
- id?: string;
1499
+ id?: string | undefined;
1500
1500
  /** The filename of the attachment. */
1501
- filename?: string;
1501
+ filename?: string | undefined;
1502
1502
  /** The MIME type of the attachment. */
1503
- content_type?: string;
1503
+ content_type?: string | undefined;
1504
1504
  /** The content ID for inline attachments. */
1505
- content_id?: string;
1505
+ content_id?: string | undefined;
1506
1506
  /** How the attachment should be displayed. */
1507
- content_disposition?: ListAttachmentsResponseDataItemContentDisposition;
1507
+ content_disposition?: ListAttachmentsResponseDataItemContentDisposition | undefined;
1508
1508
  /** Signed URL to download the attachment content. */
1509
- download_url?: string;
1509
+ download_url?: string | undefined;
1510
1510
  /** Timestamp when the download URL expires. */
1511
- expires_at?: string;
1511
+ expires_at?: string | undefined;
1512
1512
  /** Size of the attachment in bytes. */
1513
- size?: number;
1513
+ size?: number | undefined;
1514
1514
  }
1515
1515
  /** Array containing attachment information. */
1516
1516
  export type ListAttachmentsResponseDataList = Array<ListAttachmentsResponseDataItem>;
1517
1517
  export interface ListAttachmentsResponse {
1518
1518
  /** Type of the response object. */
1519
- object?: string;
1519
+ object?: string | undefined;
1520
1520
  /** Indicates if there are more results available. */
1521
- has_more?: boolean;
1521
+ has_more?: boolean | undefined;
1522
1522
  /** Array containing attachment information. */
1523
1523
  data: ListAttachmentsResponseDataList;
1524
1524
  }
1525
1525
  export interface ListEmailReceivingRequest {
1526
1526
  /** Maximum number of received emails to return. */
1527
- limit?: number;
1527
+ limit?: number | undefined;
1528
1528
  /** Pagination cursor to fetch results after this email ID. Cannot be used with 'before'. */
1529
- after?: string;
1529
+ after?: string | undefined;
1530
1530
  /** Pagination cursor to fetch results before this email ID. Cannot be used with 'after'. */
1531
- before?: string;
1531
+ before?: string | undefined;
1532
1532
  }
1533
1533
  /** The recipient email addresses. */
1534
1534
  export type ListReceivedEmailsResponseDataItemToList = Array<string>;
@@ -1544,50 +1544,52 @@ export type ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition
1544
1544
  | "attachment";
1545
1545
  export interface ListReceivedEmailsResponseDataItemAttachmentsItem {
1546
1546
  /** The ID of the attachment. */
1547
- id?: string;
1547
+ id?: string | undefined;
1548
1548
  /** The filename of the attachment. */
1549
- filename?: string;
1549
+ filename?: string | undefined;
1550
1550
  /** The MIME type of the attachment. */
1551
- content_type?: string;
1551
+ content_type?: string | undefined;
1552
1552
  /** The content ID for inline attachments. */
1553
- content_id?: string;
1553
+ content_id?: string | undefined;
1554
1554
  /** How the attachment should be displayed. */
1555
- content_disposition?: ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition;
1555
+ content_disposition?:
1556
+ | ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition
1557
+ | undefined;
1556
1558
  /** Size of the attachment in bytes. */
1557
- size?: number;
1559
+ size?: number | undefined;
1558
1560
  }
1559
1561
  /** Array of attachments for this email. */
1560
1562
  export type ListReceivedEmailsResponseDataItemAttachmentsList =
1561
1563
  Array<ListReceivedEmailsResponseDataItemAttachmentsItem>;
1562
1564
  export interface ListReceivedEmailsResponseDataItem {
1563
1565
  /** The ID of the received email. */
1564
- id?: string;
1566
+ id?: string | undefined;
1565
1567
  /** The recipient email addresses. */
1566
- to?: ListReceivedEmailsResponseDataItemToList;
1568
+ to?: ListReceivedEmailsResponseDataItemToList | undefined;
1567
1569
  /** The sender email address. */
1568
- from?: string;
1570
+ from?: string | undefined;
1569
1571
  /** The email subject. */
1570
- subject?: string | null;
1572
+ subject?: string | null | undefined;
1571
1573
  /** The unique message ID from the email headers. */
1572
- message_id?: string;
1574
+ message_id?: string | undefined;
1573
1575
  /** The BCC recipients. */
1574
- bcc?: ListReceivedEmailsResponseDataItemBccList | null;
1576
+ bcc?: ListReceivedEmailsResponseDataItemBccList | null | undefined;
1575
1577
  /** The CC recipients. */
1576
- cc?: ListReceivedEmailsResponseDataItemCcList | null;
1578
+ cc?: ListReceivedEmailsResponseDataItemCcList | null | undefined;
1577
1579
  /** The reply-to addresses. */
1578
- reply_to?: ListReceivedEmailsResponseDataItemReplyToList | null;
1580
+ reply_to?: ListReceivedEmailsResponseDataItemReplyToList | null | undefined;
1579
1581
  /** Timestamp when the email was received. */
1580
- created_at?: string;
1582
+ created_at?: string | undefined;
1581
1583
  /** Array of attachments for this email. */
1582
- attachments?: ListReceivedEmailsResponseDataItemAttachmentsList;
1584
+ attachments?: ListReceivedEmailsResponseDataItemAttachmentsList | undefined;
1583
1585
  }
1584
1586
  /** Array containing received email information. */
1585
1587
  export type ListReceivedEmailsResponseDataList = Array<ListReceivedEmailsResponseDataItem>;
1586
1588
  export interface ListReceivedEmailsResponse {
1587
1589
  /** Type of the response object. */
1588
- object?: string;
1590
+ object?: string | undefined;
1589
1591
  /** Indicates if there are more results available. */
1590
- has_more?: boolean;
1592
+ has_more?: boolean | undefined;
1591
1593
  /** Array containing received email information. */
1592
1594
  data: ListReceivedEmailsResponseDataList;
1593
1595
  }
@@ -1595,165 +1597,165 @@ export interface ListEmailReceivingAttachmentsRequest {
1595
1597
  /** The ID of the received email. */
1596
1598
  email_id: string;
1597
1599
  /** Maximum number of attachments to return. */
1598
- limit?: number;
1600
+ limit?: number | undefined;
1599
1601
  /** Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'. */
1600
- after?: string;
1602
+ after?: string | undefined;
1601
1603
  /** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
1602
- before?: string;
1604
+ before?: string | undefined;
1603
1605
  }
1604
1606
  export interface ListEmailsRequest {
1605
1607
  /** Number of items to return. */
1606
- limit?: number;
1608
+ limit?: number | undefined;
1607
1609
  /** Return items after this cursor. */
1608
- after?: string;
1610
+ after?: string | undefined;
1609
1611
  /** Return items before this cursor. */
1610
- before?: string;
1612
+ before?: string | undefined;
1611
1613
  }
1612
1614
  /** Array containing email information. */
1613
1615
  export type ListEmailsResponseDataList = Array<Email>;
1614
1616
  export interface ListEmailsResponse {
1615
1617
  /** Type of the response object. */
1616
- object?: string;
1618
+ object?: string | undefined;
1617
1619
  /** Indicates if there are more results available. */
1618
- has_more?: boolean;
1620
+ has_more?: boolean | undefined;
1619
1621
  /** Array containing email information. */
1620
1622
  data: ListEmailsResponseDataList;
1621
1623
  }
1622
1624
  export interface ListEventsRequest {
1623
1625
  /** Number of items to return. */
1624
- limit?: number;
1626
+ limit?: number | undefined;
1625
1627
  /** Return items after this cursor. */
1626
- after?: string;
1628
+ after?: string | undefined;
1627
1629
  /** Return items before this cursor. */
1628
- before?: string;
1630
+ before?: string | undefined;
1629
1631
  }
1630
1632
  export interface EventSummary {
1631
1633
  /** The event ID. */
1632
- id?: string;
1634
+ id?: string | undefined;
1633
1635
  /** The event name. */
1634
- name?: string;
1636
+ name?: string | undefined;
1635
1637
  /** A flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
1636
- schema?: unknown | null;
1638
+ schema?: unknown | null | undefined;
1637
1639
  /** The date and time the event was created. */
1638
- created_at?: string;
1640
+ created_at?: string | undefined;
1639
1641
  /** The date and time the event was last updated. */
1640
- updated_at?: string | null;
1642
+ updated_at?: string | null | undefined;
1641
1643
  }
1642
1644
  /** Array containing event information. */
1643
1645
  export type ListEventsResponseDataList = Array<EventSummary>;
1644
1646
  export interface ListEventsResponse {
1645
1647
  /** Type of the response object. */
1646
- object?: string;
1648
+ object?: string | undefined;
1647
1649
  /** Indicates if there are more results available. */
1648
- has_more?: boolean;
1650
+ has_more?: boolean | undefined;
1649
1651
  /** Array containing event information. */
1650
1652
  data: ListEventsResponseDataList;
1651
1653
  }
1652
1654
  export interface ListLogsRequest {
1653
1655
  /** Number of items to return. */
1654
- limit?: number;
1656
+ limit?: number | undefined;
1655
1657
  /** Return items after this cursor. */
1656
- after?: string;
1658
+ after?: string | undefined;
1657
1659
  /** Return items before this cursor. */
1658
- before?: string;
1660
+ before?: string | undefined;
1659
1661
  }
1660
1662
  /** The HTTP method used. */
1661
1663
  export type LogSummaryMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
1662
1664
  export interface LogSummary {
1663
1665
  /** The log ID. */
1664
- id?: string;
1666
+ id?: string | undefined;
1665
1667
  /** The date the log was created. */
1666
- created_at?: string;
1668
+ created_at?: string | undefined;
1667
1669
  /** The API endpoint that was called. */
1668
- endpoint?: string;
1670
+ endpoint?: string | undefined;
1669
1671
  /** The HTTP method used. */
1670
- method?: LogSummaryMethod;
1672
+ method?: LogSummaryMethod | undefined;
1671
1673
  /** The HTTP status code of the response. */
1672
- response_status?: number;
1674
+ response_status?: number | undefined;
1673
1675
  /** The user agent of the request. */
1674
- user_agent?: string | null;
1676
+ user_agent?: string | null | undefined;
1675
1677
  }
1676
1678
  /** Array containing log information. */
1677
1679
  export type ListLogsResponseDataList = Array<LogSummary>;
1678
1680
  export interface ListLogsResponse {
1679
1681
  /** Type of the response object. */
1680
- object?: string;
1682
+ object?: string | undefined;
1681
1683
  /** Indicates if there are more results available. */
1682
- has_more?: boolean;
1684
+ has_more?: boolean | undefined;
1683
1685
  /** Array containing log information. */
1684
1686
  data: ListLogsResponseDataList;
1685
1687
  }
1686
1688
  export interface ListSegmentsRequest {
1687
1689
  /** Number of items to return. */
1688
- limit?: number;
1690
+ limit?: number | undefined;
1689
1691
  /** Return items after this cursor. */
1690
- after?: string;
1692
+ after?: string | undefined;
1691
1693
  /** Return items before this cursor. */
1692
- before?: string;
1694
+ before?: string | undefined;
1693
1695
  }
1694
1696
  export interface ListSegmentsResponseSuccessDataItem {
1695
1697
  /** Unique identifier for the segment. */
1696
- id?: string;
1698
+ id?: string | undefined;
1697
1699
  /** Name of the segment. */
1698
- name?: string;
1700
+ name?: string | undefined;
1699
1701
  /** The ID of the audience this segment belongs to. */
1700
- audience_id?: string;
1702
+ audience_id?: string | undefined;
1701
1703
  /** Timestamp indicating when the segment was created. */
1702
- created_at?: string;
1704
+ created_at?: string | undefined;
1703
1705
  }
1704
1706
  /** Array containing segment information. */
1705
1707
  export type ListSegmentsResponseSuccessDataList = Array<ListSegmentsResponseSuccessDataItem>;
1706
1708
  export interface ListSegmentsResponseSuccess {
1707
1709
  /** Type of the response object. */
1708
- object?: string;
1710
+ object?: string | undefined;
1709
1711
  /** Indicates if there are more results available. */
1710
- has_more?: boolean;
1712
+ has_more?: boolean | undefined;
1711
1713
  /** Array containing segment information. */
1712
1714
  data: ListSegmentsResponseSuccessDataList;
1713
1715
  }
1714
1716
  export interface ListTemplatesRequest {
1715
1717
  /** Number of items to return. */
1716
- limit?: number;
1718
+ limit?: number | undefined;
1717
1719
  /** Return items after this cursor. */
1718
- after?: string;
1720
+ after?: string | undefined;
1719
1721
  /** Return items before this cursor. */
1720
- before?: string;
1722
+ before?: string | undefined;
1721
1723
  }
1722
1724
  /** The publication status of the template. */
1723
1725
  export type TemplateListItemStatus = "draft" | "published";
1724
1726
  export interface TemplateListItem {
1725
1727
  /** The ID of the template. */
1726
- id?: string;
1728
+ id?: string | undefined;
1727
1729
  /** The name of the template. */
1728
- name?: string;
1730
+ name?: string | undefined;
1729
1731
  /** The publication status of the template. */
1730
- status?: TemplateListItemStatus;
1732
+ status?: TemplateListItemStatus | undefined;
1731
1733
  /** Timestamp indicating when the template was published. */
1732
- published_at?: string | null;
1734
+ published_at?: string | null | undefined;
1733
1735
  /** Timestamp indicating when the template was created. */
1734
- created_at?: string;
1736
+ created_at?: string | undefined;
1735
1737
  /** Timestamp indicating when the template was last updated. */
1736
- updated_at?: string;
1738
+ updated_at?: string | undefined;
1737
1739
  /** The alias of the template. */
1738
- alias?: string;
1740
+ alias?: string | undefined;
1739
1741
  }
1740
1742
  /** Array containing templates information. */
1741
1743
  export type ListTemplatesResponseSuccessDataList = Array<TemplateListItem>;
1742
1744
  export interface ListTemplatesResponseSuccess {
1743
1745
  /** Type of the response object. */
1744
- object?: string;
1746
+ object?: string | undefined;
1745
1747
  /** Array containing templates information. */
1746
1748
  data: ListTemplatesResponseSuccessDataList;
1747
1749
  /** Indicates if there are more templates to retrieve. */
1748
- has_more?: boolean;
1750
+ has_more?: boolean | undefined;
1749
1751
  }
1750
1752
  export interface ListTopicsRequest {
1751
1753
  /** Number of items to return. */
1752
- limit?: number;
1754
+ limit?: number | undefined;
1753
1755
  /** Return items after this cursor. */
1754
- after?: string;
1756
+ after?: string | undefined;
1755
1757
  /** Return items before this cursor. */
1756
- before?: string;
1758
+ before?: string | undefined;
1757
1759
  }
1758
1760
  /** The default subscription status for the topic. */
1759
1761
  export type ListTopicsResponseSuccessDataItemDefaultSubscription = "opt_in" | "opt_out";
@@ -1761,57 +1763,57 @@ export type ListTopicsResponseSuccessDataItemDefaultSubscription = "opt_in" | "o
1761
1763
  export type ListTopicsResponseSuccessDataItemVisibility = "public" | "private";
1762
1764
  export interface ListTopicsResponseSuccessDataItem {
1763
1765
  /** Unique identifier for the topic. */
1764
- id?: string;
1766
+ id?: string | undefined;
1765
1767
  /** Name of the topic. */
1766
- name?: string;
1768
+ name?: string | undefined;
1767
1769
  /** A description of the topic. */
1768
- description?: string;
1770
+ description?: string | undefined;
1769
1771
  /** The default subscription status for the topic. */
1770
- default_subscription?: ListTopicsResponseSuccessDataItemDefaultSubscription;
1772
+ default_subscription?: ListTopicsResponseSuccessDataItemDefaultSubscription | undefined;
1771
1773
  /** The visibility of the topic. */
1772
- visibility?: ListTopicsResponseSuccessDataItemVisibility;
1774
+ visibility?: ListTopicsResponseSuccessDataItemVisibility | undefined;
1773
1775
  /** Timestamp indicating when the topic was created. */
1774
- created_at?: string;
1776
+ created_at?: string | undefined;
1775
1777
  }
1776
1778
  /** Array containing topic information. */
1777
1779
  export type ListTopicsResponseSuccessDataList = Array<ListTopicsResponseSuccessDataItem>;
1778
1780
  export interface ListTopicsResponseSuccess {
1779
1781
  /** Type of the response object. */
1780
- object?: string;
1782
+ object?: string | undefined;
1781
1783
  /** Indicates if there are more results available. */
1782
- has_more?: boolean;
1784
+ has_more?: boolean | undefined;
1783
1785
  /** Array containing topic information. */
1784
1786
  data: ListTopicsResponseSuccessDataList;
1785
1787
  }
1786
1788
  export interface ListWebhooksRequest {
1787
1789
  /** Maximum number of webhooks to return. */
1788
- limit?: number;
1790
+ limit?: number | undefined;
1789
1791
  /** Pagination cursor to fetch results after this webhook ID. Cannot be used with 'before'. */
1790
- after?: string;
1792
+ after?: string | undefined;
1791
1793
  /** Pagination cursor to fetch results before this webhook ID. Cannot be used with 'after'. */
1792
- before?: string;
1794
+ before?: string | undefined;
1793
1795
  }
1794
1796
  /** Array of event types subscribed to. */
1795
1797
  export type ListWebhooksResponseDataItemEventsList = Array<string>;
1796
1798
  export interface ListWebhooksResponseDataItem {
1797
1799
  /** The ID of the webhook. */
1798
- id?: string;
1800
+ id?: string | undefined;
1799
1801
  /** The URL where webhook events are sent. */
1800
- endpoint?: string;
1802
+ endpoint?: string | undefined;
1801
1803
  /** Array of event types subscribed to. */
1802
- events?: ListWebhooksResponseDataItemEventsList | null;
1804
+ events?: ListWebhooksResponseDataItemEventsList | null | undefined;
1803
1805
  /** The status of the webhook. */
1804
- status?: string;
1806
+ status?: string | undefined;
1805
1807
  /** Timestamp indicating when the webhook was created. */
1806
- created_at?: string;
1808
+ created_at?: string | undefined;
1807
1809
  }
1808
1810
  /** Array containing webhook information. */
1809
1811
  export type ListWebhooksResponseDataList = Array<ListWebhooksResponseDataItem>;
1810
1812
  export interface ListWebhooksResponse {
1811
1813
  /** Type of the response object. */
1812
- object?: string;
1814
+ object?: string | undefined;
1813
1815
  /** Indicates if there are more results available. */
1814
- has_more?: boolean;
1816
+ has_more?: boolean | undefined;
1815
1817
  /** Array containing webhook information. */
1816
1818
  data: ListWebhooksResponseDataList;
1817
1819
  }
@@ -1821,19 +1823,19 @@ export interface PublishTemplateRequest {
1821
1823
  }
1822
1824
  export interface PublishTemplateResponseSuccess {
1823
1825
  /** The ID of the template. */
1824
- id?: string;
1826
+ id?: string | undefined;
1825
1827
  /** The object type of the response. */
1826
- object?: string;
1828
+ object?: string | undefined;
1827
1829
  }
1828
1830
  export interface SendBroadcastRequest {
1829
1831
  /** The Broadcast ID. */
1830
1832
  id: string;
1831
1833
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
1832
- scheduled_at?: string;
1834
+ scheduled_at?: string | undefined;
1833
1835
  }
1834
1836
  export interface SendBroadcastResponseSuccess {
1835
1837
  /** The ID of the broadcast. */
1836
- id?: string;
1838
+ id?: string | undefined;
1837
1839
  }
1838
1840
  /** An optional payload of key/value pairs to include with the event. */
1839
1841
  export type SendEventRequestPayloadMap = { [key: string]: unknown | undefined };
@@ -1841,11 +1843,11 @@ export interface SendEventRequest {
1841
1843
  /** The name of the event to send. */
1842
1844
  event: string;
1843
1845
  /** The ID of the contact to associate with this event. Exactly one of `contact_id` or `email` must be provided. */
1844
- contact_id?: string;
1846
+ contact_id?: string | undefined;
1845
1847
  /** The email address to associate with this event. Exactly one of `contact_id` or `email` must be provided. */
1846
- email?: string;
1848
+ email?: string | undefined;
1847
1849
  /** An optional payload of key/value pairs to include with the event. */
1848
- payload?: SendEventRequestPayloadMap;
1850
+ payload?: SendEventRequestPayloadMap | undefined;
1849
1851
  }
1850
1852
  export interface SendEventResponse {}
1851
1853
  export interface StopAutomationRequest {
@@ -1854,11 +1856,11 @@ export interface StopAutomationRequest {
1854
1856
  }
1855
1857
  export interface StopAutomationResponse {
1856
1858
  /** Type of the response object. */
1857
- object?: string;
1859
+ object?: string | undefined;
1858
1860
  /** The ID of the stopped automation. */
1859
- id?: string;
1861
+ id?: string | undefined;
1860
1862
  /** The status of the automation after stopping. */
1861
- status?: string;
1863
+ status?: string | undefined;
1862
1864
  }
1863
1865
  /** The status of the automation. */
1864
1866
  export type UpdateAutomationRequestStatus = "enabled" | "disabled";
@@ -1870,19 +1872,19 @@ export interface UpdateAutomationRequest {
1870
1872
  /** The ID of the automation. */
1871
1873
  automation_id: string;
1872
1874
  /** The name of the automation. */
1873
- name?: string;
1875
+ name?: string | undefined;
1874
1876
  /** The status of the automation. */
1875
- status?: UpdateAutomationRequestStatus | (string & {});
1877
+ status?: UpdateAutomationRequestStatus | (string & {}) | undefined;
1876
1878
  /** The steps that compose the automation workflow. Must be provided together with `connections`. */
1877
- steps?: UpdateAutomationRequestStepsList;
1879
+ steps?: UpdateAutomationRequestStepsList | undefined;
1878
1880
  /** The connections between steps in the automation graph. Must be provided together with `steps`. */
1879
- connections?: UpdateAutomationRequestConnectionsList;
1881
+ connections?: UpdateAutomationRequestConnectionsList | undefined;
1880
1882
  }
1881
1883
  export interface PatchAutomationResponse {
1882
1884
  /** Type of the response object. */
1883
- object?: string;
1885
+ object?: string | undefined;
1884
1886
  /** The ID of the updated automation. */
1885
- id?: string;
1887
+ id?: string | undefined;
1886
1888
  }
1887
1889
  /** The email addresses to which replies should be sent. */
1888
1890
  export type UpdateBroadcastRequestReplyToList = Array<string>;
@@ -1890,31 +1892,31 @@ export interface UpdateBroadcastRequest {
1890
1892
  /** The Broadcast ID. */
1891
1893
  id: string;
1892
1894
  /** Name of the broadcast. */
1893
- name?: string;
1895
+ name?: string | undefined;
1894
1896
  /** Use `segment_id` instead. Unique identifier of the audience this broadcast will be sent to. */
1895
- audience_id?: string;
1897
+ audience_id?: string | undefined;
1896
1898
  /** Unique identifier of the segment this broadcast will be sent to. */
1897
- segment_id?: string;
1899
+ segment_id?: string | undefined;
1898
1900
  /** The email address of the sender. */
1899
- from?: string;
1901
+ from?: string | undefined;
1900
1902
  /** The subject line of the email. */
1901
- subject?: string;
1903
+ subject?: string | undefined;
1902
1904
  /** The email addresses to which replies should be sent. */
1903
- reply_to?: UpdateBroadcastRequestReplyToList;
1905
+ reply_to?: UpdateBroadcastRequestReplyToList | undefined;
1904
1906
  /** The preview text of the email. */
1905
- preview_text?: string;
1907
+ preview_text?: string | undefined;
1906
1908
  /** The HTML version of the message. */
1907
- html?: string;
1909
+ html?: string | undefined;
1908
1910
  /** The plain text version of the message. */
1909
- text?: string;
1911
+ text?: string | undefined;
1910
1912
  /** The topic ID that the broadcast will be scoped to. */
1911
- topic_id?: string;
1913
+ topic_id?: string | undefined;
1912
1914
  }
1913
1915
  export interface UpdateBroadcastResponseSuccess {
1914
1916
  /** The ID of the broadcast. */
1915
- id?: string;
1917
+ id?: string | undefined;
1916
1918
  /** The object type of the response. */
1917
- object?: string;
1919
+ object?: string | undefined;
1918
1920
  }
1919
1921
  /** A map of custom property keys and values to update. */
1920
1922
  export type UpdateContactRequestPropertiesMap = { [key: string]: unknown | undefined };
@@ -1922,21 +1924,21 @@ export interface UpdateContactRequest {
1922
1924
  /** The Contact ID or email address. */
1923
1925
  id: string;
1924
1926
  /** Email address of the contact. */
1925
- email?: string;
1927
+ email?: string | undefined;
1926
1928
  /** First name of the contact. */
1927
- first_name?: string;
1929
+ first_name?: string | undefined;
1928
1930
  /** Last name of the contact. */
1929
- last_name?: string;
1931
+ last_name?: string | undefined;
1930
1932
  /** The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts. */
1931
- unsubscribed?: boolean;
1933
+ unsubscribed?: boolean | undefined;
1932
1934
  /** A map of custom property keys and values to update. */
1933
- properties?: UpdateContactRequestPropertiesMap;
1935
+ properties?: UpdateContactRequestPropertiesMap | undefined;
1934
1936
  }
1935
1937
  export interface UpdateContactResponseSuccess {
1936
1938
  /** Type of the response object. */
1937
- object?: string;
1939
+ object?: string | undefined;
1938
1940
  /** Unique identifier for the updated contact. */
1939
- id?: string;
1941
+ id?: string | undefined;
1940
1942
  }
1941
1943
  /** The default value to use when the property is not set for a contact. Must match the type of the property. */
1942
1944
  export type UpdateContactPropertyRequestFallbackValue = string | number;
@@ -1944,13 +1946,13 @@ export interface UpdateContactPropertyRequest {
1944
1946
  /** The Contact Property ID. */
1945
1947
  id: string;
1946
1948
  /** The default value to use when the property is not set for a contact. Must match the type of the property. */
1947
- fallback_value?: UpdateContactPropertyRequestFallbackValue;
1949
+ fallback_value?: UpdateContactPropertyRequestFallbackValue | undefined;
1948
1950
  }
1949
1951
  export interface UpdateContactPropertyResponseSuccess {
1950
1952
  /** The ID of the contact property. */
1951
- id?: string;
1953
+ id?: string | undefined;
1952
1954
  /** The object type. */
1953
- object?: string;
1955
+ object?: string | undefined;
1954
1956
  }
1955
1957
  export interface UpdateContactSegmentRequest {
1956
1958
  /** The Contact ID or email address. */
@@ -1960,19 +1962,19 @@ export interface UpdateContactSegmentRequest {
1960
1962
  }
1961
1963
  export interface AddContactToSegmentResponseSuccess {
1962
1964
  /** The object type. */
1963
- object?: string;
1965
+ object?: string | undefined;
1964
1966
  /** The ID of the contact. */
1965
- contact_id?: string;
1967
+ contact_id?: string | undefined;
1966
1968
  /** The ID of the segment. */
1967
- segment_id?: string;
1969
+ segment_id?: string | undefined;
1968
1970
  }
1969
1971
  /** The subscription status (opt_in or opt_out). */
1970
1972
  export type UpdateContactTopicsRequestTopicsItemSubscription = "opt_in" | "opt_out";
1971
1973
  export interface UpdateContactTopicsRequestTopicsItem {
1972
1974
  /** The ID of the topic. */
1973
- id?: string;
1975
+ id?: string | undefined;
1974
1976
  /** The subscription status (opt_in or opt_out). */
1975
- subscription?: UpdateContactTopicsRequestTopicsItemSubscription | (string & {});
1977
+ subscription?: UpdateContactTopicsRequestTopicsItemSubscription | (string & {}) | undefined;
1976
1978
  }
1977
1979
  export type UpdateContactTopicsRequestTopicsList = Array<UpdateContactTopicsRequestTopicsItem>;
1978
1980
  export interface UpdateContactTopicsRequest {
@@ -1984,39 +1986,39 @@ export interface UpdateContactTopicsRequest {
1984
1986
  export type UpdateContactTopicsResponseSuccessTopicsItemSubscription = "opt_in" | "opt_out";
1985
1987
  export interface UpdateContactTopicsResponseSuccessTopicsItem {
1986
1988
  /** The ID of the topic. */
1987
- id?: string;
1989
+ id?: string | undefined;
1988
1990
  /** The subscription status. */
1989
- subscription?: UpdateContactTopicsResponseSuccessTopicsItemSubscription;
1991
+ subscription?: UpdateContactTopicsResponseSuccessTopicsItemSubscription | undefined;
1990
1992
  }
1991
1993
  /** Array of updated topic subscriptions. */
1992
1994
  export type UpdateContactTopicsResponseSuccessTopicsList =
1993
1995
  Array<UpdateContactTopicsResponseSuccessTopicsItem>;
1994
1996
  export interface UpdateContactTopicsResponseSuccess {
1995
1997
  /** The object type. */
1996
- object?: string;
1998
+ object?: string | undefined;
1997
1999
  /** The ID of the contact. */
1998
- contact_id?: string;
2000
+ contact_id?: string | undefined;
1999
2001
  /** Array of updated topic subscriptions. */
2000
- topics?: UpdateContactTopicsResponseSuccessTopicsList;
2002
+ topics?: UpdateContactTopicsResponseSuccessTopicsList | undefined;
2001
2003
  }
2002
2004
  export interface UpdateDomainRequest {
2003
2005
  /** The ID of the domain. */
2004
2006
  domain_id: string;
2005
2007
  /** Track the open rate of each email. */
2006
- open_tracking?: boolean;
2008
+ open_tracking?: boolean | undefined;
2007
2009
  /** Track clicks within the body of each HTML email. */
2008
- click_tracking?: boolean;
2010
+ click_tracking?: boolean | undefined;
2009
2011
  /** enforced | opportunistic. */
2010
- tls?: string;
2011
- capabilities?: DomainCapabilities;
2012
+ tls?: string | undefined;
2013
+ capabilities?: DomainCapabilities | undefined;
2012
2014
  /** The subdomain to use for click and open tracking. */
2013
- tracking_subdomain?: string;
2015
+ tracking_subdomain?: string | undefined;
2014
2016
  }
2015
2017
  export interface UpdateDomainResponseSuccess {
2016
2018
  /** The ID of the updated domain. */
2017
- id?: string;
2019
+ id?: string | undefined;
2018
2020
  /** The object type representing the updated domain. */
2019
- object?: string;
2021
+ object?: string | undefined;
2020
2022
  }
2021
2023
  export interface UpdateEmailRequest {
2022
2024
  /** The ID of the email. */
@@ -2024,7 +2026,7 @@ export interface UpdateEmailRequest {
2024
2026
  }
2025
2027
  export interface UpdateEmailOptions {
2026
2028
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
2027
- scheduled_at?: string;
2029
+ scheduled_at?: string | undefined;
2028
2030
  }
2029
2031
  export interface UpdateEventRequest {
2030
2032
  /** The event ID (UUID) or event name. */
@@ -2034,9 +2036,9 @@ export interface UpdateEventRequest {
2034
2036
  }
2035
2037
  export interface UpdateEventResponse {
2036
2038
  /** Type of the response object. */
2037
- object?: string;
2039
+ object?: string | undefined;
2038
2040
  /** The ID of the updated event. */
2039
- id?: string;
2041
+ id?: string | undefined;
2040
2042
  }
2041
2043
  /** Reply-to email addresses. */
2042
2044
  export type UpdateTemplateRequestReplyToList = Array<string>;
@@ -2045,26 +2047,26 @@ export interface UpdateTemplateRequest {
2045
2047
  /** The Template ID or alias. */
2046
2048
  id: string;
2047
2049
  /** The name of the template. */
2048
- name?: string;
2050
+ name?: string | undefined;
2049
2051
  /** The alias of the template. */
2050
- alias?: string;
2052
+ alias?: string | undefined;
2051
2053
  /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
2052
- from?: string;
2054
+ from?: string | undefined;
2053
2055
  /** Email subject. */
2054
- subject?: string;
2056
+ subject?: string | undefined;
2055
2057
  /** Reply-to email addresses. */
2056
- reply_to?: UpdateTemplateRequestReplyToList;
2058
+ reply_to?: UpdateTemplateRequestReplyToList | undefined;
2057
2059
  /** The HTML version of the template. */
2058
- html?: string;
2060
+ html?: string | undefined;
2059
2061
  /** The plain text version of the template. */
2060
- text?: string;
2061
- variables?: UpdateTemplateRequestVariablesList;
2062
+ text?: string | undefined;
2063
+ variables?: UpdateTemplateRequestVariablesList | undefined;
2062
2064
  }
2063
2065
  export interface UpdateTemplateResponseSuccess {
2064
2066
  /** The ID of the template. */
2065
- id?: string;
2067
+ id?: string | undefined;
2066
2068
  /** The object type of the response. */
2067
- object?: string;
2069
+ object?: string | undefined;
2068
2070
  }
2069
2071
  /** The visibility of the topic. */
2070
2072
  export type UpdateTopicRequestVisibility = "public" | "private";
@@ -2072,17 +2074,17 @@ export interface UpdateTopicRequest {
2072
2074
  /** The Topic ID. */
2073
2075
  id: string;
2074
2076
  /** The name of the topic. Max 50 characters. */
2075
- name?: string;
2077
+ name?: string | undefined;
2076
2078
  /** A description of the topic. Max 200 characters. */
2077
- description?: string;
2079
+ description?: string | undefined;
2078
2080
  /** The visibility of the topic. */
2079
- visibility?: UpdateTopicRequestVisibility | (string & {});
2081
+ visibility?: UpdateTopicRequestVisibility | (string & {}) | undefined;
2080
2082
  }
2081
2083
  export interface UpdateTopicResponseSuccess {
2082
2084
  /** The ID of the topic. */
2083
- id?: string;
2085
+ id?: string | undefined;
2084
2086
  /** The object type. */
2085
- object?: string;
2087
+ object?: string | undefined;
2086
2088
  }
2087
2089
  /** Array of event types to subscribe to. */
2088
2090
  export type UpdateWebhookRequestEventsList = Array<string>;
@@ -2092,17 +2094,17 @@ export interface UpdateWebhookRequest {
2092
2094
  /** The Webhook ID. */
2093
2095
  webhook_id: string;
2094
2096
  /** The URL where webhook events will be sent. */
2095
- endpoint?: string;
2097
+ endpoint?: string | undefined;
2096
2098
  /** Array of event types to subscribe to. */
2097
- events?: UpdateWebhookRequestEventsList;
2099
+ events?: UpdateWebhookRequestEventsList | undefined;
2098
2100
  /** The status of the webhook. */
2099
- status?: UpdateWebhookRequestStatus | (string & {});
2101
+ status?: UpdateWebhookRequestStatus | (string & {}) | undefined;
2100
2102
  }
2101
2103
  export interface UpdateWebhookResponse {
2102
2104
  /** The type of object. */
2103
- object?: string;
2105
+ object?: string | undefined;
2104
2106
  /** The ID of the updated webhook. */
2105
- id?: string;
2107
+ id?: string | undefined;
2106
2108
  }
2107
2109
  export interface VerifyDomainRequest {
2108
2110
  /** The ID of the domain. */
@@ -2110,9 +2112,9 @@ export interface VerifyDomainRequest {
2110
2112
  }
2111
2113
  export interface VerifyDomainResponse {
2112
2114
  /** The type of object. */
2113
- object?: string;
2115
+ object?: string | undefined;
2114
2116
  /** The ID of the domain. */
2115
- id?: string;
2117
+ id?: string | undefined;
2116
2118
  }
2117
2119
  export type CancelEmailError = ResendOpError;
2118
2120
  /** Cancel the schedule of the e-mail. */