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