@distilled.cloud/resend 1.0.0-rc.14 → 1.0.0-rc.16
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/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +12 -11
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +15 -15
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +15 -15
- package/lib/index.js.map +1 -1
- package/lib/pagination.js +14 -14
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +19 -22
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +25 -24
- package/lib/retry.js.map +1 -1
- package/lib/services/resend.d.ts +6 -336
- package/lib/services/resend.d.ts.map +1 -1
- package/lib/services/resend.js +235 -2138
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +8 -8
- package/package.json +13 -9
- package/src/credentials.ts +7 -6
- package/src/errors.ts +14 -15
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +5 -8
- package/src/retry.ts +6 -4
- package/src/services/resend.ts +2087 -2429
- package/src/traits.ts +1 -1
- package/lib/services/resend.js.map +0 -1
package/lib/services/resend.d.ts
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as
|
|
3
|
-
import * as Redacted from "effect/Redacted";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
3
|
import { type ResendOpError, type ResendOpContext } from "../protocol.ts";
|
|
5
4
|
export type { ResendOpError, ResendOpContext };
|
|
6
5
|
export interface CancelEmailRequest {
|
|
7
6
|
/** The ID of the email. */
|
|
8
7
|
email_id: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const CancelEmailRequest: S.Schema<CancelEmailRequest>;
|
|
11
9
|
export type EmailToList = Array<string>;
|
|
12
|
-
export declare const EmailToList: S.Schema<EmailToList>;
|
|
13
10
|
/** The email addresses of the blind carbon copy recipients. */
|
|
14
11
|
export type EmailBccList = Array<string>;
|
|
15
|
-
export declare const EmailBccList: S.Schema<EmailBccList>;
|
|
16
12
|
/** The email addresses of the carbon copy recipients. */
|
|
17
13
|
export type EmailCcList = Array<string>;
|
|
18
|
-
export declare const EmailCcList: S.Schema<EmailCcList>;
|
|
19
14
|
/** The email addresses to which replies should be sent. */
|
|
20
15
|
export type EmailReplyToList = Array<string>;
|
|
21
|
-
export declare const EmailReplyToList: S.Schema<EmailReplyToList>;
|
|
22
16
|
export interface Email {
|
|
23
17
|
/** The type of object. */
|
|
24
18
|
object?: string;
|
|
@@ -44,48 +38,39 @@ export interface Email {
|
|
|
44
38
|
/** The status of the email. */
|
|
45
39
|
last_event?: string;
|
|
46
40
|
}
|
|
47
|
-
|
|
48
|
-
/** 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. */
|
|
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. */
|
|
49
42
|
export type CreateApiKeyRequestPermission = "full_access" | "sending_access";
|
|
50
|
-
export declare const CreateApiKeyRequestPermission: any;
|
|
51
43
|
export interface CreateApiKeyRequest {
|
|
52
44
|
/** The API key name. */
|
|
53
45
|
name: string;
|
|
54
|
-
/** The API key can have full access to Resend
|
|
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. */
|
|
55
47
|
permission?: CreateApiKeyRequestPermission | (string & {});
|
|
56
48
|
/** Restrict an API key to send emails only from a specific domain. Only used when the permission is sending_access. */
|
|
57
49
|
domain_id?: string;
|
|
58
50
|
}
|
|
59
|
-
export declare const CreateApiKeyRequest: S.Schema<CreateApiKeyRequest>;
|
|
60
51
|
export interface CreateApiKeyResponse {
|
|
61
52
|
/** The ID of the API key. */
|
|
62
53
|
id?: string;
|
|
63
54
|
/** The token of the API key. */
|
|
64
55
|
token?: string;
|
|
65
56
|
}
|
|
66
|
-
export declare const CreateApiKeyResponse: S.Schema<CreateApiKeyResponse>;
|
|
67
57
|
/** The initial status of the automation. Defaults to `disabled`. */
|
|
68
58
|
export type CreateAutomationRequestStatus = "enabled" | "disabled";
|
|
69
|
-
export declare const CreateAutomationRequestStatus: any;
|
|
70
59
|
/** The type of automation step. */
|
|
71
60
|
export type AutomationStepType = "trigger" | "send_email" | "delay" | "wait_for_event" | "condition" | "contact_update" | "contact_delete" | "add_to_segment";
|
|
72
|
-
export declare const AutomationStepType: any;
|
|
73
61
|
/** A step in an automation workflow. The `config` object varies based on the step `type`. */
|
|
74
62
|
export interface AutomationStep {
|
|
75
63
|
/** A unique key for this step within the automation graph. */
|
|
76
64
|
key: string;
|
|
77
65
|
/** The type of automation step. */
|
|
78
66
|
type: AutomationStepType | (string & {});
|
|
79
|
-
/** Configuration for the step. Shape depends on `type`: - **trigger**: `{ event_name: string }` - **send_email**: `{ template: { id: string, variables?: object }, subject?: string, from?: string, reply_to?: string }` - **delay**: `{ duration: string }`
|
|
67
|
+
/** Configuration for the step. Shape depends on `type`: - **trigger**: `{ event_name: string }` - **send_email**: `{ template: { id: string, variables?: object }, subject?: string, from?: string, reply_to?: string }` - **delay**: `{ duration: string }` -- a human-readable duration (e.g. `"30 minutes"`) - **wait_for_event**: `{ event_name: string, timeout?: string, filter_rule?: object }` -- `timeout` is a human-readable duration (e.g. `"1 hour"`) - **condition**: A rule tree with `type` (`rule`, `and`, `or`), `field`, `operator`, and `value` - **contact_update**: `{ first_name?: string|object, last_name?: string|object, unsubscribed?: boolean|object, properties?: object }` - **contact_delete**: `{}` - **add_to_segment**: `{ segment_id: string }` */
|
|
80
68
|
config: unknown;
|
|
81
69
|
}
|
|
82
|
-
export declare const AutomationStep: S.Schema<AutomationStep>;
|
|
83
70
|
/** The steps that compose the automation workflow. Must include at least one `trigger` step. */
|
|
84
71
|
export type CreateAutomationRequestStepsList = Array<AutomationStep>;
|
|
85
|
-
export declare const CreateAutomationRequestStepsList: S.Schema<CreateAutomationRequestStepsList>;
|
|
86
72
|
/** The type of connection. Defaults to `default`. */
|
|
87
73
|
export type AutomationConnectionType = "default" | "condition_met" | "condition_not_met" | "timeout" | "event_received";
|
|
88
|
-
export declare const AutomationConnectionType: any;
|
|
89
74
|
/** A connection between two steps in the automation graph. */
|
|
90
75
|
export interface AutomationConnection {
|
|
91
76
|
/** The `key` of the source step. */
|
|
@@ -95,10 +80,8 @@ export interface AutomationConnection {
|
|
|
95
80
|
/** The type of connection. Defaults to `default`. */
|
|
96
81
|
type?: AutomationConnectionType | (string & {});
|
|
97
82
|
}
|
|
98
|
-
export declare const AutomationConnection: S.Schema<AutomationConnection>;
|
|
99
83
|
/** The connections between steps in the automation graph. */
|
|
100
84
|
export type CreateAutomationRequestConnectionsList = Array<AutomationConnection>;
|
|
101
|
-
export declare const CreateAutomationRequestConnectionsList: S.Schema<CreateAutomationRequestConnectionsList>;
|
|
102
85
|
export interface CreateAutomationRequest {
|
|
103
86
|
/** The name of the automation. */
|
|
104
87
|
name: string;
|
|
@@ -109,17 +92,14 @@ export interface CreateAutomationRequest {
|
|
|
109
92
|
/** The connections between steps in the automation graph. */
|
|
110
93
|
connections: CreateAutomationRequestConnectionsList;
|
|
111
94
|
}
|
|
112
|
-
export declare const CreateAutomationRequest: S.Schema<CreateAutomationRequest>;
|
|
113
95
|
export interface CreateAutomationResponse {
|
|
114
96
|
/** Type of the response object. */
|
|
115
97
|
object?: string;
|
|
116
98
|
/** The ID of the created automation. */
|
|
117
99
|
id?: string;
|
|
118
100
|
}
|
|
119
|
-
export declare const CreateAutomationResponse: S.Schema<CreateAutomationResponse>;
|
|
120
101
|
/** The email addresses to which replies should be sent. */
|
|
121
102
|
export type CreateBroadcastRequestReplyToList = Array<string>;
|
|
122
|
-
export declare const CreateBroadcastRequestReplyToList: S.Schema<CreateBroadcastRequestReplyToList>;
|
|
123
103
|
export interface CreateBroadcastRequest {
|
|
124
104
|
/** Name of the broadcast. */
|
|
125
105
|
name?: string;
|
|
@@ -146,35 +126,28 @@ export interface CreateBroadcastRequest {
|
|
|
146
126
|
/** Schedule time to send the broadcast. Can only be used if `send` is true. */
|
|
147
127
|
scheduled_at?: string;
|
|
148
128
|
}
|
|
149
|
-
export declare const CreateBroadcastRequest: S.Schema<CreateBroadcastRequest>;
|
|
150
129
|
export interface CreateBroadcastResponseSuccess {
|
|
151
130
|
/** The ID of the broadcast. */
|
|
152
131
|
id?: string;
|
|
153
132
|
/** The object type of the response. */
|
|
154
133
|
object?: string;
|
|
155
134
|
}
|
|
156
|
-
export declare const CreateBroadcastResponseSuccess: S.Schema<CreateBroadcastResponseSuccess>;
|
|
157
135
|
/** A map of custom property keys and values to create. */
|
|
158
136
|
export type CreateContactRequestPropertiesMap = {
|
|
159
137
|
[key: string]: unknown | undefined;
|
|
160
138
|
};
|
|
161
|
-
export declare const CreateContactRequestPropertiesMap: S.Schema<CreateContactRequestPropertiesMap>;
|
|
162
139
|
/** Array of segment IDs to add the contact to. */
|
|
163
140
|
export type CreateContactRequestSegmentsList = Array<string>;
|
|
164
|
-
export declare const CreateContactRequestSegmentsList: S.Schema<CreateContactRequestSegmentsList>;
|
|
165
141
|
/** The subscription status for this topic. */
|
|
166
142
|
export type CreateContactRequestTopicsItemSubscription = "opt_in" | "opt_out";
|
|
167
|
-
export declare const CreateContactRequestTopicsItemSubscription: any;
|
|
168
143
|
export interface CreateContactRequestTopicsItem {
|
|
169
144
|
/** The topic ID. */
|
|
170
145
|
id?: string;
|
|
171
146
|
/** The subscription status for this topic. */
|
|
172
147
|
subscription?: CreateContactRequestTopicsItemSubscription | (string & {});
|
|
173
148
|
}
|
|
174
|
-
export declare const CreateContactRequestTopicsItem: S.Schema<CreateContactRequestTopicsItem>;
|
|
175
149
|
/** Array of topic subscriptions for the contact. */
|
|
176
150
|
export type CreateContactRequestTopicsList = Array<CreateContactRequestTopicsItem>;
|
|
177
|
-
export declare const CreateContactRequestTopicsList: S.Schema<CreateContactRequestTopicsList>;
|
|
178
151
|
export interface CreateContactRequest {
|
|
179
152
|
/** Email address of the contact. */
|
|
180
153
|
email: string;
|
|
@@ -193,20 +166,16 @@ export interface CreateContactRequest {
|
|
|
193
166
|
/** Unique identifier of the audience to which the contact belongs. */
|
|
194
167
|
audience_id?: string;
|
|
195
168
|
}
|
|
196
|
-
export declare const CreateContactRequest: S.Schema<CreateContactRequest>;
|
|
197
169
|
export interface CreateContactResponseSuccess {
|
|
198
170
|
/** Type of the response object. */
|
|
199
171
|
object?: string;
|
|
200
172
|
/** Unique identifier for the created contact. */
|
|
201
173
|
id?: string;
|
|
202
174
|
}
|
|
203
|
-
export declare const CreateContactResponseSuccess: S.Schema<CreateContactResponseSuccess>;
|
|
204
175
|
/** The property type. */
|
|
205
176
|
export type CreateContactPropertyRequestType = "string" | "number";
|
|
206
|
-
export declare const CreateContactPropertyRequestType: any;
|
|
207
177
|
/** The default value to use when the property is not set for a contact. Must match the type specified in the type field. */
|
|
208
178
|
export type CreateContactPropertyRequestFallbackValue = string | number;
|
|
209
|
-
export declare const CreateContactPropertyRequestFallbackValue: S.Schema<CreateContactPropertyRequestFallbackValue>;
|
|
210
179
|
export interface CreateContactPropertyRequest {
|
|
211
180
|
/** The property key. Max length is 50 characters. Only alphanumeric characters and underscores are allowed. */
|
|
212
181
|
key: string;
|
|
@@ -215,26 +184,20 @@ export interface CreateContactPropertyRequest {
|
|
|
215
184
|
/** The default value to use when the property is not set for a contact. Must match the type specified in the type field. */
|
|
216
185
|
fallback_value?: CreateContactPropertyRequestFallbackValue;
|
|
217
186
|
}
|
|
218
|
-
export declare const CreateContactPropertyRequest: S.Schema<CreateContactPropertyRequest>;
|
|
219
187
|
export interface CreateContactPropertyResponseSuccess {
|
|
220
188
|
/** The ID of the contact property. */
|
|
221
189
|
id?: string;
|
|
222
190
|
/** The object type of the response. */
|
|
223
191
|
object?: string;
|
|
224
192
|
}
|
|
225
|
-
export declare const CreateContactPropertyResponseSuccess: S.Schema<CreateContactPropertyResponseSuccess>;
|
|
226
193
|
/** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
|
|
227
194
|
export type CreateDomainRequestRegion = "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
|
|
228
|
-
export declare const CreateDomainRequestRegion: any;
|
|
229
195
|
/** TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent. */
|
|
230
196
|
export type CreateDomainRequestTls = "opportunistic" | "enforced";
|
|
231
|
-
export declare const CreateDomainRequestTls: any;
|
|
232
197
|
/** Enable or disable sending emails from this domain. */
|
|
233
198
|
export type DomainCapabilitiesSending = "enabled" | "disabled";
|
|
234
|
-
export declare const DomainCapabilitiesSending: any;
|
|
235
199
|
/** Enable or disable receiving emails to this domain. */
|
|
236
200
|
export type DomainCapabilitiesReceiving = "enabled" | "disabled";
|
|
237
|
-
export declare const DomainCapabilitiesReceiving: any;
|
|
238
201
|
/** Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled. */
|
|
239
202
|
export interface DomainCapabilities {
|
|
240
203
|
/** Enable or disable sending emails from this domain. */
|
|
@@ -242,7 +205,6 @@ export interface DomainCapabilities {
|
|
|
242
205
|
/** Enable or disable receiving emails to this domain. */
|
|
243
206
|
receiving?: DomainCapabilitiesReceiving | (string & {});
|
|
244
207
|
}
|
|
245
|
-
export declare const DomainCapabilities: S.Schema<DomainCapabilities>;
|
|
246
208
|
export interface CreateDomainRequest {
|
|
247
209
|
/** The name of the domain you want to create. */
|
|
248
210
|
name: string;
|
|
@@ -260,16 +222,12 @@ export interface CreateDomainRequest {
|
|
|
260
222
|
/** The subdomain to use for click and open tracking. */
|
|
261
223
|
tracking_subdomain?: string;
|
|
262
224
|
}
|
|
263
|
-
export declare const CreateDomainRequest: S.Schema<CreateDomainRequest>;
|
|
264
225
|
/** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
|
|
265
226
|
export type DomainRecordRecord = "SPF" | "DKIM" | "Receiving" | "Tracking";
|
|
266
|
-
export declare const DomainRecordRecord: any;
|
|
267
227
|
/** The DNS record type. */
|
|
268
228
|
export type DomainRecordType = "MX" | "TXT" | "CNAME";
|
|
269
|
-
export declare const DomainRecordType: any;
|
|
270
229
|
/** The status of the record. */
|
|
271
230
|
export type DomainRecordStatus = "pending" | "verified" | "failed" | "temporary_failure" | "not_started";
|
|
272
|
-
export declare const DomainRecordStatus: any;
|
|
273
231
|
export interface DomainRecord {
|
|
274
232
|
/** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
|
|
275
233
|
record?: DomainRecordRecord;
|
|
@@ -286,9 +244,7 @@ export interface DomainRecord {
|
|
|
286
244
|
/** The priority of the record (only applicable for MX records). */
|
|
287
245
|
priority?: number;
|
|
288
246
|
}
|
|
289
|
-
export declare const DomainRecord: S.Schema<DomainRecord>;
|
|
290
247
|
export type CreateDomainResponseRecordsList = Array<DomainRecord>;
|
|
291
|
-
export declare const CreateDomainResponseRecordsList: S.Schema<CreateDomainResponseRecordsList>;
|
|
292
248
|
export interface CreateDomainResponse {
|
|
293
249
|
/** The ID of the domain. */
|
|
294
250
|
id?: string;
|
|
@@ -309,41 +265,29 @@ export interface CreateDomainResponse {
|
|
|
309
265
|
/** The subdomain used for click and open tracking. */
|
|
310
266
|
tracking_subdomain?: string;
|
|
311
267
|
}
|
|
312
|
-
export declare const CreateDomainResponse: S.Schema<CreateDomainResponse>;
|
|
313
268
|
export type CreateEmailRequestToCase1List = Array<string>;
|
|
314
|
-
export declare const CreateEmailRequestToCase1List: S.Schema<CreateEmailRequestToCase1List>;
|
|
315
269
|
/** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
|
|
316
270
|
export type CreateEmailRequestTo = string | CreateEmailRequestToCase1List;
|
|
317
|
-
export declare const CreateEmailRequestTo: S.Schema<CreateEmailRequestTo>;
|
|
318
271
|
export type CreateEmailRequestBccCase1List = Array<string>;
|
|
319
|
-
export declare const CreateEmailRequestBccCase1List: S.Schema<CreateEmailRequestBccCase1List>;
|
|
320
272
|
/** Bcc recipient email address. For multiple addresses, send as an array of strings. */
|
|
321
273
|
export type CreateEmailRequestBcc = string | CreateEmailRequestBccCase1List;
|
|
322
|
-
export declare const CreateEmailRequestBcc: S.Schema<CreateEmailRequestBcc>;
|
|
323
274
|
export type CreateEmailRequestCcCase1List = Array<string>;
|
|
324
|
-
export declare const CreateEmailRequestCcCase1List: S.Schema<CreateEmailRequestCcCase1List>;
|
|
325
275
|
/** Cc recipient email address. For multiple addresses, send as an array of strings. */
|
|
326
276
|
export type CreateEmailRequestCc = string | CreateEmailRequestCcCase1List;
|
|
327
|
-
export declare const CreateEmailRequestCc: S.Schema<CreateEmailRequestCc>;
|
|
328
277
|
export type CreateEmailRequestReplyToCase1List = Array<string>;
|
|
329
|
-
export declare const CreateEmailRequestReplyToCase1List: S.Schema<CreateEmailRequestReplyToCase1List>;
|
|
330
278
|
/** Reply-to email address. For multiple addresses, send as an array of strings. */
|
|
331
279
|
export type CreateEmailRequestReplyTo = string | CreateEmailRequestReplyToCase1List;
|
|
332
|
-
export declare const CreateEmailRequestReplyTo: S.Schema<CreateEmailRequestReplyTo>;
|
|
333
280
|
export type CreateEmailRequestTemplateVariablesValue = string | number;
|
|
334
|
-
export declare const CreateEmailRequestTemplateVariablesValue: S.Schema<CreateEmailRequestTemplateVariablesValue>;
|
|
335
281
|
/** Template variables object with key/value pairs. */
|
|
336
282
|
export type CreateEmailRequestTemplateVariablesMap = {
|
|
337
283
|
[key: string]: CreateEmailRequestTemplateVariablesValue | undefined;
|
|
338
284
|
};
|
|
339
|
-
export declare const CreateEmailRequestTemplateVariablesMap: S.Schema<CreateEmailRequestTemplateVariablesMap>;
|
|
340
285
|
export interface CreateEmailRequestTemplate {
|
|
341
286
|
/** The id of the published email template. */
|
|
342
287
|
id: string;
|
|
343
288
|
/** Template variables object with key/value pairs. */
|
|
344
289
|
variables?: CreateEmailRequestTemplateVariablesMap;
|
|
345
290
|
}
|
|
346
|
-
export declare const CreateEmailRequestTemplate: S.Schema<CreateEmailRequestTemplate>;
|
|
347
291
|
export interface Attachment {
|
|
348
292
|
/** Content of an attached file. */
|
|
349
293
|
content?: string;
|
|
@@ -356,18 +300,14 @@ export interface Attachment {
|
|
|
356
300
|
/** Content ID for embedding inline images using cid references (e.g., cid:image001). */
|
|
357
301
|
content_id?: string;
|
|
358
302
|
}
|
|
359
|
-
export declare const Attachment: S.Schema<Attachment>;
|
|
360
303
|
export type CreateEmailRequestAttachmentsList = Array<Attachment>;
|
|
361
|
-
export declare const CreateEmailRequestAttachmentsList: S.Schema<CreateEmailRequestAttachmentsList>;
|
|
362
304
|
export interface Tag {
|
|
363
|
-
/** The name of the email tag. It can only contain ASCII letters (a
|
|
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. */
|
|
364
306
|
name?: string;
|
|
365
|
-
/** The value of the email tag.It can only contain ASCII letters (a
|
|
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. */
|
|
366
308
|
value?: string;
|
|
367
309
|
}
|
|
368
|
-
export declare const Tag: S.Schema<Tag>;
|
|
369
310
|
export type CreateEmailRequestTagsList = Array<Tag>;
|
|
370
|
-
export declare const CreateEmailRequestTagsList: S.Schema<CreateEmailRequestTagsList>;
|
|
371
311
|
export interface CreateEmailRequest {
|
|
372
312
|
/** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
|
|
373
313
|
from: string;
|
|
@@ -395,50 +335,35 @@ export interface CreateEmailRequest {
|
|
|
395
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. */
|
|
396
336
|
topic_id?: string;
|
|
397
337
|
}
|
|
398
|
-
export declare const CreateEmailRequest: S.Schema<CreateEmailRequest>;
|
|
399
338
|
export interface SendEmailResponse {
|
|
400
339
|
/** The ID of the sent email. */
|
|
401
340
|
id?: string;
|
|
402
341
|
}
|
|
403
|
-
export declare const SendEmailResponse: S.Schema<SendEmailResponse>;
|
|
404
342
|
export type SendEmailRequestToCase1List = Array<string>;
|
|
405
|
-
export declare const SendEmailRequestToCase1List: S.Schema<SendEmailRequestToCase1List>;
|
|
406
343
|
/** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
|
|
407
344
|
export type SendEmailRequestTo = string | SendEmailRequestToCase1List;
|
|
408
|
-
export declare const SendEmailRequestTo: S.Schema<SendEmailRequestTo>;
|
|
409
345
|
export type SendEmailRequestBccCase1List = Array<string>;
|
|
410
|
-
export declare const SendEmailRequestBccCase1List: S.Schema<SendEmailRequestBccCase1List>;
|
|
411
346
|
/** Bcc recipient email address. For multiple addresses, send as an array of strings. */
|
|
412
347
|
export type SendEmailRequestBcc = string | SendEmailRequestBccCase1List;
|
|
413
|
-
export declare const SendEmailRequestBcc: S.Schema<SendEmailRequestBcc>;
|
|
414
348
|
export type SendEmailRequestCcCase1List = Array<string>;
|
|
415
|
-
export declare const SendEmailRequestCcCase1List: S.Schema<SendEmailRequestCcCase1List>;
|
|
416
349
|
/** Cc recipient email address. For multiple addresses, send as an array of strings. */
|
|
417
350
|
export type SendEmailRequestCc = string | SendEmailRequestCcCase1List;
|
|
418
|
-
export declare const SendEmailRequestCc: S.Schema<SendEmailRequestCc>;
|
|
419
351
|
export type SendEmailRequestReplyToCase1List = Array<string>;
|
|
420
|
-
export declare const SendEmailRequestReplyToCase1List: S.Schema<SendEmailRequestReplyToCase1List>;
|
|
421
352
|
/** Reply-to email address. For multiple addresses, send as an array of strings. */
|
|
422
353
|
export type SendEmailRequestReplyTo = string | SendEmailRequestReplyToCase1List;
|
|
423
|
-
export declare const SendEmailRequestReplyTo: S.Schema<SendEmailRequestReplyTo>;
|
|
424
354
|
export type SendEmailRequestTemplateVariablesValue = string | number;
|
|
425
|
-
export declare const SendEmailRequestTemplateVariablesValue: S.Schema<SendEmailRequestTemplateVariablesValue>;
|
|
426
355
|
/** Template variables object with key/value pairs. */
|
|
427
356
|
export type SendEmailRequestTemplateVariablesMap = {
|
|
428
357
|
[key: string]: SendEmailRequestTemplateVariablesValue | undefined;
|
|
429
358
|
};
|
|
430
|
-
export declare const SendEmailRequestTemplateVariablesMap: S.Schema<SendEmailRequestTemplateVariablesMap>;
|
|
431
359
|
export interface SendEmailRequestTemplate {
|
|
432
360
|
/** The id of the published email template. */
|
|
433
361
|
id: string;
|
|
434
362
|
/** Template variables object with key/value pairs. */
|
|
435
363
|
variables?: SendEmailRequestTemplateVariablesMap;
|
|
436
364
|
}
|
|
437
|
-
export declare const SendEmailRequestTemplate: S.Schema<SendEmailRequestTemplate>;
|
|
438
365
|
export type SendEmailRequestAttachmentsList = Array<Attachment>;
|
|
439
|
-
export declare const SendEmailRequestAttachmentsList: S.Schema<SendEmailRequestAttachmentsList>;
|
|
440
366
|
export type SendEmailRequestTagsList = Array<Tag>;
|
|
441
|
-
export declare const SendEmailRequestTagsList: S.Schema<SendEmailRequestTagsList>;
|
|
442
367
|
export interface SendEmailRequest {
|
|
443
368
|
/** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
|
|
444
369
|
from: string;
|
|
@@ -466,38 +391,30 @@ export interface SendEmailRequest {
|
|
|
466
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. */
|
|
467
392
|
topic_id?: string;
|
|
468
393
|
}
|
|
469
|
-
export declare const SendEmailRequest: S.Schema<SendEmailRequest>;
|
|
470
394
|
export type CreateEmailBatchRequestBodyList = Array<SendEmailRequest>;
|
|
471
|
-
export declare const CreateEmailBatchRequestBodyList: S.Schema<CreateEmailBatchRequestBodyList>;
|
|
472
395
|
export interface CreateEmailBatchRequest {
|
|
473
396
|
body?: CreateEmailBatchRequestBodyList;
|
|
474
397
|
}
|
|
475
|
-
export declare const CreateEmailBatchRequest: S.Schema<CreateEmailBatchRequest>;
|
|
476
398
|
export interface CreateBatchEmailsResponseDataItem {
|
|
477
399
|
/** The ID of the sent email. */
|
|
478
400
|
id?: string;
|
|
479
401
|
}
|
|
480
|
-
export declare const CreateBatchEmailsResponseDataItem: S.Schema<CreateBatchEmailsResponseDataItem>;
|
|
481
402
|
export type CreateBatchEmailsResponseDataList = Array<CreateBatchEmailsResponseDataItem>;
|
|
482
|
-
export declare const CreateBatchEmailsResponseDataList: S.Schema<CreateBatchEmailsResponseDataList>;
|
|
483
403
|
export interface CreateBatchEmailsResponse {
|
|
484
404
|
data?: CreateBatchEmailsResponseDataList;
|
|
485
405
|
}
|
|
486
|
-
export declare const CreateBatchEmailsResponse: S.Schema<CreateBatchEmailsResponse>;
|
|
487
406
|
export interface CreateEventRequest {
|
|
488
407
|
/** The name of the event. Cannot start with the reserved `resend:` prefix. */
|
|
489
408
|
name: string;
|
|
490
409
|
/** An optional flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
|
|
491
410
|
schema?: unknown | null;
|
|
492
411
|
}
|
|
493
|
-
export declare const CreateEventRequest: S.Schema<CreateEventRequest>;
|
|
494
412
|
export interface CreateEventResponse {
|
|
495
413
|
/** Type of the response object. */
|
|
496
414
|
object?: string;
|
|
497
415
|
/** The ID of the created event. */
|
|
498
416
|
id?: string;
|
|
499
417
|
}
|
|
500
|
-
export declare const CreateEventResponse: S.Schema<CreateEventResponse>;
|
|
501
418
|
export interface CreateSegmentRequest {
|
|
502
419
|
/** The name of the segment. */
|
|
503
420
|
name: string;
|
|
@@ -506,25 +423,19 @@ export interface CreateSegmentRequest {
|
|
|
506
423
|
/** Filter conditions for the segment. */
|
|
507
424
|
filter?: unknown;
|
|
508
425
|
}
|
|
509
|
-
export declare const CreateSegmentRequest: S.Schema<CreateSegmentRequest>;
|
|
510
426
|
export interface CreateSegmentResponseSuccess {
|
|
511
427
|
/** The ID of the segment. */
|
|
512
428
|
id?: string;
|
|
513
429
|
/** The object type of the response. */
|
|
514
430
|
object?: string;
|
|
515
431
|
}
|
|
516
|
-
export declare const CreateSegmentResponseSuccess: S.Schema<CreateSegmentResponseSuccess>;
|
|
517
432
|
/** Reply-to email addresses. */
|
|
518
433
|
export type CreateTemplateRequestReplyToList = Array<string>;
|
|
519
|
-
export declare const CreateTemplateRequestReplyToList: S.Schema<CreateTemplateRequestReplyToList>;
|
|
520
434
|
/** The type of the variable. */
|
|
521
435
|
export type TemplateVariableInputType = "string" | "number" | "boolean" | "object" | "list";
|
|
522
|
-
export declare const TemplateVariableInputType: any;
|
|
523
436
|
export type TemplateVariableInputFallbackValueCase4List = Array<unknown>;
|
|
524
|
-
export declare const TemplateVariableInputFallbackValueCase4List: S.Schema<TemplateVariableInputFallbackValueCase4List>;
|
|
525
437
|
/** The fallback value of the variable. */
|
|
526
438
|
export type TemplateVariableInputFallbackValue = string | number | boolean | unknown | TemplateVariableInputFallbackValueCase4List;
|
|
527
|
-
export declare const TemplateVariableInputFallbackValue: S.Schema<TemplateVariableInputFallbackValue>;
|
|
528
439
|
export interface TemplateVariableInput {
|
|
529
440
|
/** The key of the variable. */
|
|
530
441
|
key: string;
|
|
@@ -533,9 +444,7 @@ export interface TemplateVariableInput {
|
|
|
533
444
|
/** The fallback value of the variable. */
|
|
534
445
|
fallback_value?: TemplateVariableInputFallbackValue;
|
|
535
446
|
}
|
|
536
|
-
export declare const TemplateVariableInput: S.Schema<TemplateVariableInput>;
|
|
537
447
|
export type CreateTemplateRequestVariablesList = Array<TemplateVariableInput>;
|
|
538
|
-
export declare const CreateTemplateRequestVariablesList: S.Schema<CreateTemplateRequestVariablesList>;
|
|
539
448
|
export interface CreateTemplateRequest {
|
|
540
449
|
/** The name of the template. */
|
|
541
450
|
name: string;
|
|
@@ -553,20 +462,16 @@ export interface CreateTemplateRequest {
|
|
|
553
462
|
text?: string;
|
|
554
463
|
variables?: CreateTemplateRequestVariablesList;
|
|
555
464
|
}
|
|
556
|
-
export declare const CreateTemplateRequest: S.Schema<CreateTemplateRequest>;
|
|
557
465
|
export interface CreateTemplateResponseSuccess {
|
|
558
466
|
/** The ID of the template. */
|
|
559
467
|
id?: string;
|
|
560
468
|
/** The object type of the response. */
|
|
561
469
|
object?: string;
|
|
562
470
|
}
|
|
563
|
-
export declare const CreateTemplateResponseSuccess: S.Schema<CreateTemplateResponseSuccess>;
|
|
564
471
|
/** The default subscription status for the topic. Cannot be changed after creation. */
|
|
565
472
|
export type CreateTopicRequestDefaultSubscription = "opt_in" | "opt_out";
|
|
566
|
-
export declare const CreateTopicRequestDefaultSubscription: any;
|
|
567
473
|
/** 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. */
|
|
568
474
|
export type CreateTopicRequestVisibility = "public" | "private";
|
|
569
|
-
export declare const CreateTopicRequestVisibility: any;
|
|
570
475
|
export interface CreateTopicRequest {
|
|
571
476
|
/** The name of the topic. Max 50 characters. */
|
|
572
477
|
name: string;
|
|
@@ -577,24 +482,20 @@ export interface CreateTopicRequest {
|
|
|
577
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. */
|
|
578
483
|
visibility?: CreateTopicRequestVisibility | (string & {});
|
|
579
484
|
}
|
|
580
|
-
export declare const CreateTopicRequest: S.Schema<CreateTopicRequest>;
|
|
581
485
|
export interface CreateTopicResponseSuccess {
|
|
582
486
|
/** The ID of the topic. */
|
|
583
487
|
id?: string;
|
|
584
488
|
/** The object type of the response. */
|
|
585
489
|
object?: string;
|
|
586
490
|
}
|
|
587
|
-
export declare const CreateTopicResponseSuccess: S.Schema<CreateTopicResponseSuccess>;
|
|
588
491
|
/** Array of event types to subscribe to. */
|
|
589
492
|
export type CreateWebhookRequestEventsList = Array<string>;
|
|
590
|
-
export declare const CreateWebhookRequestEventsList: S.Schema<CreateWebhookRequestEventsList>;
|
|
591
493
|
export interface CreateWebhookRequest {
|
|
592
494
|
/** The URL where webhook events will be sent. */
|
|
593
495
|
endpoint: string;
|
|
594
496
|
/** Array of event types to subscribe to. */
|
|
595
497
|
events: CreateWebhookRequestEventsList;
|
|
596
498
|
}
|
|
597
|
-
export declare const CreateWebhookRequest: S.Schema<CreateWebhookRequest>;
|
|
598
499
|
export interface CreateWebhookResponse {
|
|
599
500
|
/** The type of object. */
|
|
600
501
|
object?: string;
|
|
@@ -603,12 +504,10 @@ export interface CreateWebhookResponse {
|
|
|
603
504
|
/** The secret key used to verify webhook payloads. */
|
|
604
505
|
signing_secret?: string | Redacted.Redacted<string>;
|
|
605
506
|
}
|
|
606
|
-
export declare const CreateWebhookResponse: S.Schema<CreateWebhookResponse>;
|
|
607
507
|
export interface DeleteApiKeyRequest {
|
|
608
508
|
/** The API key ID. */
|
|
609
509
|
api_key_id: string;
|
|
610
510
|
}
|
|
611
|
-
export declare const DeleteApiKeyRequest: S.Schema<DeleteApiKeyRequest>;
|
|
612
511
|
export interface DeleteApiKeyResponse {
|
|
613
512
|
/** The type of object. */
|
|
614
513
|
object?: string;
|
|
@@ -617,12 +516,10 @@ export interface DeleteApiKeyResponse {
|
|
|
617
516
|
/** Indicates whether the API key was successfully deleted. */
|
|
618
517
|
deleted?: boolean;
|
|
619
518
|
}
|
|
620
|
-
export declare const DeleteApiKeyResponse: S.Schema<DeleteApiKeyResponse>;
|
|
621
519
|
export interface DeleteAutomationRequest {
|
|
622
520
|
/** The ID of the automation. */
|
|
623
521
|
automation_id: string;
|
|
624
522
|
}
|
|
625
|
-
export declare const DeleteAutomationRequest: S.Schema<DeleteAutomationRequest>;
|
|
626
523
|
export interface DeleteAutomationResponse {
|
|
627
524
|
/** Type of the response object. */
|
|
628
525
|
object?: string;
|
|
@@ -631,12 +528,10 @@ export interface DeleteAutomationResponse {
|
|
|
631
528
|
/** Indicates whether the automation was successfully deleted. */
|
|
632
529
|
deleted?: boolean;
|
|
633
530
|
}
|
|
634
|
-
export declare const DeleteAutomationResponse: S.Schema<DeleteAutomationResponse>;
|
|
635
531
|
export interface DeleteBroadcastRequest {
|
|
636
532
|
/** The Broadcast ID. */
|
|
637
533
|
id: string;
|
|
638
534
|
}
|
|
639
|
-
export declare const DeleteBroadcastRequest: S.Schema<DeleteBroadcastRequest>;
|
|
640
535
|
export interface RemoveBroadcastResponseSuccess {
|
|
641
536
|
/** The ID of the broadcast. */
|
|
642
537
|
id?: string;
|
|
@@ -645,12 +540,10 @@ export interface RemoveBroadcastResponseSuccess {
|
|
|
645
540
|
/** The deleted attribute indicates that the corresponding broadcast has been deleted. */
|
|
646
541
|
deleted?: boolean;
|
|
647
542
|
}
|
|
648
|
-
export declare const RemoveBroadcastResponseSuccess: S.Schema<RemoveBroadcastResponseSuccess>;
|
|
649
543
|
export interface DeleteContactRequest {
|
|
650
544
|
/** The Contact ID or email address. */
|
|
651
545
|
id: string;
|
|
652
546
|
}
|
|
653
|
-
export declare const DeleteContactRequest: S.Schema<DeleteContactRequest>;
|
|
654
547
|
export interface RemoveContactResponseSuccess {
|
|
655
548
|
/** Type of the response object. */
|
|
656
549
|
object?: string;
|
|
@@ -659,12 +552,10 @@ export interface RemoveContactResponseSuccess {
|
|
|
659
552
|
/** Indicates whether the contact was successfully deleted. */
|
|
660
553
|
deleted?: boolean;
|
|
661
554
|
}
|
|
662
|
-
export declare const RemoveContactResponseSuccess: S.Schema<RemoveContactResponseSuccess>;
|
|
663
555
|
export interface DeleteContactPropertyRequest {
|
|
664
556
|
/** The Contact Property ID. */
|
|
665
557
|
id: string;
|
|
666
558
|
}
|
|
667
|
-
export declare const DeleteContactPropertyRequest: S.Schema<DeleteContactPropertyRequest>;
|
|
668
559
|
export interface RemoveContactPropertyResponseSuccess {
|
|
669
560
|
/** The ID of the contact property. */
|
|
670
561
|
id?: string;
|
|
@@ -673,14 +564,12 @@ export interface RemoveContactPropertyResponseSuccess {
|
|
|
673
564
|
/** Indicates whether the contact property was successfully deleted. */
|
|
674
565
|
deleted?: boolean;
|
|
675
566
|
}
|
|
676
|
-
export declare const RemoveContactPropertyResponseSuccess: S.Schema<RemoveContactPropertyResponseSuccess>;
|
|
677
567
|
export interface DeleteContactSegmentRequest {
|
|
678
568
|
/** The Contact ID or email address. */
|
|
679
569
|
contact_id: string;
|
|
680
570
|
/** The Segment ID. */
|
|
681
571
|
segment_id: string;
|
|
682
572
|
}
|
|
683
|
-
export declare const DeleteContactSegmentRequest: S.Schema<DeleteContactSegmentRequest>;
|
|
684
573
|
export interface RemoveContactFromSegmentResponseSuccess {
|
|
685
574
|
/** The object type. */
|
|
686
575
|
object?: string;
|
|
@@ -691,12 +580,10 @@ export interface RemoveContactFromSegmentResponseSuccess {
|
|
|
691
580
|
/** Indicates whether the contact was successfully removed from the segment. */
|
|
692
581
|
deleted?: boolean;
|
|
693
582
|
}
|
|
694
|
-
export declare const RemoveContactFromSegmentResponseSuccess: S.Schema<RemoveContactFromSegmentResponseSuccess>;
|
|
695
583
|
export interface DeleteDomainRequest {
|
|
696
584
|
/** The ID of the domain. */
|
|
697
585
|
domain_id: string;
|
|
698
586
|
}
|
|
699
|
-
export declare const DeleteDomainRequest: S.Schema<DeleteDomainRequest>;
|
|
700
587
|
export interface DeleteDomainResponse {
|
|
701
588
|
/** The type of object. */
|
|
702
589
|
object?: string;
|
|
@@ -705,12 +592,10 @@ export interface DeleteDomainResponse {
|
|
|
705
592
|
/** Indicates whether the domain was deleted successfully. */
|
|
706
593
|
deleted?: boolean;
|
|
707
594
|
}
|
|
708
|
-
export declare const DeleteDomainResponse: S.Schema<DeleteDomainResponse>;
|
|
709
595
|
export interface DeleteEventRequest {
|
|
710
596
|
/** The event ID (UUID) or event name. */
|
|
711
597
|
identifier: string;
|
|
712
598
|
}
|
|
713
|
-
export declare const DeleteEventRequest: S.Schema<DeleteEventRequest>;
|
|
714
599
|
export interface RemoveEventResponse {
|
|
715
600
|
/** Type of the response object. */
|
|
716
601
|
object?: string;
|
|
@@ -719,12 +604,10 @@ export interface RemoveEventResponse {
|
|
|
719
604
|
/** Indicates whether the event was deleted. */
|
|
720
605
|
deleted?: boolean;
|
|
721
606
|
}
|
|
722
|
-
export declare const RemoveEventResponse: S.Schema<RemoveEventResponse>;
|
|
723
607
|
export interface DeleteSegmentRequest {
|
|
724
608
|
/** The Segment ID. */
|
|
725
609
|
id: string;
|
|
726
610
|
}
|
|
727
|
-
export declare const DeleteSegmentRequest: S.Schema<DeleteSegmentRequest>;
|
|
728
611
|
export interface RemoveSegmentResponseSuccess {
|
|
729
612
|
/** The ID of the segment. */
|
|
730
613
|
id?: string;
|
|
@@ -733,12 +616,10 @@ export interface RemoveSegmentResponseSuccess {
|
|
|
733
616
|
/** Indicates whether the segment was successfully deleted. */
|
|
734
617
|
deleted?: boolean;
|
|
735
618
|
}
|
|
736
|
-
export declare const RemoveSegmentResponseSuccess: S.Schema<RemoveSegmentResponseSuccess>;
|
|
737
619
|
export interface DeleteTemplateRequest {
|
|
738
620
|
/** The Template ID or alias. */
|
|
739
621
|
id: string;
|
|
740
622
|
}
|
|
741
|
-
export declare const DeleteTemplateRequest: S.Schema<DeleteTemplateRequest>;
|
|
742
623
|
export interface RemoveTemplateResponseSuccess {
|
|
743
624
|
/** Type of the response object. */
|
|
744
625
|
object?: string;
|
|
@@ -747,12 +628,10 @@ export interface RemoveTemplateResponseSuccess {
|
|
|
747
628
|
/** Indicates whether the template was successfully deleted. */
|
|
748
629
|
deleted?: boolean;
|
|
749
630
|
}
|
|
750
|
-
export declare const RemoveTemplateResponseSuccess: S.Schema<RemoveTemplateResponseSuccess>;
|
|
751
631
|
export interface DeleteTopicRequest {
|
|
752
632
|
/** The Topic ID. */
|
|
753
633
|
id: string;
|
|
754
634
|
}
|
|
755
|
-
export declare const DeleteTopicRequest: S.Schema<DeleteTopicRequest>;
|
|
756
635
|
export interface RemoveTopicResponseSuccess {
|
|
757
636
|
/** The ID of the topic. */
|
|
758
637
|
id?: string;
|
|
@@ -761,12 +640,10 @@ export interface RemoveTopicResponseSuccess {
|
|
|
761
640
|
/** Indicates whether the topic was successfully deleted. */
|
|
762
641
|
deleted?: boolean;
|
|
763
642
|
}
|
|
764
|
-
export declare const RemoveTopicResponseSuccess: S.Schema<RemoveTopicResponseSuccess>;
|
|
765
643
|
export interface DeleteWebhookRequest {
|
|
766
644
|
/** The Webhook ID. */
|
|
767
645
|
webhook_id: string;
|
|
768
646
|
}
|
|
769
|
-
export declare const DeleteWebhookRequest: S.Schema<DeleteWebhookRequest>;
|
|
770
647
|
export interface DeleteWebhookResponse {
|
|
771
648
|
/** The type of object. */
|
|
772
649
|
object?: string;
|
|
@@ -775,30 +652,24 @@ export interface DeleteWebhookResponse {
|
|
|
775
652
|
/** Indicates whether the webhook was successfully deleted. */
|
|
776
653
|
deleted?: boolean;
|
|
777
654
|
}
|
|
778
|
-
export declare const DeleteWebhookResponse: S.Schema<DeleteWebhookResponse>;
|
|
779
655
|
export interface DuplicateTemplateRequest {
|
|
780
656
|
/** The Template ID or alias. */
|
|
781
657
|
id: string;
|
|
782
658
|
}
|
|
783
|
-
export declare const DuplicateTemplateRequest: S.Schema<DuplicateTemplateRequest>;
|
|
784
659
|
export interface DuplicateTemplateResponseSuccess {
|
|
785
660
|
/** The ID of the duplicated template. */
|
|
786
661
|
id?: string;
|
|
787
662
|
/** The object type of the response. */
|
|
788
663
|
object?: string;
|
|
789
664
|
}
|
|
790
|
-
export declare const DuplicateTemplateResponseSuccess: S.Schema<DuplicateTemplateResponseSuccess>;
|
|
791
665
|
export interface GetAutomationRequest {
|
|
792
666
|
/** The ID of the automation. */
|
|
793
667
|
automation_id: string;
|
|
794
668
|
}
|
|
795
|
-
export declare const GetAutomationRequest: S.Schema<GetAutomationRequest>;
|
|
796
669
|
/** The current status of the automation. */
|
|
797
670
|
export type AutomationStatus = "enabled" | "disabled";
|
|
798
|
-
export declare const AutomationStatus: any;
|
|
799
671
|
/** The type of automation step. */
|
|
800
672
|
export type AutomationStepResponseType = "trigger" | "send_email" | "delay" | "wait_for_event" | "condition" | "contact_update" | "contact_delete" | "add_to_segment";
|
|
801
|
-
export declare const AutomationStepResponseType: any;
|
|
802
673
|
/** A step as returned when retrieving an automation. */
|
|
803
674
|
export interface AutomationStepResponse {
|
|
804
675
|
/** The unique key of this step within the automation graph. */
|
|
@@ -808,13 +679,10 @@ export interface AutomationStepResponse {
|
|
|
808
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. */
|
|
809
680
|
config?: unknown;
|
|
810
681
|
}
|
|
811
|
-
export declare const AutomationStepResponse: S.Schema<AutomationStepResponse>;
|
|
812
682
|
/** The steps in the active version of the automation. */
|
|
813
683
|
export type AutomationStepsList = Array<AutomationStepResponse>;
|
|
814
|
-
export declare const AutomationStepsList: S.Schema<AutomationStepsList>;
|
|
815
684
|
/** The connections between steps in the active version of the automation. */
|
|
816
685
|
export type AutomationConnectionsList = Array<AutomationConnection>;
|
|
817
|
-
export declare const AutomationConnectionsList: S.Schema<AutomationConnectionsList>;
|
|
818
686
|
export interface Automation {
|
|
819
687
|
/** Type of the response object. */
|
|
820
688
|
object?: string;
|
|
@@ -833,20 +701,16 @@ export interface Automation {
|
|
|
833
701
|
/** The connections between steps in the active version of the automation. */
|
|
834
702
|
connections?: AutomationConnectionsList;
|
|
835
703
|
}
|
|
836
|
-
export declare const Automation: S.Schema<Automation>;
|
|
837
704
|
export interface GetAutomationRunRequest {
|
|
838
705
|
/** The ID of the automation. */
|
|
839
706
|
automation_id: string;
|
|
840
707
|
/** The ID of the automation run. */
|
|
841
708
|
run_id: string;
|
|
842
709
|
}
|
|
843
|
-
export declare const GetAutomationRunRequest: S.Schema<GetAutomationRunRequest>;
|
|
844
710
|
/** The current status of the automation run. */
|
|
845
711
|
export type AutomationRunStatus = "running" | "completed" | "failed" | "cancelled";
|
|
846
|
-
export declare const AutomationRunStatus: any;
|
|
847
712
|
/** The type of automation step. */
|
|
848
713
|
export type AutomationRunStepType = "trigger" | "send_email" | "delay" | "wait_for_event" | "condition" | "contact_update" | "contact_delete" | "add_to_segment";
|
|
849
|
-
export declare const AutomationRunStepType: any;
|
|
850
714
|
/** A step execution within an automation run. */
|
|
851
715
|
export interface AutomationRunStep {
|
|
852
716
|
/** The key of the automation step. */
|
|
@@ -866,10 +730,8 @@ export interface AutomationRunStep {
|
|
|
866
730
|
/** The date and time the step record was created. */
|
|
867
731
|
created_at?: string;
|
|
868
732
|
}
|
|
869
|
-
export declare const AutomationRunStep: S.Schema<AutomationRunStep>;
|
|
870
733
|
/** The steps executed in this run, sorted in graph order. */
|
|
871
734
|
export type AutomationRunStepsList = Array<AutomationRunStep>;
|
|
872
|
-
export declare const AutomationRunStepsList: S.Schema<AutomationRunStepsList>;
|
|
873
735
|
export interface AutomationRun {
|
|
874
736
|
/** Type of the response object. */
|
|
875
737
|
object?: string;
|
|
@@ -886,15 +748,12 @@ export interface AutomationRun {
|
|
|
886
748
|
/** The steps executed in this run, sorted in graph order. */
|
|
887
749
|
steps?: AutomationRunStepsList;
|
|
888
750
|
}
|
|
889
|
-
export declare const AutomationRun: S.Schema<AutomationRun>;
|
|
890
751
|
export interface GetBroadcastRequest {
|
|
891
752
|
/** The Broadcast ID. */
|
|
892
753
|
id: string;
|
|
893
754
|
}
|
|
894
|
-
export declare const GetBroadcastRequest: S.Schema<GetBroadcastRequest>;
|
|
895
755
|
/** The email addresses to which replies should be sent. */
|
|
896
756
|
export type GetBroadcastResponseSuccessReplyToList = Array<string>;
|
|
897
|
-
export declare const GetBroadcastResponseSuccessReplyToList: S.Schema<GetBroadcastResponseSuccessReplyToList>;
|
|
898
757
|
export interface GetBroadcastResponseSuccess {
|
|
899
758
|
/** Unique identifier for the broadcast. */
|
|
900
759
|
id?: string;
|
|
@@ -927,17 +786,14 @@ export interface GetBroadcastResponseSuccess {
|
|
|
927
786
|
/** The topic ID that the broadcast is scoped to. */
|
|
928
787
|
topic_id?: string | null;
|
|
929
788
|
}
|
|
930
|
-
export declare const GetBroadcastResponseSuccess: S.Schema<GetBroadcastResponseSuccess>;
|
|
931
789
|
export interface GetContactRequest {
|
|
932
790
|
/** The Contact ID or email address. */
|
|
933
791
|
id: string;
|
|
934
792
|
}
|
|
935
|
-
export declare const GetContactRequest: S.Schema<GetContactRequest>;
|
|
936
793
|
/** A map of custom property keys and values. */
|
|
937
794
|
export type GetContactResponseSuccessPropertiesMap = {
|
|
938
795
|
[key: string]: unknown | undefined;
|
|
939
796
|
};
|
|
940
|
-
export declare const GetContactResponseSuccessPropertiesMap: S.Schema<GetContactResponseSuccessPropertiesMap>;
|
|
941
797
|
export interface GetContactResponseSuccess {
|
|
942
798
|
/** Type of the response object. */
|
|
943
799
|
object?: string;
|
|
@@ -956,15 +812,12 @@ export interface GetContactResponseSuccess {
|
|
|
956
812
|
/** A map of custom property keys and values. */
|
|
957
813
|
properties?: GetContactResponseSuccessPropertiesMap;
|
|
958
814
|
}
|
|
959
|
-
export declare const GetContactResponseSuccess: S.Schema<GetContactResponseSuccess>;
|
|
960
815
|
export interface GetContactPropertyRequest {
|
|
961
816
|
/** The Contact Property ID. */
|
|
962
817
|
id: string;
|
|
963
818
|
}
|
|
964
|
-
export declare const GetContactPropertyRequest: S.Schema<GetContactPropertyRequest>;
|
|
965
819
|
/** The default value when the property is not set for a contact. */
|
|
966
820
|
export type GetContactPropertyResponseSuccessFallbackValue = string | number;
|
|
967
|
-
export declare const GetContactPropertyResponseSuccessFallbackValue: S.Schema<GetContactPropertyResponseSuccessFallbackValue>;
|
|
968
821
|
export interface GetContactPropertyResponseSuccess {
|
|
969
822
|
/** The object type. */
|
|
970
823
|
object?: string;
|
|
@@ -979,14 +832,11 @@ export interface GetContactPropertyResponseSuccess {
|
|
|
979
832
|
/** Timestamp indicating when the contact property was created. */
|
|
980
833
|
created_at?: string;
|
|
981
834
|
}
|
|
982
|
-
export declare const GetContactPropertyResponseSuccess: S.Schema<GetContactPropertyResponseSuccess>;
|
|
983
835
|
export interface GetDomainRequest {
|
|
984
836
|
/** The ID of the domain. */
|
|
985
837
|
domain_id: string;
|
|
986
838
|
}
|
|
987
|
-
export declare const GetDomainRequest: S.Schema<GetDomainRequest>;
|
|
988
839
|
export type DomainRecordsList = Array<DomainRecord>;
|
|
989
|
-
export declare const DomainRecordsList: S.Schema<DomainRecordsList>;
|
|
990
840
|
export interface Domain {
|
|
991
841
|
/** The type of object. */
|
|
992
842
|
object?: string;
|
|
@@ -1009,22 +859,18 @@ export interface Domain {
|
|
|
1009
859
|
capabilities?: DomainCapabilities;
|
|
1010
860
|
records?: DomainRecordsList;
|
|
1011
861
|
}
|
|
1012
|
-
export declare const Domain: S.Schema<Domain>;
|
|
1013
862
|
export interface GetEmailRequest {
|
|
1014
863
|
/** The ID of the email. */
|
|
1015
864
|
email_id: string;
|
|
1016
865
|
}
|
|
1017
|
-
export declare const GetEmailRequest: S.Schema<GetEmailRequest>;
|
|
1018
866
|
export interface GetEmailAttachmentRequest {
|
|
1019
867
|
/** The ID of the email. */
|
|
1020
868
|
email_id: string;
|
|
1021
869
|
/** The ID of the attachment. */
|
|
1022
870
|
attachment_id: string;
|
|
1023
871
|
}
|
|
1024
|
-
export declare const GetEmailAttachmentRequest: S.Schema<GetEmailAttachmentRequest>;
|
|
1025
872
|
/** How the attachment should be displayed. */
|
|
1026
873
|
export type RetrievedAttachmentContentDisposition = "inline" | "attachment";
|
|
1027
|
-
export declare const RetrievedAttachmentContentDisposition: any;
|
|
1028
874
|
export interface RetrievedAttachment {
|
|
1029
875
|
/** The type of object. */
|
|
1030
876
|
object?: string;
|
|
@@ -1045,27 +891,20 @@ export interface RetrievedAttachment {
|
|
|
1045
891
|
/** Size of the attachment in bytes. */
|
|
1046
892
|
size?: number;
|
|
1047
893
|
}
|
|
1048
|
-
export declare const RetrievedAttachment: S.Schema<RetrievedAttachment>;
|
|
1049
894
|
export interface GetEmailReceivingRequest {
|
|
1050
895
|
/** The ID of the received email. */
|
|
1051
896
|
email_id: string;
|
|
1052
897
|
}
|
|
1053
|
-
export declare const GetEmailReceivingRequest: S.Schema<GetEmailReceivingRequest>;
|
|
1054
898
|
/** The recipient email addresses. */
|
|
1055
899
|
export type GetReceivedEmailResponseToList = Array<string>;
|
|
1056
|
-
export declare const GetReceivedEmailResponseToList: S.Schema<GetReceivedEmailResponseToList>;
|
|
1057
900
|
/** The BCC recipients. */
|
|
1058
901
|
export type GetReceivedEmailResponseBccList = Array<string>;
|
|
1059
|
-
export declare const GetReceivedEmailResponseBccList: S.Schema<GetReceivedEmailResponseBccList>;
|
|
1060
902
|
/** The CC recipients. */
|
|
1061
903
|
export type GetReceivedEmailResponseCcList = Array<string>;
|
|
1062
|
-
export declare const GetReceivedEmailResponseCcList: S.Schema<GetReceivedEmailResponseCcList>;
|
|
1063
904
|
/** The reply-to addresses. */
|
|
1064
905
|
export type GetReceivedEmailResponseReplyToList = Array<string>;
|
|
1065
|
-
export declare const GetReceivedEmailResponseReplyToList: S.Schema<GetReceivedEmailResponseReplyToList>;
|
|
1066
906
|
/** How the attachment should be displayed. */
|
|
1067
907
|
export type GetReceivedEmailResponseAttachmentsItemContentDisposition = "inline" | "attachment";
|
|
1068
|
-
export declare const GetReceivedEmailResponseAttachmentsItemContentDisposition: any;
|
|
1069
908
|
export interface GetReceivedEmailResponseAttachmentsItem {
|
|
1070
909
|
/** The ID of the attachment. */
|
|
1071
910
|
id?: string;
|
|
@@ -1080,10 +919,8 @@ export interface GetReceivedEmailResponseAttachmentsItem {
|
|
|
1080
919
|
/** Size of the attachment in bytes. */
|
|
1081
920
|
size?: number;
|
|
1082
921
|
}
|
|
1083
|
-
export declare const GetReceivedEmailResponseAttachmentsItem: S.Schema<GetReceivedEmailResponseAttachmentsItem>;
|
|
1084
922
|
/** Array of attachments. */
|
|
1085
923
|
export type GetReceivedEmailResponseAttachmentsList = Array<GetReceivedEmailResponseAttachmentsItem>;
|
|
1086
|
-
export declare const GetReceivedEmailResponseAttachmentsList: S.Schema<GetReceivedEmailResponseAttachmentsList>;
|
|
1087
924
|
export interface GetReceivedEmailResponse {
|
|
1088
925
|
/** The type of object. */
|
|
1089
926
|
object?: string;
|
|
@@ -1114,19 +951,16 @@ export interface GetReceivedEmailResponse {
|
|
|
1114
951
|
/** Array of attachments. */
|
|
1115
952
|
attachments?: GetReceivedEmailResponseAttachmentsList;
|
|
1116
953
|
}
|
|
1117
|
-
export declare const GetReceivedEmailResponse: S.Schema<GetReceivedEmailResponse>;
|
|
1118
954
|
export interface GetEmailReceivingAttachmentRequest {
|
|
1119
955
|
/** The ID of the received email. */
|
|
1120
956
|
email_id: string;
|
|
1121
957
|
/** The ID of the attachment. */
|
|
1122
958
|
attachment_id: string;
|
|
1123
959
|
}
|
|
1124
|
-
export declare const GetEmailReceivingAttachmentRequest: S.Schema<GetEmailReceivingAttachmentRequest>;
|
|
1125
960
|
export interface GetEventRequest {
|
|
1126
961
|
/** The event ID (UUID) or event name. */
|
|
1127
962
|
identifier: string;
|
|
1128
963
|
}
|
|
1129
|
-
export declare const GetEventRequest: S.Schema<GetEventRequest>;
|
|
1130
964
|
export interface Event {
|
|
1131
965
|
/** Type of the response object. */
|
|
1132
966
|
object?: string;
|
|
@@ -1141,15 +975,12 @@ export interface Event {
|
|
|
1141
975
|
/** The date and time the event was last updated. */
|
|
1142
976
|
updated_at?: string | null;
|
|
1143
977
|
}
|
|
1144
|
-
export declare const Event: S.Schema<Event>;
|
|
1145
978
|
export interface GetLogRequest {
|
|
1146
979
|
/** The ID of the log. */
|
|
1147
980
|
log_id: string;
|
|
1148
981
|
}
|
|
1149
|
-
export declare const GetLogRequest: S.Schema<GetLogRequest>;
|
|
1150
982
|
/** The HTTP method used. */
|
|
1151
983
|
export type LogMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
|
1152
|
-
export declare const LogMethod: any;
|
|
1153
984
|
export interface Log {
|
|
1154
985
|
/** Type of the response object. */
|
|
1155
986
|
object?: string;
|
|
@@ -1170,12 +1001,10 @@ export interface Log {
|
|
|
1170
1001
|
/** The response body returned by the API. */
|
|
1171
1002
|
response_body?: unknown | null;
|
|
1172
1003
|
}
|
|
1173
|
-
export declare const Log: S.Schema<Log>;
|
|
1174
1004
|
export interface GetSegmentRequest {
|
|
1175
1005
|
/** The Segment ID. */
|
|
1176
1006
|
id: string;
|
|
1177
1007
|
}
|
|
1178
|
-
export declare const GetSegmentRequest: S.Schema<GetSegmentRequest>;
|
|
1179
1008
|
export interface GetSegmentResponseSuccess {
|
|
1180
1009
|
/** The ID of the segment. */
|
|
1181
1010
|
id?: string;
|
|
@@ -1190,23 +1019,17 @@ export interface GetSegmentResponseSuccess {
|
|
|
1190
1019
|
/** Timestamp indicating when the segment was created. */
|
|
1191
1020
|
created_at?: string;
|
|
1192
1021
|
}
|
|
1193
|
-
export declare const GetSegmentResponseSuccess: S.Schema<GetSegmentResponseSuccess>;
|
|
1194
1022
|
export interface GetTemplateRequest {
|
|
1195
1023
|
/** The Template ID or alias. */
|
|
1196
1024
|
id: string;
|
|
1197
1025
|
}
|
|
1198
|
-
export declare const GetTemplateRequest: S.Schema<GetTemplateRequest>;
|
|
1199
1026
|
/** Reply-to email addresses. */
|
|
1200
1027
|
export type TemplateReplyToList = Array<string>;
|
|
1201
|
-
export declare const TemplateReplyToList: S.Schema<TemplateReplyToList>;
|
|
1202
1028
|
/** The type of the variable. */
|
|
1203
1029
|
export type TemplateVariableType = "string" | "number" | "boolean" | "object" | "list";
|
|
1204
|
-
export declare const TemplateVariableType: any;
|
|
1205
1030
|
export type TemplateVariableFallbackValueCase4List = Array<unknown>;
|
|
1206
|
-
export declare const TemplateVariableFallbackValueCase4List: S.Schema<TemplateVariableFallbackValueCase4List>;
|
|
1207
1031
|
/** The fallback value of the variable. */
|
|
1208
1032
|
export type TemplateVariableFallbackValue = string | number | boolean | unknown | TemplateVariableFallbackValueCase4List;
|
|
1209
|
-
export declare const TemplateVariableFallbackValue: S.Schema<TemplateVariableFallbackValue>;
|
|
1210
1033
|
export interface TemplateVariable {
|
|
1211
1034
|
/** The ID of the template variable. */
|
|
1212
1035
|
id?: string;
|
|
@@ -1221,12 +1044,9 @@ export interface TemplateVariable {
|
|
|
1221
1044
|
/** Timestamp indicating when the variable was last updated. */
|
|
1222
1045
|
updated_at?: string;
|
|
1223
1046
|
}
|
|
1224
|
-
export declare const TemplateVariable: S.Schema<TemplateVariable>;
|
|
1225
1047
|
export type TemplateVariablesList = Array<TemplateVariable>;
|
|
1226
|
-
export declare const TemplateVariablesList: S.Schema<TemplateVariablesList>;
|
|
1227
1048
|
/** The publication status of the template. */
|
|
1228
1049
|
export type TemplateStatus = "draft" | "published";
|
|
1229
|
-
export declare const TemplateStatus: any;
|
|
1230
1050
|
export interface Template {
|
|
1231
1051
|
/** The type of object. */
|
|
1232
1052
|
object?: string;
|
|
@@ -1260,18 +1080,14 @@ export interface Template {
|
|
|
1260
1080
|
/** Indicates whether the template has unpublished versions. */
|
|
1261
1081
|
has_unpublished_versions?: boolean;
|
|
1262
1082
|
}
|
|
1263
|
-
export declare const Template: S.Schema<Template>;
|
|
1264
1083
|
export interface GetTopicRequest {
|
|
1265
1084
|
/** The Topic ID. */
|
|
1266
1085
|
id: string;
|
|
1267
1086
|
}
|
|
1268
|
-
export declare const GetTopicRequest: S.Schema<GetTopicRequest>;
|
|
1269
1087
|
/** The default subscription status for the topic. */
|
|
1270
1088
|
export type GetTopicResponseSuccessDefaultSubscription = "opt_in" | "opt_out";
|
|
1271
|
-
export declare const GetTopicResponseSuccessDefaultSubscription: any;
|
|
1272
1089
|
/** The visibility of the topic. */
|
|
1273
1090
|
export type GetTopicResponseSuccessVisibility = "public" | "private";
|
|
1274
|
-
export declare const GetTopicResponseSuccessVisibility: any;
|
|
1275
1091
|
export interface GetTopicResponseSuccess {
|
|
1276
1092
|
/** The ID of the topic. */
|
|
1277
1093
|
id?: string;
|
|
@@ -1288,15 +1104,12 @@ export interface GetTopicResponseSuccess {
|
|
|
1288
1104
|
/** Timestamp indicating when the topic was created. */
|
|
1289
1105
|
created_at?: string;
|
|
1290
1106
|
}
|
|
1291
|
-
export declare const GetTopicResponseSuccess: S.Schema<GetTopicResponseSuccess>;
|
|
1292
1107
|
export interface GetWebhookRequest {
|
|
1293
1108
|
/** The Webhook ID. */
|
|
1294
1109
|
webhook_id: string;
|
|
1295
1110
|
}
|
|
1296
|
-
export declare const GetWebhookRequest: S.Schema<GetWebhookRequest>;
|
|
1297
1111
|
/** Array of event types subscribed to. */
|
|
1298
1112
|
export type GetWebhookResponseEventsList = Array<string>;
|
|
1299
|
-
export declare const GetWebhookResponseEventsList: S.Schema<GetWebhookResponseEventsList>;
|
|
1300
1113
|
export interface GetWebhookResponse {
|
|
1301
1114
|
/** The type of object. */
|
|
1302
1115
|
object?: string;
|
|
@@ -1313,7 +1126,6 @@ export interface GetWebhookResponse {
|
|
|
1313
1126
|
/** The secret key used to verify webhook payloads. */
|
|
1314
1127
|
signing_secret?: string | Redacted.Redacted<string>;
|
|
1315
1128
|
}
|
|
1316
|
-
export declare const GetWebhookResponse: S.Schema<GetWebhookResponse>;
|
|
1317
1129
|
export interface ListApiKeysRequest {
|
|
1318
1130
|
/** Number of items to return. */
|
|
1319
1131
|
limit?: number;
|
|
@@ -1322,7 +1134,6 @@ export interface ListApiKeysRequest {
|
|
|
1322
1134
|
/** Return items before this cursor. */
|
|
1323
1135
|
before?: string;
|
|
1324
1136
|
}
|
|
1325
|
-
export declare const ListApiKeysRequest: S.Schema<ListApiKeysRequest>;
|
|
1326
1137
|
export interface ApiKey {
|
|
1327
1138
|
/** The ID of the API key. */
|
|
1328
1139
|
id?: string;
|
|
@@ -1333,9 +1144,7 @@ export interface ApiKey {
|
|
|
1333
1144
|
/** The date and time the API key was last used. */
|
|
1334
1145
|
last_used_at?: string | null;
|
|
1335
1146
|
}
|
|
1336
|
-
export declare const ApiKey: S.Schema<ApiKey>;
|
|
1337
1147
|
export type ListApiKeysResponseDataList = Array<ApiKey>;
|
|
1338
|
-
export declare const ListApiKeysResponseDataList: S.Schema<ListApiKeysResponseDataList>;
|
|
1339
1148
|
export interface ListApiKeysResponse {
|
|
1340
1149
|
/** Type of the response object. */
|
|
1341
1150
|
object?: string;
|
|
@@ -1343,7 +1152,6 @@ export interface ListApiKeysResponse {
|
|
|
1343
1152
|
has_more?: boolean;
|
|
1344
1153
|
data: ListApiKeysResponseDataList;
|
|
1345
1154
|
}
|
|
1346
|
-
export declare const ListApiKeysResponse: S.Schema<ListApiKeysResponse>;
|
|
1347
1155
|
export interface ListAutomationRunsRequest {
|
|
1348
1156
|
/** The ID of the automation. */
|
|
1349
1157
|
automation_id: string;
|
|
@@ -1356,10 +1164,8 @@ export interface ListAutomationRunsRequest {
|
|
|
1356
1164
|
/** Return items before this cursor. */
|
|
1357
1165
|
before?: string;
|
|
1358
1166
|
}
|
|
1359
|
-
export declare const ListAutomationRunsRequest: S.Schema<ListAutomationRunsRequest>;
|
|
1360
1167
|
/** The current status of the automation run. */
|
|
1361
1168
|
export type AutomationRunListItemStatus = "running" | "completed" | "failed" | "cancelled";
|
|
1362
|
-
export declare const AutomationRunListItemStatus: any;
|
|
1363
1169
|
export interface AutomationRunListItem {
|
|
1364
1170
|
/** The ID of the automation run. */
|
|
1365
1171
|
id?: string;
|
|
@@ -1372,10 +1178,8 @@ export interface AutomationRunListItem {
|
|
|
1372
1178
|
/** The date and time the run was created. */
|
|
1373
1179
|
created_at?: string;
|
|
1374
1180
|
}
|
|
1375
|
-
export declare const AutomationRunListItem: S.Schema<AutomationRunListItem>;
|
|
1376
1181
|
/** Array of automation runs. */
|
|
1377
1182
|
export type ListAutomationRunsResponseDataList = Array<AutomationRunListItem>;
|
|
1378
|
-
export declare const ListAutomationRunsResponseDataList: S.Schema<ListAutomationRunsResponseDataList>;
|
|
1379
1183
|
export interface ListAutomationRunsResponse {
|
|
1380
1184
|
/** Type of the response object. */
|
|
1381
1185
|
object?: string;
|
|
@@ -1384,9 +1188,7 @@ export interface ListAutomationRunsResponse {
|
|
|
1384
1188
|
/** Array of automation runs. */
|
|
1385
1189
|
data: ListAutomationRunsResponseDataList;
|
|
1386
1190
|
}
|
|
1387
|
-
export declare const ListAutomationRunsResponse: S.Schema<ListAutomationRunsResponse>;
|
|
1388
1191
|
export type ListAutomationsRequestStatus = "enabled" | "disabled";
|
|
1389
|
-
export declare const ListAutomationsRequestStatus: any;
|
|
1390
1192
|
export interface ListAutomationsRequest {
|
|
1391
1193
|
/** Filter automations by status. */
|
|
1392
1194
|
status?: ListAutomationsRequestStatus | (string & {});
|
|
@@ -1397,10 +1199,8 @@ export interface ListAutomationsRequest {
|
|
|
1397
1199
|
/** Return items before this cursor. */
|
|
1398
1200
|
before?: string;
|
|
1399
1201
|
}
|
|
1400
|
-
export declare const ListAutomationsRequest: S.Schema<ListAutomationsRequest>;
|
|
1401
1202
|
/** The current status of the automation. */
|
|
1402
1203
|
export type AutomationListItemStatus = "enabled" | "disabled";
|
|
1403
|
-
export declare const AutomationListItemStatus: any;
|
|
1404
1204
|
export interface AutomationListItem {
|
|
1405
1205
|
/** The ID of the automation. */
|
|
1406
1206
|
id?: string;
|
|
@@ -1413,10 +1213,8 @@ export interface AutomationListItem {
|
|
|
1413
1213
|
/** The date and time the automation was last updated. */
|
|
1414
1214
|
updated_at?: string;
|
|
1415
1215
|
}
|
|
1416
|
-
export declare const AutomationListItem: S.Schema<AutomationListItem>;
|
|
1417
1216
|
/** Array of automations. */
|
|
1418
1217
|
export type ListAutomationsResponseDataList = Array<AutomationListItem>;
|
|
1419
|
-
export declare const ListAutomationsResponseDataList: S.Schema<ListAutomationsResponseDataList>;
|
|
1420
1218
|
export interface ListAutomationsResponse {
|
|
1421
1219
|
/** Type of the response object. */
|
|
1422
1220
|
object?: string;
|
|
@@ -1425,7 +1223,6 @@ export interface ListAutomationsResponse {
|
|
|
1425
1223
|
/** Array of automations. */
|
|
1426
1224
|
data: ListAutomationsResponseDataList;
|
|
1427
1225
|
}
|
|
1428
|
-
export declare const ListAutomationsResponse: S.Schema<ListAutomationsResponse>;
|
|
1429
1226
|
export interface ListBroadcastsRequest {
|
|
1430
1227
|
/** Number of items to return. */
|
|
1431
1228
|
limit?: number;
|
|
@@ -1434,7 +1231,6 @@ export interface ListBroadcastsRequest {
|
|
|
1434
1231
|
/** Return items before this cursor. */
|
|
1435
1232
|
before?: string;
|
|
1436
1233
|
}
|
|
1437
|
-
export declare const ListBroadcastsRequest: S.Schema<ListBroadcastsRequest>;
|
|
1438
1234
|
export interface ListBroadcastsResponseSuccessDataItem {
|
|
1439
1235
|
/** Unique identifier for the broadcast. */
|
|
1440
1236
|
id?: string;
|
|
@@ -1455,10 +1251,8 @@ export interface ListBroadcastsResponseSuccessDataItem {
|
|
|
1455
1251
|
/** The topic ID that the broadcast is scoped to. */
|
|
1456
1252
|
topic_id?: string;
|
|
1457
1253
|
}
|
|
1458
|
-
export declare const ListBroadcastsResponseSuccessDataItem: S.Schema<ListBroadcastsResponseSuccessDataItem>;
|
|
1459
1254
|
/** Array containing broadcast information. */
|
|
1460
1255
|
export type ListBroadcastsResponseSuccessDataList = Array<ListBroadcastsResponseSuccessDataItem>;
|
|
1461
|
-
export declare const ListBroadcastsResponseSuccessDataList: S.Schema<ListBroadcastsResponseSuccessDataList>;
|
|
1462
1256
|
export interface ListBroadcastsResponseSuccess {
|
|
1463
1257
|
/** Type of the response object. */
|
|
1464
1258
|
object?: string;
|
|
@@ -1467,7 +1261,6 @@ export interface ListBroadcastsResponseSuccess {
|
|
|
1467
1261
|
/** Array containing broadcast information. */
|
|
1468
1262
|
data: ListBroadcastsResponseSuccessDataList;
|
|
1469
1263
|
}
|
|
1470
|
-
export declare const ListBroadcastsResponseSuccess: S.Schema<ListBroadcastsResponseSuccess>;
|
|
1471
1264
|
export interface ListContactPropertiesRequest {
|
|
1472
1265
|
/** Number of items to return. */
|
|
1473
1266
|
limit?: number;
|
|
@@ -1476,10 +1269,8 @@ export interface ListContactPropertiesRequest {
|
|
|
1476
1269
|
/** Return items before this cursor. */
|
|
1477
1270
|
before?: string;
|
|
1478
1271
|
}
|
|
1479
|
-
export declare const ListContactPropertiesRequest: S.Schema<ListContactPropertiesRequest>;
|
|
1480
1272
|
/** The default value when the property is not set for a contact. */
|
|
1481
1273
|
export type ListContactPropertiesResponseSuccessDataItemFallbackValue = string | number;
|
|
1482
|
-
export declare const ListContactPropertiesResponseSuccessDataItemFallbackValue: S.Schema<ListContactPropertiesResponseSuccessDataItemFallbackValue>;
|
|
1483
1274
|
export interface ListContactPropertiesResponseSuccessDataItem {
|
|
1484
1275
|
/** Unique identifier for the contact property. */
|
|
1485
1276
|
id?: string;
|
|
@@ -1492,10 +1283,8 @@ export interface ListContactPropertiesResponseSuccessDataItem {
|
|
|
1492
1283
|
/** Timestamp indicating when the contact property was created. */
|
|
1493
1284
|
created_at?: string;
|
|
1494
1285
|
}
|
|
1495
|
-
export declare const ListContactPropertiesResponseSuccessDataItem: S.Schema<ListContactPropertiesResponseSuccessDataItem>;
|
|
1496
1286
|
/** Array containing contact property information. */
|
|
1497
1287
|
export type ListContactPropertiesResponseSuccessDataList = Array<ListContactPropertiesResponseSuccessDataItem>;
|
|
1498
|
-
export declare const ListContactPropertiesResponseSuccessDataList: S.Schema<ListContactPropertiesResponseSuccessDataList>;
|
|
1499
1288
|
export interface ListContactPropertiesResponseSuccess {
|
|
1500
1289
|
/** Type of the response object. */
|
|
1501
1290
|
object?: string;
|
|
@@ -1504,7 +1293,6 @@ export interface ListContactPropertiesResponseSuccess {
|
|
|
1504
1293
|
/** Array containing contact property information. */
|
|
1505
1294
|
data: ListContactPropertiesResponseSuccessDataList;
|
|
1506
1295
|
}
|
|
1507
|
-
export declare const ListContactPropertiesResponseSuccess: S.Schema<ListContactPropertiesResponseSuccess>;
|
|
1508
1296
|
export interface ListContactsRequest {
|
|
1509
1297
|
/** Filter contacts by segment ID. */
|
|
1510
1298
|
segment_id?: string;
|
|
@@ -1515,7 +1303,6 @@ export interface ListContactsRequest {
|
|
|
1515
1303
|
/** Return items before this cursor. */
|
|
1516
1304
|
before?: string;
|
|
1517
1305
|
}
|
|
1518
|
-
export declare const ListContactsRequest: S.Schema<ListContactsRequest>;
|
|
1519
1306
|
export interface ListContactsResponseSuccessDataItem {
|
|
1520
1307
|
/** Unique identifier for the contact. */
|
|
1521
1308
|
id?: string;
|
|
@@ -1530,17 +1317,14 @@ export interface ListContactsResponseSuccessDataItem {
|
|
|
1530
1317
|
/** Indicates if the contact is unsubscribed. */
|
|
1531
1318
|
unsubscribed?: boolean;
|
|
1532
1319
|
}
|
|
1533
|
-
export declare const ListContactsResponseSuccessDataItem: S.Schema<ListContactsResponseSuccessDataItem>;
|
|
1534
1320
|
/** Array containing contact information. */
|
|
1535
1321
|
export type ListContactsResponseSuccessDataList = Array<ListContactsResponseSuccessDataItem>;
|
|
1536
|
-
export declare const ListContactsResponseSuccessDataList: S.Schema<ListContactsResponseSuccessDataList>;
|
|
1537
1322
|
export interface ListContactsResponseSuccess {
|
|
1538
1323
|
/** Type of the response object. */
|
|
1539
1324
|
object?: string;
|
|
1540
1325
|
/** Array containing contact information. */
|
|
1541
1326
|
data?: ListContactsResponseSuccessDataList;
|
|
1542
1327
|
}
|
|
1543
|
-
export declare const ListContactsResponseSuccess: S.Schema<ListContactsResponseSuccess>;
|
|
1544
1328
|
export interface ListContactSegmentsRequest {
|
|
1545
1329
|
/** The Contact ID or email address. */
|
|
1546
1330
|
contact_id: string;
|
|
@@ -1551,7 +1335,6 @@ export interface ListContactSegmentsRequest {
|
|
|
1551
1335
|
/** Return items before this cursor. */
|
|
1552
1336
|
before?: string;
|
|
1553
1337
|
}
|
|
1554
|
-
export declare const ListContactSegmentsRequest: S.Schema<ListContactSegmentsRequest>;
|
|
1555
1338
|
export interface ListContactSegmentsResponseSuccessDataItem {
|
|
1556
1339
|
/** Unique identifier for the segment. */
|
|
1557
1340
|
id?: string;
|
|
@@ -1560,10 +1343,8 @@ export interface ListContactSegmentsResponseSuccessDataItem {
|
|
|
1560
1343
|
/** Timestamp indicating when the contact was added to the segment. */
|
|
1561
1344
|
created_at?: string;
|
|
1562
1345
|
}
|
|
1563
|
-
export declare const ListContactSegmentsResponseSuccessDataItem: S.Schema<ListContactSegmentsResponseSuccessDataItem>;
|
|
1564
1346
|
/** Array containing segment information for this contact. */
|
|
1565
1347
|
export type ListContactSegmentsResponseSuccessDataList = Array<ListContactSegmentsResponseSuccessDataItem>;
|
|
1566
|
-
export declare const ListContactSegmentsResponseSuccessDataList: S.Schema<ListContactSegmentsResponseSuccessDataList>;
|
|
1567
1348
|
export interface ListContactSegmentsResponseSuccess {
|
|
1568
1349
|
/** Type of the response object. */
|
|
1569
1350
|
object?: string;
|
|
@@ -1572,7 +1353,6 @@ export interface ListContactSegmentsResponseSuccess {
|
|
|
1572
1353
|
/** Array containing segment information for this contact. */
|
|
1573
1354
|
data: ListContactSegmentsResponseSuccessDataList;
|
|
1574
1355
|
}
|
|
1575
|
-
export declare const ListContactSegmentsResponseSuccess: S.Schema<ListContactSegmentsResponseSuccess>;
|
|
1576
1356
|
export interface ListContactTopicsRequest {
|
|
1577
1357
|
/** The Contact ID or email address. */
|
|
1578
1358
|
contact_id: string;
|
|
@@ -1583,10 +1363,8 @@ export interface ListContactTopicsRequest {
|
|
|
1583
1363
|
/** Return items before this cursor. */
|
|
1584
1364
|
before?: string;
|
|
1585
1365
|
}
|
|
1586
|
-
export declare const ListContactTopicsRequest: S.Schema<ListContactTopicsRequest>;
|
|
1587
1366
|
/** The subscription status for this topic. */
|
|
1588
1367
|
export type GetContactTopicsResponseSuccessDataItemSubscription = "opt_in" | "opt_out";
|
|
1589
|
-
export declare const GetContactTopicsResponseSuccessDataItemSubscription: any;
|
|
1590
1368
|
export interface GetContactTopicsResponseSuccessDataItem {
|
|
1591
1369
|
/** Unique identifier for the topic. */
|
|
1592
1370
|
id?: string;
|
|
@@ -1597,10 +1375,8 @@ export interface GetContactTopicsResponseSuccessDataItem {
|
|
|
1597
1375
|
/** The subscription status for this topic. */
|
|
1598
1376
|
subscription?: GetContactTopicsResponseSuccessDataItemSubscription;
|
|
1599
1377
|
}
|
|
1600
|
-
export declare const GetContactTopicsResponseSuccessDataItem: S.Schema<GetContactTopicsResponseSuccessDataItem>;
|
|
1601
1378
|
/** Array containing topic subscriptions for this contact. */
|
|
1602
1379
|
export type GetContactTopicsResponseSuccessDataList = Array<GetContactTopicsResponseSuccessDataItem>;
|
|
1603
|
-
export declare const GetContactTopicsResponseSuccessDataList: S.Schema<GetContactTopicsResponseSuccessDataList>;
|
|
1604
1380
|
export interface GetContactTopicsResponseSuccess {
|
|
1605
1381
|
/** Type of the response object. */
|
|
1606
1382
|
object?: string;
|
|
@@ -1609,7 +1385,6 @@ export interface GetContactTopicsResponseSuccess {
|
|
|
1609
1385
|
/** Array containing topic subscriptions for this contact. */
|
|
1610
1386
|
data: GetContactTopicsResponseSuccessDataList;
|
|
1611
1387
|
}
|
|
1612
|
-
export declare const GetContactTopicsResponseSuccess: S.Schema<GetContactTopicsResponseSuccess>;
|
|
1613
1388
|
export interface ListDomainsRequest {
|
|
1614
1389
|
/** Number of items to return. */
|
|
1615
1390
|
limit?: number;
|
|
@@ -1618,7 +1393,6 @@ export interface ListDomainsRequest {
|
|
|
1618
1393
|
/** Return items before this cursor. */
|
|
1619
1394
|
before?: string;
|
|
1620
1395
|
}
|
|
1621
|
-
export declare const ListDomainsRequest: S.Schema<ListDomainsRequest>;
|
|
1622
1396
|
export interface ListDomainsItem {
|
|
1623
1397
|
/** The ID of the domain. */
|
|
1624
1398
|
id?: string;
|
|
@@ -1632,9 +1406,7 @@ export interface ListDomainsItem {
|
|
|
1632
1406
|
region?: string;
|
|
1633
1407
|
capabilities?: DomainCapabilities;
|
|
1634
1408
|
}
|
|
1635
|
-
export declare const ListDomainsItem: S.Schema<ListDomainsItem>;
|
|
1636
1409
|
export type ListDomainsResponseDataList = Array<ListDomainsItem>;
|
|
1637
|
-
export declare const ListDomainsResponseDataList: S.Schema<ListDomainsResponseDataList>;
|
|
1638
1410
|
export interface ListDomainsResponse {
|
|
1639
1411
|
/** Type of the response object. */
|
|
1640
1412
|
object?: string;
|
|
@@ -1642,7 +1414,6 @@ export interface ListDomainsResponse {
|
|
|
1642
1414
|
has_more?: boolean;
|
|
1643
1415
|
data: ListDomainsResponseDataList;
|
|
1644
1416
|
}
|
|
1645
|
-
export declare const ListDomainsResponse: S.Schema<ListDomainsResponse>;
|
|
1646
1417
|
export interface ListEmailAttachmentsRequest {
|
|
1647
1418
|
/** The ID of the email. */
|
|
1648
1419
|
email_id: string;
|
|
@@ -1653,10 +1424,8 @@ export interface ListEmailAttachmentsRequest {
|
|
|
1653
1424
|
/** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
|
|
1654
1425
|
before?: string;
|
|
1655
1426
|
}
|
|
1656
|
-
export declare const ListEmailAttachmentsRequest: S.Schema<ListEmailAttachmentsRequest>;
|
|
1657
1427
|
/** How the attachment should be displayed. */
|
|
1658
1428
|
export type ListAttachmentsResponseDataItemContentDisposition = "inline" | "attachment";
|
|
1659
|
-
export declare const ListAttachmentsResponseDataItemContentDisposition: any;
|
|
1660
1429
|
export interface ListAttachmentsResponseDataItem {
|
|
1661
1430
|
/** The ID of the attachment. */
|
|
1662
1431
|
id?: string;
|
|
@@ -1675,10 +1444,8 @@ export interface ListAttachmentsResponseDataItem {
|
|
|
1675
1444
|
/** Size of the attachment in bytes. */
|
|
1676
1445
|
size?: number;
|
|
1677
1446
|
}
|
|
1678
|
-
export declare const ListAttachmentsResponseDataItem: S.Schema<ListAttachmentsResponseDataItem>;
|
|
1679
1447
|
/** Array containing attachment information. */
|
|
1680
1448
|
export type ListAttachmentsResponseDataList = Array<ListAttachmentsResponseDataItem>;
|
|
1681
|
-
export declare const ListAttachmentsResponseDataList: S.Schema<ListAttachmentsResponseDataList>;
|
|
1682
1449
|
export interface ListAttachmentsResponse {
|
|
1683
1450
|
/** Type of the response object. */
|
|
1684
1451
|
object?: string;
|
|
@@ -1687,7 +1454,6 @@ export interface ListAttachmentsResponse {
|
|
|
1687
1454
|
/** Array containing attachment information. */
|
|
1688
1455
|
data: ListAttachmentsResponseDataList;
|
|
1689
1456
|
}
|
|
1690
|
-
export declare const ListAttachmentsResponse: S.Schema<ListAttachmentsResponse>;
|
|
1691
1457
|
export interface ListEmailReceivingRequest {
|
|
1692
1458
|
/** Maximum number of received emails to return. */
|
|
1693
1459
|
limit?: number;
|
|
@@ -1696,22 +1462,16 @@ export interface ListEmailReceivingRequest {
|
|
|
1696
1462
|
/** Pagination cursor to fetch results before this email ID. Cannot be used with 'after'. */
|
|
1697
1463
|
before?: string;
|
|
1698
1464
|
}
|
|
1699
|
-
export declare const ListEmailReceivingRequest: S.Schema<ListEmailReceivingRequest>;
|
|
1700
1465
|
/** The recipient email addresses. */
|
|
1701
1466
|
export type ListReceivedEmailsResponseDataItemToList = Array<string>;
|
|
1702
|
-
export declare const ListReceivedEmailsResponseDataItemToList: S.Schema<ListReceivedEmailsResponseDataItemToList>;
|
|
1703
1467
|
/** The BCC recipients. */
|
|
1704
1468
|
export type ListReceivedEmailsResponseDataItemBccList = Array<string>;
|
|
1705
|
-
export declare const ListReceivedEmailsResponseDataItemBccList: S.Schema<ListReceivedEmailsResponseDataItemBccList>;
|
|
1706
1469
|
/** The CC recipients. */
|
|
1707
1470
|
export type ListReceivedEmailsResponseDataItemCcList = Array<string>;
|
|
1708
|
-
export declare const ListReceivedEmailsResponseDataItemCcList: S.Schema<ListReceivedEmailsResponseDataItemCcList>;
|
|
1709
1471
|
/** The reply-to addresses. */
|
|
1710
1472
|
export type ListReceivedEmailsResponseDataItemReplyToList = Array<string>;
|
|
1711
|
-
export declare const ListReceivedEmailsResponseDataItemReplyToList: S.Schema<ListReceivedEmailsResponseDataItemReplyToList>;
|
|
1712
1473
|
/** How the attachment should be displayed. */
|
|
1713
1474
|
export type ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition = "inline" | "attachment";
|
|
1714
|
-
export declare const ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition: any;
|
|
1715
1475
|
export interface ListReceivedEmailsResponseDataItemAttachmentsItem {
|
|
1716
1476
|
/** The ID of the attachment. */
|
|
1717
1477
|
id?: string;
|
|
@@ -1726,10 +1486,8 @@ export interface ListReceivedEmailsResponseDataItemAttachmentsItem {
|
|
|
1726
1486
|
/** Size of the attachment in bytes. */
|
|
1727
1487
|
size?: number;
|
|
1728
1488
|
}
|
|
1729
|
-
export declare const ListReceivedEmailsResponseDataItemAttachmentsItem: S.Schema<ListReceivedEmailsResponseDataItemAttachmentsItem>;
|
|
1730
1489
|
/** Array of attachments for this email. */
|
|
1731
1490
|
export type ListReceivedEmailsResponseDataItemAttachmentsList = Array<ListReceivedEmailsResponseDataItemAttachmentsItem>;
|
|
1732
|
-
export declare const ListReceivedEmailsResponseDataItemAttachmentsList: S.Schema<ListReceivedEmailsResponseDataItemAttachmentsList>;
|
|
1733
1491
|
export interface ListReceivedEmailsResponseDataItem {
|
|
1734
1492
|
/** The ID of the received email. */
|
|
1735
1493
|
id?: string;
|
|
@@ -1752,10 +1510,8 @@ export interface ListReceivedEmailsResponseDataItem {
|
|
|
1752
1510
|
/** Array of attachments for this email. */
|
|
1753
1511
|
attachments?: ListReceivedEmailsResponseDataItemAttachmentsList;
|
|
1754
1512
|
}
|
|
1755
|
-
export declare const ListReceivedEmailsResponseDataItem: S.Schema<ListReceivedEmailsResponseDataItem>;
|
|
1756
1513
|
/** Array containing received email information. */
|
|
1757
1514
|
export type ListReceivedEmailsResponseDataList = Array<ListReceivedEmailsResponseDataItem>;
|
|
1758
|
-
export declare const ListReceivedEmailsResponseDataList: S.Schema<ListReceivedEmailsResponseDataList>;
|
|
1759
1515
|
export interface ListReceivedEmailsResponse {
|
|
1760
1516
|
/** Type of the response object. */
|
|
1761
1517
|
object?: string;
|
|
@@ -1764,7 +1520,6 @@ export interface ListReceivedEmailsResponse {
|
|
|
1764
1520
|
/** Array containing received email information. */
|
|
1765
1521
|
data: ListReceivedEmailsResponseDataList;
|
|
1766
1522
|
}
|
|
1767
|
-
export declare const ListReceivedEmailsResponse: S.Schema<ListReceivedEmailsResponse>;
|
|
1768
1523
|
export interface ListEmailReceivingAttachmentsRequest {
|
|
1769
1524
|
/** The ID of the received email. */
|
|
1770
1525
|
email_id: string;
|
|
@@ -1775,7 +1530,6 @@ export interface ListEmailReceivingAttachmentsRequest {
|
|
|
1775
1530
|
/** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
|
|
1776
1531
|
before?: string;
|
|
1777
1532
|
}
|
|
1778
|
-
export declare const ListEmailReceivingAttachmentsRequest: S.Schema<ListEmailReceivingAttachmentsRequest>;
|
|
1779
1533
|
export interface ListEmailsRequest {
|
|
1780
1534
|
/** Number of items to return. */
|
|
1781
1535
|
limit?: number;
|
|
@@ -1784,10 +1538,8 @@ export interface ListEmailsRequest {
|
|
|
1784
1538
|
/** Return items before this cursor. */
|
|
1785
1539
|
before?: string;
|
|
1786
1540
|
}
|
|
1787
|
-
export declare const ListEmailsRequest: S.Schema<ListEmailsRequest>;
|
|
1788
1541
|
/** Array containing email information. */
|
|
1789
1542
|
export type ListEmailsResponseDataList = Array<Email>;
|
|
1790
|
-
export declare const ListEmailsResponseDataList: S.Schema<ListEmailsResponseDataList>;
|
|
1791
1543
|
export interface ListEmailsResponse {
|
|
1792
1544
|
/** Type of the response object. */
|
|
1793
1545
|
object?: string;
|
|
@@ -1796,7 +1548,6 @@ export interface ListEmailsResponse {
|
|
|
1796
1548
|
/** Array containing email information. */
|
|
1797
1549
|
data: ListEmailsResponseDataList;
|
|
1798
1550
|
}
|
|
1799
|
-
export declare const ListEmailsResponse: S.Schema<ListEmailsResponse>;
|
|
1800
1551
|
export interface ListEventsRequest {
|
|
1801
1552
|
/** Number of items to return. */
|
|
1802
1553
|
limit?: number;
|
|
@@ -1805,7 +1556,6 @@ export interface ListEventsRequest {
|
|
|
1805
1556
|
/** Return items before this cursor. */
|
|
1806
1557
|
before?: string;
|
|
1807
1558
|
}
|
|
1808
|
-
export declare const ListEventsRequest: S.Schema<ListEventsRequest>;
|
|
1809
1559
|
export interface EventSummary {
|
|
1810
1560
|
/** The event ID. */
|
|
1811
1561
|
id?: string;
|
|
@@ -1818,10 +1568,8 @@ export interface EventSummary {
|
|
|
1818
1568
|
/** The date and time the event was last updated. */
|
|
1819
1569
|
updated_at?: string | null;
|
|
1820
1570
|
}
|
|
1821
|
-
export declare const EventSummary: S.Schema<EventSummary>;
|
|
1822
1571
|
/** Array containing event information. */
|
|
1823
1572
|
export type ListEventsResponseDataList = Array<EventSummary>;
|
|
1824
|
-
export declare const ListEventsResponseDataList: S.Schema<ListEventsResponseDataList>;
|
|
1825
1573
|
export interface ListEventsResponse {
|
|
1826
1574
|
/** Type of the response object. */
|
|
1827
1575
|
object?: string;
|
|
@@ -1830,7 +1578,6 @@ export interface ListEventsResponse {
|
|
|
1830
1578
|
/** Array containing event information. */
|
|
1831
1579
|
data: ListEventsResponseDataList;
|
|
1832
1580
|
}
|
|
1833
|
-
export declare const ListEventsResponse: S.Schema<ListEventsResponse>;
|
|
1834
1581
|
export interface ListLogsRequest {
|
|
1835
1582
|
/** Number of items to return. */
|
|
1836
1583
|
limit?: number;
|
|
@@ -1839,10 +1586,8 @@ export interface ListLogsRequest {
|
|
|
1839
1586
|
/** Return items before this cursor. */
|
|
1840
1587
|
before?: string;
|
|
1841
1588
|
}
|
|
1842
|
-
export declare const ListLogsRequest: S.Schema<ListLogsRequest>;
|
|
1843
1589
|
/** The HTTP method used. */
|
|
1844
1590
|
export type LogSummaryMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
|
1845
|
-
export declare const LogSummaryMethod: any;
|
|
1846
1591
|
export interface LogSummary {
|
|
1847
1592
|
/** The log ID. */
|
|
1848
1593
|
id?: string;
|
|
@@ -1857,10 +1602,8 @@ export interface LogSummary {
|
|
|
1857
1602
|
/** The user agent of the request. */
|
|
1858
1603
|
user_agent?: string | null;
|
|
1859
1604
|
}
|
|
1860
|
-
export declare const LogSummary: S.Schema<LogSummary>;
|
|
1861
1605
|
/** Array containing log information. */
|
|
1862
1606
|
export type ListLogsResponseDataList = Array<LogSummary>;
|
|
1863
|
-
export declare const ListLogsResponseDataList: S.Schema<ListLogsResponseDataList>;
|
|
1864
1607
|
export interface ListLogsResponse {
|
|
1865
1608
|
/** Type of the response object. */
|
|
1866
1609
|
object?: string;
|
|
@@ -1869,7 +1612,6 @@ export interface ListLogsResponse {
|
|
|
1869
1612
|
/** Array containing log information. */
|
|
1870
1613
|
data: ListLogsResponseDataList;
|
|
1871
1614
|
}
|
|
1872
|
-
export declare const ListLogsResponse: S.Schema<ListLogsResponse>;
|
|
1873
1615
|
export interface ListSegmentsRequest {
|
|
1874
1616
|
/** Number of items to return. */
|
|
1875
1617
|
limit?: number;
|
|
@@ -1878,7 +1620,6 @@ export interface ListSegmentsRequest {
|
|
|
1878
1620
|
/** Return items before this cursor. */
|
|
1879
1621
|
before?: string;
|
|
1880
1622
|
}
|
|
1881
|
-
export declare const ListSegmentsRequest: S.Schema<ListSegmentsRequest>;
|
|
1882
1623
|
export interface ListSegmentsResponseSuccessDataItem {
|
|
1883
1624
|
/** Unique identifier for the segment. */
|
|
1884
1625
|
id?: string;
|
|
@@ -1889,10 +1630,8 @@ export interface ListSegmentsResponseSuccessDataItem {
|
|
|
1889
1630
|
/** Timestamp indicating when the segment was created. */
|
|
1890
1631
|
created_at?: string;
|
|
1891
1632
|
}
|
|
1892
|
-
export declare const ListSegmentsResponseSuccessDataItem: S.Schema<ListSegmentsResponseSuccessDataItem>;
|
|
1893
1633
|
/** Array containing segment information. */
|
|
1894
1634
|
export type ListSegmentsResponseSuccessDataList = Array<ListSegmentsResponseSuccessDataItem>;
|
|
1895
|
-
export declare const ListSegmentsResponseSuccessDataList: S.Schema<ListSegmentsResponseSuccessDataList>;
|
|
1896
1635
|
export interface ListSegmentsResponseSuccess {
|
|
1897
1636
|
/** Type of the response object. */
|
|
1898
1637
|
object?: string;
|
|
@@ -1901,7 +1640,6 @@ export interface ListSegmentsResponseSuccess {
|
|
|
1901
1640
|
/** Array containing segment information. */
|
|
1902
1641
|
data: ListSegmentsResponseSuccessDataList;
|
|
1903
1642
|
}
|
|
1904
|
-
export declare const ListSegmentsResponseSuccess: S.Schema<ListSegmentsResponseSuccess>;
|
|
1905
1643
|
export interface ListTemplatesRequest {
|
|
1906
1644
|
/** Number of items to return. */
|
|
1907
1645
|
limit?: number;
|
|
@@ -1910,10 +1648,8 @@ export interface ListTemplatesRequest {
|
|
|
1910
1648
|
/** Return items before this cursor. */
|
|
1911
1649
|
before?: string;
|
|
1912
1650
|
}
|
|
1913
|
-
export declare const ListTemplatesRequest: S.Schema<ListTemplatesRequest>;
|
|
1914
1651
|
/** The publication status of the template. */
|
|
1915
1652
|
export type TemplateListItemStatus = "draft" | "published";
|
|
1916
|
-
export declare const TemplateListItemStatus: any;
|
|
1917
1653
|
export interface TemplateListItem {
|
|
1918
1654
|
/** The ID of the template. */
|
|
1919
1655
|
id?: string;
|
|
@@ -1930,10 +1666,8 @@ export interface TemplateListItem {
|
|
|
1930
1666
|
/** The alias of the template. */
|
|
1931
1667
|
alias?: string;
|
|
1932
1668
|
}
|
|
1933
|
-
export declare const TemplateListItem: S.Schema<TemplateListItem>;
|
|
1934
1669
|
/** Array containing templates information. */
|
|
1935
1670
|
export type ListTemplatesResponseSuccessDataList = Array<TemplateListItem>;
|
|
1936
|
-
export declare const ListTemplatesResponseSuccessDataList: S.Schema<ListTemplatesResponseSuccessDataList>;
|
|
1937
1671
|
export interface ListTemplatesResponseSuccess {
|
|
1938
1672
|
/** Type of the response object. */
|
|
1939
1673
|
object?: string;
|
|
@@ -1942,7 +1676,6 @@ export interface ListTemplatesResponseSuccess {
|
|
|
1942
1676
|
/** Indicates if there are more templates to retrieve. */
|
|
1943
1677
|
has_more?: boolean;
|
|
1944
1678
|
}
|
|
1945
|
-
export declare const ListTemplatesResponseSuccess: S.Schema<ListTemplatesResponseSuccess>;
|
|
1946
1679
|
export interface ListTopicsRequest {
|
|
1947
1680
|
/** Number of items to return. */
|
|
1948
1681
|
limit?: number;
|
|
@@ -1951,13 +1684,10 @@ export interface ListTopicsRequest {
|
|
|
1951
1684
|
/** Return items before this cursor. */
|
|
1952
1685
|
before?: string;
|
|
1953
1686
|
}
|
|
1954
|
-
export declare const ListTopicsRequest: S.Schema<ListTopicsRequest>;
|
|
1955
1687
|
/** The default subscription status for the topic. */
|
|
1956
1688
|
export type ListTopicsResponseSuccessDataItemDefaultSubscription = "opt_in" | "opt_out";
|
|
1957
|
-
export declare const ListTopicsResponseSuccessDataItemDefaultSubscription: any;
|
|
1958
1689
|
/** The visibility of the topic. */
|
|
1959
1690
|
export type ListTopicsResponseSuccessDataItemVisibility = "public" | "private";
|
|
1960
|
-
export declare const ListTopicsResponseSuccessDataItemVisibility: any;
|
|
1961
1691
|
export interface ListTopicsResponseSuccessDataItem {
|
|
1962
1692
|
/** Unique identifier for the topic. */
|
|
1963
1693
|
id?: string;
|
|
@@ -1972,10 +1702,8 @@ export interface ListTopicsResponseSuccessDataItem {
|
|
|
1972
1702
|
/** Timestamp indicating when the topic was created. */
|
|
1973
1703
|
created_at?: string;
|
|
1974
1704
|
}
|
|
1975
|
-
export declare const ListTopicsResponseSuccessDataItem: S.Schema<ListTopicsResponseSuccessDataItem>;
|
|
1976
1705
|
/** Array containing topic information. */
|
|
1977
1706
|
export type ListTopicsResponseSuccessDataList = Array<ListTopicsResponseSuccessDataItem>;
|
|
1978
|
-
export declare const ListTopicsResponseSuccessDataList: S.Schema<ListTopicsResponseSuccessDataList>;
|
|
1979
1707
|
export interface ListTopicsResponseSuccess {
|
|
1980
1708
|
/** Type of the response object. */
|
|
1981
1709
|
object?: string;
|
|
@@ -1984,7 +1712,6 @@ export interface ListTopicsResponseSuccess {
|
|
|
1984
1712
|
/** Array containing topic information. */
|
|
1985
1713
|
data: ListTopicsResponseSuccessDataList;
|
|
1986
1714
|
}
|
|
1987
|
-
export declare const ListTopicsResponseSuccess: S.Schema<ListTopicsResponseSuccess>;
|
|
1988
1715
|
export interface ListWebhooksRequest {
|
|
1989
1716
|
/** Maximum number of webhooks to return. */
|
|
1990
1717
|
limit?: number;
|
|
@@ -1993,10 +1720,8 @@ export interface ListWebhooksRequest {
|
|
|
1993
1720
|
/** Pagination cursor to fetch results before this webhook ID. Cannot be used with 'after'. */
|
|
1994
1721
|
before?: string;
|
|
1995
1722
|
}
|
|
1996
|
-
export declare const ListWebhooksRequest: S.Schema<ListWebhooksRequest>;
|
|
1997
1723
|
/** Array of event types subscribed to. */
|
|
1998
1724
|
export type ListWebhooksResponseDataItemEventsList = Array<string>;
|
|
1999
|
-
export declare const ListWebhooksResponseDataItemEventsList: S.Schema<ListWebhooksResponseDataItemEventsList>;
|
|
2000
1725
|
export interface ListWebhooksResponseDataItem {
|
|
2001
1726
|
/** The ID of the webhook. */
|
|
2002
1727
|
id?: string;
|
|
@@ -2009,10 +1734,8 @@ export interface ListWebhooksResponseDataItem {
|
|
|
2009
1734
|
/** Timestamp indicating when the webhook was created. */
|
|
2010
1735
|
created_at?: string;
|
|
2011
1736
|
}
|
|
2012
|
-
export declare const ListWebhooksResponseDataItem: S.Schema<ListWebhooksResponseDataItem>;
|
|
2013
1737
|
/** Array containing webhook information. */
|
|
2014
1738
|
export type ListWebhooksResponseDataList = Array<ListWebhooksResponseDataItem>;
|
|
2015
|
-
export declare const ListWebhooksResponseDataList: S.Schema<ListWebhooksResponseDataList>;
|
|
2016
1739
|
export interface ListWebhooksResponse {
|
|
2017
1740
|
/** Type of the response object. */
|
|
2018
1741
|
object?: string;
|
|
@@ -2021,36 +1744,30 @@ export interface ListWebhooksResponse {
|
|
|
2021
1744
|
/** Array containing webhook information. */
|
|
2022
1745
|
data: ListWebhooksResponseDataList;
|
|
2023
1746
|
}
|
|
2024
|
-
export declare const ListWebhooksResponse: S.Schema<ListWebhooksResponse>;
|
|
2025
1747
|
export interface PublishTemplateRequest {
|
|
2026
1748
|
/** The Template ID or alias. */
|
|
2027
1749
|
id: string;
|
|
2028
1750
|
}
|
|
2029
|
-
export declare const PublishTemplateRequest: S.Schema<PublishTemplateRequest>;
|
|
2030
1751
|
export interface PublishTemplateResponseSuccess {
|
|
2031
1752
|
/** The ID of the template. */
|
|
2032
1753
|
id?: string;
|
|
2033
1754
|
/** The object type of the response. */
|
|
2034
1755
|
object?: string;
|
|
2035
1756
|
}
|
|
2036
|
-
export declare const PublishTemplateResponseSuccess: S.Schema<PublishTemplateResponseSuccess>;
|
|
2037
1757
|
export interface SendBroadcastRequest {
|
|
2038
1758
|
/** The Broadcast ID. */
|
|
2039
1759
|
id: string;
|
|
2040
1760
|
/** Schedule email to be sent later. The date should be in ISO 8601 format. */
|
|
2041
1761
|
scheduled_at?: string;
|
|
2042
1762
|
}
|
|
2043
|
-
export declare const SendBroadcastRequest: S.Schema<SendBroadcastRequest>;
|
|
2044
1763
|
export interface SendBroadcastResponseSuccess {
|
|
2045
1764
|
/** The ID of the broadcast. */
|
|
2046
1765
|
id?: string;
|
|
2047
1766
|
}
|
|
2048
|
-
export declare const SendBroadcastResponseSuccess: S.Schema<SendBroadcastResponseSuccess>;
|
|
2049
1767
|
/** An optional payload of key/value pairs to include with the event. */
|
|
2050
1768
|
export type SendEventRequestPayloadMap = {
|
|
2051
1769
|
[key: string]: unknown | undefined;
|
|
2052
1770
|
};
|
|
2053
|
-
export declare const SendEventRequestPayloadMap: S.Schema<SendEventRequestPayloadMap>;
|
|
2054
1771
|
export interface SendEventRequest {
|
|
2055
1772
|
/** The name of the event to send. */
|
|
2056
1773
|
event: string;
|
|
@@ -2061,15 +1778,12 @@ export interface SendEventRequest {
|
|
|
2061
1778
|
/** An optional payload of key/value pairs to include with the event. */
|
|
2062
1779
|
payload?: SendEventRequestPayloadMap;
|
|
2063
1780
|
}
|
|
2064
|
-
export declare const SendEventRequest: S.Schema<SendEventRequest>;
|
|
2065
1781
|
export interface SendEventResponse {
|
|
2066
1782
|
}
|
|
2067
|
-
export declare const SendEventResponse: S.Schema<SendEventResponse>;
|
|
2068
1783
|
export interface StopAutomationRequest {
|
|
2069
1784
|
/** The ID of the automation. */
|
|
2070
1785
|
automation_id: string;
|
|
2071
1786
|
}
|
|
2072
|
-
export declare const StopAutomationRequest: S.Schema<StopAutomationRequest>;
|
|
2073
1787
|
export interface StopAutomationResponse {
|
|
2074
1788
|
/** Type of the response object. */
|
|
2075
1789
|
object?: string;
|
|
@@ -2078,16 +1792,12 @@ export interface StopAutomationResponse {
|
|
|
2078
1792
|
/** The status of the automation after stopping. */
|
|
2079
1793
|
status?: string;
|
|
2080
1794
|
}
|
|
2081
|
-
export declare const StopAutomationResponse: S.Schema<StopAutomationResponse>;
|
|
2082
1795
|
/** The status of the automation. */
|
|
2083
1796
|
export type UpdateAutomationRequestStatus = "enabled" | "disabled";
|
|
2084
|
-
export declare const UpdateAutomationRequestStatus: any;
|
|
2085
1797
|
/** The steps that compose the automation workflow. Must be provided together with `connections`. */
|
|
2086
1798
|
export type UpdateAutomationRequestStepsList = Array<AutomationStep>;
|
|
2087
|
-
export declare const UpdateAutomationRequestStepsList: S.Schema<UpdateAutomationRequestStepsList>;
|
|
2088
1799
|
/** The connections between steps in the automation graph. Must be provided together with `steps`. */
|
|
2089
1800
|
export type UpdateAutomationRequestConnectionsList = Array<AutomationConnection>;
|
|
2090
|
-
export declare const UpdateAutomationRequestConnectionsList: S.Schema<UpdateAutomationRequestConnectionsList>;
|
|
2091
1801
|
export interface UpdateAutomationRequest {
|
|
2092
1802
|
/** The ID of the automation. */
|
|
2093
1803
|
automation_id: string;
|
|
@@ -2100,17 +1810,14 @@ export interface UpdateAutomationRequest {
|
|
|
2100
1810
|
/** The connections between steps in the automation graph. Must be provided together with `steps`. */
|
|
2101
1811
|
connections?: UpdateAutomationRequestConnectionsList;
|
|
2102
1812
|
}
|
|
2103
|
-
export declare const UpdateAutomationRequest: S.Schema<UpdateAutomationRequest>;
|
|
2104
1813
|
export interface PatchAutomationResponse {
|
|
2105
1814
|
/** Type of the response object. */
|
|
2106
1815
|
object?: string;
|
|
2107
1816
|
/** The ID of the updated automation. */
|
|
2108
1817
|
id?: string;
|
|
2109
1818
|
}
|
|
2110
|
-
export declare const PatchAutomationResponse: S.Schema<PatchAutomationResponse>;
|
|
2111
1819
|
/** The email addresses to which replies should be sent. */
|
|
2112
1820
|
export type UpdateBroadcastRequestReplyToList = Array<string>;
|
|
2113
|
-
export declare const UpdateBroadcastRequestReplyToList: S.Schema<UpdateBroadcastRequestReplyToList>;
|
|
2114
1821
|
export interface UpdateBroadcastRequest {
|
|
2115
1822
|
/** The Broadcast ID. */
|
|
2116
1823
|
id: string;
|
|
@@ -2135,19 +1842,16 @@ export interface UpdateBroadcastRequest {
|
|
|
2135
1842
|
/** The topic ID that the broadcast will be scoped to. */
|
|
2136
1843
|
topic_id?: string;
|
|
2137
1844
|
}
|
|
2138
|
-
export declare const UpdateBroadcastRequest: S.Schema<UpdateBroadcastRequest>;
|
|
2139
1845
|
export interface UpdateBroadcastResponseSuccess {
|
|
2140
1846
|
/** The ID of the broadcast. */
|
|
2141
1847
|
id?: string;
|
|
2142
1848
|
/** The object type of the response. */
|
|
2143
1849
|
object?: string;
|
|
2144
1850
|
}
|
|
2145
|
-
export declare const UpdateBroadcastResponseSuccess: S.Schema<UpdateBroadcastResponseSuccess>;
|
|
2146
1851
|
/** A map of custom property keys and values to update. */
|
|
2147
1852
|
export type UpdateContactRequestPropertiesMap = {
|
|
2148
1853
|
[key: string]: unknown | undefined;
|
|
2149
1854
|
};
|
|
2150
|
-
export declare const UpdateContactRequestPropertiesMap: S.Schema<UpdateContactRequestPropertiesMap>;
|
|
2151
1855
|
export interface UpdateContactRequest {
|
|
2152
1856
|
/** The Contact ID or email address. */
|
|
2153
1857
|
id: string;
|
|
@@ -2162,38 +1866,32 @@ export interface UpdateContactRequest {
|
|
|
2162
1866
|
/** A map of custom property keys and values to update. */
|
|
2163
1867
|
properties?: UpdateContactRequestPropertiesMap;
|
|
2164
1868
|
}
|
|
2165
|
-
export declare const UpdateContactRequest: S.Schema<UpdateContactRequest>;
|
|
2166
1869
|
export interface UpdateContactResponseSuccess {
|
|
2167
1870
|
/** Type of the response object. */
|
|
2168
1871
|
object?: string;
|
|
2169
1872
|
/** Unique identifier for the updated contact. */
|
|
2170
1873
|
id?: string;
|
|
2171
1874
|
}
|
|
2172
|
-
export declare const UpdateContactResponseSuccess: S.Schema<UpdateContactResponseSuccess>;
|
|
2173
1875
|
/** The default value to use when the property is not set for a contact. Must match the type of the property. */
|
|
2174
1876
|
export type UpdateContactPropertyRequestFallbackValue = string | number;
|
|
2175
|
-
export declare const UpdateContactPropertyRequestFallbackValue: S.Schema<UpdateContactPropertyRequestFallbackValue>;
|
|
2176
1877
|
export interface UpdateContactPropertyRequest {
|
|
2177
1878
|
/** The Contact Property ID. */
|
|
2178
1879
|
id: string;
|
|
2179
1880
|
/** The default value to use when the property is not set for a contact. Must match the type of the property. */
|
|
2180
1881
|
fallback_value?: UpdateContactPropertyRequestFallbackValue;
|
|
2181
1882
|
}
|
|
2182
|
-
export declare const UpdateContactPropertyRequest: S.Schema<UpdateContactPropertyRequest>;
|
|
2183
1883
|
export interface UpdateContactPropertyResponseSuccess {
|
|
2184
1884
|
/** The ID of the contact property. */
|
|
2185
1885
|
id?: string;
|
|
2186
1886
|
/** The object type. */
|
|
2187
1887
|
object?: string;
|
|
2188
1888
|
}
|
|
2189
|
-
export declare const UpdateContactPropertyResponseSuccess: S.Schema<UpdateContactPropertyResponseSuccess>;
|
|
2190
1889
|
export interface UpdateContactSegmentRequest {
|
|
2191
1890
|
/** The Contact ID or email address. */
|
|
2192
1891
|
contact_id: string;
|
|
2193
1892
|
/** The Segment ID. */
|
|
2194
1893
|
segment_id: string;
|
|
2195
1894
|
}
|
|
2196
|
-
export declare const UpdateContactSegmentRequest: S.Schema<UpdateContactSegmentRequest>;
|
|
2197
1895
|
export interface AddContactToSegmentResponseSuccess {
|
|
2198
1896
|
/** The object type. */
|
|
2199
1897
|
object?: string;
|
|
@@ -2202,38 +1900,30 @@ export interface AddContactToSegmentResponseSuccess {
|
|
|
2202
1900
|
/** The ID of the segment. */
|
|
2203
1901
|
segment_id?: string;
|
|
2204
1902
|
}
|
|
2205
|
-
export declare const AddContactToSegmentResponseSuccess: S.Schema<AddContactToSegmentResponseSuccess>;
|
|
2206
1903
|
/** The subscription status (opt_in or opt_out). */
|
|
2207
1904
|
export type UpdateContactTopicsRequestTopicsItemSubscription = "opt_in" | "opt_out";
|
|
2208
|
-
export declare const UpdateContactTopicsRequestTopicsItemSubscription: any;
|
|
2209
1905
|
export interface UpdateContactTopicsRequestTopicsItem {
|
|
2210
1906
|
/** The ID of the topic. */
|
|
2211
1907
|
id?: string;
|
|
2212
1908
|
/** The subscription status (opt_in or opt_out). */
|
|
2213
1909
|
subscription?: UpdateContactTopicsRequestTopicsItemSubscription | (string & {});
|
|
2214
1910
|
}
|
|
2215
|
-
export declare const UpdateContactTopicsRequestTopicsItem: S.Schema<UpdateContactTopicsRequestTopicsItem>;
|
|
2216
1911
|
export type UpdateContactTopicsRequestTopicsList = Array<UpdateContactTopicsRequestTopicsItem>;
|
|
2217
|
-
export declare const UpdateContactTopicsRequestTopicsList: S.Schema<UpdateContactTopicsRequestTopicsList>;
|
|
2218
1912
|
export interface UpdateContactTopicsRequest {
|
|
2219
1913
|
/** The Contact ID or email address. */
|
|
2220
1914
|
contact_id: string;
|
|
2221
1915
|
topics: UpdateContactTopicsRequestTopicsList;
|
|
2222
1916
|
}
|
|
2223
|
-
export declare const UpdateContactTopicsRequest: S.Schema<UpdateContactTopicsRequest>;
|
|
2224
1917
|
/** The subscription status. */
|
|
2225
1918
|
export type UpdateContactTopicsResponseSuccessTopicsItemSubscription = "opt_in" | "opt_out";
|
|
2226
|
-
export declare const UpdateContactTopicsResponseSuccessTopicsItemSubscription: any;
|
|
2227
1919
|
export interface UpdateContactTopicsResponseSuccessTopicsItem {
|
|
2228
1920
|
/** The ID of the topic. */
|
|
2229
1921
|
id?: string;
|
|
2230
1922
|
/** The subscription status. */
|
|
2231
1923
|
subscription?: UpdateContactTopicsResponseSuccessTopicsItemSubscription;
|
|
2232
1924
|
}
|
|
2233
|
-
export declare const UpdateContactTopicsResponseSuccessTopicsItem: S.Schema<UpdateContactTopicsResponseSuccessTopicsItem>;
|
|
2234
1925
|
/** Array of updated topic subscriptions. */
|
|
2235
1926
|
export type UpdateContactTopicsResponseSuccessTopicsList = Array<UpdateContactTopicsResponseSuccessTopicsItem>;
|
|
2236
|
-
export declare const UpdateContactTopicsResponseSuccessTopicsList: S.Schema<UpdateContactTopicsResponseSuccessTopicsList>;
|
|
2237
1927
|
export interface UpdateContactTopicsResponseSuccess {
|
|
2238
1928
|
/** The object type. */
|
|
2239
1929
|
object?: string;
|
|
@@ -2242,7 +1932,6 @@ export interface UpdateContactTopicsResponseSuccess {
|
|
|
2242
1932
|
/** Array of updated topic subscriptions. */
|
|
2243
1933
|
topics?: UpdateContactTopicsResponseSuccessTopicsList;
|
|
2244
1934
|
}
|
|
2245
|
-
export declare const UpdateContactTopicsResponseSuccess: S.Schema<UpdateContactTopicsResponseSuccess>;
|
|
2246
1935
|
export interface UpdateDomainRequest {
|
|
2247
1936
|
/** The ID of the domain. */
|
|
2248
1937
|
domain_id: string;
|
|
@@ -2256,43 +1945,35 @@ export interface UpdateDomainRequest {
|
|
|
2256
1945
|
/** The subdomain to use for click and open tracking. */
|
|
2257
1946
|
tracking_subdomain?: string;
|
|
2258
1947
|
}
|
|
2259
|
-
export declare const UpdateDomainRequest: S.Schema<UpdateDomainRequest>;
|
|
2260
1948
|
export interface UpdateDomainResponseSuccess {
|
|
2261
1949
|
/** The ID of the updated domain. */
|
|
2262
1950
|
id?: string;
|
|
2263
1951
|
/** The object type representing the updated domain. */
|
|
2264
1952
|
object?: string;
|
|
2265
1953
|
}
|
|
2266
|
-
export declare const UpdateDomainResponseSuccess: S.Schema<UpdateDomainResponseSuccess>;
|
|
2267
1954
|
export interface UpdateEmailRequest {
|
|
2268
1955
|
/** The ID of the email. */
|
|
2269
1956
|
email_id: string;
|
|
2270
1957
|
}
|
|
2271
|
-
export declare const UpdateEmailRequest: S.Schema<UpdateEmailRequest>;
|
|
2272
1958
|
export interface UpdateEmailOptions {
|
|
2273
1959
|
/** Schedule email to be sent later. The date should be in ISO 8601 format. */
|
|
2274
1960
|
scheduled_at?: string;
|
|
2275
1961
|
}
|
|
2276
|
-
export declare const UpdateEmailOptions: S.Schema<UpdateEmailOptions>;
|
|
2277
1962
|
export interface UpdateEventRequest {
|
|
2278
1963
|
/** The event ID (UUID) or event name. */
|
|
2279
1964
|
identifier: string;
|
|
2280
1965
|
/** A flat key/type map defining the event payload schema. Set to `null` to clear the schema. Supported types are `string`, `number`, `boolean`, and `date`. */
|
|
2281
1966
|
schema: unknown | null;
|
|
2282
1967
|
}
|
|
2283
|
-
export declare const UpdateEventRequest: S.Schema<UpdateEventRequest>;
|
|
2284
1968
|
export interface UpdateEventResponse {
|
|
2285
1969
|
/** Type of the response object. */
|
|
2286
1970
|
object?: string;
|
|
2287
1971
|
/** The ID of the updated event. */
|
|
2288
1972
|
id?: string;
|
|
2289
1973
|
}
|
|
2290
|
-
export declare const UpdateEventResponse: S.Schema<UpdateEventResponse>;
|
|
2291
1974
|
/** Reply-to email addresses. */
|
|
2292
1975
|
export type UpdateTemplateRequestReplyToList = Array<string>;
|
|
2293
|
-
export declare const UpdateTemplateRequestReplyToList: S.Schema<UpdateTemplateRequestReplyToList>;
|
|
2294
1976
|
export type UpdateTemplateRequestVariablesList = Array<TemplateVariableInput>;
|
|
2295
|
-
export declare const UpdateTemplateRequestVariablesList: S.Schema<UpdateTemplateRequestVariablesList>;
|
|
2296
1977
|
export interface UpdateTemplateRequest {
|
|
2297
1978
|
/** The Template ID or alias. */
|
|
2298
1979
|
id: string;
|
|
@@ -2312,17 +1993,14 @@ export interface UpdateTemplateRequest {
|
|
|
2312
1993
|
text?: string;
|
|
2313
1994
|
variables?: UpdateTemplateRequestVariablesList;
|
|
2314
1995
|
}
|
|
2315
|
-
export declare const UpdateTemplateRequest: S.Schema<UpdateTemplateRequest>;
|
|
2316
1996
|
export interface UpdateTemplateResponseSuccess {
|
|
2317
1997
|
/** The ID of the template. */
|
|
2318
1998
|
id?: string;
|
|
2319
1999
|
/** The object type of the response. */
|
|
2320
2000
|
object?: string;
|
|
2321
2001
|
}
|
|
2322
|
-
export declare const UpdateTemplateResponseSuccess: S.Schema<UpdateTemplateResponseSuccess>;
|
|
2323
2002
|
/** The visibility of the topic. */
|
|
2324
2003
|
export type UpdateTopicRequestVisibility = "public" | "private";
|
|
2325
|
-
export declare const UpdateTopicRequestVisibility: any;
|
|
2326
2004
|
export interface UpdateTopicRequest {
|
|
2327
2005
|
/** The Topic ID. */
|
|
2328
2006
|
id: string;
|
|
@@ -2333,20 +2011,16 @@ export interface UpdateTopicRequest {
|
|
|
2333
2011
|
/** The visibility of the topic. */
|
|
2334
2012
|
visibility?: UpdateTopicRequestVisibility | (string & {});
|
|
2335
2013
|
}
|
|
2336
|
-
export declare const UpdateTopicRequest: S.Schema<UpdateTopicRequest>;
|
|
2337
2014
|
export interface UpdateTopicResponseSuccess {
|
|
2338
2015
|
/** The ID of the topic. */
|
|
2339
2016
|
id?: string;
|
|
2340
2017
|
/** The object type. */
|
|
2341
2018
|
object?: string;
|
|
2342
2019
|
}
|
|
2343
|
-
export declare const UpdateTopicResponseSuccess: S.Schema<UpdateTopicResponseSuccess>;
|
|
2344
2020
|
/** Array of event types to subscribe to. */
|
|
2345
2021
|
export type UpdateWebhookRequestEventsList = Array<string>;
|
|
2346
|
-
export declare const UpdateWebhookRequestEventsList: S.Schema<UpdateWebhookRequestEventsList>;
|
|
2347
2022
|
/** The status of the webhook. */
|
|
2348
2023
|
export type UpdateWebhookRequestStatus = "enabled" | "disabled";
|
|
2349
|
-
export declare const UpdateWebhookRequestStatus: any;
|
|
2350
2024
|
export interface UpdateWebhookRequest {
|
|
2351
2025
|
/** The Webhook ID. */
|
|
2352
2026
|
webhook_id: string;
|
|
@@ -2357,26 +2031,22 @@ export interface UpdateWebhookRequest {
|
|
|
2357
2031
|
/** The status of the webhook. */
|
|
2358
2032
|
status?: UpdateWebhookRequestStatus | (string & {});
|
|
2359
2033
|
}
|
|
2360
|
-
export declare const UpdateWebhookRequest: S.Schema<UpdateWebhookRequest>;
|
|
2361
2034
|
export interface UpdateWebhookResponse {
|
|
2362
2035
|
/** The type of object. */
|
|
2363
2036
|
object?: string;
|
|
2364
2037
|
/** The ID of the updated webhook. */
|
|
2365
2038
|
id?: string;
|
|
2366
2039
|
}
|
|
2367
|
-
export declare const UpdateWebhookResponse: S.Schema<UpdateWebhookResponse>;
|
|
2368
2040
|
export interface VerifyDomainRequest {
|
|
2369
2041
|
/** The ID of the domain. */
|
|
2370
2042
|
domain_id: string;
|
|
2371
2043
|
}
|
|
2372
|
-
export declare const VerifyDomainRequest: S.Schema<VerifyDomainRequest>;
|
|
2373
2044
|
export interface VerifyDomainResponse {
|
|
2374
2045
|
/** The type of object. */
|
|
2375
2046
|
object?: string;
|
|
2376
2047
|
/** The ID of the domain. */
|
|
2377
2048
|
id?: string;
|
|
2378
2049
|
}
|
|
2379
|
-
export declare const VerifyDomainResponse: S.Schema<VerifyDomainResponse>;
|
|
2380
2050
|
export type CancelEmailError = ResendOpError;
|
|
2381
2051
|
/** Cancel the schedule of the e-mail. */
|
|
2382
2052
|
export declare const cancelEmail: API.OperationMethod<CancelEmailRequest, Email, CancelEmailError, ResendOpContext>;
|