@distilled.cloud/resend 1.0.0-rc.17 → 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.
@@ -13,6 +13,19 @@ const __s: any[] = [];
13
13
 
14
14
  export type { ResendOpError, ResendOpContext };
15
15
 
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "resend-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "Resend",
24
+ service: "Resend",
25
+ labels: "resend",
26
+ propagate: "w3c",
27
+ } as const;
28
+
16
29
  export interface CancelEmailRequest {
17
30
  /** The ID of the email. */
18
31
  email_id: string;
@@ -26,28 +39,28 @@ export type EmailCcList = Array<string>;
26
39
  export type EmailReplyToList = Array<string>;
27
40
  export interface Email {
28
41
  /** The type of object. */
29
- object?: string;
42
+ object?: string | undefined;
30
43
  /** The ID of the email. */
31
- id?: string;
32
- to?: EmailToList;
44
+ id?: string | undefined;
45
+ to?: EmailToList | undefined;
33
46
  /** The email address of the sender. */
34
- from?: string;
47
+ from?: string | undefined;
35
48
  /** The date and time the email was created. */
36
- created_at?: string;
49
+ created_at?: string | undefined;
37
50
  /** The subject line of the email. */
38
- subject?: string;
51
+ subject?: string | undefined;
39
52
  /** The HTML body of the email. */
40
- html?: string;
53
+ html?: string | undefined;
41
54
  /** The plain text body of the email. */
42
- text?: string;
55
+ text?: string | undefined;
43
56
  /** The email addresses of the blind carbon copy recipients. */
44
- bcc?: EmailBccList;
57
+ bcc?: EmailBccList | undefined;
45
58
  /** The email addresses of the carbon copy recipients. */
46
- cc?: EmailCcList;
59
+ cc?: EmailCcList | undefined;
47
60
  /** The email addresses to which replies should be sent. */
48
- reply_to?: EmailReplyToList;
61
+ reply_to?: EmailReplyToList | undefined;
49
62
  /** The status of the email. */
50
- last_event?: string;
63
+ last_event?: string | undefined;
51
64
  }
52
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. */
53
66
  export type CreateApiKeyRequestPermission = "full_access" | "sending_access";
@@ -55,15 +68,15 @@ export interface CreateApiKeyRequest {
55
68
  /** The API key name. */
56
69
  name: string;
57
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. */
58
- permission?: CreateApiKeyRequestPermission | (string & {});
71
+ permission?: CreateApiKeyRequestPermission | (string & {}) | undefined;
59
72
  /** Restrict an API key to send emails only from a specific domain. Only used when the permission is sending_access. */
60
- domain_id?: string;
73
+ domain_id?: string | undefined;
61
74
  }
62
75
  export interface CreateApiKeyResponse {
63
76
  /** The ID of the API key. */
64
- id?: string;
77
+ id?: string | undefined;
65
78
  /** The token of the API key. */
66
- token?: string;
79
+ token?: string | undefined;
67
80
  }
68
81
  /** The initial status of the automation. Defaults to `disabled`. */
69
82
  export type CreateAutomationRequestStatus = "enabled" | "disabled";
@@ -102,7 +115,7 @@ export interface AutomationConnection {
102
115
  /** The `key` of the target step. */
103
116
  to: string;
104
117
  /** The type of connection. Defaults to `default`. */
105
- type?: AutomationConnectionType | (string & {});
118
+ type?: AutomationConnectionType | (string & {}) | undefined;
106
119
  }
107
120
  /** The connections between steps in the automation graph. */
108
121
  export type CreateAutomationRequestConnectionsList = Array<AutomationConnection>;
@@ -110,7 +123,7 @@ export interface CreateAutomationRequest {
110
123
  /** The name of the automation. */
111
124
  name: string;
112
125
  /** The initial status of the automation. Defaults to `disabled`. */
113
- status?: CreateAutomationRequestStatus | (string & {});
126
+ status?: CreateAutomationRequestStatus | (string & {}) | undefined;
114
127
  /** The steps that compose the automation workflow. Must include at least one `trigger` step. */
115
128
  steps: CreateAutomationRequestStepsList;
116
129
  /** The connections between steps in the automation graph. */
@@ -118,43 +131,43 @@ export interface CreateAutomationRequest {
118
131
  }
119
132
  export interface CreateAutomationResponse {
120
133
  /** Type of the response object. */
121
- object?: string;
134
+ object?: string | undefined;
122
135
  /** The ID of the created automation. */
123
- id?: string;
136
+ id?: string | undefined;
124
137
  }
125
138
  /** The email addresses to which replies should be sent. */
126
139
  export type CreateBroadcastRequestReplyToList = Array<string>;
127
140
  export interface CreateBroadcastRequest {
128
141
  /** Name of the broadcast. */
129
- name?: string;
142
+ name?: string | undefined;
130
143
  /** Unique identifier of the segment this broadcast will be sent to. */
131
144
  segment_id: string;
132
145
  /** Use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to. */
133
- audience_id?: string;
146
+ audience_id?: string | undefined;
134
147
  /** The email address of the sender. */
135
148
  from: string;
136
149
  /** The subject line of the email. */
137
150
  subject: string;
138
151
  /** The email addresses to which replies should be sent. */
139
- reply_to?: CreateBroadcastRequestReplyToList;
152
+ reply_to?: CreateBroadcastRequestReplyToList | undefined;
140
153
  /** The preview text of the email. */
141
- preview_text?: string;
154
+ preview_text?: string | undefined;
142
155
  /** The HTML version of the message. */
143
- html?: string;
156
+ html?: string | undefined;
144
157
  /** The plain text version of the message. */
145
- text?: string;
158
+ text?: string | undefined;
146
159
  /** The topic ID that the broadcast will be scoped to. */
147
- topic_id?: string;
160
+ topic_id?: string | undefined;
148
161
  /** Whether to send the broadcast immediately or keep it as a draft. */
149
- send?: boolean;
162
+ send?: boolean | undefined;
150
163
  /** Schedule time to send the broadcast. Can only be used if `send` is true. */
151
- scheduled_at?: string;
164
+ scheduled_at?: string | undefined;
152
165
  }
153
166
  export interface CreateBroadcastResponseSuccess {
154
167
  /** The ID of the broadcast. */
155
- id?: string;
168
+ id?: string | undefined;
156
169
  /** The object type of the response. */
157
- object?: string;
170
+ object?: string | undefined;
158
171
  }
159
172
  /** A map of custom property keys and values to create. */
160
173
  export type CreateContactRequestPropertiesMap = { [key: string]: unknown | undefined };
@@ -164,9 +177,9 @@ export type CreateContactRequestSegmentsList = Array<string>;
164
177
  export type CreateContactRequestTopicsItemSubscription = "opt_in" | "opt_out";
165
178
  export interface CreateContactRequestTopicsItem {
166
179
  /** The topic ID. */
167
- id?: string;
180
+ id?: string | undefined;
168
181
  /** The subscription status for this topic. */
169
- subscription?: CreateContactRequestTopicsItemSubscription | (string & {});
182
+ subscription?: CreateContactRequestTopicsItemSubscription | (string & {}) | undefined;
170
183
  }
171
184
  /** Array of topic subscriptions for the contact. */
172
185
  export type CreateContactRequestTopicsList = Array<CreateContactRequestTopicsItem>;
@@ -174,25 +187,25 @@ export interface CreateContactRequest {
174
187
  /** Email address of the contact. */
175
188
  email: string;
176
189
  /** First name of the contact. */
177
- first_name?: string;
190
+ first_name?: string | undefined;
178
191
  /** Last name of the contact. */
179
- last_name?: string;
192
+ last_name?: string | undefined;
180
193
  /** The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts. */
181
- unsubscribed?: boolean;
194
+ unsubscribed?: boolean | undefined;
182
195
  /** A map of custom property keys and values to create. */
183
- properties?: CreateContactRequestPropertiesMap;
196
+ properties?: CreateContactRequestPropertiesMap | undefined;
184
197
  /** Array of segment IDs to add the contact to. */
185
- segments?: CreateContactRequestSegmentsList;
198
+ segments?: CreateContactRequestSegmentsList | undefined;
186
199
  /** Array of topic subscriptions for the contact. */
187
- topics?: CreateContactRequestTopicsList;
200
+ topics?: CreateContactRequestTopicsList | undefined;
188
201
  /** Unique identifier of the audience to which the contact belongs. */
189
- audience_id?: string;
202
+ audience_id?: string | undefined;
190
203
  }
191
204
  export interface CreateContactResponseSuccess {
192
205
  /** Type of the response object. */
193
- object?: string;
206
+ object?: string | undefined;
194
207
  /** Unique identifier for the created contact. */
195
- id?: string;
208
+ id?: string | undefined;
196
209
  }
197
210
  /** The property type. */
198
211
  export type CreateContactPropertyRequestType = "string" | "number";
@@ -204,13 +217,13 @@ export interface CreateContactPropertyRequest {
204
217
  /** The property type. */
205
218
  type: CreateContactPropertyRequestType | (string & {});
206
219
  /** The default value to use when the property is not set for a contact. Must match the type specified in the type field. */
207
- fallback_value?: CreateContactPropertyRequestFallbackValue;
220
+ fallback_value?: CreateContactPropertyRequestFallbackValue | undefined;
208
221
  }
209
222
  export interface CreateContactPropertyResponseSuccess {
210
223
  /** The ID of the contact property. */
211
- id?: string;
224
+ id?: string | undefined;
212
225
  /** The object type of the response. */
213
- object?: string;
226
+ object?: string | undefined;
214
227
  }
215
228
  /** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
216
229
  export type CreateDomainRequestRegion = "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
@@ -223,26 +236,26 @@ export type DomainCapabilitiesReceiving = "enabled" | "disabled";
223
236
  /** Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled. */
224
237
  export interface DomainCapabilities {
225
238
  /** Enable or disable sending emails from this domain. */
226
- sending?: DomainCapabilitiesSending | (string & {});
239
+ sending?: DomainCapabilitiesSending | (string & {}) | undefined;
227
240
  /** Enable or disable receiving emails to this domain. */
228
- receiving?: DomainCapabilitiesReceiving | (string & {});
241
+ receiving?: DomainCapabilitiesReceiving | (string & {}) | undefined;
229
242
  }
230
243
  export interface CreateDomainRequest {
231
244
  /** The name of the domain you want to create. */
232
245
  name: string;
233
246
  /** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
234
- region?: CreateDomainRequestRegion | (string & {});
247
+ region?: CreateDomainRequestRegion | (string & {}) | undefined;
235
248
  /** For advanced use cases, choose a subdomain for the Return-Path address. Defaults to 'send' (i.e., send.yourdomain.tld). */
236
- custom_return_path?: string;
249
+ custom_return_path?: string | undefined;
237
250
  /** Track the open rate of each email. */
238
- open_tracking?: boolean;
251
+ open_tracking?: boolean | undefined;
239
252
  /** Track clicks within the body of each HTML email. */
240
- click_tracking?: boolean;
253
+ click_tracking?: boolean | undefined;
241
254
  /** TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent. */
242
- tls?: CreateDomainRequestTls | (string & {});
243
- capabilities?: DomainCapabilities;
255
+ tls?: CreateDomainRequestTls | (string & {}) | undefined;
256
+ capabilities?: DomainCapabilities | undefined;
244
257
  /** The subdomain to use for click and open tracking. */
245
- tracking_subdomain?: string;
258
+ tracking_subdomain?: string | undefined;
246
259
  }
247
260
  /** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
248
261
  export type DomainRecordRecord = "SPF" | "DKIM" | "Receiving" | "Tracking";
@@ -257,40 +270,40 @@ export type DomainRecordStatus =
257
270
  | "not_started";
258
271
  export interface DomainRecord {
259
272
  /** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
260
- record?: DomainRecordRecord;
273
+ record?: DomainRecordRecord | undefined;
261
274
  /** The name of the DNS record. */
262
- name?: string;
275
+ name?: string | undefined;
263
276
  /** The DNS record type. */
264
- type?: DomainRecordType;
277
+ type?: DomainRecordType | undefined;
265
278
  /** The time to live for the record. */
266
- ttl?: string;
279
+ ttl?: string | undefined;
267
280
  /** The status of the record. */
268
- status?: DomainRecordStatus;
281
+ status?: DomainRecordStatus | undefined;
269
282
  /** The value of the record. */
270
- value?: string;
283
+ value?: string | undefined;
271
284
  /** The priority of the record (only applicable for MX records). */
272
- priority?: number;
285
+ priority?: number | undefined;
273
286
  }
274
287
  export type CreateDomainResponseRecordsList = Array<DomainRecord>;
275
288
  export interface CreateDomainResponse {
276
289
  /** The ID of the domain. */
277
- id?: string;
290
+ id?: string | undefined;
278
291
  /** The name of the domain. */
279
- name?: string;
292
+ name?: string | undefined;
280
293
  /** The date and time the domain was created. */
281
- created_at?: string;
294
+ created_at?: string | undefined;
282
295
  /** The status of the domain. */
283
- status?: string;
284
- capabilities?: DomainCapabilities;
285
- records?: CreateDomainResponseRecordsList;
296
+ status?: string | undefined;
297
+ capabilities?: DomainCapabilities | undefined;
298
+ records?: CreateDomainResponseRecordsList | undefined;
286
299
  /** The region where the domain is hosted. */
287
- region?: string;
300
+ region?: string | undefined;
288
301
  /** Whether open tracking is enabled for this domain. */
289
- open_tracking?: boolean;
302
+ open_tracking?: boolean | undefined;
290
303
  /** Whether click tracking is enabled for this domain. */
291
- click_tracking?: boolean;
304
+ click_tracking?: boolean | undefined;
292
305
  /** The subdomain used for click and open tracking. */
293
- tracking_subdomain?: string;
306
+ tracking_subdomain?: string | undefined;
294
307
  }
295
308
  export type CreateEmailRequestToCase1List = Array<string>;
296
309
  /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
@@ -313,26 +326,26 @@ export interface CreateEmailRequestTemplate {
313
326
  /** The id of the published email template. */
314
327
  id: string;
315
328
  /** Template variables object with key/value pairs. */
316
- variables?: CreateEmailRequestTemplateVariablesMap;
329
+ variables?: CreateEmailRequestTemplateVariablesMap | undefined;
317
330
  }
318
331
  export interface Attachment {
319
332
  /** Content of an attached file. */
320
- content?: string;
333
+ content?: string | undefined;
321
334
  /** Name of attached file. */
322
- filename?: string;
335
+ filename?: string | undefined;
323
336
  /** Path where the attachment file is hosted */
324
- path?: string;
337
+ path?: string | undefined;
325
338
  /** Optional content type for the attachment, if not set it will be derived from the filename property */
326
- content_type?: string;
339
+ content_type?: string | undefined;
327
340
  /** Content ID for embedding inline images using cid references (e.g., cid:image001). */
328
- content_id?: string;
341
+ content_id?: string | undefined;
329
342
  }
330
343
  export type CreateEmailRequestAttachmentsList = Array<Attachment>;
331
344
  export interface Tag {
332
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. */
333
- name?: string;
346
+ name?: string | undefined;
334
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. */
335
- value?: string;
348
+ value?: string | undefined;
336
349
  }
337
350
  export type CreateEmailRequestTagsList = Array<Tag>;
338
351
  export interface CreateEmailRequest {
@@ -343,28 +356,28 @@ export interface CreateEmailRequest {
343
356
  /** Email subject. */
344
357
  subject: string;
345
358
  /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
346
- bcc?: CreateEmailRequestBcc;
359
+ bcc?: CreateEmailRequestBcc | undefined;
347
360
  /** Cc recipient email address. For multiple addresses, send as an array of strings. */
348
- cc?: CreateEmailRequestCc;
361
+ cc?: CreateEmailRequestCc | undefined;
349
362
  /** Reply-to email address. For multiple addresses, send as an array of strings. */
350
- reply_to?: CreateEmailRequestReplyTo;
363
+ reply_to?: CreateEmailRequestReplyTo | undefined;
351
364
  /** The HTML version of the message. */
352
- html?: string;
365
+ html?: string | undefined;
353
366
  /** The plain text version of the message. */
354
- text?: string;
355
- template?: CreateEmailRequestTemplate;
367
+ text?: string | undefined;
368
+ template?: CreateEmailRequestTemplate | undefined;
356
369
  /** Custom headers to add to the email. */
357
- headers?: unknown;
370
+ headers?: unknown | undefined;
358
371
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
359
- scheduled_at?: string;
360
- attachments?: CreateEmailRequestAttachmentsList;
361
- tags?: CreateEmailRequestTagsList;
372
+ scheduled_at?: string | undefined;
373
+ attachments?: CreateEmailRequestAttachmentsList | undefined;
374
+ tags?: CreateEmailRequestTagsList | undefined;
362
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. */
363
- topic_id?: string;
376
+ topic_id?: string | undefined;
364
377
  }
365
378
  export interface SendEmailResponse {
366
379
  /** The ID of the sent email. */
367
- id?: string;
380
+ id?: string | undefined;
368
381
  }
369
382
  export type SendEmailRequestToCase1List = Array<string>;
370
383
  /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
@@ -387,7 +400,7 @@ export interface SendEmailRequestTemplate {
387
400
  /** The id of the published email template. */
388
401
  id: string;
389
402
  /** Template variables object with key/value pairs. */
390
- variables?: SendEmailRequestTemplateVariablesMap;
403
+ variables?: SendEmailRequestTemplateVariablesMap | undefined;
391
404
  }
392
405
  export type SendEmailRequestAttachmentsList = Array<Attachment>;
393
406
  export type SendEmailRequestTagsList = Array<Tag>;
@@ -399,62 +412,62 @@ export interface SendEmailRequest {
399
412
  /** Email subject. */
400
413
  subject: string;
401
414
  /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
402
- bcc?: SendEmailRequestBcc;
415
+ bcc?: SendEmailRequestBcc | undefined;
403
416
  /** Cc recipient email address. For multiple addresses, send as an array of strings. */
404
- cc?: SendEmailRequestCc;
417
+ cc?: SendEmailRequestCc | undefined;
405
418
  /** Reply-to email address. For multiple addresses, send as an array of strings. */
406
- reply_to?: SendEmailRequestReplyTo;
419
+ reply_to?: SendEmailRequestReplyTo | undefined;
407
420
  /** The HTML version of the message. */
408
- html?: string;
421
+ html?: string | undefined;
409
422
  /** The plain text version of the message. */
410
- text?: string;
411
- template?: SendEmailRequestTemplate;
423
+ text?: string | undefined;
424
+ template?: SendEmailRequestTemplate | undefined;
412
425
  /** Custom headers to add to the email. */
413
- headers?: unknown;
426
+ headers?: unknown | undefined;
414
427
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
415
- scheduled_at?: string;
416
- attachments?: SendEmailRequestAttachmentsList;
417
- tags?: SendEmailRequestTagsList;
428
+ scheduled_at?: string | undefined;
429
+ attachments?: SendEmailRequestAttachmentsList | undefined;
430
+ tags?: SendEmailRequestTagsList | undefined;
418
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. */
419
- topic_id?: string;
432
+ topic_id?: string | undefined;
420
433
  }
421
434
  export type CreateEmailBatchRequestBodyList = Array<SendEmailRequest>;
422
435
  export interface CreateEmailBatchRequest {
423
- body?: CreateEmailBatchRequestBodyList;
436
+ body?: CreateEmailBatchRequestBodyList | undefined;
424
437
  }
425
438
  export interface CreateBatchEmailsResponseDataItem {
426
439
  /** The ID of the sent email. */
427
- id?: string;
440
+ id?: string | undefined;
428
441
  }
429
442
  export type CreateBatchEmailsResponseDataList = Array<CreateBatchEmailsResponseDataItem>;
430
443
  export interface CreateBatchEmailsResponse {
431
- data?: CreateBatchEmailsResponseDataList;
444
+ data?: CreateBatchEmailsResponseDataList | undefined;
432
445
  }
433
446
  export interface CreateEventRequest {
434
447
  /** The name of the event. Cannot start with the reserved `resend:` prefix. */
435
448
  name: string;
436
449
  /** An optional flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
437
- schema?: unknown | null;
450
+ schema?: unknown | null | undefined;
438
451
  }
439
452
  export interface CreateEventResponse {
440
453
  /** Type of the response object. */
441
- object?: string;
454
+ object?: string | undefined;
442
455
  /** The ID of the created event. */
443
- id?: string;
456
+ id?: string | undefined;
444
457
  }
445
458
  export interface CreateSegmentRequest {
446
459
  /** The name of the segment. */
447
460
  name: string;
448
461
  /** The ID of the audience this segment belongs to. */
449
- audience_id?: string;
462
+ audience_id?: string | undefined;
450
463
  /** Filter conditions for the segment. */
451
- filter?: unknown;
464
+ filter?: unknown | undefined;
452
465
  }
453
466
  export interface CreateSegmentResponseSuccess {
454
467
  /** The ID of the segment. */
455
- id?: string;
468
+ id?: string | undefined;
456
469
  /** The object type of the response. */
457
- object?: string;
470
+ object?: string | undefined;
458
471
  }
459
472
  /** Reply-to email addresses. */
460
473
  export type CreateTemplateRequestReplyToList = Array<string>;
@@ -474,31 +487,31 @@ export interface TemplateVariableInput {
474
487
  /** The type of the variable. */
475
488
  type: TemplateVariableInputType | (string & {});
476
489
  /** The fallback value of the variable. */
477
- fallback_value?: TemplateVariableInputFallbackValue;
490
+ fallback_value?: TemplateVariableInputFallbackValue | undefined;
478
491
  }
479
492
  export type CreateTemplateRequestVariablesList = Array<TemplateVariableInput>;
480
493
  export interface CreateTemplateRequest {
481
494
  /** The name of the template. */
482
495
  name: string;
483
496
  /** The alias of the template. */
484
- alias?: string;
497
+ alias?: string | undefined;
485
498
  /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
486
- from?: string;
499
+ from?: string | undefined;
487
500
  /** Email subject. */
488
- subject?: string;
501
+ subject?: string | undefined;
489
502
  /** Reply-to email addresses. */
490
- reply_to?: CreateTemplateRequestReplyToList;
503
+ reply_to?: CreateTemplateRequestReplyToList | undefined;
491
504
  /** The HTML version of the template. */
492
505
  html: string;
493
506
  /** The plain text version of the template. */
494
- text?: string;
495
- variables?: CreateTemplateRequestVariablesList;
507
+ text?: string | undefined;
508
+ variables?: CreateTemplateRequestVariablesList | undefined;
496
509
  }
497
510
  export interface CreateTemplateResponseSuccess {
498
511
  /** The ID of the template. */
499
- id?: string;
512
+ id?: string | undefined;
500
513
  /** The object type of the response. */
501
- object?: string;
514
+ object?: string | undefined;
502
515
  }
503
516
  /** The default subscription status for the topic. Cannot be changed after creation. */
504
517
  export type CreateTopicRequestDefaultSubscription = "opt_in" | "opt_out";
@@ -510,15 +523,15 @@ export interface CreateTopicRequest {
510
523
  /** The default subscription status for the topic. Cannot be changed after creation. */
511
524
  default_subscription: CreateTopicRequestDefaultSubscription | (string & {});
512
525
  /** A description of the topic. Max 200 characters. */
513
- description?: string;
526
+ description?: string | undefined;
514
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. */
515
- visibility?: CreateTopicRequestVisibility | (string & {});
528
+ visibility?: CreateTopicRequestVisibility | (string & {}) | undefined;
516
529
  }
517
530
  export interface CreateTopicResponseSuccess {
518
531
  /** The ID of the topic. */
519
- id?: string;
532
+ id?: string | undefined;
520
533
  /** The object type of the response. */
521
- object?: string;
534
+ object?: string | undefined;
522
535
  }
523
536
  /** Array of event types to subscribe to. */
524
537
  export type CreateWebhookRequestEventsList = Array<string>;
@@ -530,11 +543,11 @@ export interface CreateWebhookRequest {
530
543
  }
531
544
  export interface CreateWebhookResponse {
532
545
  /** The type of object. */
533
- object?: string;
546
+ object?: string | undefined;
534
547
  /** The ID of the webhook. */
535
- id?: string;
548
+ id?: string | undefined;
536
549
  /** The secret key used to verify webhook payloads. */
537
- signing_secret?: string | Redacted.Redacted<string>;
550
+ signing_secret?: string | Redacted.Redacted<string> | undefined;
538
551
  }
539
552
  export interface DeleteApiKeyRequest {
540
553
  /** The API key ID. */
@@ -542,11 +555,11 @@ export interface DeleteApiKeyRequest {
542
555
  }
543
556
  export interface DeleteApiKeyResponse {
544
557
  /** The type of object. */
545
- object?: string;
558
+ object?: string | undefined;
546
559
  /** The ID of the API key. */
547
- id?: string;
560
+ id?: string | undefined;
548
561
  /** Indicates whether the API key was successfully deleted. */
549
- deleted?: boolean;
562
+ deleted?: boolean | undefined;
550
563
  }
551
564
  export interface DeleteAutomationRequest {
552
565
  /** The ID of the automation. */
@@ -554,11 +567,11 @@ export interface DeleteAutomationRequest {
554
567
  }
555
568
  export interface DeleteAutomationResponse {
556
569
  /** Type of the response object. */
557
- object?: string;
570
+ object?: string | undefined;
558
571
  /** The ID of the deleted automation. */
559
- id?: string;
572
+ id?: string | undefined;
560
573
  /** Indicates whether the automation was successfully deleted. */
561
- deleted?: boolean;
574
+ deleted?: boolean | undefined;
562
575
  }
563
576
  export interface DeleteBroadcastRequest {
564
577
  /** The Broadcast ID. */
@@ -566,11 +579,11 @@ export interface DeleteBroadcastRequest {
566
579
  }
567
580
  export interface RemoveBroadcastResponseSuccess {
568
581
  /** The ID of the broadcast. */
569
- id?: string;
582
+ id?: string | undefined;
570
583
  /** Type of the response object. */
571
- object?: string;
584
+ object?: string | undefined;
572
585
  /** The deleted attribute indicates that the corresponding broadcast has been deleted. */
573
- deleted?: boolean;
586
+ deleted?: boolean | undefined;
574
587
  }
575
588
  export interface DeleteContactRequest {
576
589
  /** The Contact ID or email address. */
@@ -578,11 +591,11 @@ export interface DeleteContactRequest {
578
591
  }
579
592
  export interface RemoveContactResponseSuccess {
580
593
  /** Type of the response object. */
581
- object?: string;
594
+ object?: string | undefined;
582
595
  /** Unique identifier for the removed contact. */
583
- id?: string;
596
+ id?: string | undefined;
584
597
  /** Indicates whether the contact was successfully deleted. */
585
- deleted?: boolean;
598
+ deleted?: boolean | undefined;
586
599
  }
587
600
  export interface DeleteContactPropertyRequest {
588
601
  /** The Contact Property ID. */
@@ -590,11 +603,11 @@ export interface DeleteContactPropertyRequest {
590
603
  }
591
604
  export interface RemoveContactPropertyResponseSuccess {
592
605
  /** The ID of the contact property. */
593
- id?: string;
606
+ id?: string | undefined;
594
607
  /** The object type. */
595
- object?: string;
608
+ object?: string | undefined;
596
609
  /** Indicates whether the contact property was successfully deleted. */
597
- deleted?: boolean;
610
+ deleted?: boolean | undefined;
598
611
  }
599
612
  export interface DeleteContactSegmentRequest {
600
613
  /** The Contact ID or email address. */
@@ -604,13 +617,13 @@ export interface DeleteContactSegmentRequest {
604
617
  }
605
618
  export interface RemoveContactFromSegmentResponseSuccess {
606
619
  /** The object type. */
607
- object?: string;
620
+ object?: string | undefined;
608
621
  /** The ID of the contact. */
609
- contact_id?: string;
622
+ contact_id?: string | undefined;
610
623
  /** The ID of the segment. */
611
- segment_id?: string;
624
+ segment_id?: string | undefined;
612
625
  /** Indicates whether the contact was successfully removed from the segment. */
613
- deleted?: boolean;
626
+ deleted?: boolean | undefined;
614
627
  }
615
628
  export interface DeleteDomainRequest {
616
629
  /** The ID of the domain. */
@@ -618,11 +631,11 @@ export interface DeleteDomainRequest {
618
631
  }
619
632
  export interface DeleteDomainResponse {
620
633
  /** The type of object. */
621
- object?: string;
634
+ object?: string | undefined;
622
635
  /** The ID of the domain. */
623
- id?: string;
636
+ id?: string | undefined;
624
637
  /** Indicates whether the domain was deleted successfully. */
625
- deleted?: boolean;
638
+ deleted?: boolean | undefined;
626
639
  }
627
640
  export interface DeleteEventRequest {
628
641
  /** The event ID (UUID) or event name. */
@@ -630,11 +643,11 @@ export interface DeleteEventRequest {
630
643
  }
631
644
  export interface RemoveEventResponse {
632
645
  /** Type of the response object. */
633
- object?: string;
646
+ object?: string | undefined;
634
647
  /** The ID of the deleted event. */
635
- id?: string;
648
+ id?: string | undefined;
636
649
  /** Indicates whether the event was deleted. */
637
- deleted?: boolean;
650
+ deleted?: boolean | undefined;
638
651
  }
639
652
  export interface DeleteSegmentRequest {
640
653
  /** The Segment ID. */
@@ -642,11 +655,11 @@ export interface DeleteSegmentRequest {
642
655
  }
643
656
  export interface RemoveSegmentResponseSuccess {
644
657
  /** The ID of the segment. */
645
- id?: string;
658
+ id?: string | undefined;
646
659
  /** The object type. */
647
- object?: string;
660
+ object?: string | undefined;
648
661
  /** Indicates whether the segment was successfully deleted. */
649
- deleted?: boolean;
662
+ deleted?: boolean | undefined;
650
663
  }
651
664
  export interface DeleteTemplateRequest {
652
665
  /** The Template ID or alias. */
@@ -654,11 +667,11 @@ export interface DeleteTemplateRequest {
654
667
  }
655
668
  export interface RemoveTemplateResponseSuccess {
656
669
  /** Type of the response object. */
657
- object?: string;
670
+ object?: string | undefined;
658
671
  /** The ID of the template. */
659
- id?: string;
672
+ id?: string | undefined;
660
673
  /** Indicates whether the template was successfully deleted. */
661
- deleted?: boolean;
674
+ deleted?: boolean | undefined;
662
675
  }
663
676
  export interface DeleteTopicRequest {
664
677
  /** The Topic ID. */
@@ -666,11 +679,11 @@ export interface DeleteTopicRequest {
666
679
  }
667
680
  export interface RemoveTopicResponseSuccess {
668
681
  /** The ID of the topic. */
669
- id?: string;
682
+ id?: string | undefined;
670
683
  /** The object type. */
671
- object?: string;
684
+ object?: string | undefined;
672
685
  /** Indicates whether the topic was successfully deleted. */
673
- deleted?: boolean;
686
+ deleted?: boolean | undefined;
674
687
  }
675
688
  export interface DeleteWebhookRequest {
676
689
  /** The Webhook ID. */
@@ -678,11 +691,11 @@ export interface DeleteWebhookRequest {
678
691
  }
679
692
  export interface DeleteWebhookResponse {
680
693
  /** The type of object. */
681
- object?: string;
694
+ object?: string | undefined;
682
695
  /** The ID of the deleted webhook. */
683
- id?: string;
696
+ id?: string | undefined;
684
697
  /** Indicates whether the webhook was successfully deleted. */
685
- deleted?: boolean;
698
+ deleted?: boolean | undefined;
686
699
  }
687
700
  export interface DuplicateTemplateRequest {
688
701
  /** The Template ID or alias. */
@@ -690,9 +703,9 @@ export interface DuplicateTemplateRequest {
690
703
  }
691
704
  export interface DuplicateTemplateResponseSuccess {
692
705
  /** The ID of the duplicated template. */
693
- id?: string;
706
+ id?: string | undefined;
694
707
  /** The object type of the response. */
695
- object?: string;
708
+ object?: string | undefined;
696
709
  }
697
710
  export interface GetAutomationRequest {
698
711
  /** The ID of the automation. */
@@ -713,11 +726,11 @@ export type AutomationStepResponseType =
713
726
  /** A step as returned when retrieving an automation. */
714
727
  export interface AutomationStepResponse {
715
728
  /** The unique key of this step within the automation graph. */
716
- key?: string;
729
+ key?: string | undefined;
717
730
  /** The type of automation step. */
718
- type?: AutomationStepResponseType;
731
+ type?: AutomationStepResponseType | undefined;
719
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. */
720
- config?: unknown;
733
+ config?: unknown | undefined;
721
734
  }
722
735
  /** The steps in the active version of the automation. */
723
736
  export type AutomationStepsList = Array<AutomationStepResponse>;
@@ -725,21 +738,21 @@ export type AutomationStepsList = Array<AutomationStepResponse>;
725
738
  export type AutomationConnectionsList = Array<AutomationConnection>;
726
739
  export interface Automation {
727
740
  /** Type of the response object. */
728
- object?: string;
741
+ object?: string | undefined;
729
742
  /** The ID of the automation. */
730
- id?: string;
743
+ id?: string | undefined;
731
744
  /** The name of the automation. */
732
- name?: string;
745
+ name?: string | undefined;
733
746
  /** The current status of the automation. */
734
- status?: AutomationStatus;
747
+ status?: AutomationStatus | undefined;
735
748
  /** The date and time the automation was created. */
736
- created_at?: string;
749
+ created_at?: string | undefined;
737
750
  /** The date and time the automation was last updated. */
738
- updated_at?: string;
751
+ updated_at?: string | undefined;
739
752
  /** The steps in the active version of the automation. */
740
- steps?: AutomationStepsList;
753
+ steps?: AutomationStepsList | undefined;
741
754
  /** The connections between steps in the active version of the automation. */
742
- connections?: AutomationConnectionsList;
755
+ connections?: AutomationConnectionsList | undefined;
743
756
  }
744
757
  export interface GetAutomationRunRequest {
745
758
  /** The ID of the automation. */
@@ -762,39 +775,39 @@ export type AutomationRunStepType =
762
775
  /** A step execution within an automation run. */
763
776
  export interface AutomationRunStep {
764
777
  /** The key of the automation step. */
765
- key?: string;
778
+ key?: string | undefined;
766
779
  /** The type of automation step. */
767
- type?: AutomationRunStepType;
780
+ type?: AutomationRunStepType | undefined;
768
781
  /** The execution status of this step. */
769
- status?: string;
782
+ status?: string | undefined;
770
783
  /** The date and time the step started executing. */
771
- started_at?: string | null;
784
+ started_at?: string | null | undefined;
772
785
  /** The date and time the step completed executing. */
773
- completed_at?: string | null;
786
+ completed_at?: string | null | undefined;
774
787
  /** The output produced by the step, if any. */
775
- output?: unknown | null;
788
+ output?: unknown | null | undefined;
776
789
  /** The error produced by the step, if any. */
777
- error?: unknown | null;
790
+ error?: unknown | null | undefined;
778
791
  /** The date and time the step record was created. */
779
- created_at?: string;
792
+ created_at?: string | undefined;
780
793
  }
781
794
  /** The steps executed in this run, sorted in graph order. */
782
795
  export type AutomationRunStepsList = Array<AutomationRunStep>;
783
796
  export interface AutomationRun {
784
797
  /** Type of the response object. */
785
- object?: string;
798
+ object?: string | undefined;
786
799
  /** The ID of the automation run. */
787
- id?: string;
800
+ id?: string | undefined;
788
801
  /** The current status of the automation run. */
789
- status?: AutomationRunStatus;
802
+ status?: AutomationRunStatus | undefined;
790
803
  /** The date and time the run started. */
791
- started_at?: string | null;
804
+ started_at?: string | null | undefined;
792
805
  /** The date and time the run completed. */
793
- completed_at?: string | null;
806
+ completed_at?: string | null | undefined;
794
807
  /** The date and time the run was created. */
795
- created_at?: string;
808
+ created_at?: string | undefined;
796
809
  /** The steps executed in this run, sorted in graph order. */
797
- steps?: AutomationRunStepsList;
810
+ steps?: AutomationRunStepsList | undefined;
798
811
  }
799
812
  export interface GetBroadcastRequest {
800
813
  /** The Broadcast ID. */
@@ -804,35 +817,35 @@ export interface GetBroadcastRequest {
804
817
  export type GetBroadcastResponseSuccessReplyToList = Array<string>;
805
818
  export interface GetBroadcastResponseSuccess {
806
819
  /** Unique identifier for the broadcast. */
807
- id?: string;
820
+ id?: string | undefined;
808
821
  /** Name of the broadcast. */
809
- name?: string;
822
+ name?: string | undefined;
810
823
  /** Deprecated: use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to. */
811
- audience_id?: string | null;
824
+ audience_id?: string | null | undefined;
812
825
  /** Unique identifier of the segment this broadcast will be sent to. */
813
- segment_id?: string | null;
826
+ segment_id?: string | null | undefined;
814
827
  /** The email address of the sender. */
815
- from?: string;
828
+ from?: string | undefined;
816
829
  /** The subject line of the email. */
817
- subject?: string;
830
+ subject?: string | undefined;
818
831
  /** The email addresses to which replies should be sent. */
819
- reply_to?: GetBroadcastResponseSuccessReplyToList;
832
+ reply_to?: GetBroadcastResponseSuccessReplyToList | undefined;
820
833
  /** The preview text of the email. */
821
- preview_text?: string;
834
+ preview_text?: string | undefined;
822
835
  /** The status of the broadcast. */
823
- status?: string;
836
+ status?: string | undefined;
824
837
  /** Timestamp indicating when the broadcast was created. */
825
- created_at?: string;
838
+ created_at?: string | undefined;
826
839
  /** Timestamp indicating when the broadcast is scheduled to be sent. */
827
- scheduled_at?: string;
840
+ scheduled_at?: string | undefined;
828
841
  /** Timestamp indicating when the broadcast was sent. */
829
- sent_at?: string;
842
+ sent_at?: string | undefined;
830
843
  /** The plain text version of the broadcast content. */
831
- text?: string | null;
844
+ text?: string | null | undefined;
832
845
  /** The HTML version of the broadcast content. */
833
- html?: string | null;
846
+ html?: string | null | undefined;
834
847
  /** The topic ID that the broadcast is scoped to. */
835
- topic_id?: string | null;
848
+ topic_id?: string | null | undefined;
836
849
  }
837
850
  export interface GetContactRequest {
838
851
  /** The Contact ID or email address. */
@@ -842,21 +855,21 @@ export interface GetContactRequest {
842
855
  export type GetContactResponseSuccessPropertiesMap = { [key: string]: unknown | undefined };
843
856
  export interface GetContactResponseSuccess {
844
857
  /** Type of the response object. */
845
- object?: string;
858
+ object?: string | undefined;
846
859
  /** Unique identifier for the contact. */
847
- id?: string;
860
+ id?: string | undefined;
848
861
  /** Email address of the contact. */
849
- email?: string;
862
+ email?: string | undefined;
850
863
  /** First name of the contact. */
851
- first_name?: string;
864
+ first_name?: string | undefined;
852
865
  /** Last name of the contact. */
853
- last_name?: string;
866
+ last_name?: string | undefined;
854
867
  /** Timestamp indicating when the contact was created. */
855
- created_at?: string;
868
+ created_at?: string | undefined;
856
869
  /** Indicates if the contact is unsubscribed. */
857
- unsubscribed?: boolean;
870
+ unsubscribed?: boolean | undefined;
858
871
  /** A map of custom property keys and values. */
859
- properties?: GetContactResponseSuccessPropertiesMap;
872
+ properties?: GetContactResponseSuccessPropertiesMap | undefined;
860
873
  }
861
874
  export interface GetContactPropertyRequest {
862
875
  /** The Contact Property ID. */
@@ -866,17 +879,17 @@ export interface GetContactPropertyRequest {
866
879
  export type GetContactPropertyResponseSuccessFallbackValue = string | number;
867
880
  export interface GetContactPropertyResponseSuccess {
868
881
  /** The object type. */
869
- object?: string;
882
+ object?: string | undefined;
870
883
  /** The ID of the contact property. */
871
- id?: string;
884
+ id?: string | undefined;
872
885
  /** The property key. */
873
- key?: string;
886
+ key?: string | undefined;
874
887
  /** The property type. */
875
- type?: string;
888
+ type?: string | undefined;
876
889
  /** The default value when the property is not set for a contact. */
877
- fallback_value?: GetContactPropertyResponseSuccessFallbackValue;
890
+ fallback_value?: GetContactPropertyResponseSuccessFallbackValue | undefined;
878
891
  /** Timestamp indicating when the contact property was created. */
879
- created_at?: string;
892
+ created_at?: string | undefined;
880
893
  }
881
894
  export interface GetDomainRequest {
882
895
  /** The ID of the domain. */
@@ -885,25 +898,25 @@ export interface GetDomainRequest {
885
898
  export type DomainRecordsList = Array<DomainRecord>;
886
899
  export interface Domain {
887
900
  /** The type of object. */
888
- object?: string;
901
+ object?: string | undefined;
889
902
  /** The ID of the domain. */
890
- id?: string;
903
+ id?: string | undefined;
891
904
  /** The name of the domain. */
892
- name?: string;
905
+ name?: string | undefined;
893
906
  /** The status of the domain. */
894
- status?: string;
907
+ status?: string | undefined;
895
908
  /** The date and time the domain was created. */
896
- created_at?: string;
909
+ created_at?: string | undefined;
897
910
  /** The region where the domain is hosted. */
898
- region?: string;
911
+ region?: string | undefined;
899
912
  /** Whether open tracking is enabled for this domain. */
900
- open_tracking?: boolean;
913
+ open_tracking?: boolean | undefined;
901
914
  /** Whether click tracking is enabled for this domain. */
902
- click_tracking?: boolean;
915
+ click_tracking?: boolean | undefined;
903
916
  /** The subdomain used for click and open tracking. */
904
- tracking_subdomain?: string;
905
- capabilities?: DomainCapabilities;
906
- records?: DomainRecordsList;
917
+ tracking_subdomain?: string | undefined;
918
+ capabilities?: DomainCapabilities | undefined;
919
+ records?: DomainRecordsList | undefined;
907
920
  }
908
921
  export interface GetEmailRequest {
909
922
  /** The ID of the email. */
@@ -919,23 +932,23 @@ export interface GetEmailAttachmentRequest {
919
932
  export type RetrievedAttachmentContentDisposition = "inline" | "attachment";
920
933
  export interface RetrievedAttachment {
921
934
  /** The type of object. */
922
- object?: string;
935
+ object?: string | undefined;
923
936
  /** The ID of the attachment. */
924
- id?: string;
937
+ id?: string | undefined;
925
938
  /** The filename of the attachment. */
926
- filename?: string;
939
+ filename?: string | undefined;
927
940
  /** The MIME type of the attachment. */
928
- content_type?: string;
941
+ content_type?: string | undefined;
929
942
  /** The content ID for inline attachments. */
930
- content_id?: string;
943
+ content_id?: string | undefined;
931
944
  /** How the attachment should be displayed. */
932
- content_disposition?: RetrievedAttachmentContentDisposition;
945
+ content_disposition?: RetrievedAttachmentContentDisposition | undefined;
933
946
  /** Signed URL to download the attachment content. */
934
- download_url?: string;
947
+ download_url?: string | undefined;
935
948
  /** Timestamp when the download URL expires. */
936
- expires_at?: string;
949
+ expires_at?: string | undefined;
937
950
  /** Size of the attachment in bytes. */
938
- size?: number;
951
+ size?: number | undefined;
939
952
  }
940
953
  export interface GetEmailReceivingRequest {
941
954
  /** The ID of the received email. */
@@ -953,50 +966,50 @@ export type GetReceivedEmailResponseReplyToList = Array<string>;
953
966
  export type GetReceivedEmailResponseAttachmentsItemContentDisposition = "inline" | "attachment";
954
967
  export interface GetReceivedEmailResponseAttachmentsItem {
955
968
  /** The ID of the attachment. */
956
- id?: string;
969
+ id?: string | undefined;
957
970
  /** The filename of the attachment. */
958
- filename?: string;
971
+ filename?: string | undefined;
959
972
  /** The MIME type of the attachment. */
960
- content_type?: string;
973
+ content_type?: string | undefined;
961
974
  /** The content ID for inline attachments. */
962
- content_id?: string;
975
+ content_id?: string | undefined;
963
976
  /** How the attachment should be displayed. */
964
- content_disposition?: GetReceivedEmailResponseAttachmentsItemContentDisposition;
977
+ content_disposition?: GetReceivedEmailResponseAttachmentsItemContentDisposition | undefined;
965
978
  /** Size of the attachment in bytes. */
966
- size?: number;
979
+ size?: number | undefined;
967
980
  }
968
981
  /** Array of attachments. */
969
982
  export type GetReceivedEmailResponseAttachmentsList =
970
983
  Array<GetReceivedEmailResponseAttachmentsItem>;
971
984
  export interface GetReceivedEmailResponse {
972
985
  /** The type of object. */
973
- object?: string;
986
+ object?: string | undefined;
974
987
  /** The ID of the received email. */
975
- id?: string;
988
+ id?: string | undefined;
976
989
  /** The recipient email addresses. */
977
- to?: GetReceivedEmailResponseToList;
990
+ to?: GetReceivedEmailResponseToList | undefined;
978
991
  /** The sender email address. */
979
- from?: string;
992
+ from?: string | undefined;
980
993
  /** The email subject. */
981
- subject?: string;
994
+ subject?: string | undefined;
982
995
  /** The unique message ID from the email headers. */
983
- message_id?: string;
996
+ message_id?: string | undefined;
984
997
  /** The BCC recipients. */
985
- bcc?: GetReceivedEmailResponseBccList | null;
998
+ bcc?: GetReceivedEmailResponseBccList | null | undefined;
986
999
  /** The CC recipients. */
987
- cc?: GetReceivedEmailResponseCcList | null;
1000
+ cc?: GetReceivedEmailResponseCcList | null | undefined;
988
1001
  /** The reply-to addresses. */
989
- reply_to?: GetReceivedEmailResponseReplyToList | null;
1002
+ reply_to?: GetReceivedEmailResponseReplyToList | null | undefined;
990
1003
  /** The HTML content of the email. */
991
- html?: string | null;
1004
+ html?: string | null | undefined;
992
1005
  /** The plain text content of the email. */
993
- text?: string | null;
1006
+ text?: string | null | undefined;
994
1007
  /** The email headers. */
995
- headers?: unknown | null;
1008
+ headers?: unknown | null | undefined;
996
1009
  /** Timestamp when the email was received. */
997
- created_at?: string;
1010
+ created_at?: string | undefined;
998
1011
  /** Array of attachments. */
999
- attachments?: GetReceivedEmailResponseAttachmentsList;
1012
+ attachments?: GetReceivedEmailResponseAttachmentsList | undefined;
1000
1013
  }
1001
1014
  export interface GetEmailReceivingAttachmentRequest {
1002
1015
  /** The ID of the received email. */
@@ -1010,17 +1023,17 @@ export interface GetEventRequest {
1010
1023
  }
1011
1024
  export interface Event {
1012
1025
  /** Type of the response object. */
1013
- object?: string;
1026
+ object?: string | undefined;
1014
1027
  /** The event ID. */
1015
- id?: string;
1028
+ id?: string | undefined;
1016
1029
  /** The event name. */
1017
- name?: string;
1030
+ name?: string | undefined;
1018
1031
  /** A flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
1019
- schema?: unknown | null;
1032
+ schema?: unknown | null | undefined;
1020
1033
  /** The date and time the event was created. */
1021
- created_at?: string;
1034
+ created_at?: string | undefined;
1022
1035
  /** The date and time the event was last updated. */
1023
- updated_at?: string | null;
1036
+ updated_at?: string | null | undefined;
1024
1037
  }
1025
1038
  export interface GetLogRequest {
1026
1039
  /** The ID of the log. */
@@ -1030,23 +1043,23 @@ export interface GetLogRequest {
1030
1043
  export type LogMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
1031
1044
  export interface Log {
1032
1045
  /** Type of the response object. */
1033
- object?: string;
1046
+ object?: string | undefined;
1034
1047
  /** The log ID. */
1035
- id?: string;
1048
+ id?: string | undefined;
1036
1049
  /** The date the log was created. */
1037
- created_at?: string;
1050
+ created_at?: string | undefined;
1038
1051
  /** The API endpoint that was called. */
1039
- endpoint?: string;
1052
+ endpoint?: string | undefined;
1040
1053
  /** The HTTP method used. */
1041
- method?: LogMethod;
1054
+ method?: LogMethod | undefined;
1042
1055
  /** The HTTP status code of the response. */
1043
- response_status?: number;
1056
+ response_status?: number | undefined;
1044
1057
  /** The user agent of the request. */
1045
- user_agent?: string | null;
1058
+ user_agent?: string | null | undefined;
1046
1059
  /** The request body sent to the API. */
1047
- request_body?: unknown | null;
1060
+ request_body?: unknown | null | undefined;
1048
1061
  /** The response body returned by the API. */
1049
- response_body?: unknown | null;
1062
+ response_body?: unknown | null | undefined;
1050
1063
  }
1051
1064
  export interface GetSegmentRequest {
1052
1065
  /** The Segment ID. */
@@ -1054,17 +1067,17 @@ export interface GetSegmentRequest {
1054
1067
  }
1055
1068
  export interface GetSegmentResponseSuccess {
1056
1069
  /** The ID of the segment. */
1057
- id?: string;
1070
+ id?: string | undefined;
1058
1071
  /** The object type. */
1059
- object?: string;
1072
+ object?: string | undefined;
1060
1073
  /** The name of the segment. */
1061
- name?: string;
1074
+ name?: string | undefined;
1062
1075
  /** The ID of the audience this segment belongs to. */
1063
- audience_id?: string;
1076
+ audience_id?: string | undefined;
1064
1077
  /** Filter conditions for the segment. */
1065
- filter?: unknown;
1078
+ filter?: unknown | undefined;
1066
1079
  /** Timestamp indicating when the segment was created. */
1067
- created_at?: string;
1080
+ created_at?: string | undefined;
1068
1081
  }
1069
1082
  export interface GetTemplateRequest {
1070
1083
  /** The Template ID or alias. */
@@ -1084,53 +1097,53 @@ export type TemplateVariableFallbackValue =
1084
1097
  | TemplateVariableFallbackValueCase4List;
1085
1098
  export interface TemplateVariable {
1086
1099
  /** The ID of the template variable. */
1087
- id?: string;
1100
+ id?: string | undefined;
1088
1101
  /** The key of the variable. */
1089
1102
  key: string;
1090
1103
  /** The type of the variable. */
1091
1104
  type: TemplateVariableType;
1092
1105
  /** The fallback value of the variable. */
1093
- fallback_value?: TemplateVariableFallbackValue;
1106
+ fallback_value?: TemplateVariableFallbackValue | undefined;
1094
1107
  /** Timestamp indicating when the variable was created. */
1095
- created_at?: string;
1108
+ created_at?: string | undefined;
1096
1109
  /** Timestamp indicating when the variable was last updated. */
1097
- updated_at?: string;
1110
+ updated_at?: string | undefined;
1098
1111
  }
1099
1112
  export type TemplateVariablesList = Array<TemplateVariable>;
1100
1113
  /** The publication status of the template. */
1101
1114
  export type TemplateStatus = "draft" | "published";
1102
1115
  export interface Template {
1103
1116
  /** The type of object. */
1104
- object?: string;
1117
+ object?: string | undefined;
1105
1118
  /** The ID of the template. */
1106
- id?: string;
1119
+ id?: string | undefined;
1107
1120
  /** The ID of the current version of the template. */
1108
- current_version_id?: string;
1121
+ current_version_id?: string | undefined;
1109
1122
  /** The name of the template. */
1110
- name?: string;
1123
+ name?: string | undefined;
1111
1124
  /** The alias of the template. */
1112
- alias?: string;
1125
+ alias?: string | undefined;
1113
1126
  /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
1114
- from?: string;
1127
+ from?: string | undefined;
1115
1128
  /** Email subject. */
1116
- subject?: string;
1129
+ subject?: string | undefined;
1117
1130
  /** Reply-to email addresses. */
1118
- reply_to?: TemplateReplyToList | null;
1131
+ reply_to?: TemplateReplyToList | null | undefined;
1119
1132
  /** The HTML version of the template. */
1120
- html?: string;
1133
+ html?: string | undefined;
1121
1134
  /** The plain text version of the template. */
1122
- text?: string;
1123
- variables?: TemplateVariablesList;
1135
+ text?: string | undefined;
1136
+ variables?: TemplateVariablesList | undefined;
1124
1137
  /** Timestamp indicating when the template was created. */
1125
- created_at?: string;
1138
+ created_at?: string | undefined;
1126
1139
  /** Timestamp indicating when the template was last updated. */
1127
- updated_at?: string;
1140
+ updated_at?: string | undefined;
1128
1141
  /** The publication status of the template. */
1129
- status?: TemplateStatus;
1142
+ status?: TemplateStatus | undefined;
1130
1143
  /** Timestamp indicating when the template was published. */
1131
- published_at?: string | null;
1144
+ published_at?: string | null | undefined;
1132
1145
  /** Indicates whether the template has unpublished versions. */
1133
- has_unpublished_versions?: boolean;
1146
+ has_unpublished_versions?: boolean | undefined;
1134
1147
  }
1135
1148
  export interface GetTopicRequest {
1136
1149
  /** The Topic ID. */
@@ -1142,19 +1155,19 @@ export type GetTopicResponseSuccessDefaultSubscription = "opt_in" | "opt_out";
1142
1155
  export type GetTopicResponseSuccessVisibility = "public" | "private";
1143
1156
  export interface GetTopicResponseSuccess {
1144
1157
  /** The ID of the topic. */
1145
- id?: string;
1158
+ id?: string | undefined;
1146
1159
  /** The object type. */
1147
- object?: string;
1160
+ object?: string | undefined;
1148
1161
  /** The name of the topic. */
1149
- name?: string;
1162
+ name?: string | undefined;
1150
1163
  /** A description of the topic. */
1151
- description?: string;
1164
+ description?: string | undefined;
1152
1165
  /** The default subscription status for the topic. */
1153
- default_subscription?: GetTopicResponseSuccessDefaultSubscription;
1166
+ default_subscription?: GetTopicResponseSuccessDefaultSubscription | undefined;
1154
1167
  /** The visibility of the topic. */
1155
- visibility?: GetTopicResponseSuccessVisibility;
1168
+ visibility?: GetTopicResponseSuccessVisibility | undefined;
1156
1169
  /** Timestamp indicating when the topic was created. */
1157
- created_at?: string;
1170
+ created_at?: string | undefined;
1158
1171
  }
1159
1172
  export interface GetWebhookRequest {
1160
1173
  /** The Webhook ID. */
@@ -1164,246 +1177,246 @@ export interface GetWebhookRequest {
1164
1177
  export type GetWebhookResponseEventsList = Array<string>;
1165
1178
  export interface GetWebhookResponse {
1166
1179
  /** The type of object. */
1167
- object?: string;
1180
+ object?: string | undefined;
1168
1181
  /** The ID of the webhook. */
1169
- id?: string;
1182
+ id?: string | undefined;
1170
1183
  /** The URL where webhook events are sent. */
1171
- endpoint?: string;
1184
+ endpoint?: string | undefined;
1172
1185
  /** Array of event types subscribed to. */
1173
- events?: GetWebhookResponseEventsList | null;
1186
+ events?: GetWebhookResponseEventsList | null | undefined;
1174
1187
  /** The status of the webhook. */
1175
- status?: string;
1188
+ status?: string | undefined;
1176
1189
  /** Timestamp indicating when the webhook was created. */
1177
- created_at?: string;
1190
+ created_at?: string | undefined;
1178
1191
  /** The secret key used to verify webhook payloads. */
1179
- signing_secret?: string | Redacted.Redacted<string>;
1192
+ signing_secret?: string | Redacted.Redacted<string> | undefined;
1180
1193
  }
1181
1194
  export interface ListApiKeysRequest {
1182
1195
  /** Number of items to return. */
1183
- limit?: number;
1196
+ limit?: number | undefined;
1184
1197
  /** Return items after this cursor. */
1185
- after?: string;
1198
+ after?: string | undefined;
1186
1199
  /** Return items before this cursor. */
1187
- before?: string;
1200
+ before?: string | undefined;
1188
1201
  }
1189
1202
  export interface ApiKey {
1190
1203
  /** The ID of the API key. */
1191
- id?: string;
1204
+ id?: string | undefined;
1192
1205
  /** The name of the API key. */
1193
- name?: string;
1206
+ name?: string | undefined;
1194
1207
  /** The date and time the API key was created. */
1195
- created_at?: string;
1208
+ created_at?: string | undefined;
1196
1209
  /** The date and time the API key was last used. */
1197
- last_used_at?: string | null;
1210
+ last_used_at?: string | null | undefined;
1198
1211
  }
1199
1212
  export type ListApiKeysResponseDataList = Array<ApiKey>;
1200
1213
  export interface ListApiKeysResponse {
1201
1214
  /** Type of the response object. */
1202
- object?: string;
1215
+ object?: string | undefined;
1203
1216
  /** Indicates if there are more results available. */
1204
- has_more?: boolean;
1217
+ has_more?: boolean | undefined;
1205
1218
  data: ListApiKeysResponseDataList;
1206
1219
  }
1207
1220
  export interface ListAutomationRunsRequest {
1208
1221
  /** The ID of the automation. */
1209
1222
  automation_id: string;
1210
1223
  /** Filter runs by status. Comma-separated list of: running, completed, failed, cancelled. */
1211
- status?: string;
1224
+ status?: string | undefined;
1212
1225
  /** Number of items to return. */
1213
- limit?: number;
1226
+ limit?: number | undefined;
1214
1227
  /** Return items after this cursor. */
1215
- after?: string;
1228
+ after?: string | undefined;
1216
1229
  /** Return items before this cursor. */
1217
- before?: string;
1230
+ before?: string | undefined;
1218
1231
  }
1219
1232
  /** The current status of the automation run. */
1220
1233
  export type AutomationRunListItemStatus = "running" | "completed" | "failed" | "cancelled";
1221
1234
  export interface AutomationRunListItem {
1222
1235
  /** The ID of the automation run. */
1223
- id?: string;
1236
+ id?: string | undefined;
1224
1237
  /** The current status of the automation run. */
1225
- status?: AutomationRunListItemStatus;
1238
+ status?: AutomationRunListItemStatus | undefined;
1226
1239
  /** The date and time the run started. */
1227
- started_at?: string | null;
1240
+ started_at?: string | null | undefined;
1228
1241
  /** The date and time the run completed. */
1229
- completed_at?: string | null;
1242
+ completed_at?: string | null | undefined;
1230
1243
  /** The date and time the run was created. */
1231
- created_at?: string;
1244
+ created_at?: string | undefined;
1232
1245
  }
1233
1246
  /** Array of automation runs. */
1234
1247
  export type ListAutomationRunsResponseDataList = Array<AutomationRunListItem>;
1235
1248
  export interface ListAutomationRunsResponse {
1236
1249
  /** Type of the response object. */
1237
- object?: string;
1250
+ object?: string | undefined;
1238
1251
  /** Indicates if there are more results available. */
1239
- has_more?: boolean;
1252
+ has_more?: boolean | undefined;
1240
1253
  /** Array of automation runs. */
1241
1254
  data: ListAutomationRunsResponseDataList;
1242
1255
  }
1243
1256
  export type ListAutomationsRequestStatus = "enabled" | "disabled";
1244
1257
  export interface ListAutomationsRequest {
1245
1258
  /** Filter automations by status. */
1246
- status?: ListAutomationsRequestStatus | (string & {});
1259
+ status?: ListAutomationsRequestStatus | (string & {}) | undefined;
1247
1260
  /** Number of items to return. */
1248
- limit?: number;
1261
+ limit?: number | undefined;
1249
1262
  /** Return items after this cursor. */
1250
- after?: string;
1263
+ after?: string | undefined;
1251
1264
  /** Return items before this cursor. */
1252
- before?: string;
1265
+ before?: string | undefined;
1253
1266
  }
1254
1267
  /** The current status of the automation. */
1255
1268
  export type AutomationListItemStatus = "enabled" | "disabled";
1256
1269
  export interface AutomationListItem {
1257
1270
  /** The ID of the automation. */
1258
- id?: string;
1271
+ id?: string | undefined;
1259
1272
  /** The name of the automation. */
1260
- name?: string;
1273
+ name?: string | undefined;
1261
1274
  /** The current status of the automation. */
1262
- status?: AutomationListItemStatus;
1275
+ status?: AutomationListItemStatus | undefined;
1263
1276
  /** The date and time the automation was created. */
1264
- created_at?: string;
1277
+ created_at?: string | undefined;
1265
1278
  /** The date and time the automation was last updated. */
1266
- updated_at?: string;
1279
+ updated_at?: string | undefined;
1267
1280
  }
1268
1281
  /** Array of automations. */
1269
1282
  export type ListAutomationsResponseDataList = Array<AutomationListItem>;
1270
1283
  export interface ListAutomationsResponse {
1271
1284
  /** Type of the response object. */
1272
- object?: string;
1285
+ object?: string | undefined;
1273
1286
  /** Indicates if there are more results available. */
1274
- has_more?: boolean;
1287
+ has_more?: boolean | undefined;
1275
1288
  /** Array of automations. */
1276
1289
  data: ListAutomationsResponseDataList;
1277
1290
  }
1278
1291
  export interface ListBroadcastsRequest {
1279
1292
  /** Number of items to return. */
1280
- limit?: number;
1293
+ limit?: number | undefined;
1281
1294
  /** Return items after this cursor. */
1282
- after?: string;
1295
+ after?: string | undefined;
1283
1296
  /** Return items before this cursor. */
1284
- before?: string;
1297
+ before?: string | undefined;
1285
1298
  }
1286
1299
  export interface ListBroadcastsResponseSuccessDataItem {
1287
1300
  /** Unique identifier for the broadcast. */
1288
- id?: string;
1301
+ id?: string | undefined;
1289
1302
  /** Name of the broadcast. */
1290
- name?: string;
1303
+ name?: string | undefined;
1291
1304
  /** Deprecated. Use segment_id instead. */
1292
- audience_id?: string;
1305
+ audience_id?: string | undefined;
1293
1306
  /** Unique identifier of the segment this broadcast will be sent to. */
1294
- segment_id?: string;
1307
+ segment_id?: string | undefined;
1295
1308
  /** The status of the broadcast. */
1296
- status?: string;
1309
+ status?: string | undefined;
1297
1310
  /** Timestamp indicating when the broadcast was created. */
1298
- created_at?: string;
1311
+ created_at?: string | undefined;
1299
1312
  /** Timestamp indicating when the broadcast is scheduled to be sent. */
1300
- scheduled_at?: string;
1313
+ scheduled_at?: string | undefined;
1301
1314
  /** Timestamp indicating when the broadcast was sent. */
1302
- sent_at?: string;
1315
+ sent_at?: string | undefined;
1303
1316
  /** The topic ID that the broadcast is scoped to. */
1304
- topic_id?: string;
1317
+ topic_id?: string | undefined;
1305
1318
  }
1306
1319
  /** Array containing broadcast information. */
1307
1320
  export type ListBroadcastsResponseSuccessDataList = Array<ListBroadcastsResponseSuccessDataItem>;
1308
1321
  export interface ListBroadcastsResponseSuccess {
1309
1322
  /** Type of the response object. */
1310
- object?: string;
1323
+ object?: string | undefined;
1311
1324
  /** Indicates if there are more results available. */
1312
- has_more?: boolean;
1325
+ has_more?: boolean | undefined;
1313
1326
  /** Array containing broadcast information. */
1314
1327
  data: ListBroadcastsResponseSuccessDataList;
1315
1328
  }
1316
1329
  export interface ListContactPropertiesRequest {
1317
1330
  /** Number of items to return. */
1318
- limit?: number;
1331
+ limit?: number | undefined;
1319
1332
  /** Return items after this cursor. */
1320
- after?: string;
1333
+ after?: string | undefined;
1321
1334
  /** Return items before this cursor. */
1322
- before?: string;
1335
+ before?: string | undefined;
1323
1336
  }
1324
1337
  /** The default value when the property is not set for a contact. */
1325
1338
  export type ListContactPropertiesResponseSuccessDataItemFallbackValue = string | number;
1326
1339
  export interface ListContactPropertiesResponseSuccessDataItem {
1327
1340
  /** Unique identifier for the contact property. */
1328
- id?: string;
1341
+ id?: string | undefined;
1329
1342
  /** The property key. */
1330
- key?: string;
1343
+ key?: string | undefined;
1331
1344
  /** The property type. */
1332
- type?: string;
1345
+ type?: string | undefined;
1333
1346
  /** The default value when the property is not set for a contact. */
1334
- fallback_value?: ListContactPropertiesResponseSuccessDataItemFallbackValue;
1347
+ fallback_value?: ListContactPropertiesResponseSuccessDataItemFallbackValue | undefined;
1335
1348
  /** Timestamp indicating when the contact property was created. */
1336
- created_at?: string;
1349
+ created_at?: string | undefined;
1337
1350
  }
1338
1351
  /** Array containing contact property information. */
1339
1352
  export type ListContactPropertiesResponseSuccessDataList =
1340
1353
  Array<ListContactPropertiesResponseSuccessDataItem>;
1341
1354
  export interface ListContactPropertiesResponseSuccess {
1342
1355
  /** Type of the response object. */
1343
- object?: string;
1356
+ object?: string | undefined;
1344
1357
  /** Indicates if there are more results available. */
1345
- has_more?: boolean;
1358
+ has_more?: boolean | undefined;
1346
1359
  /** Array containing contact property information. */
1347
1360
  data: ListContactPropertiesResponseSuccessDataList;
1348
1361
  }
1349
1362
  export interface ListContactsRequest {
1350
1363
  /** Filter contacts by segment ID. */
1351
- segment_id?: string;
1364
+ segment_id?: string | undefined;
1352
1365
  /** Number of items to return. */
1353
- limit?: number;
1366
+ limit?: number | undefined;
1354
1367
  /** Return items after this cursor. */
1355
- after?: string;
1368
+ after?: string | undefined;
1356
1369
  /** Return items before this cursor. */
1357
- before?: string;
1370
+ before?: string | undefined;
1358
1371
  }
1359
1372
  export interface ListContactsResponseSuccessDataItem {
1360
1373
  /** Unique identifier for the contact. */
1361
- id?: string;
1374
+ id?: string | undefined;
1362
1375
  /** Email address of the contact. */
1363
- email?: string;
1376
+ email?: string | undefined;
1364
1377
  /** First name of the contact. */
1365
- first_name?: string;
1378
+ first_name?: string | undefined;
1366
1379
  /** Last name of the contact. */
1367
- last_name?: string;
1380
+ last_name?: string | undefined;
1368
1381
  /** Timestamp indicating when the contact was created. */
1369
- created_at?: string;
1382
+ created_at?: string | undefined;
1370
1383
  /** Indicates if the contact is unsubscribed. */
1371
- unsubscribed?: boolean;
1384
+ unsubscribed?: boolean | undefined;
1372
1385
  }
1373
1386
  /** Array containing contact information. */
1374
1387
  export type ListContactsResponseSuccessDataList = Array<ListContactsResponseSuccessDataItem>;
1375
1388
  export interface ListContactsResponseSuccess {
1376
1389
  /** Type of the response object. */
1377
- object?: string;
1390
+ object?: string | undefined;
1378
1391
  /** Array containing contact information. */
1379
- data?: ListContactsResponseSuccessDataList;
1392
+ data?: ListContactsResponseSuccessDataList | undefined;
1380
1393
  }
1381
1394
  export interface ListContactSegmentsRequest {
1382
1395
  /** The Contact ID or email address. */
1383
1396
  contact_id: string;
1384
1397
  /** Number of items to return. */
1385
- limit?: number;
1398
+ limit?: number | undefined;
1386
1399
  /** Return items after this cursor. */
1387
- after?: string;
1400
+ after?: string | undefined;
1388
1401
  /** Return items before this cursor. */
1389
- before?: string;
1402
+ before?: string | undefined;
1390
1403
  }
1391
1404
  export interface ListContactSegmentsResponseSuccessDataItem {
1392
1405
  /** Unique identifier for the segment. */
1393
- id?: string;
1406
+ id?: string | undefined;
1394
1407
  /** Name of the segment. */
1395
- name?: string;
1408
+ name?: string | undefined;
1396
1409
  /** Timestamp indicating when the contact was added to the segment. */
1397
- created_at?: string;
1410
+ created_at?: string | undefined;
1398
1411
  }
1399
1412
  /** Array containing segment information for this contact. */
1400
1413
  export type ListContactSegmentsResponseSuccessDataList =
1401
1414
  Array<ListContactSegmentsResponseSuccessDataItem>;
1402
1415
  export interface ListContactSegmentsResponseSuccess {
1403
1416
  /** Type of the response object. */
1404
- object?: string;
1417
+ object?: string | undefined;
1405
1418
  /** Indicates if there are more results available. */
1406
- has_more?: boolean;
1419
+ has_more?: boolean | undefined;
1407
1420
  /** Array containing segment information for this contact. */
1408
1421
  data: ListContactSegmentsResponseSuccessDataList;
1409
1422
  }
@@ -1411,111 +1424,111 @@ export interface ListContactTopicsRequest {
1411
1424
  /** The Contact ID or email address. */
1412
1425
  contact_id: string;
1413
1426
  /** Number of items to return. */
1414
- limit?: number;
1427
+ limit?: number | undefined;
1415
1428
  /** Return items after this cursor. */
1416
- after?: string;
1429
+ after?: string | undefined;
1417
1430
  /** Return items before this cursor. */
1418
- before?: string;
1431
+ before?: string | undefined;
1419
1432
  }
1420
1433
  /** The subscription status for this topic. */
1421
1434
  export type GetContactTopicsResponseSuccessDataItemSubscription = "opt_in" | "opt_out";
1422
1435
  export interface GetContactTopicsResponseSuccessDataItem {
1423
1436
  /** Unique identifier for the topic. */
1424
- id?: string;
1437
+ id?: string | undefined;
1425
1438
  /** Name of the topic. */
1426
- name?: string;
1439
+ name?: string | undefined;
1427
1440
  /** Description of the topic. */
1428
- description?: string;
1441
+ description?: string | undefined;
1429
1442
  /** The subscription status for this topic. */
1430
- subscription?: GetContactTopicsResponseSuccessDataItemSubscription;
1443
+ subscription?: GetContactTopicsResponseSuccessDataItemSubscription | undefined;
1431
1444
  }
1432
1445
  /** Array containing topic subscriptions for this contact. */
1433
1446
  export type GetContactTopicsResponseSuccessDataList =
1434
1447
  Array<GetContactTopicsResponseSuccessDataItem>;
1435
1448
  export interface GetContactTopicsResponseSuccess {
1436
1449
  /** Type of the response object. */
1437
- object?: string;
1450
+ object?: string | undefined;
1438
1451
  /** Indicates if there are more results available. */
1439
- has_more?: boolean;
1452
+ has_more?: boolean | undefined;
1440
1453
  /** Array containing topic subscriptions for this contact. */
1441
1454
  data: GetContactTopicsResponseSuccessDataList;
1442
1455
  }
1443
1456
  export interface ListDomainsRequest {
1444
1457
  /** Number of items to return. */
1445
- limit?: number;
1458
+ limit?: number | undefined;
1446
1459
  /** Return items after this cursor. */
1447
- after?: string;
1460
+ after?: string | undefined;
1448
1461
  /** Return items before this cursor. */
1449
- before?: string;
1462
+ before?: string | undefined;
1450
1463
  }
1451
1464
  export interface ListDomainsItem {
1452
1465
  /** The ID of the domain. */
1453
- id?: string;
1466
+ id?: string | undefined;
1454
1467
  /** The name of the domain. */
1455
- name?: string;
1468
+ name?: string | undefined;
1456
1469
  /** The status of the domain. */
1457
- status?: string;
1470
+ status?: string | undefined;
1458
1471
  /** The date and time the domain was created. */
1459
- created_at?: string;
1472
+ created_at?: string | undefined;
1460
1473
  /** The region where the domain is hosted. */
1461
- region?: string;
1462
- capabilities?: DomainCapabilities;
1474
+ region?: string | undefined;
1475
+ capabilities?: DomainCapabilities | undefined;
1463
1476
  }
1464
1477
  export type ListDomainsResponseDataList = Array<ListDomainsItem>;
1465
1478
  export interface ListDomainsResponse {
1466
1479
  /** Type of the response object. */
1467
- object?: string;
1480
+ object?: string | undefined;
1468
1481
  /** Indicates if there are more results available. */
1469
- has_more?: boolean;
1482
+ has_more?: boolean | undefined;
1470
1483
  data: ListDomainsResponseDataList;
1471
1484
  }
1472
1485
  export interface ListEmailAttachmentsRequest {
1473
1486
  /** The ID of the email. */
1474
1487
  email_id: string;
1475
1488
  /** Maximum number of attachments to return. */
1476
- limit?: number;
1489
+ limit?: number | undefined;
1477
1490
  /** Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'. */
1478
- after?: string;
1491
+ after?: string | undefined;
1479
1492
  /** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
1480
- before?: string;
1493
+ before?: string | undefined;
1481
1494
  }
1482
1495
  /** How the attachment should be displayed. */
1483
1496
  export type ListAttachmentsResponseDataItemContentDisposition = "inline" | "attachment";
1484
1497
  export interface ListAttachmentsResponseDataItem {
1485
1498
  /** The ID of the attachment. */
1486
- id?: string;
1499
+ id?: string | undefined;
1487
1500
  /** The filename of the attachment. */
1488
- filename?: string;
1501
+ filename?: string | undefined;
1489
1502
  /** The MIME type of the attachment. */
1490
- content_type?: string;
1503
+ content_type?: string | undefined;
1491
1504
  /** The content ID for inline attachments. */
1492
- content_id?: string;
1505
+ content_id?: string | undefined;
1493
1506
  /** How the attachment should be displayed. */
1494
- content_disposition?: ListAttachmentsResponseDataItemContentDisposition;
1507
+ content_disposition?: ListAttachmentsResponseDataItemContentDisposition | undefined;
1495
1508
  /** Signed URL to download the attachment content. */
1496
- download_url?: string;
1509
+ download_url?: string | undefined;
1497
1510
  /** Timestamp when the download URL expires. */
1498
- expires_at?: string;
1511
+ expires_at?: string | undefined;
1499
1512
  /** Size of the attachment in bytes. */
1500
- size?: number;
1513
+ size?: number | undefined;
1501
1514
  }
1502
1515
  /** Array containing attachment information. */
1503
1516
  export type ListAttachmentsResponseDataList = Array<ListAttachmentsResponseDataItem>;
1504
1517
  export interface ListAttachmentsResponse {
1505
1518
  /** Type of the response object. */
1506
- object?: string;
1519
+ object?: string | undefined;
1507
1520
  /** Indicates if there are more results available. */
1508
- has_more?: boolean;
1521
+ has_more?: boolean | undefined;
1509
1522
  /** Array containing attachment information. */
1510
1523
  data: ListAttachmentsResponseDataList;
1511
1524
  }
1512
1525
  export interface ListEmailReceivingRequest {
1513
1526
  /** Maximum number of received emails to return. */
1514
- limit?: number;
1527
+ limit?: number | undefined;
1515
1528
  /** Pagination cursor to fetch results after this email ID. Cannot be used with 'before'. */
1516
- after?: string;
1529
+ after?: string | undefined;
1517
1530
  /** Pagination cursor to fetch results before this email ID. Cannot be used with 'after'. */
1518
- before?: string;
1531
+ before?: string | undefined;
1519
1532
  }
1520
1533
  /** The recipient email addresses. */
1521
1534
  export type ListReceivedEmailsResponseDataItemToList = Array<string>;
@@ -1531,50 +1544,52 @@ export type ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition
1531
1544
  | "attachment";
1532
1545
  export interface ListReceivedEmailsResponseDataItemAttachmentsItem {
1533
1546
  /** The ID of the attachment. */
1534
- id?: string;
1547
+ id?: string | undefined;
1535
1548
  /** The filename of the attachment. */
1536
- filename?: string;
1549
+ filename?: string | undefined;
1537
1550
  /** The MIME type of the attachment. */
1538
- content_type?: string;
1551
+ content_type?: string | undefined;
1539
1552
  /** The content ID for inline attachments. */
1540
- content_id?: string;
1553
+ content_id?: string | undefined;
1541
1554
  /** How the attachment should be displayed. */
1542
- content_disposition?: ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition;
1555
+ content_disposition?:
1556
+ | ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition
1557
+ | undefined;
1543
1558
  /** Size of the attachment in bytes. */
1544
- size?: number;
1559
+ size?: number | undefined;
1545
1560
  }
1546
1561
  /** Array of attachments for this email. */
1547
1562
  export type ListReceivedEmailsResponseDataItemAttachmentsList =
1548
1563
  Array<ListReceivedEmailsResponseDataItemAttachmentsItem>;
1549
1564
  export interface ListReceivedEmailsResponseDataItem {
1550
1565
  /** The ID of the received email. */
1551
- id?: string;
1566
+ id?: string | undefined;
1552
1567
  /** The recipient email addresses. */
1553
- to?: ListReceivedEmailsResponseDataItemToList;
1568
+ to?: ListReceivedEmailsResponseDataItemToList | undefined;
1554
1569
  /** The sender email address. */
1555
- from?: string;
1570
+ from?: string | undefined;
1556
1571
  /** The email subject. */
1557
- subject?: string | null;
1572
+ subject?: string | null | undefined;
1558
1573
  /** The unique message ID from the email headers. */
1559
- message_id?: string;
1574
+ message_id?: string | undefined;
1560
1575
  /** The BCC recipients. */
1561
- bcc?: ListReceivedEmailsResponseDataItemBccList | null;
1576
+ bcc?: ListReceivedEmailsResponseDataItemBccList | null | undefined;
1562
1577
  /** The CC recipients. */
1563
- cc?: ListReceivedEmailsResponseDataItemCcList | null;
1578
+ cc?: ListReceivedEmailsResponseDataItemCcList | null | undefined;
1564
1579
  /** The reply-to addresses. */
1565
- reply_to?: ListReceivedEmailsResponseDataItemReplyToList | null;
1580
+ reply_to?: ListReceivedEmailsResponseDataItemReplyToList | null | undefined;
1566
1581
  /** Timestamp when the email was received. */
1567
- created_at?: string;
1582
+ created_at?: string | undefined;
1568
1583
  /** Array of attachments for this email. */
1569
- attachments?: ListReceivedEmailsResponseDataItemAttachmentsList;
1584
+ attachments?: ListReceivedEmailsResponseDataItemAttachmentsList | undefined;
1570
1585
  }
1571
1586
  /** Array containing received email information. */
1572
1587
  export type ListReceivedEmailsResponseDataList = Array<ListReceivedEmailsResponseDataItem>;
1573
1588
  export interface ListReceivedEmailsResponse {
1574
1589
  /** Type of the response object. */
1575
- object?: string;
1590
+ object?: string | undefined;
1576
1591
  /** Indicates if there are more results available. */
1577
- has_more?: boolean;
1592
+ has_more?: boolean | undefined;
1578
1593
  /** Array containing received email information. */
1579
1594
  data: ListReceivedEmailsResponseDataList;
1580
1595
  }
@@ -1582,165 +1597,165 @@ export interface ListEmailReceivingAttachmentsRequest {
1582
1597
  /** The ID of the received email. */
1583
1598
  email_id: string;
1584
1599
  /** Maximum number of attachments to return. */
1585
- limit?: number;
1600
+ limit?: number | undefined;
1586
1601
  /** Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'. */
1587
- after?: string;
1602
+ after?: string | undefined;
1588
1603
  /** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
1589
- before?: string;
1604
+ before?: string | undefined;
1590
1605
  }
1591
1606
  export interface ListEmailsRequest {
1592
1607
  /** Number of items to return. */
1593
- limit?: number;
1608
+ limit?: number | undefined;
1594
1609
  /** Return items after this cursor. */
1595
- after?: string;
1610
+ after?: string | undefined;
1596
1611
  /** Return items before this cursor. */
1597
- before?: string;
1612
+ before?: string | undefined;
1598
1613
  }
1599
1614
  /** Array containing email information. */
1600
1615
  export type ListEmailsResponseDataList = Array<Email>;
1601
1616
  export interface ListEmailsResponse {
1602
1617
  /** Type of the response object. */
1603
- object?: string;
1618
+ object?: string | undefined;
1604
1619
  /** Indicates if there are more results available. */
1605
- has_more?: boolean;
1620
+ has_more?: boolean | undefined;
1606
1621
  /** Array containing email information. */
1607
1622
  data: ListEmailsResponseDataList;
1608
1623
  }
1609
1624
  export interface ListEventsRequest {
1610
1625
  /** Number of items to return. */
1611
- limit?: number;
1626
+ limit?: number | undefined;
1612
1627
  /** Return items after this cursor. */
1613
- after?: string;
1628
+ after?: string | undefined;
1614
1629
  /** Return items before this cursor. */
1615
- before?: string;
1630
+ before?: string | undefined;
1616
1631
  }
1617
1632
  export interface EventSummary {
1618
1633
  /** The event ID. */
1619
- id?: string;
1634
+ id?: string | undefined;
1620
1635
  /** The event name. */
1621
- name?: string;
1636
+ name?: string | undefined;
1622
1637
  /** A flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
1623
- schema?: unknown | null;
1638
+ schema?: unknown | null | undefined;
1624
1639
  /** The date and time the event was created. */
1625
- created_at?: string;
1640
+ created_at?: string | undefined;
1626
1641
  /** The date and time the event was last updated. */
1627
- updated_at?: string | null;
1642
+ updated_at?: string | null | undefined;
1628
1643
  }
1629
1644
  /** Array containing event information. */
1630
1645
  export type ListEventsResponseDataList = Array<EventSummary>;
1631
1646
  export interface ListEventsResponse {
1632
1647
  /** Type of the response object. */
1633
- object?: string;
1648
+ object?: string | undefined;
1634
1649
  /** Indicates if there are more results available. */
1635
- has_more?: boolean;
1650
+ has_more?: boolean | undefined;
1636
1651
  /** Array containing event information. */
1637
1652
  data: ListEventsResponseDataList;
1638
1653
  }
1639
1654
  export interface ListLogsRequest {
1640
1655
  /** Number of items to return. */
1641
- limit?: number;
1656
+ limit?: number | undefined;
1642
1657
  /** Return items after this cursor. */
1643
- after?: string;
1658
+ after?: string | undefined;
1644
1659
  /** Return items before this cursor. */
1645
- before?: string;
1660
+ before?: string | undefined;
1646
1661
  }
1647
1662
  /** The HTTP method used. */
1648
1663
  export type LogSummaryMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
1649
1664
  export interface LogSummary {
1650
1665
  /** The log ID. */
1651
- id?: string;
1666
+ id?: string | undefined;
1652
1667
  /** The date the log was created. */
1653
- created_at?: string;
1668
+ created_at?: string | undefined;
1654
1669
  /** The API endpoint that was called. */
1655
- endpoint?: string;
1670
+ endpoint?: string | undefined;
1656
1671
  /** The HTTP method used. */
1657
- method?: LogSummaryMethod;
1672
+ method?: LogSummaryMethod | undefined;
1658
1673
  /** The HTTP status code of the response. */
1659
- response_status?: number;
1674
+ response_status?: number | undefined;
1660
1675
  /** The user agent of the request. */
1661
- user_agent?: string | null;
1676
+ user_agent?: string | null | undefined;
1662
1677
  }
1663
1678
  /** Array containing log information. */
1664
1679
  export type ListLogsResponseDataList = Array<LogSummary>;
1665
1680
  export interface ListLogsResponse {
1666
1681
  /** Type of the response object. */
1667
- object?: string;
1682
+ object?: string | undefined;
1668
1683
  /** Indicates if there are more results available. */
1669
- has_more?: boolean;
1684
+ has_more?: boolean | undefined;
1670
1685
  /** Array containing log information. */
1671
1686
  data: ListLogsResponseDataList;
1672
1687
  }
1673
1688
  export interface ListSegmentsRequest {
1674
1689
  /** Number of items to return. */
1675
- limit?: number;
1690
+ limit?: number | undefined;
1676
1691
  /** Return items after this cursor. */
1677
- after?: string;
1692
+ after?: string | undefined;
1678
1693
  /** Return items before this cursor. */
1679
- before?: string;
1694
+ before?: string | undefined;
1680
1695
  }
1681
1696
  export interface ListSegmentsResponseSuccessDataItem {
1682
1697
  /** Unique identifier for the segment. */
1683
- id?: string;
1698
+ id?: string | undefined;
1684
1699
  /** Name of the segment. */
1685
- name?: string;
1700
+ name?: string | undefined;
1686
1701
  /** The ID of the audience this segment belongs to. */
1687
- audience_id?: string;
1702
+ audience_id?: string | undefined;
1688
1703
  /** Timestamp indicating when the segment was created. */
1689
- created_at?: string;
1704
+ created_at?: string | undefined;
1690
1705
  }
1691
1706
  /** Array containing segment information. */
1692
1707
  export type ListSegmentsResponseSuccessDataList = Array<ListSegmentsResponseSuccessDataItem>;
1693
1708
  export interface ListSegmentsResponseSuccess {
1694
1709
  /** Type of the response object. */
1695
- object?: string;
1710
+ object?: string | undefined;
1696
1711
  /** Indicates if there are more results available. */
1697
- has_more?: boolean;
1712
+ has_more?: boolean | undefined;
1698
1713
  /** Array containing segment information. */
1699
1714
  data: ListSegmentsResponseSuccessDataList;
1700
1715
  }
1701
1716
  export interface ListTemplatesRequest {
1702
1717
  /** Number of items to return. */
1703
- limit?: number;
1718
+ limit?: number | undefined;
1704
1719
  /** Return items after this cursor. */
1705
- after?: string;
1720
+ after?: string | undefined;
1706
1721
  /** Return items before this cursor. */
1707
- before?: string;
1722
+ before?: string | undefined;
1708
1723
  }
1709
1724
  /** The publication status of the template. */
1710
1725
  export type TemplateListItemStatus = "draft" | "published";
1711
1726
  export interface TemplateListItem {
1712
1727
  /** The ID of the template. */
1713
- id?: string;
1728
+ id?: string | undefined;
1714
1729
  /** The name of the template. */
1715
- name?: string;
1730
+ name?: string | undefined;
1716
1731
  /** The publication status of the template. */
1717
- status?: TemplateListItemStatus;
1732
+ status?: TemplateListItemStatus | undefined;
1718
1733
  /** Timestamp indicating when the template was published. */
1719
- published_at?: string | null;
1734
+ published_at?: string | null | undefined;
1720
1735
  /** Timestamp indicating when the template was created. */
1721
- created_at?: string;
1736
+ created_at?: string | undefined;
1722
1737
  /** Timestamp indicating when the template was last updated. */
1723
- updated_at?: string;
1738
+ updated_at?: string | undefined;
1724
1739
  /** The alias of the template. */
1725
- alias?: string;
1740
+ alias?: string | undefined;
1726
1741
  }
1727
1742
  /** Array containing templates information. */
1728
1743
  export type ListTemplatesResponseSuccessDataList = Array<TemplateListItem>;
1729
1744
  export interface ListTemplatesResponseSuccess {
1730
1745
  /** Type of the response object. */
1731
- object?: string;
1746
+ object?: string | undefined;
1732
1747
  /** Array containing templates information. */
1733
1748
  data: ListTemplatesResponseSuccessDataList;
1734
1749
  /** Indicates if there are more templates to retrieve. */
1735
- has_more?: boolean;
1750
+ has_more?: boolean | undefined;
1736
1751
  }
1737
1752
  export interface ListTopicsRequest {
1738
1753
  /** Number of items to return. */
1739
- limit?: number;
1754
+ limit?: number | undefined;
1740
1755
  /** Return items after this cursor. */
1741
- after?: string;
1756
+ after?: string | undefined;
1742
1757
  /** Return items before this cursor. */
1743
- before?: string;
1758
+ before?: string | undefined;
1744
1759
  }
1745
1760
  /** The default subscription status for the topic. */
1746
1761
  export type ListTopicsResponseSuccessDataItemDefaultSubscription = "opt_in" | "opt_out";
@@ -1748,57 +1763,57 @@ export type ListTopicsResponseSuccessDataItemDefaultSubscription = "opt_in" | "o
1748
1763
  export type ListTopicsResponseSuccessDataItemVisibility = "public" | "private";
1749
1764
  export interface ListTopicsResponseSuccessDataItem {
1750
1765
  /** Unique identifier for the topic. */
1751
- id?: string;
1766
+ id?: string | undefined;
1752
1767
  /** Name of the topic. */
1753
- name?: string;
1768
+ name?: string | undefined;
1754
1769
  /** A description of the topic. */
1755
- description?: string;
1770
+ description?: string | undefined;
1756
1771
  /** The default subscription status for the topic. */
1757
- default_subscription?: ListTopicsResponseSuccessDataItemDefaultSubscription;
1772
+ default_subscription?: ListTopicsResponseSuccessDataItemDefaultSubscription | undefined;
1758
1773
  /** The visibility of the topic. */
1759
- visibility?: ListTopicsResponseSuccessDataItemVisibility;
1774
+ visibility?: ListTopicsResponseSuccessDataItemVisibility | undefined;
1760
1775
  /** Timestamp indicating when the topic was created. */
1761
- created_at?: string;
1776
+ created_at?: string | undefined;
1762
1777
  }
1763
1778
  /** Array containing topic information. */
1764
1779
  export type ListTopicsResponseSuccessDataList = Array<ListTopicsResponseSuccessDataItem>;
1765
1780
  export interface ListTopicsResponseSuccess {
1766
1781
  /** Type of the response object. */
1767
- object?: string;
1782
+ object?: string | undefined;
1768
1783
  /** Indicates if there are more results available. */
1769
- has_more?: boolean;
1784
+ has_more?: boolean | undefined;
1770
1785
  /** Array containing topic information. */
1771
1786
  data: ListTopicsResponseSuccessDataList;
1772
1787
  }
1773
1788
  export interface ListWebhooksRequest {
1774
1789
  /** Maximum number of webhooks to return. */
1775
- limit?: number;
1790
+ limit?: number | undefined;
1776
1791
  /** Pagination cursor to fetch results after this webhook ID. Cannot be used with 'before'. */
1777
- after?: string;
1792
+ after?: string | undefined;
1778
1793
  /** Pagination cursor to fetch results before this webhook ID. Cannot be used with 'after'. */
1779
- before?: string;
1794
+ before?: string | undefined;
1780
1795
  }
1781
1796
  /** Array of event types subscribed to. */
1782
1797
  export type ListWebhooksResponseDataItemEventsList = Array<string>;
1783
1798
  export interface ListWebhooksResponseDataItem {
1784
1799
  /** The ID of the webhook. */
1785
- id?: string;
1800
+ id?: string | undefined;
1786
1801
  /** The URL where webhook events are sent. */
1787
- endpoint?: string;
1802
+ endpoint?: string | undefined;
1788
1803
  /** Array of event types subscribed to. */
1789
- events?: ListWebhooksResponseDataItemEventsList | null;
1804
+ events?: ListWebhooksResponseDataItemEventsList | null | undefined;
1790
1805
  /** The status of the webhook. */
1791
- status?: string;
1806
+ status?: string | undefined;
1792
1807
  /** Timestamp indicating when the webhook was created. */
1793
- created_at?: string;
1808
+ created_at?: string | undefined;
1794
1809
  }
1795
1810
  /** Array containing webhook information. */
1796
1811
  export type ListWebhooksResponseDataList = Array<ListWebhooksResponseDataItem>;
1797
1812
  export interface ListWebhooksResponse {
1798
1813
  /** Type of the response object. */
1799
- object?: string;
1814
+ object?: string | undefined;
1800
1815
  /** Indicates if there are more results available. */
1801
- has_more?: boolean;
1816
+ has_more?: boolean | undefined;
1802
1817
  /** Array containing webhook information. */
1803
1818
  data: ListWebhooksResponseDataList;
1804
1819
  }
@@ -1808,19 +1823,19 @@ export interface PublishTemplateRequest {
1808
1823
  }
1809
1824
  export interface PublishTemplateResponseSuccess {
1810
1825
  /** The ID of the template. */
1811
- id?: string;
1826
+ id?: string | undefined;
1812
1827
  /** The object type of the response. */
1813
- object?: string;
1828
+ object?: string | undefined;
1814
1829
  }
1815
1830
  export interface SendBroadcastRequest {
1816
1831
  /** The Broadcast ID. */
1817
1832
  id: string;
1818
1833
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
1819
- scheduled_at?: string;
1834
+ scheduled_at?: string | undefined;
1820
1835
  }
1821
1836
  export interface SendBroadcastResponseSuccess {
1822
1837
  /** The ID of the broadcast. */
1823
- id?: string;
1838
+ id?: string | undefined;
1824
1839
  }
1825
1840
  /** An optional payload of key/value pairs to include with the event. */
1826
1841
  export type SendEventRequestPayloadMap = { [key: string]: unknown | undefined };
@@ -1828,11 +1843,11 @@ export interface SendEventRequest {
1828
1843
  /** The name of the event to send. */
1829
1844
  event: string;
1830
1845
  /** The ID of the contact to associate with this event. Exactly one of `contact_id` or `email` must be provided. */
1831
- contact_id?: string;
1846
+ contact_id?: string | undefined;
1832
1847
  /** The email address to associate with this event. Exactly one of `contact_id` or `email` must be provided. */
1833
- email?: string;
1848
+ email?: string | undefined;
1834
1849
  /** An optional payload of key/value pairs to include with the event. */
1835
- payload?: SendEventRequestPayloadMap;
1850
+ payload?: SendEventRequestPayloadMap | undefined;
1836
1851
  }
1837
1852
  export interface SendEventResponse {}
1838
1853
  export interface StopAutomationRequest {
@@ -1841,11 +1856,11 @@ export interface StopAutomationRequest {
1841
1856
  }
1842
1857
  export interface StopAutomationResponse {
1843
1858
  /** Type of the response object. */
1844
- object?: string;
1859
+ object?: string | undefined;
1845
1860
  /** The ID of the stopped automation. */
1846
- id?: string;
1861
+ id?: string | undefined;
1847
1862
  /** The status of the automation after stopping. */
1848
- status?: string;
1863
+ status?: string | undefined;
1849
1864
  }
1850
1865
  /** The status of the automation. */
1851
1866
  export type UpdateAutomationRequestStatus = "enabled" | "disabled";
@@ -1857,19 +1872,19 @@ export interface UpdateAutomationRequest {
1857
1872
  /** The ID of the automation. */
1858
1873
  automation_id: string;
1859
1874
  /** The name of the automation. */
1860
- name?: string;
1875
+ name?: string | undefined;
1861
1876
  /** The status of the automation. */
1862
- status?: UpdateAutomationRequestStatus | (string & {});
1877
+ status?: UpdateAutomationRequestStatus | (string & {}) | undefined;
1863
1878
  /** The steps that compose the automation workflow. Must be provided together with `connections`. */
1864
- steps?: UpdateAutomationRequestStepsList;
1879
+ steps?: UpdateAutomationRequestStepsList | undefined;
1865
1880
  /** The connections between steps in the automation graph. Must be provided together with `steps`. */
1866
- connections?: UpdateAutomationRequestConnectionsList;
1881
+ connections?: UpdateAutomationRequestConnectionsList | undefined;
1867
1882
  }
1868
1883
  export interface PatchAutomationResponse {
1869
1884
  /** Type of the response object. */
1870
- object?: string;
1885
+ object?: string | undefined;
1871
1886
  /** The ID of the updated automation. */
1872
- id?: string;
1887
+ id?: string | undefined;
1873
1888
  }
1874
1889
  /** The email addresses to which replies should be sent. */
1875
1890
  export type UpdateBroadcastRequestReplyToList = Array<string>;
@@ -1877,31 +1892,31 @@ export interface UpdateBroadcastRequest {
1877
1892
  /** The Broadcast ID. */
1878
1893
  id: string;
1879
1894
  /** Name of the broadcast. */
1880
- name?: string;
1895
+ name?: string | undefined;
1881
1896
  /** Use `segment_id` instead. Unique identifier of the audience this broadcast will be sent to. */
1882
- audience_id?: string;
1897
+ audience_id?: string | undefined;
1883
1898
  /** Unique identifier of the segment this broadcast will be sent to. */
1884
- segment_id?: string;
1899
+ segment_id?: string | undefined;
1885
1900
  /** The email address of the sender. */
1886
- from?: string;
1901
+ from?: string | undefined;
1887
1902
  /** The subject line of the email. */
1888
- subject?: string;
1903
+ subject?: string | undefined;
1889
1904
  /** The email addresses to which replies should be sent. */
1890
- reply_to?: UpdateBroadcastRequestReplyToList;
1905
+ reply_to?: UpdateBroadcastRequestReplyToList | undefined;
1891
1906
  /** The preview text of the email. */
1892
- preview_text?: string;
1907
+ preview_text?: string | undefined;
1893
1908
  /** The HTML version of the message. */
1894
- html?: string;
1909
+ html?: string | undefined;
1895
1910
  /** The plain text version of the message. */
1896
- text?: string;
1911
+ text?: string | undefined;
1897
1912
  /** The topic ID that the broadcast will be scoped to. */
1898
- topic_id?: string;
1913
+ topic_id?: string | undefined;
1899
1914
  }
1900
1915
  export interface UpdateBroadcastResponseSuccess {
1901
1916
  /** The ID of the broadcast. */
1902
- id?: string;
1917
+ id?: string | undefined;
1903
1918
  /** The object type of the response. */
1904
- object?: string;
1919
+ object?: string | undefined;
1905
1920
  }
1906
1921
  /** A map of custom property keys and values to update. */
1907
1922
  export type UpdateContactRequestPropertiesMap = { [key: string]: unknown | undefined };
@@ -1909,21 +1924,21 @@ export interface UpdateContactRequest {
1909
1924
  /** The Contact ID or email address. */
1910
1925
  id: string;
1911
1926
  /** Email address of the contact. */
1912
- email?: string;
1927
+ email?: string | undefined;
1913
1928
  /** First name of the contact. */
1914
- first_name?: string;
1929
+ first_name?: string | undefined;
1915
1930
  /** Last name of the contact. */
1916
- last_name?: string;
1931
+ last_name?: string | undefined;
1917
1932
  /** The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts. */
1918
- unsubscribed?: boolean;
1933
+ unsubscribed?: boolean | undefined;
1919
1934
  /** A map of custom property keys and values to update. */
1920
- properties?: UpdateContactRequestPropertiesMap;
1935
+ properties?: UpdateContactRequestPropertiesMap | undefined;
1921
1936
  }
1922
1937
  export interface UpdateContactResponseSuccess {
1923
1938
  /** Type of the response object. */
1924
- object?: string;
1939
+ object?: string | undefined;
1925
1940
  /** Unique identifier for the updated contact. */
1926
- id?: string;
1941
+ id?: string | undefined;
1927
1942
  }
1928
1943
  /** The default value to use when the property is not set for a contact. Must match the type of the property. */
1929
1944
  export type UpdateContactPropertyRequestFallbackValue = string | number;
@@ -1931,13 +1946,13 @@ export interface UpdateContactPropertyRequest {
1931
1946
  /** The Contact Property ID. */
1932
1947
  id: string;
1933
1948
  /** The default value to use when the property is not set for a contact. Must match the type of the property. */
1934
- fallback_value?: UpdateContactPropertyRequestFallbackValue;
1949
+ fallback_value?: UpdateContactPropertyRequestFallbackValue | undefined;
1935
1950
  }
1936
1951
  export interface UpdateContactPropertyResponseSuccess {
1937
1952
  /** The ID of the contact property. */
1938
- id?: string;
1953
+ id?: string | undefined;
1939
1954
  /** The object type. */
1940
- object?: string;
1955
+ object?: string | undefined;
1941
1956
  }
1942
1957
  export interface UpdateContactSegmentRequest {
1943
1958
  /** The Contact ID or email address. */
@@ -1947,19 +1962,19 @@ export interface UpdateContactSegmentRequest {
1947
1962
  }
1948
1963
  export interface AddContactToSegmentResponseSuccess {
1949
1964
  /** The object type. */
1950
- object?: string;
1965
+ object?: string | undefined;
1951
1966
  /** The ID of the contact. */
1952
- contact_id?: string;
1967
+ contact_id?: string | undefined;
1953
1968
  /** The ID of the segment. */
1954
- segment_id?: string;
1969
+ segment_id?: string | undefined;
1955
1970
  }
1956
1971
  /** The subscription status (opt_in or opt_out). */
1957
1972
  export type UpdateContactTopicsRequestTopicsItemSubscription = "opt_in" | "opt_out";
1958
1973
  export interface UpdateContactTopicsRequestTopicsItem {
1959
1974
  /** The ID of the topic. */
1960
- id?: string;
1975
+ id?: string | undefined;
1961
1976
  /** The subscription status (opt_in or opt_out). */
1962
- subscription?: UpdateContactTopicsRequestTopicsItemSubscription | (string & {});
1977
+ subscription?: UpdateContactTopicsRequestTopicsItemSubscription | (string & {}) | undefined;
1963
1978
  }
1964
1979
  export type UpdateContactTopicsRequestTopicsList = Array<UpdateContactTopicsRequestTopicsItem>;
1965
1980
  export interface UpdateContactTopicsRequest {
@@ -1971,39 +1986,39 @@ export interface UpdateContactTopicsRequest {
1971
1986
  export type UpdateContactTopicsResponseSuccessTopicsItemSubscription = "opt_in" | "opt_out";
1972
1987
  export interface UpdateContactTopicsResponseSuccessTopicsItem {
1973
1988
  /** The ID of the topic. */
1974
- id?: string;
1989
+ id?: string | undefined;
1975
1990
  /** The subscription status. */
1976
- subscription?: UpdateContactTopicsResponseSuccessTopicsItemSubscription;
1991
+ subscription?: UpdateContactTopicsResponseSuccessTopicsItemSubscription | undefined;
1977
1992
  }
1978
1993
  /** Array of updated topic subscriptions. */
1979
1994
  export type UpdateContactTopicsResponseSuccessTopicsList =
1980
1995
  Array<UpdateContactTopicsResponseSuccessTopicsItem>;
1981
1996
  export interface UpdateContactTopicsResponseSuccess {
1982
1997
  /** The object type. */
1983
- object?: string;
1998
+ object?: string | undefined;
1984
1999
  /** The ID of the contact. */
1985
- contact_id?: string;
2000
+ contact_id?: string | undefined;
1986
2001
  /** Array of updated topic subscriptions. */
1987
- topics?: UpdateContactTopicsResponseSuccessTopicsList;
2002
+ topics?: UpdateContactTopicsResponseSuccessTopicsList | undefined;
1988
2003
  }
1989
2004
  export interface UpdateDomainRequest {
1990
2005
  /** The ID of the domain. */
1991
2006
  domain_id: string;
1992
2007
  /** Track the open rate of each email. */
1993
- open_tracking?: boolean;
2008
+ open_tracking?: boolean | undefined;
1994
2009
  /** Track clicks within the body of each HTML email. */
1995
- click_tracking?: boolean;
2010
+ click_tracking?: boolean | undefined;
1996
2011
  /** enforced | opportunistic. */
1997
- tls?: string;
1998
- capabilities?: DomainCapabilities;
2012
+ tls?: string | undefined;
2013
+ capabilities?: DomainCapabilities | undefined;
1999
2014
  /** The subdomain to use for click and open tracking. */
2000
- tracking_subdomain?: string;
2015
+ tracking_subdomain?: string | undefined;
2001
2016
  }
2002
2017
  export interface UpdateDomainResponseSuccess {
2003
2018
  /** The ID of the updated domain. */
2004
- id?: string;
2019
+ id?: string | undefined;
2005
2020
  /** The object type representing the updated domain. */
2006
- object?: string;
2021
+ object?: string | undefined;
2007
2022
  }
2008
2023
  export interface UpdateEmailRequest {
2009
2024
  /** The ID of the email. */
@@ -2011,7 +2026,7 @@ export interface UpdateEmailRequest {
2011
2026
  }
2012
2027
  export interface UpdateEmailOptions {
2013
2028
  /** Schedule email to be sent later. The date should be in ISO 8601 format. */
2014
- scheduled_at?: string;
2029
+ scheduled_at?: string | undefined;
2015
2030
  }
2016
2031
  export interface UpdateEventRequest {
2017
2032
  /** The event ID (UUID) or event name. */
@@ -2021,9 +2036,9 @@ export interface UpdateEventRequest {
2021
2036
  }
2022
2037
  export interface UpdateEventResponse {
2023
2038
  /** Type of the response object. */
2024
- object?: string;
2039
+ object?: string | undefined;
2025
2040
  /** The ID of the updated event. */
2026
- id?: string;
2041
+ id?: string | undefined;
2027
2042
  }
2028
2043
  /** Reply-to email addresses. */
2029
2044
  export type UpdateTemplateRequestReplyToList = Array<string>;
@@ -2032,26 +2047,26 @@ export interface UpdateTemplateRequest {
2032
2047
  /** The Template ID or alias. */
2033
2048
  id: string;
2034
2049
  /** The name of the template. */
2035
- name?: string;
2050
+ name?: string | undefined;
2036
2051
  /** The alias of the template. */
2037
- alias?: string;
2052
+ alias?: string | undefined;
2038
2053
  /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
2039
- from?: string;
2054
+ from?: string | undefined;
2040
2055
  /** Email subject. */
2041
- subject?: string;
2056
+ subject?: string | undefined;
2042
2057
  /** Reply-to email addresses. */
2043
- reply_to?: UpdateTemplateRequestReplyToList;
2058
+ reply_to?: UpdateTemplateRequestReplyToList | undefined;
2044
2059
  /** The HTML version of the template. */
2045
- html?: string;
2060
+ html?: string | undefined;
2046
2061
  /** The plain text version of the template. */
2047
- text?: string;
2048
- variables?: UpdateTemplateRequestVariablesList;
2062
+ text?: string | undefined;
2063
+ variables?: UpdateTemplateRequestVariablesList | undefined;
2049
2064
  }
2050
2065
  export interface UpdateTemplateResponseSuccess {
2051
2066
  /** The ID of the template. */
2052
- id?: string;
2067
+ id?: string | undefined;
2053
2068
  /** The object type of the response. */
2054
- object?: string;
2069
+ object?: string | undefined;
2055
2070
  }
2056
2071
  /** The visibility of the topic. */
2057
2072
  export type UpdateTopicRequestVisibility = "public" | "private";
@@ -2059,17 +2074,17 @@ export interface UpdateTopicRequest {
2059
2074
  /** The Topic ID. */
2060
2075
  id: string;
2061
2076
  /** The name of the topic. Max 50 characters. */
2062
- name?: string;
2077
+ name?: string | undefined;
2063
2078
  /** A description of the topic. Max 200 characters. */
2064
- description?: string;
2079
+ description?: string | undefined;
2065
2080
  /** The visibility of the topic. */
2066
- visibility?: UpdateTopicRequestVisibility | (string & {});
2081
+ visibility?: UpdateTopicRequestVisibility | (string & {}) | undefined;
2067
2082
  }
2068
2083
  export interface UpdateTopicResponseSuccess {
2069
2084
  /** The ID of the topic. */
2070
- id?: string;
2085
+ id?: string | undefined;
2071
2086
  /** The object type. */
2072
- object?: string;
2087
+ object?: string | undefined;
2073
2088
  }
2074
2089
  /** Array of event types to subscribe to. */
2075
2090
  export type UpdateWebhookRequestEventsList = Array<string>;
@@ -2079,17 +2094,17 @@ export interface UpdateWebhookRequest {
2079
2094
  /** The Webhook ID. */
2080
2095
  webhook_id: string;
2081
2096
  /** The URL where webhook events will be sent. */
2082
- endpoint?: string;
2097
+ endpoint?: string | undefined;
2083
2098
  /** Array of event types to subscribe to. */
2084
- events?: UpdateWebhookRequestEventsList;
2099
+ events?: UpdateWebhookRequestEventsList | undefined;
2085
2100
  /** The status of the webhook. */
2086
- status?: UpdateWebhookRequestStatus | (string & {});
2101
+ status?: UpdateWebhookRequestStatus | (string & {}) | undefined;
2087
2102
  }
2088
2103
  export interface UpdateWebhookResponse {
2089
2104
  /** The type of object. */
2090
- object?: string;
2105
+ object?: string | undefined;
2091
2106
  /** The ID of the updated webhook. */
2092
- id?: string;
2107
+ id?: string | undefined;
2093
2108
  }
2094
2109
  export interface VerifyDomainRequest {
2095
2110
  /** The ID of the domain. */
@@ -2097,9 +2112,9 @@ export interface VerifyDomainRequest {
2097
2112
  }
2098
2113
  export interface VerifyDomainResponse {
2099
2114
  /** The type of object. */
2100
- object?: string;
2115
+ object?: string | undefined;
2101
2116
  /** The ID of the domain. */
2102
- id?: string;
2117
+ id?: string | undefined;
2103
2118
  }
2104
2119
  export type CancelEmailError = ResendOpError;
2105
2120
  /** Cancel the schedule of the e-mail. */
@@ -2114,6 +2129,8 @@ export const cancelEmail: API.OperationMethod<
2114
2129
  errors: [UnknownResendError],
2115
2130
  protocol: ResendProtocol,
2116
2131
  retry: Retry.Retry,
2132
+ telemetry: TELEMETRY,
2133
+ span: "CancelEmail",
2117
2134
  }));
2118
2135
 
2119
2136
  export type CreateApiKeyError = ResendOpError;
@@ -2129,6 +2146,8 @@ export const createApiKey: API.OperationMethod<
2129
2146
  errors: [UnknownResendError],
2130
2147
  protocol: ResendProtocol,
2131
2148
  retry: Retry.Retry,
2149
+ telemetry: TELEMETRY,
2150
+ span: "CreateApiKey",
2132
2151
  }));
2133
2152
 
2134
2153
  export type CreateAutomationError = ResendOpError;
@@ -2144,6 +2163,8 @@ export const createAutomation: API.OperationMethod<
2144
2163
  errors: [UnknownResendError],
2145
2164
  protocol: ResendProtocol,
2146
2165
  retry: Retry.Retry,
2166
+ telemetry: TELEMETRY,
2167
+ span: "CreateAutomation",
2147
2168
  }));
2148
2169
 
2149
2170
  export type CreateBroadcastError = ResendOpError;
@@ -2159,6 +2180,8 @@ export const createBroadcast: API.OperationMethod<
2159
2180
  errors: [UnknownResendError],
2160
2181
  protocol: ResendProtocol,
2161
2182
  retry: Retry.Retry,
2183
+ telemetry: TELEMETRY,
2184
+ span: "CreateBroadcast",
2162
2185
  }));
2163
2186
 
2164
2187
  export type CreateContactError = ResendOpError;
@@ -2174,6 +2197,8 @@ export const createContact: API.OperationMethod<
2174
2197
  errors: [UnknownResendError],
2175
2198
  protocol: ResendProtocol,
2176
2199
  retry: Retry.Retry,
2200
+ telemetry: TELEMETRY,
2201
+ span: "CreateContact",
2177
2202
  }));
2178
2203
 
2179
2204
  export type CreateContactPropertyError = ResendOpError;
@@ -2189,6 +2214,8 @@ export const createContactProperty: API.OperationMethod<
2189
2214
  errors: [UnknownResendError],
2190
2215
  protocol: ResendProtocol,
2191
2216
  retry: Retry.Retry,
2217
+ telemetry: TELEMETRY,
2218
+ span: "CreateContactProperty",
2192
2219
  }));
2193
2220
 
2194
2221
  export type CreateDomainError = ResendOpError;
@@ -2204,6 +2231,8 @@ export const createDomain: API.OperationMethod<
2204
2231
  errors: [UnknownResendError],
2205
2232
  protocol: ResendProtocol,
2206
2233
  retry: Retry.Retry,
2234
+ telemetry: TELEMETRY,
2235
+ span: "CreateDomain",
2207
2236
  }));
2208
2237
 
2209
2238
  export type CreateEmailError = ResendOpError;
@@ -2219,6 +2248,8 @@ export const createEmail: API.OperationMethod<
2219
2248
  errors: [UnknownResendError],
2220
2249
  protocol: ResendProtocol,
2221
2250
  retry: Retry.Retry,
2251
+ telemetry: TELEMETRY,
2252
+ span: "CreateEmail",
2222
2253
  }));
2223
2254
 
2224
2255
  export type CreateEmailBatchError = ResendOpError;
@@ -2234,6 +2265,8 @@ export const createEmailBatch: API.OperationMethod<
2234
2265
  errors: [UnknownResendError],
2235
2266
  protocol: ResendProtocol,
2236
2267
  retry: Retry.Retry,
2268
+ telemetry: TELEMETRY,
2269
+ span: "CreateEmailBatch",
2237
2270
  }));
2238
2271
 
2239
2272
  export type CreateEventError = ResendOpError;
@@ -2249,6 +2282,8 @@ export const createEvent: API.OperationMethod<
2249
2282
  errors: [UnknownResendError],
2250
2283
  protocol: ResendProtocol,
2251
2284
  retry: Retry.Retry,
2285
+ telemetry: TELEMETRY,
2286
+ span: "CreateEvent",
2252
2287
  }));
2253
2288
 
2254
2289
  export type CreateSegmentError = ResendOpError;
@@ -2264,6 +2299,8 @@ export const createSegment: API.OperationMethod<
2264
2299
  errors: [UnknownResendError],
2265
2300
  protocol: ResendProtocol,
2266
2301
  retry: Retry.Retry,
2302
+ telemetry: TELEMETRY,
2303
+ span: "CreateSegment",
2267
2304
  }));
2268
2305
 
2269
2306
  export type CreateTemplateError = ResendOpError;
@@ -2279,6 +2316,8 @@ export const createTemplate: API.OperationMethod<
2279
2316
  errors: [UnknownResendError],
2280
2317
  protocol: ResendProtocol,
2281
2318
  retry: Retry.Retry,
2319
+ telemetry: TELEMETRY,
2320
+ span: "CreateTemplate",
2282
2321
  }));
2283
2322
 
2284
2323
  export type CreateTopicError = ResendOpError;
@@ -2294,6 +2333,8 @@ export const createTopic: API.OperationMethod<
2294
2333
  errors: [UnknownResendError],
2295
2334
  protocol: ResendProtocol,
2296
2335
  retry: Retry.Retry,
2336
+ telemetry: TELEMETRY,
2337
+ span: "CreateTopic",
2297
2338
  }));
2298
2339
 
2299
2340
  export type CreateWebhookError = ResendOpError;
@@ -2309,6 +2350,8 @@ export const createWebhook: API.OperationMethod<
2309
2350
  errors: [UnknownResendError],
2310
2351
  protocol: ResendProtocol,
2311
2352
  retry: Retry.Retry,
2353
+ telemetry: TELEMETRY,
2354
+ span: "CreateWebhook",
2312
2355
  }));
2313
2356
 
2314
2357
  export type DeleteApiKeyError = ResendOpError;
@@ -2324,6 +2367,8 @@ export const deleteApiKey: API.OperationMethod<
2324
2367
  errors: [UnknownResendError],
2325
2368
  protocol: ResendProtocol,
2326
2369
  retry: Retry.Retry,
2370
+ telemetry: TELEMETRY,
2371
+ span: "DeleteApiKey",
2327
2372
  }));
2328
2373
 
2329
2374
  export type DeleteAutomationError = ResendOpError;
@@ -2339,6 +2384,8 @@ export const deleteAutomation: API.OperationMethod<
2339
2384
  errors: [UnknownResendError],
2340
2385
  protocol: ResendProtocol,
2341
2386
  retry: Retry.Retry,
2387
+ telemetry: TELEMETRY,
2388
+ span: "DeleteAutomation",
2342
2389
  }));
2343
2390
 
2344
2391
  export type DeleteBroadcastError = ResendOpError;
@@ -2354,6 +2401,8 @@ export const deleteBroadcast: API.OperationMethod<
2354
2401
  errors: [UnknownResendError],
2355
2402
  protocol: ResendProtocol,
2356
2403
  retry: Retry.Retry,
2404
+ telemetry: TELEMETRY,
2405
+ span: "DeleteBroadcast",
2357
2406
  }));
2358
2407
 
2359
2408
  export type DeleteContactError = ResendOpError;
@@ -2369,6 +2418,8 @@ export const deleteContact: API.OperationMethod<
2369
2418
  errors: [UnknownResendError],
2370
2419
  protocol: ResendProtocol,
2371
2420
  retry: Retry.Retry,
2421
+ telemetry: TELEMETRY,
2422
+ span: "DeleteContact",
2372
2423
  }));
2373
2424
 
2374
2425
  export type DeleteContactPropertyError = ResendOpError;
@@ -2384,6 +2435,8 @@ export const deleteContactProperty: API.OperationMethod<
2384
2435
  errors: [UnknownResendError],
2385
2436
  protocol: ResendProtocol,
2386
2437
  retry: Retry.Retry,
2438
+ telemetry: TELEMETRY,
2439
+ span: "DeleteContactProperty",
2387
2440
  }));
2388
2441
 
2389
2442
  export type DeleteContactSegmentError = ResendOpError;
@@ -2399,6 +2452,8 @@ export const deleteContactSegment: API.OperationMethod<
2399
2452
  errors: [UnknownResendError],
2400
2453
  protocol: ResendProtocol,
2401
2454
  retry: Retry.Retry,
2455
+ telemetry: TELEMETRY,
2456
+ span: "DeleteContactSegment",
2402
2457
  }));
2403
2458
 
2404
2459
  export type DeleteDomainError = ResendOpError;
@@ -2414,6 +2469,8 @@ export const deleteDomain: API.OperationMethod<
2414
2469
  errors: [UnknownResendError],
2415
2470
  protocol: ResendProtocol,
2416
2471
  retry: Retry.Retry,
2472
+ telemetry: TELEMETRY,
2473
+ span: "DeleteDomain",
2417
2474
  }));
2418
2475
 
2419
2476
  export type DeleteEventError = ResendOpError;
@@ -2429,6 +2486,8 @@ export const deleteEvent: API.OperationMethod<
2429
2486
  errors: [UnknownResendError],
2430
2487
  protocol: ResendProtocol,
2431
2488
  retry: Retry.Retry,
2489
+ telemetry: TELEMETRY,
2490
+ span: "DeleteEvent",
2432
2491
  }));
2433
2492
 
2434
2493
  export type DeleteSegmentError = ResendOpError;
@@ -2444,6 +2503,8 @@ export const deleteSegment: API.OperationMethod<
2444
2503
  errors: [UnknownResendError],
2445
2504
  protocol: ResendProtocol,
2446
2505
  retry: Retry.Retry,
2506
+ telemetry: TELEMETRY,
2507
+ span: "DeleteSegment",
2447
2508
  }));
2448
2509
 
2449
2510
  export type DeleteTemplateError = ResendOpError;
@@ -2459,6 +2520,8 @@ export const deleteTemplate: API.OperationMethod<
2459
2520
  errors: [UnknownResendError],
2460
2521
  protocol: ResendProtocol,
2461
2522
  retry: Retry.Retry,
2523
+ telemetry: TELEMETRY,
2524
+ span: "DeleteTemplate",
2462
2525
  }));
2463
2526
 
2464
2527
  export type DeleteTopicError = ResendOpError;
@@ -2474,6 +2537,8 @@ export const deleteTopic: API.OperationMethod<
2474
2537
  errors: [UnknownResendError],
2475
2538
  protocol: ResendProtocol,
2476
2539
  retry: Retry.Retry,
2540
+ telemetry: TELEMETRY,
2541
+ span: "DeleteTopic",
2477
2542
  }));
2478
2543
 
2479
2544
  export type DeleteWebhookError = ResendOpError;
@@ -2489,6 +2554,8 @@ export const deleteWebhook: API.OperationMethod<
2489
2554
  errors: [UnknownResendError],
2490
2555
  protocol: ResendProtocol,
2491
2556
  retry: Retry.Retry,
2557
+ telemetry: TELEMETRY,
2558
+ span: "DeleteWebhook",
2492
2559
  }));
2493
2560
 
2494
2561
  export type DuplicateTemplateError = ResendOpError;
@@ -2504,6 +2571,8 @@ export const duplicateTemplate: API.OperationMethod<
2504
2571
  errors: [UnknownResendError],
2505
2572
  protocol: ResendProtocol,
2506
2573
  retry: Retry.Retry,
2574
+ telemetry: TELEMETRY,
2575
+ span: "DuplicateTemplate",
2507
2576
  }));
2508
2577
 
2509
2578
  export type GetAutomationError = ResendOpError;
@@ -2519,6 +2588,8 @@ export const getAutomation: API.OperationMethod<
2519
2588
  errors: [UnknownResendError],
2520
2589
  protocol: ResendProtocol,
2521
2590
  retry: Retry.Retry,
2591
+ telemetry: TELEMETRY,
2592
+ span: "GetAutomation",
2522
2593
  }));
2523
2594
 
2524
2595
  export type GetAutomationRunError = ResendOpError;
@@ -2534,6 +2605,8 @@ export const getAutomationRun: API.OperationMethod<
2534
2605
  errors: [UnknownResendError],
2535
2606
  protocol: ResendProtocol,
2536
2607
  retry: Retry.Retry,
2608
+ telemetry: TELEMETRY,
2609
+ span: "GetAutomationRun",
2537
2610
  }));
2538
2611
 
2539
2612
  export type GetBroadcastError = ResendOpError;
@@ -2549,6 +2622,8 @@ export const getBroadcast: API.OperationMethod<
2549
2622
  errors: [UnknownResendError],
2550
2623
  protocol: ResendProtocol,
2551
2624
  retry: Retry.Retry,
2625
+ telemetry: TELEMETRY,
2626
+ span: "GetBroadcast",
2552
2627
  }));
2553
2628
 
2554
2629
  export type GetContactError = ResendOpError;
@@ -2564,6 +2639,8 @@ export const getContact: API.OperationMethod<
2564
2639
  errors: [UnknownResendError],
2565
2640
  protocol: ResendProtocol,
2566
2641
  retry: Retry.Retry,
2642
+ telemetry: TELEMETRY,
2643
+ span: "GetContact",
2567
2644
  }));
2568
2645
 
2569
2646
  export type GetContactPropertyError = ResendOpError;
@@ -2579,6 +2656,8 @@ export const getContactProperty: API.OperationMethod<
2579
2656
  errors: [UnknownResendError],
2580
2657
  protocol: ResendProtocol,
2581
2658
  retry: Retry.Retry,
2659
+ telemetry: TELEMETRY,
2660
+ span: "GetContactProperty",
2582
2661
  }));
2583
2662
 
2584
2663
  export type GetDomainError = ResendOpError;
@@ -2594,6 +2673,8 @@ export const getDomain: API.OperationMethod<
2594
2673
  errors: [UnknownResendError],
2595
2674
  protocol: ResendProtocol,
2596
2675
  retry: Retry.Retry,
2676
+ telemetry: TELEMETRY,
2677
+ span: "GetDomain",
2597
2678
  }));
2598
2679
 
2599
2680
  export type GetEmailError = ResendOpError;
@@ -2605,6 +2686,8 @@ export const getEmail: API.OperationMethod<GetEmailRequest, Email, GetEmailError
2605
2686
  errors: [UnknownResendError],
2606
2687
  protocol: ResendProtocol,
2607
2688
  retry: Retry.Retry,
2689
+ telemetry: TELEMETRY,
2690
+ span: "GetEmail",
2608
2691
  }));
2609
2692
 
2610
2693
  export type GetEmailAttachmentError = ResendOpError;
@@ -2620,6 +2703,8 @@ export const getEmailAttachment: API.OperationMethod<
2620
2703
  errors: [UnknownResendError],
2621
2704
  protocol: ResendProtocol,
2622
2705
  retry: Retry.Retry,
2706
+ telemetry: TELEMETRY,
2707
+ span: "GetEmailAttachment",
2623
2708
  }));
2624
2709
 
2625
2710
  export type GetEmailReceivingError = ResendOpError;
@@ -2635,6 +2720,8 @@ export const getEmailReceiving: API.OperationMethod<
2635
2720
  errors: [UnknownResendError],
2636
2721
  protocol: ResendProtocol,
2637
2722
  retry: Retry.Retry,
2723
+ telemetry: TELEMETRY,
2724
+ span: "GetEmailReceiving",
2638
2725
  }));
2639
2726
 
2640
2727
  export type GetEmailReceivingAttachmentError = ResendOpError;
@@ -2650,6 +2737,8 @@ export const getEmailReceivingAttachment: API.OperationMethod<
2650
2737
  errors: [UnknownResendError],
2651
2738
  protocol: ResendProtocol,
2652
2739
  retry: Retry.Retry,
2740
+ telemetry: TELEMETRY,
2741
+ span: "GetEmailReceivingAttachment",
2653
2742
  }));
2654
2743
 
2655
2744
  export type GetEventError = ResendOpError;
@@ -2661,6 +2750,8 @@ export const getEvent: API.OperationMethod<GetEventRequest, Event, GetEventError
2661
2750
  errors: [UnknownResendError],
2662
2751
  protocol: ResendProtocol,
2663
2752
  retry: Retry.Retry,
2753
+ telemetry: TELEMETRY,
2754
+ span: "GetEvent",
2664
2755
  }));
2665
2756
 
2666
2757
  export type GetLogError = ResendOpError;
@@ -2672,6 +2763,8 @@ export const getLog: API.OperationMethod<GetLogRequest, Log, GetLogError, Resend
2672
2763
  errors: [UnknownResendError],
2673
2764
  protocol: ResendProtocol,
2674
2765
  retry: Retry.Retry,
2766
+ telemetry: TELEMETRY,
2767
+ span: "GetLog",
2675
2768
  }));
2676
2769
 
2677
2770
  export type GetSegmentError = ResendOpError;
@@ -2687,6 +2780,8 @@ export const getSegment: API.OperationMethod<
2687
2780
  errors: [UnknownResendError],
2688
2781
  protocol: ResendProtocol,
2689
2782
  retry: Retry.Retry,
2783
+ telemetry: TELEMETRY,
2784
+ span: "GetSegment",
2690
2785
  }));
2691
2786
 
2692
2787
  export type GetTemplateError = ResendOpError;
@@ -2702,6 +2797,8 @@ export const getTemplate: API.OperationMethod<
2702
2797
  errors: [UnknownResendError],
2703
2798
  protocol: ResendProtocol,
2704
2799
  retry: Retry.Retry,
2800
+ telemetry: TELEMETRY,
2801
+ span: "GetTemplate",
2705
2802
  }));
2706
2803
 
2707
2804
  export type GetTopicError = ResendOpError;
@@ -2717,6 +2814,8 @@ export const getTopic: API.OperationMethod<
2717
2814
  errors: [UnknownResendError],
2718
2815
  protocol: ResendProtocol,
2719
2816
  retry: Retry.Retry,
2817
+ telemetry: TELEMETRY,
2818
+ span: "GetTopic",
2720
2819
  }));
2721
2820
 
2722
2821
  export type GetWebhookError = ResendOpError;
@@ -2732,6 +2831,8 @@ export const getWebhook: API.OperationMethod<
2732
2831
  errors: [UnknownResendError],
2733
2832
  protocol: ResendProtocol,
2734
2833
  retry: Retry.Retry,
2834
+ telemetry: TELEMETRY,
2835
+ span: "GetWebhook",
2735
2836
  }));
2736
2837
 
2737
2838
  export type ListApiKeysError = ResendOpError;
@@ -2749,6 +2850,8 @@ export const listApiKeys: API.PaginatedOperationMethod<
2749
2850
  errors: [UnknownResendError],
2750
2851
  protocol: ResendProtocol,
2751
2852
  retry: Retry.Retry,
2853
+ telemetry: TELEMETRY,
2854
+ span: "ListApiKeys",
2752
2855
  pagination: {
2753
2856
  mode: "cursor",
2754
2857
  inputToken: "after",
@@ -2775,6 +2878,8 @@ export const listAutomationRuns: API.PaginatedOperationMethod<
2775
2878
  errors: [UnknownResendError],
2776
2879
  protocol: ResendProtocol,
2777
2880
  retry: Retry.Retry,
2881
+ telemetry: TELEMETRY,
2882
+ span: "ListAutomationRuns",
2778
2883
  pagination: {
2779
2884
  mode: "cursor",
2780
2885
  inputToken: "after",
@@ -2801,6 +2906,8 @@ export const listAutomations: API.PaginatedOperationMethod<
2801
2906
  errors: [UnknownResendError],
2802
2907
  protocol: ResendProtocol,
2803
2908
  retry: Retry.Retry,
2909
+ telemetry: TELEMETRY,
2910
+ span: "ListAutomations",
2804
2911
  pagination: {
2805
2912
  mode: "cursor",
2806
2913
  inputToken: "after",
@@ -2827,6 +2934,8 @@ export const listBroadcasts: API.PaginatedOperationMethod<
2827
2934
  errors: [UnknownResendError],
2828
2935
  protocol: ResendProtocol,
2829
2936
  retry: Retry.Retry,
2937
+ telemetry: TELEMETRY,
2938
+ span: "ListBroadcasts",
2830
2939
  pagination: {
2831
2940
  mode: "cursor",
2832
2941
  inputToken: "after",
@@ -2853,6 +2962,8 @@ export const listContactProperties: API.PaginatedOperationMethod<
2853
2962
  errors: [UnknownResendError],
2854
2963
  protocol: ResendProtocol,
2855
2964
  retry: Retry.Retry,
2965
+ telemetry: TELEMETRY,
2966
+ span: "ListContactProperties",
2856
2967
  pagination: {
2857
2968
  mode: "cursor",
2858
2969
  inputToken: "after",
@@ -2877,6 +2988,8 @@ export const listContacts: API.OperationMethod<
2877
2988
  errors: [UnknownResendError],
2878
2989
  protocol: ResendProtocol,
2879
2990
  retry: Retry.Retry,
2991
+ telemetry: TELEMETRY,
2992
+ span: "ListContacts",
2880
2993
  }));
2881
2994
 
2882
2995
  export type ListContactSegmentsError = ResendOpError;
@@ -2894,6 +3007,8 @@ export const listContactSegments: API.PaginatedOperationMethod<
2894
3007
  errors: [UnknownResendError],
2895
3008
  protocol: ResendProtocol,
2896
3009
  retry: Retry.Retry,
3010
+ telemetry: TELEMETRY,
3011
+ span: "ListContactSegments",
2897
3012
  pagination: {
2898
3013
  mode: "cursor",
2899
3014
  inputToken: "after",
@@ -2920,6 +3035,8 @@ export const listContactTopics: API.PaginatedOperationMethod<
2920
3035
  errors: [UnknownResendError],
2921
3036
  protocol: ResendProtocol,
2922
3037
  retry: Retry.Retry,
3038
+ telemetry: TELEMETRY,
3039
+ span: "ListContactTopics",
2923
3040
  pagination: {
2924
3041
  mode: "cursor",
2925
3042
  inputToken: "after",
@@ -2946,6 +3063,8 @@ export const listDomains: API.PaginatedOperationMethod<
2946
3063
  errors: [UnknownResendError],
2947
3064
  protocol: ResendProtocol,
2948
3065
  retry: Retry.Retry,
3066
+ telemetry: TELEMETRY,
3067
+ span: "ListDomains",
2949
3068
  pagination: {
2950
3069
  mode: "cursor",
2951
3070
  inputToken: "after",
@@ -2972,6 +3091,8 @@ export const listEmailAttachments: API.PaginatedOperationMethod<
2972
3091
  errors: [UnknownResendError],
2973
3092
  protocol: ResendProtocol,
2974
3093
  retry: Retry.Retry,
3094
+ telemetry: TELEMETRY,
3095
+ span: "ListEmailAttachments",
2975
3096
  pagination: {
2976
3097
  mode: "cursor",
2977
3098
  inputToken: "after",
@@ -2998,6 +3119,8 @@ export const listEmailReceiving: API.PaginatedOperationMethod<
2998
3119
  errors: [UnknownResendError],
2999
3120
  protocol: ResendProtocol,
3000
3121
  retry: Retry.Retry,
3122
+ telemetry: TELEMETRY,
3123
+ span: "ListEmailReceiving",
3001
3124
  pagination: {
3002
3125
  mode: "cursor",
3003
3126
  inputToken: "after",
@@ -3024,6 +3147,8 @@ export const listEmailReceivingAttachments: API.PaginatedOperationMethod<
3024
3147
  errors: [UnknownResendError],
3025
3148
  protocol: ResendProtocol,
3026
3149
  retry: Retry.Retry,
3150
+ telemetry: TELEMETRY,
3151
+ span: "ListEmailReceivingAttachments",
3027
3152
  pagination: {
3028
3153
  mode: "cursor",
3029
3154
  inputToken: "after",
@@ -3050,6 +3175,8 @@ export const listEmails: API.PaginatedOperationMethod<
3050
3175
  errors: [UnknownResendError],
3051
3176
  protocol: ResendProtocol,
3052
3177
  retry: Retry.Retry,
3178
+ telemetry: TELEMETRY,
3179
+ span: "ListEmails",
3053
3180
  pagination: {
3054
3181
  mode: "cursor",
3055
3182
  inputToken: "after",
@@ -3076,6 +3203,8 @@ export const listEvents: API.PaginatedOperationMethod<
3076
3203
  errors: [UnknownResendError],
3077
3204
  protocol: ResendProtocol,
3078
3205
  retry: Retry.Retry,
3206
+ telemetry: TELEMETRY,
3207
+ span: "ListEvents",
3079
3208
  pagination: {
3080
3209
  mode: "cursor",
3081
3210
  inputToken: "after",
@@ -3102,6 +3231,8 @@ export const listLogs: API.PaginatedOperationMethod<
3102
3231
  errors: [UnknownResendError],
3103
3232
  protocol: ResendProtocol,
3104
3233
  retry: Retry.Retry,
3234
+ telemetry: TELEMETRY,
3235
+ span: "ListLogs",
3105
3236
  pagination: {
3106
3237
  mode: "cursor",
3107
3238
  inputToken: "after",
@@ -3128,6 +3259,8 @@ export const listSegments: API.PaginatedOperationMethod<
3128
3259
  errors: [UnknownResendError],
3129
3260
  protocol: ResendProtocol,
3130
3261
  retry: Retry.Retry,
3262
+ telemetry: TELEMETRY,
3263
+ span: "ListSegments",
3131
3264
  pagination: {
3132
3265
  mode: "cursor",
3133
3266
  inputToken: "after",
@@ -3154,6 +3287,8 @@ export const listTemplates: API.PaginatedOperationMethod<
3154
3287
  errors: [UnknownResendError],
3155
3288
  protocol: ResendProtocol,
3156
3289
  retry: Retry.Retry,
3290
+ telemetry: TELEMETRY,
3291
+ span: "ListTemplates",
3157
3292
  pagination: {
3158
3293
  mode: "cursor",
3159
3294
  inputToken: "after",
@@ -3180,6 +3315,8 @@ export const listTopics: API.PaginatedOperationMethod<
3180
3315
  errors: [UnknownResendError],
3181
3316
  protocol: ResendProtocol,
3182
3317
  retry: Retry.Retry,
3318
+ telemetry: TELEMETRY,
3319
+ span: "ListTopics",
3183
3320
  pagination: {
3184
3321
  mode: "cursor",
3185
3322
  inputToken: "after",
@@ -3206,6 +3343,8 @@ export const listWebhooks: API.PaginatedOperationMethod<
3206
3343
  errors: [UnknownResendError],
3207
3344
  protocol: ResendProtocol,
3208
3345
  retry: Retry.Retry,
3346
+ telemetry: TELEMETRY,
3347
+ span: "ListWebhooks",
3209
3348
  pagination: {
3210
3349
  mode: "cursor",
3211
3350
  inputToken: "after",
@@ -3230,6 +3369,8 @@ export const publishTemplate: API.OperationMethod<
3230
3369
  errors: [UnknownResendError],
3231
3370
  protocol: ResendProtocol,
3232
3371
  retry: Retry.Retry,
3372
+ telemetry: TELEMETRY,
3373
+ span: "PublishTemplate",
3233
3374
  }));
3234
3375
 
3235
3376
  export type SendBroadcastError = ResendOpError;
@@ -3245,6 +3386,8 @@ export const sendBroadcast: API.OperationMethod<
3245
3386
  errors: [UnknownResendError],
3246
3387
  protocol: ResendProtocol,
3247
3388
  retry: Retry.Retry,
3389
+ telemetry: TELEMETRY,
3390
+ span: "SendBroadcast",
3248
3391
  }));
3249
3392
 
3250
3393
  export type SendEventError = ResendOpError;
@@ -3260,6 +3403,8 @@ export const sendEvent: API.OperationMethod<
3260
3403
  errors: [UnknownResendError],
3261
3404
  protocol: ResendProtocol,
3262
3405
  retry: Retry.Retry,
3406
+ telemetry: TELEMETRY,
3407
+ span: "SendEvent",
3263
3408
  }));
3264
3409
 
3265
3410
  export type StopAutomationError = ResendOpError;
@@ -3275,6 +3420,8 @@ export const stopAutomation: API.OperationMethod<
3275
3420
  errors: [UnknownResendError],
3276
3421
  protocol: ResendProtocol,
3277
3422
  retry: Retry.Retry,
3423
+ telemetry: TELEMETRY,
3424
+ span: "StopAutomation",
3278
3425
  }));
3279
3426
 
3280
3427
  export type UpdateAutomationError = ResendOpError;
@@ -3290,6 +3437,8 @@ export const updateAutomation: API.OperationMethod<
3290
3437
  errors: [UnknownResendError],
3291
3438
  protocol: ResendProtocol,
3292
3439
  retry: Retry.Retry,
3440
+ telemetry: TELEMETRY,
3441
+ span: "UpdateAutomation",
3293
3442
  }));
3294
3443
 
3295
3444
  export type UpdateBroadcastError = ResendOpError;
@@ -3305,6 +3454,8 @@ export const updateBroadcast: API.OperationMethod<
3305
3454
  errors: [UnknownResendError],
3306
3455
  protocol: ResendProtocol,
3307
3456
  retry: Retry.Retry,
3457
+ telemetry: TELEMETRY,
3458
+ span: "UpdateBroadcast",
3308
3459
  }));
3309
3460
 
3310
3461
  export type UpdateContactError = ResendOpError;
@@ -3320,6 +3471,8 @@ export const updateContact: API.OperationMethod<
3320
3471
  errors: [UnknownResendError],
3321
3472
  protocol: ResendProtocol,
3322
3473
  retry: Retry.Retry,
3474
+ telemetry: TELEMETRY,
3475
+ span: "UpdateContact",
3323
3476
  }));
3324
3477
 
3325
3478
  export type UpdateContactPropertyError = ResendOpError;
@@ -3335,6 +3488,8 @@ export const updateContactProperty: API.OperationMethod<
3335
3488
  errors: [UnknownResendError],
3336
3489
  protocol: ResendProtocol,
3337
3490
  retry: Retry.Retry,
3491
+ telemetry: TELEMETRY,
3492
+ span: "UpdateContactProperty",
3338
3493
  }));
3339
3494
 
3340
3495
  export type UpdateContactSegmentError = ResendOpError;
@@ -3350,6 +3505,8 @@ export const updateContactSegment: API.OperationMethod<
3350
3505
  errors: [UnknownResendError],
3351
3506
  protocol: ResendProtocol,
3352
3507
  retry: Retry.Retry,
3508
+ telemetry: TELEMETRY,
3509
+ span: "UpdateContactSegment",
3353
3510
  }));
3354
3511
 
3355
3512
  export type UpdateContactTopicsError = ResendOpError;
@@ -3365,6 +3522,8 @@ export const updateContactTopics: API.OperationMethod<
3365
3522
  errors: [UnknownResendError],
3366
3523
  protocol: ResendProtocol,
3367
3524
  retry: Retry.Retry,
3525
+ telemetry: TELEMETRY,
3526
+ span: "UpdateContactTopics",
3368
3527
  }));
3369
3528
 
3370
3529
  export type UpdateDomainError = ResendOpError;
@@ -3380,6 +3539,8 @@ export const updateDomain: API.OperationMethod<
3380
3539
  errors: [UnknownResendError],
3381
3540
  protocol: ResendProtocol,
3382
3541
  retry: Retry.Retry,
3542
+ telemetry: TELEMETRY,
3543
+ span: "UpdateDomain",
3383
3544
  }));
3384
3545
 
3385
3546
  export type UpdateEmailError = ResendOpError;
@@ -3395,6 +3556,8 @@ export const updateEmail: API.OperationMethod<
3395
3556
  errors: [UnknownResendError],
3396
3557
  protocol: ResendProtocol,
3397
3558
  retry: Retry.Retry,
3559
+ telemetry: TELEMETRY,
3560
+ span: "UpdateEmail",
3398
3561
  }));
3399
3562
 
3400
3563
  export type UpdateEventError = ResendOpError;
@@ -3410,6 +3573,8 @@ export const updateEvent: API.OperationMethod<
3410
3573
  errors: [UnknownResendError],
3411
3574
  protocol: ResendProtocol,
3412
3575
  retry: Retry.Retry,
3576
+ telemetry: TELEMETRY,
3577
+ span: "UpdateEvent",
3413
3578
  }));
3414
3579
 
3415
3580
  export type UpdateTemplateError = ResendOpError;
@@ -3425,6 +3590,8 @@ export const updateTemplate: API.OperationMethod<
3425
3590
  errors: [UnknownResendError],
3426
3591
  protocol: ResendProtocol,
3427
3592
  retry: Retry.Retry,
3593
+ telemetry: TELEMETRY,
3594
+ span: "UpdateTemplate",
3428
3595
  }));
3429
3596
 
3430
3597
  export type UpdateTopicError = ResendOpError;
@@ -3440,6 +3607,8 @@ export const updateTopic: API.OperationMethod<
3440
3607
  errors: [UnknownResendError],
3441
3608
  protocol: ResendProtocol,
3442
3609
  retry: Retry.Retry,
3610
+ telemetry: TELEMETRY,
3611
+ span: "UpdateTopic",
3443
3612
  }));
3444
3613
 
3445
3614
  export type UpdateWebhookError = ResendOpError;
@@ -3455,6 +3624,8 @@ export const updateWebhook: API.OperationMethod<
3455
3624
  errors: [UnknownResendError],
3456
3625
  protocol: ResendProtocol,
3457
3626
  retry: Retry.Retry,
3627
+ telemetry: TELEMETRY,
3628
+ span: "UpdateWebhook",
3458
3629
  }));
3459
3630
 
3460
3631
  export type VerifyDomainError = ResendOpError;
@@ -3470,6 +3641,8 @@ export const verifyDomain: API.OperationMethod<
3470
3641
  errors: [UnknownResendError],
3471
3642
  protocol: ResendProtocol,
3472
3643
  retry: Retry.Retry,
3644
+ telemetry: TELEMETRY,
3645
+ span: "VerifyDomain",
3473
3646
  }));
3474
3647
 
3475
3648
  // Schema builders: each runs one schema initializer, on that schema's first use.