@distilled.cloud/resend 0.0.0 → 1.0.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +28 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +34 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +36 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +26 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +23 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +27 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +8 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +50 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +60 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +32 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +32 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/index.d.ts +2 -0
  27. package/lib/services/index.d.ts.map +1 -0
  28. package/lib/services/index.js +3 -0
  29. package/lib/services/index.js.map +1 -0
  30. package/lib/services/resend.d.ts +2617 -0
  31. package/lib/services/resend.d.ts.map +1 -0
  32. package/lib/services/resend.js +2402 -0
  33. package/lib/services/resend.js.map +1 -0
  34. package/lib/traits.d.ts +11 -0
  35. package/lib/traits.d.ts.map +1 -0
  36. package/lib/traits.js +11 -0
  37. package/lib/traits.js.map +1 -0
  38. package/package.json +77 -6
  39. package/src/credentials.ts +56 -0
  40. package/src/errors.ts +50 -0
  41. package/src/index.ts +30 -0
  42. package/src/pagination.ts +64 -0
  43. package/src/protocol.ts +82 -0
  44. package/src/retry.ts +54 -0
  45. package/src/services/index.ts +2 -0
  46. package/src/services/resend.ts +6161 -0
  47. package/src/traits.ts +44 -0
@@ -0,0 +1,2617 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as Redacted from "effect/Redacted";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import { type ResendOpError, type ResendOpContext } from "../protocol.ts";
5
+ export type { ResendOpError, ResendOpContext };
6
+ export interface CancelEmailRequest {
7
+ /** The ID of the email. */
8
+ email_id: string;
9
+ }
10
+ export declare const CancelEmailRequest: S.Schema<CancelEmailRequest>;
11
+ export type EmailToList = Array<string>;
12
+ export declare const EmailToList: S.Schema<EmailToList>;
13
+ /** The email addresses of the blind carbon copy recipients. */
14
+ export type EmailBccList = Array<string>;
15
+ export declare const EmailBccList: S.Schema<EmailBccList>;
16
+ /** The email addresses of the carbon copy recipients. */
17
+ export type EmailCcList = Array<string>;
18
+ export declare const EmailCcList: S.Schema<EmailCcList>;
19
+ /** The email addresses to which replies should be sent. */
20
+ export type EmailReplyToList = Array<string>;
21
+ export declare const EmailReplyToList: S.Schema<EmailReplyToList>;
22
+ export interface Email {
23
+ /** The type of object. */
24
+ object?: string;
25
+ /** The ID of the email. */
26
+ id?: string;
27
+ to?: EmailToList;
28
+ /** The email address of the sender. */
29
+ from?: string;
30
+ /** The date and time the email was created. */
31
+ created_at?: string;
32
+ /** The subject line of the email. */
33
+ subject?: string;
34
+ /** The HTML body of the email. */
35
+ html?: string;
36
+ /** The plain text body of the email. */
37
+ text?: string;
38
+ /** The email addresses of the blind carbon copy recipients. */
39
+ bcc?: EmailBccList;
40
+ /** The email addresses of the carbon copy recipients. */
41
+ cc?: EmailCcList;
42
+ /** The email addresses to which replies should be sent. */
43
+ reply_to?: EmailReplyToList;
44
+ /** The status of the email. */
45
+ last_event?: string;
46
+ }
47
+ export declare const Email: S.Schema<Email>;
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. */
49
+ export type CreateApiKeyRequestPermission = "full_access" | "sending_access";
50
+ export declare const CreateApiKeyRequestPermission: any;
51
+ export interface CreateApiKeyRequest {
52
+ /** The API key name. */
53
+ name: string;
54
+ /** 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
+ permission?: CreateApiKeyRequestPermission | (string & {});
56
+ /** Restrict an API key to send emails only from a specific domain. Only used when the permission is sending_access. */
57
+ domain_id?: string;
58
+ }
59
+ export declare const CreateApiKeyRequest: S.Schema<CreateApiKeyRequest>;
60
+ export interface CreateApiKeyResponse {
61
+ /** The ID of the API key. */
62
+ id?: string;
63
+ /** The token of the API key. */
64
+ token?: string;
65
+ }
66
+ export declare const CreateApiKeyResponse: S.Schema<CreateApiKeyResponse>;
67
+ /** The initial status of the automation. Defaults to `disabled`. */
68
+ export type CreateAutomationRequestStatus = "enabled" | "disabled";
69
+ export declare const CreateAutomationRequestStatus: any;
70
+ /** The type of automation step. */
71
+ 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
+ /** A step in an automation workflow. The `config` object varies based on the step `type`. */
74
+ export interface AutomationStep {
75
+ /** A unique key for this step within the automation graph. */
76
+ key: string;
77
+ /** The type of automation step. */
78
+ 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 }` — 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
+ config: unknown;
81
+ }
82
+ export declare const AutomationStep: S.Schema<AutomationStep>;
83
+ /** The steps that compose the automation workflow. Must include at least one `trigger` step. */
84
+ export type CreateAutomationRequestStepsList = Array<AutomationStep>;
85
+ export declare const CreateAutomationRequestStepsList: S.Schema<CreateAutomationRequestStepsList>;
86
+ /** The type of connection. Defaults to `default`. */
87
+ export type AutomationConnectionType = "default" | "condition_met" | "condition_not_met" | "timeout" | "event_received";
88
+ export declare const AutomationConnectionType: any;
89
+ /** A connection between two steps in the automation graph. */
90
+ export interface AutomationConnection {
91
+ /** The `key` of the source step. */
92
+ from: string;
93
+ /** The `key` of the target step. */
94
+ to: string;
95
+ /** The type of connection. Defaults to `default`. */
96
+ type?: AutomationConnectionType | (string & {});
97
+ }
98
+ export declare const AutomationConnection: S.Schema<AutomationConnection>;
99
+ /** The connections between steps in the automation graph. */
100
+ export type CreateAutomationRequestConnectionsList = Array<AutomationConnection>;
101
+ export declare const CreateAutomationRequestConnectionsList: S.Schema<CreateAutomationRequestConnectionsList>;
102
+ export interface CreateAutomationRequest {
103
+ /** The name of the automation. */
104
+ name: string;
105
+ /** The initial status of the automation. Defaults to `disabled`. */
106
+ status?: CreateAutomationRequestStatus | (string & {});
107
+ /** The steps that compose the automation workflow. Must include at least one `trigger` step. */
108
+ steps: CreateAutomationRequestStepsList;
109
+ /** The connections between steps in the automation graph. */
110
+ connections: CreateAutomationRequestConnectionsList;
111
+ }
112
+ export declare const CreateAutomationRequest: S.Schema<CreateAutomationRequest>;
113
+ export interface CreateAutomationResponse {
114
+ /** Type of the response object. */
115
+ object?: string;
116
+ /** The ID of the created automation. */
117
+ id?: string;
118
+ }
119
+ export declare const CreateAutomationResponse: S.Schema<CreateAutomationResponse>;
120
+ /** The email addresses to which replies should be sent. */
121
+ export type CreateBroadcastRequestReplyToList = Array<string>;
122
+ export declare const CreateBroadcastRequestReplyToList: S.Schema<CreateBroadcastRequestReplyToList>;
123
+ export interface CreateBroadcastRequest {
124
+ /** Name of the broadcast. */
125
+ name?: string;
126
+ /** Unique identifier of the segment this broadcast will be sent to. */
127
+ segment_id: string;
128
+ /** Use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to. */
129
+ audience_id?: string;
130
+ /** The email address of the sender. */
131
+ from: string;
132
+ /** The subject line of the email. */
133
+ subject: string;
134
+ /** The email addresses to which replies should be sent. */
135
+ reply_to?: CreateBroadcastRequestReplyToList;
136
+ /** The preview text of the email. */
137
+ preview_text?: string;
138
+ /** The HTML version of the message. */
139
+ html?: string;
140
+ /** The plain text version of the message. */
141
+ text?: string;
142
+ /** The topic ID that the broadcast will be scoped to. */
143
+ topic_id?: string;
144
+ /** Whether to send the broadcast immediately or keep it as a draft. */
145
+ send?: boolean;
146
+ /** Schedule time to send the broadcast. Can only be used if `send` is true. */
147
+ scheduled_at?: string;
148
+ }
149
+ export declare const CreateBroadcastRequest: S.Schema<CreateBroadcastRequest>;
150
+ export interface CreateBroadcastResponseSuccess {
151
+ /** The ID of the broadcast. */
152
+ id?: string;
153
+ /** The object type of the response. */
154
+ object?: string;
155
+ }
156
+ export declare const CreateBroadcastResponseSuccess: S.Schema<CreateBroadcastResponseSuccess>;
157
+ /** A map of custom property keys and values to create. */
158
+ export type CreateContactRequestPropertiesMap = {
159
+ [key: string]: unknown | undefined;
160
+ };
161
+ export declare const CreateContactRequestPropertiesMap: S.Schema<CreateContactRequestPropertiesMap>;
162
+ /** Array of segment IDs to add the contact to. */
163
+ export type CreateContactRequestSegmentsList = Array<string>;
164
+ export declare const CreateContactRequestSegmentsList: S.Schema<CreateContactRequestSegmentsList>;
165
+ /** The subscription status for this topic. */
166
+ export type CreateContactRequestTopicsItemSubscription = "opt_in" | "opt_out";
167
+ export declare const CreateContactRequestTopicsItemSubscription: any;
168
+ export interface CreateContactRequestTopicsItem {
169
+ /** The topic ID. */
170
+ id?: string;
171
+ /** The subscription status for this topic. */
172
+ subscription?: CreateContactRequestTopicsItemSubscription | (string & {});
173
+ }
174
+ export declare const CreateContactRequestTopicsItem: S.Schema<CreateContactRequestTopicsItem>;
175
+ /** Array of topic subscriptions for the contact. */
176
+ export type CreateContactRequestTopicsList = Array<CreateContactRequestTopicsItem>;
177
+ export declare const CreateContactRequestTopicsList: S.Schema<CreateContactRequestTopicsList>;
178
+ export interface CreateContactRequest {
179
+ /** Email address of the contact. */
180
+ email: string;
181
+ /** First name of the contact. */
182
+ first_name?: string;
183
+ /** Last name of the contact. */
184
+ last_name?: string;
185
+ /** The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts. */
186
+ unsubscribed?: boolean;
187
+ /** A map of custom property keys and values to create. */
188
+ properties?: CreateContactRequestPropertiesMap;
189
+ /** Array of segment IDs to add the contact to. */
190
+ segments?: CreateContactRequestSegmentsList;
191
+ /** Array of topic subscriptions for the contact. */
192
+ topics?: CreateContactRequestTopicsList;
193
+ /** Unique identifier of the audience to which the contact belongs. */
194
+ audience_id?: string;
195
+ }
196
+ export declare const CreateContactRequest: S.Schema<CreateContactRequest>;
197
+ export interface CreateContactResponseSuccess {
198
+ /** Type of the response object. */
199
+ object?: string;
200
+ /** Unique identifier for the created contact. */
201
+ id?: string;
202
+ }
203
+ export declare const CreateContactResponseSuccess: S.Schema<CreateContactResponseSuccess>;
204
+ /** The property type. */
205
+ export type CreateContactPropertyRequestType = "string" | "number";
206
+ export declare const CreateContactPropertyRequestType: any;
207
+ /** The default value to use when the property is not set for a contact. Must match the type specified in the type field. */
208
+ export type CreateContactPropertyRequestFallbackValue = string | number;
209
+ export declare const CreateContactPropertyRequestFallbackValue: S.Schema<CreateContactPropertyRequestFallbackValue>;
210
+ export interface CreateContactPropertyRequest {
211
+ /** The property key. Max length is 50 characters. Only alphanumeric characters and underscores are allowed. */
212
+ key: string;
213
+ /** The property type. */
214
+ type: CreateContactPropertyRequestType | (string & {});
215
+ /** The default value to use when the property is not set for a contact. Must match the type specified in the type field. */
216
+ fallback_value?: CreateContactPropertyRequestFallbackValue;
217
+ }
218
+ export declare const CreateContactPropertyRequest: S.Schema<CreateContactPropertyRequest>;
219
+ export interface CreateContactPropertyResponseSuccess {
220
+ /** The ID of the contact property. */
221
+ id?: string;
222
+ /** The object type of the response. */
223
+ object?: string;
224
+ }
225
+ export declare const CreateContactPropertyResponseSuccess: S.Schema<CreateContactPropertyResponseSuccess>;
226
+ /** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
227
+ export type CreateDomainRequestRegion = "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
228
+ export declare const CreateDomainRequestRegion: any;
229
+ /** TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent. */
230
+ export type CreateDomainRequestTls = "opportunistic" | "enforced";
231
+ export declare const CreateDomainRequestTls: any;
232
+ /** Enable or disable sending emails from this domain. */
233
+ export type DomainCapabilitiesSending = "enabled" | "disabled";
234
+ export declare const DomainCapabilitiesSending: any;
235
+ /** Enable or disable receiving emails to this domain. */
236
+ export type DomainCapabilitiesReceiving = "enabled" | "disabled";
237
+ export declare const DomainCapabilitiesReceiving: any;
238
+ /** Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled. */
239
+ export interface DomainCapabilities {
240
+ /** Enable or disable sending emails from this domain. */
241
+ sending?: DomainCapabilitiesSending | (string & {});
242
+ /** Enable or disable receiving emails to this domain. */
243
+ receiving?: DomainCapabilitiesReceiving | (string & {});
244
+ }
245
+ export declare const DomainCapabilities: S.Schema<DomainCapabilities>;
246
+ export interface CreateDomainRequest {
247
+ /** The name of the domain you want to create. */
248
+ name: string;
249
+ /** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
250
+ region?: CreateDomainRequestRegion | (string & {});
251
+ /** For advanced use cases, choose a subdomain for the Return-Path address. Defaults to 'send' (i.e., send.yourdomain.tld). */
252
+ custom_return_path?: string;
253
+ /** Track the open rate of each email. */
254
+ open_tracking?: boolean;
255
+ /** Track clicks within the body of each HTML email. */
256
+ click_tracking?: boolean;
257
+ /** TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent. */
258
+ tls?: CreateDomainRequestTls | (string & {});
259
+ capabilities?: DomainCapabilities;
260
+ /** The subdomain to use for click and open tracking. */
261
+ tracking_subdomain?: string;
262
+ }
263
+ export declare const CreateDomainRequest: S.Schema<CreateDomainRequest>;
264
+ /** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
265
+ export type DomainRecordRecord = "SPF" | "DKIM" | "Receiving" | "Tracking";
266
+ export declare const DomainRecordRecord: any;
267
+ /** The DNS record type. */
268
+ export type DomainRecordType = "MX" | "TXT" | "CNAME";
269
+ export declare const DomainRecordType: any;
270
+ /** The status of the record. */
271
+ export type DomainRecordStatus = "pending" | "verified" | "failed" | "temporary_failure" | "not_started";
272
+ export declare const DomainRecordStatus: any;
273
+ export interface DomainRecord {
274
+ /** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
275
+ record?: DomainRecordRecord;
276
+ /** The name of the DNS record. */
277
+ name?: string;
278
+ /** The DNS record type. */
279
+ type?: DomainRecordType;
280
+ /** The time to live for the record. */
281
+ ttl?: string;
282
+ /** The status of the record. */
283
+ status?: DomainRecordStatus;
284
+ /** The value of the record. */
285
+ value?: string;
286
+ /** The priority of the record (only applicable for MX records). */
287
+ priority?: number;
288
+ }
289
+ export declare const DomainRecord: S.Schema<DomainRecord>;
290
+ export type CreateDomainResponseRecordsList = Array<DomainRecord>;
291
+ export declare const CreateDomainResponseRecordsList: S.Schema<CreateDomainResponseRecordsList>;
292
+ export interface CreateDomainResponse {
293
+ /** The ID of the domain. */
294
+ id?: string;
295
+ /** The name of the domain. */
296
+ name?: string;
297
+ /** The date and time the domain was created. */
298
+ created_at?: string;
299
+ /** The status of the domain. */
300
+ status?: string;
301
+ capabilities?: DomainCapabilities;
302
+ records?: CreateDomainResponseRecordsList;
303
+ /** The region where the domain is hosted. */
304
+ region?: string;
305
+ /** Whether open tracking is enabled for this domain. */
306
+ open_tracking?: boolean;
307
+ /** Whether click tracking is enabled for this domain. */
308
+ click_tracking?: boolean;
309
+ /** The subdomain used for click and open tracking. */
310
+ tracking_subdomain?: string;
311
+ }
312
+ export declare const CreateDomainResponse: S.Schema<CreateDomainResponse>;
313
+ export type CreateEmailRequestToCase1List = Array<string>;
314
+ export declare const CreateEmailRequestToCase1List: S.Schema<CreateEmailRequestToCase1List>;
315
+ /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
316
+ export type CreateEmailRequestTo = string | CreateEmailRequestToCase1List;
317
+ export declare const CreateEmailRequestTo: S.Schema<CreateEmailRequestTo>;
318
+ export type CreateEmailRequestBccCase1List = Array<string>;
319
+ export declare const CreateEmailRequestBccCase1List: S.Schema<CreateEmailRequestBccCase1List>;
320
+ /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
321
+ export type CreateEmailRequestBcc = string | CreateEmailRequestBccCase1List;
322
+ export declare const CreateEmailRequestBcc: S.Schema<CreateEmailRequestBcc>;
323
+ export type CreateEmailRequestCcCase1List = Array<string>;
324
+ export declare const CreateEmailRequestCcCase1List: S.Schema<CreateEmailRequestCcCase1List>;
325
+ /** Cc recipient email address. For multiple addresses, send as an array of strings. */
326
+ export type CreateEmailRequestCc = string | CreateEmailRequestCcCase1List;
327
+ export declare const CreateEmailRequestCc: S.Schema<CreateEmailRequestCc>;
328
+ export type CreateEmailRequestReplyToCase1List = Array<string>;
329
+ export declare const CreateEmailRequestReplyToCase1List: S.Schema<CreateEmailRequestReplyToCase1List>;
330
+ /** Reply-to email address. For multiple addresses, send as an array of strings. */
331
+ export type CreateEmailRequestReplyTo = string | CreateEmailRequestReplyToCase1List;
332
+ export declare const CreateEmailRequestReplyTo: S.Schema<CreateEmailRequestReplyTo>;
333
+ export type CreateEmailRequestTemplateVariablesValue = string | number;
334
+ export declare const CreateEmailRequestTemplateVariablesValue: S.Schema<CreateEmailRequestTemplateVariablesValue>;
335
+ /** Template variables object with key/value pairs. */
336
+ export type CreateEmailRequestTemplateVariablesMap = {
337
+ [key: string]: CreateEmailRequestTemplateVariablesValue | undefined;
338
+ };
339
+ export declare const CreateEmailRequestTemplateVariablesMap: S.Schema<CreateEmailRequestTemplateVariablesMap>;
340
+ export interface CreateEmailRequestTemplate {
341
+ /** The id of the published email template. */
342
+ id: string;
343
+ /** Template variables object with key/value pairs. */
344
+ variables?: CreateEmailRequestTemplateVariablesMap;
345
+ }
346
+ export declare const CreateEmailRequestTemplate: S.Schema<CreateEmailRequestTemplate>;
347
+ export interface Attachment {
348
+ /** Content of an attached file. */
349
+ content?: string;
350
+ /** Name of attached file. */
351
+ filename?: string;
352
+ /** Path where the attachment file is hosted */
353
+ path?: string;
354
+ /** Optional content type for the attachment, if not set it will be derived from the filename property */
355
+ content_type?: string;
356
+ /** Content ID for embedding inline images using cid references (e.g., cid:image001). */
357
+ content_id?: string;
358
+ }
359
+ export declare const Attachment: S.Schema<Attachment>;
360
+ export type CreateEmailRequestAttachmentsList = Array<Attachment>;
361
+ export declare const CreateEmailRequestAttachmentsList: S.Schema<CreateEmailRequestAttachmentsList>;
362
+ export interface Tag {
363
+ /** 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
+ name?: string;
365
+ /** 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
+ value?: string;
367
+ }
368
+ export declare const Tag: S.Schema<Tag>;
369
+ export type CreateEmailRequestTagsList = Array<Tag>;
370
+ export declare const CreateEmailRequestTagsList: S.Schema<CreateEmailRequestTagsList>;
371
+ export interface CreateEmailRequest {
372
+ /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
373
+ from: string;
374
+ /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
375
+ to: CreateEmailRequestTo;
376
+ /** Email subject. */
377
+ subject: string;
378
+ /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
379
+ bcc?: CreateEmailRequestBcc;
380
+ /** Cc recipient email address. For multiple addresses, send as an array of strings. */
381
+ cc?: CreateEmailRequestCc;
382
+ /** Reply-to email address. For multiple addresses, send as an array of strings. */
383
+ reply_to?: CreateEmailRequestReplyTo;
384
+ /** The HTML version of the message. */
385
+ html?: string;
386
+ /** The plain text version of the message. */
387
+ text?: string;
388
+ template?: CreateEmailRequestTemplate;
389
+ /** Custom headers to add to the email. */
390
+ headers?: unknown;
391
+ /** Schedule email to be sent later. The date should be in ISO 8601 format. */
392
+ scheduled_at?: string;
393
+ attachments?: CreateEmailRequestAttachmentsList;
394
+ tags?: CreateEmailRequestTagsList;
395
+ /** 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
+ topic_id?: string;
397
+ }
398
+ export declare const CreateEmailRequest: S.Schema<CreateEmailRequest>;
399
+ export interface SendEmailResponse {
400
+ /** The ID of the sent email. */
401
+ id?: string;
402
+ }
403
+ export declare const SendEmailResponse: S.Schema<SendEmailResponse>;
404
+ export type SendEmailRequestToCase1List = Array<string>;
405
+ export declare const SendEmailRequestToCase1List: S.Schema<SendEmailRequestToCase1List>;
406
+ /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
407
+ export type SendEmailRequestTo = string | SendEmailRequestToCase1List;
408
+ export declare const SendEmailRequestTo: S.Schema<SendEmailRequestTo>;
409
+ export type SendEmailRequestBccCase1List = Array<string>;
410
+ export declare const SendEmailRequestBccCase1List: S.Schema<SendEmailRequestBccCase1List>;
411
+ /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
412
+ export type SendEmailRequestBcc = string | SendEmailRequestBccCase1List;
413
+ export declare const SendEmailRequestBcc: S.Schema<SendEmailRequestBcc>;
414
+ export type SendEmailRequestCcCase1List = Array<string>;
415
+ export declare const SendEmailRequestCcCase1List: S.Schema<SendEmailRequestCcCase1List>;
416
+ /** Cc recipient email address. For multiple addresses, send as an array of strings. */
417
+ export type SendEmailRequestCc = string | SendEmailRequestCcCase1List;
418
+ export declare const SendEmailRequestCc: S.Schema<SendEmailRequestCc>;
419
+ export type SendEmailRequestReplyToCase1List = Array<string>;
420
+ export declare const SendEmailRequestReplyToCase1List: S.Schema<SendEmailRequestReplyToCase1List>;
421
+ /** Reply-to email address. For multiple addresses, send as an array of strings. */
422
+ export type SendEmailRequestReplyTo = string | SendEmailRequestReplyToCase1List;
423
+ export declare const SendEmailRequestReplyTo: S.Schema<SendEmailRequestReplyTo>;
424
+ export type SendEmailRequestTemplateVariablesValue = string | number;
425
+ export declare const SendEmailRequestTemplateVariablesValue: S.Schema<SendEmailRequestTemplateVariablesValue>;
426
+ /** Template variables object with key/value pairs. */
427
+ export type SendEmailRequestTemplateVariablesMap = {
428
+ [key: string]: SendEmailRequestTemplateVariablesValue | undefined;
429
+ };
430
+ export declare const SendEmailRequestTemplateVariablesMap: S.Schema<SendEmailRequestTemplateVariablesMap>;
431
+ export interface SendEmailRequestTemplate {
432
+ /** The id of the published email template. */
433
+ id: string;
434
+ /** Template variables object with key/value pairs. */
435
+ variables?: SendEmailRequestTemplateVariablesMap;
436
+ }
437
+ export declare const SendEmailRequestTemplate: S.Schema<SendEmailRequestTemplate>;
438
+ export type SendEmailRequestAttachmentsList = Array<Attachment>;
439
+ export declare const SendEmailRequestAttachmentsList: S.Schema<SendEmailRequestAttachmentsList>;
440
+ export type SendEmailRequestTagsList = Array<Tag>;
441
+ export declare const SendEmailRequestTagsList: S.Schema<SendEmailRequestTagsList>;
442
+ export interface SendEmailRequest {
443
+ /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
444
+ from: string;
445
+ /** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
446
+ to: SendEmailRequestTo;
447
+ /** Email subject. */
448
+ subject: string;
449
+ /** Bcc recipient email address. For multiple addresses, send as an array of strings. */
450
+ bcc?: SendEmailRequestBcc;
451
+ /** Cc recipient email address. For multiple addresses, send as an array of strings. */
452
+ cc?: SendEmailRequestCc;
453
+ /** Reply-to email address. For multiple addresses, send as an array of strings. */
454
+ reply_to?: SendEmailRequestReplyTo;
455
+ /** The HTML version of the message. */
456
+ html?: string;
457
+ /** The plain text version of the message. */
458
+ text?: string;
459
+ template?: SendEmailRequestTemplate;
460
+ /** Custom headers to add to the email. */
461
+ headers?: unknown;
462
+ /** Schedule email to be sent later. The date should be in ISO 8601 format. */
463
+ scheduled_at?: string;
464
+ attachments?: SendEmailRequestAttachmentsList;
465
+ tags?: SendEmailRequestTagsList;
466
+ /** 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
+ topic_id?: string;
468
+ }
469
+ export declare const SendEmailRequest: S.Schema<SendEmailRequest>;
470
+ export type CreateEmailBatchRequestBodyList = Array<SendEmailRequest>;
471
+ export declare const CreateEmailBatchRequestBodyList: S.Schema<CreateEmailBatchRequestBodyList>;
472
+ export interface CreateEmailBatchRequest {
473
+ body?: CreateEmailBatchRequestBodyList;
474
+ }
475
+ export declare const CreateEmailBatchRequest: S.Schema<CreateEmailBatchRequest>;
476
+ export interface CreateBatchEmailsResponseDataItem {
477
+ /** The ID of the sent email. */
478
+ id?: string;
479
+ }
480
+ export declare const CreateBatchEmailsResponseDataItem: S.Schema<CreateBatchEmailsResponseDataItem>;
481
+ export type CreateBatchEmailsResponseDataList = Array<CreateBatchEmailsResponseDataItem>;
482
+ export declare const CreateBatchEmailsResponseDataList: S.Schema<CreateBatchEmailsResponseDataList>;
483
+ export interface CreateBatchEmailsResponse {
484
+ data?: CreateBatchEmailsResponseDataList;
485
+ }
486
+ export declare const CreateBatchEmailsResponse: S.Schema<CreateBatchEmailsResponse>;
487
+ export interface CreateEventRequest {
488
+ /** The name of the event. Cannot start with the reserved `resend:` prefix. */
489
+ name: string;
490
+ /** An optional flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
491
+ schema?: unknown | null;
492
+ }
493
+ export declare const CreateEventRequest: S.Schema<CreateEventRequest>;
494
+ export interface CreateEventResponse {
495
+ /** Type of the response object. */
496
+ object?: string;
497
+ /** The ID of the created event. */
498
+ id?: string;
499
+ }
500
+ export declare const CreateEventResponse: S.Schema<CreateEventResponse>;
501
+ export interface CreateSegmentRequest {
502
+ /** The name of the segment. */
503
+ name: string;
504
+ /** The ID of the audience this segment belongs to. */
505
+ audience_id?: string;
506
+ /** Filter conditions for the segment. */
507
+ filter?: unknown;
508
+ }
509
+ export declare const CreateSegmentRequest: S.Schema<CreateSegmentRequest>;
510
+ export interface CreateSegmentResponseSuccess {
511
+ /** The ID of the segment. */
512
+ id?: string;
513
+ /** The object type of the response. */
514
+ object?: string;
515
+ }
516
+ export declare const CreateSegmentResponseSuccess: S.Schema<CreateSegmentResponseSuccess>;
517
+ /** Reply-to email addresses. */
518
+ export type CreateTemplateRequestReplyToList = Array<string>;
519
+ export declare const CreateTemplateRequestReplyToList: S.Schema<CreateTemplateRequestReplyToList>;
520
+ /** The type of the variable. */
521
+ export type TemplateVariableInputType = "string" | "number" | "boolean" | "object" | "list";
522
+ export declare const TemplateVariableInputType: any;
523
+ export type TemplateVariableInputFallbackValueCase4List = Array<unknown>;
524
+ export declare const TemplateVariableInputFallbackValueCase4List: S.Schema<TemplateVariableInputFallbackValueCase4List>;
525
+ /** The fallback value of the variable. */
526
+ export type TemplateVariableInputFallbackValue = string | number | boolean | unknown | TemplateVariableInputFallbackValueCase4List;
527
+ export declare const TemplateVariableInputFallbackValue: S.Schema<TemplateVariableInputFallbackValue>;
528
+ export interface TemplateVariableInput {
529
+ /** The key of the variable. */
530
+ key: string;
531
+ /** The type of the variable. */
532
+ type: TemplateVariableInputType | (string & {});
533
+ /** The fallback value of the variable. */
534
+ fallback_value?: TemplateVariableInputFallbackValue;
535
+ }
536
+ export declare const TemplateVariableInput: S.Schema<TemplateVariableInput>;
537
+ export type CreateTemplateRequestVariablesList = Array<TemplateVariableInput>;
538
+ export declare const CreateTemplateRequestVariablesList: S.Schema<CreateTemplateRequestVariablesList>;
539
+ export interface CreateTemplateRequest {
540
+ /** The name of the template. */
541
+ name: string;
542
+ /** The alias of the template. */
543
+ alias?: string;
544
+ /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
545
+ from?: string;
546
+ /** Email subject. */
547
+ subject?: string;
548
+ /** Reply-to email addresses. */
549
+ reply_to?: CreateTemplateRequestReplyToList;
550
+ /** The HTML version of the template. */
551
+ html: string;
552
+ /** The plain text version of the template. */
553
+ text?: string;
554
+ variables?: CreateTemplateRequestVariablesList;
555
+ }
556
+ export declare const CreateTemplateRequest: S.Schema<CreateTemplateRequest>;
557
+ export interface CreateTemplateResponseSuccess {
558
+ /** The ID of the template. */
559
+ id?: string;
560
+ /** The object type of the response. */
561
+ object?: string;
562
+ }
563
+ export declare const CreateTemplateResponseSuccess: S.Schema<CreateTemplateResponseSuccess>;
564
+ /** The default subscription status for the topic. Cannot be changed after creation. */
565
+ export type CreateTopicRequestDefaultSubscription = "opt_in" | "opt_out";
566
+ export declare const CreateTopicRequestDefaultSubscription: any;
567
+ /** 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
+ export type CreateTopicRequestVisibility = "public" | "private";
569
+ export declare const CreateTopicRequestVisibility: any;
570
+ export interface CreateTopicRequest {
571
+ /** The name of the topic. Max 50 characters. */
572
+ name: string;
573
+ /** The default subscription status for the topic. Cannot be changed after creation. */
574
+ default_subscription: CreateTopicRequestDefaultSubscription | (string & {});
575
+ /** A description of the topic. Max 200 characters. */
576
+ description?: string;
577
+ /** 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
+ visibility?: CreateTopicRequestVisibility | (string & {});
579
+ }
580
+ export declare const CreateTopicRequest: S.Schema<CreateTopicRequest>;
581
+ export interface CreateTopicResponseSuccess {
582
+ /** The ID of the topic. */
583
+ id?: string;
584
+ /** The object type of the response. */
585
+ object?: string;
586
+ }
587
+ export declare const CreateTopicResponseSuccess: S.Schema<CreateTopicResponseSuccess>;
588
+ /** Array of event types to subscribe to. */
589
+ export type CreateWebhookRequestEventsList = Array<string>;
590
+ export declare const CreateWebhookRequestEventsList: S.Schema<CreateWebhookRequestEventsList>;
591
+ export interface CreateWebhookRequest {
592
+ /** The URL where webhook events will be sent. */
593
+ endpoint: string;
594
+ /** Array of event types to subscribe to. */
595
+ events: CreateWebhookRequestEventsList;
596
+ }
597
+ export declare const CreateWebhookRequest: S.Schema<CreateWebhookRequest>;
598
+ export interface CreateWebhookResponse {
599
+ /** The type of object. */
600
+ object?: string;
601
+ /** The ID of the webhook. */
602
+ id?: string;
603
+ /** The secret key used to verify webhook payloads. */
604
+ signing_secret?: string | Redacted.Redacted<string>;
605
+ }
606
+ export declare const CreateWebhookResponse: S.Schema<CreateWebhookResponse>;
607
+ export interface DeleteApiKeyRequest {
608
+ /** The API key ID. */
609
+ api_key_id: string;
610
+ }
611
+ export declare const DeleteApiKeyRequest: S.Schema<DeleteApiKeyRequest>;
612
+ export interface DeleteApiKeyResponse {
613
+ /** The type of object. */
614
+ object?: string;
615
+ /** The ID of the API key. */
616
+ id?: string;
617
+ /** Indicates whether the API key was successfully deleted. */
618
+ deleted?: boolean;
619
+ }
620
+ export declare const DeleteApiKeyResponse: S.Schema<DeleteApiKeyResponse>;
621
+ export interface DeleteAutomationRequest {
622
+ /** The ID of the automation. */
623
+ automation_id: string;
624
+ }
625
+ export declare const DeleteAutomationRequest: S.Schema<DeleteAutomationRequest>;
626
+ export interface DeleteAutomationResponse {
627
+ /** Type of the response object. */
628
+ object?: string;
629
+ /** The ID of the deleted automation. */
630
+ id?: string;
631
+ /** Indicates whether the automation was successfully deleted. */
632
+ deleted?: boolean;
633
+ }
634
+ export declare const DeleteAutomationResponse: S.Schema<DeleteAutomationResponse>;
635
+ export interface DeleteBroadcastRequest {
636
+ /** The Broadcast ID. */
637
+ id: string;
638
+ }
639
+ export declare const DeleteBroadcastRequest: S.Schema<DeleteBroadcastRequest>;
640
+ export interface RemoveBroadcastResponseSuccess {
641
+ /** The ID of the broadcast. */
642
+ id?: string;
643
+ /** Type of the response object. */
644
+ object?: string;
645
+ /** The deleted attribute indicates that the corresponding broadcast has been deleted. */
646
+ deleted?: boolean;
647
+ }
648
+ export declare const RemoveBroadcastResponseSuccess: S.Schema<RemoveBroadcastResponseSuccess>;
649
+ export interface DeleteContactRequest {
650
+ /** The Contact ID or email address. */
651
+ id: string;
652
+ }
653
+ export declare const DeleteContactRequest: S.Schema<DeleteContactRequest>;
654
+ export interface RemoveContactResponseSuccess {
655
+ /** Type of the response object. */
656
+ object?: string;
657
+ /** Unique identifier for the removed contact. */
658
+ id?: string;
659
+ /** Indicates whether the contact was successfully deleted. */
660
+ deleted?: boolean;
661
+ }
662
+ export declare const RemoveContactResponseSuccess: S.Schema<RemoveContactResponseSuccess>;
663
+ export interface DeleteContactPropertyRequest {
664
+ /** The Contact Property ID. */
665
+ id: string;
666
+ }
667
+ export declare const DeleteContactPropertyRequest: S.Schema<DeleteContactPropertyRequest>;
668
+ export interface RemoveContactPropertyResponseSuccess {
669
+ /** The ID of the contact property. */
670
+ id?: string;
671
+ /** The object type. */
672
+ object?: string;
673
+ /** Indicates whether the contact property was successfully deleted. */
674
+ deleted?: boolean;
675
+ }
676
+ export declare const RemoveContactPropertyResponseSuccess: S.Schema<RemoveContactPropertyResponseSuccess>;
677
+ export interface DeleteContactSegmentRequest {
678
+ /** The Contact ID or email address. */
679
+ contact_id: string;
680
+ /** The Segment ID. */
681
+ segment_id: string;
682
+ }
683
+ export declare const DeleteContactSegmentRequest: S.Schema<DeleteContactSegmentRequest>;
684
+ export interface RemoveContactFromSegmentResponseSuccess {
685
+ /** The object type. */
686
+ object?: string;
687
+ /** The ID of the contact. */
688
+ contact_id?: string;
689
+ /** The ID of the segment. */
690
+ segment_id?: string;
691
+ /** Indicates whether the contact was successfully removed from the segment. */
692
+ deleted?: boolean;
693
+ }
694
+ export declare const RemoveContactFromSegmentResponseSuccess: S.Schema<RemoveContactFromSegmentResponseSuccess>;
695
+ export interface DeleteDomainRequest {
696
+ /** The ID of the domain. */
697
+ domain_id: string;
698
+ }
699
+ export declare const DeleteDomainRequest: S.Schema<DeleteDomainRequest>;
700
+ export interface DeleteDomainResponse {
701
+ /** The type of object. */
702
+ object?: string;
703
+ /** The ID of the domain. */
704
+ id?: string;
705
+ /** Indicates whether the domain was deleted successfully. */
706
+ deleted?: boolean;
707
+ }
708
+ export declare const DeleteDomainResponse: S.Schema<DeleteDomainResponse>;
709
+ export interface DeleteEventRequest {
710
+ /** The event ID (UUID) or event name. */
711
+ identifier: string;
712
+ }
713
+ export declare const DeleteEventRequest: S.Schema<DeleteEventRequest>;
714
+ export interface RemoveEventResponse {
715
+ /** Type of the response object. */
716
+ object?: string;
717
+ /** The ID of the deleted event. */
718
+ id?: string;
719
+ /** Indicates whether the event was deleted. */
720
+ deleted?: boolean;
721
+ }
722
+ export declare const RemoveEventResponse: S.Schema<RemoveEventResponse>;
723
+ export interface DeleteSegmentRequest {
724
+ /** The Segment ID. */
725
+ id: string;
726
+ }
727
+ export declare const DeleteSegmentRequest: S.Schema<DeleteSegmentRequest>;
728
+ export interface RemoveSegmentResponseSuccess {
729
+ /** The ID of the segment. */
730
+ id?: string;
731
+ /** The object type. */
732
+ object?: string;
733
+ /** Indicates whether the segment was successfully deleted. */
734
+ deleted?: boolean;
735
+ }
736
+ export declare const RemoveSegmentResponseSuccess: S.Schema<RemoveSegmentResponseSuccess>;
737
+ export interface DeleteTemplateRequest {
738
+ /** The Template ID or alias. */
739
+ id: string;
740
+ }
741
+ export declare const DeleteTemplateRequest: S.Schema<DeleteTemplateRequest>;
742
+ export interface RemoveTemplateResponseSuccess {
743
+ /** Type of the response object. */
744
+ object?: string;
745
+ /** The ID of the template. */
746
+ id?: string;
747
+ /** Indicates whether the template was successfully deleted. */
748
+ deleted?: boolean;
749
+ }
750
+ export declare const RemoveTemplateResponseSuccess: S.Schema<RemoveTemplateResponseSuccess>;
751
+ export interface DeleteTopicRequest {
752
+ /** The Topic ID. */
753
+ id: string;
754
+ }
755
+ export declare const DeleteTopicRequest: S.Schema<DeleteTopicRequest>;
756
+ export interface RemoveTopicResponseSuccess {
757
+ /** The ID of the topic. */
758
+ id?: string;
759
+ /** The object type. */
760
+ object?: string;
761
+ /** Indicates whether the topic was successfully deleted. */
762
+ deleted?: boolean;
763
+ }
764
+ export declare const RemoveTopicResponseSuccess: S.Schema<RemoveTopicResponseSuccess>;
765
+ export interface DeleteWebhookRequest {
766
+ /** The Webhook ID. */
767
+ webhook_id: string;
768
+ }
769
+ export declare const DeleteWebhookRequest: S.Schema<DeleteWebhookRequest>;
770
+ export interface DeleteWebhookResponse {
771
+ /** The type of object. */
772
+ object?: string;
773
+ /** The ID of the deleted webhook. */
774
+ id?: string;
775
+ /** Indicates whether the webhook was successfully deleted. */
776
+ deleted?: boolean;
777
+ }
778
+ export declare const DeleteWebhookResponse: S.Schema<DeleteWebhookResponse>;
779
+ export interface DuplicateTemplateRequest {
780
+ /** The Template ID or alias. */
781
+ id: string;
782
+ }
783
+ export declare const DuplicateTemplateRequest: S.Schema<DuplicateTemplateRequest>;
784
+ export interface DuplicateTemplateResponseSuccess {
785
+ /** The ID of the duplicated template. */
786
+ id?: string;
787
+ /** The object type of the response. */
788
+ object?: string;
789
+ }
790
+ export declare const DuplicateTemplateResponseSuccess: S.Schema<DuplicateTemplateResponseSuccess>;
791
+ export interface GetAutomationRequest {
792
+ /** The ID of the automation. */
793
+ automation_id: string;
794
+ }
795
+ export declare const GetAutomationRequest: S.Schema<GetAutomationRequest>;
796
+ /** The current status of the automation. */
797
+ export type AutomationStatus = "enabled" | "disabled";
798
+ export declare const AutomationStatus: any;
799
+ /** The type of automation step. */
800
+ 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
+ /** A step as returned when retrieving an automation. */
803
+ export interface AutomationStepResponse {
804
+ /** The unique key of this step within the automation graph. */
805
+ key?: string;
806
+ /** The type of automation step. */
807
+ type?: AutomationStepResponseType;
808
+ /** 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
+ config?: unknown;
810
+ }
811
+ export declare const AutomationStepResponse: S.Schema<AutomationStepResponse>;
812
+ /** The steps in the active version of the automation. */
813
+ export type AutomationStepsList = Array<AutomationStepResponse>;
814
+ export declare const AutomationStepsList: S.Schema<AutomationStepsList>;
815
+ /** The connections between steps in the active version of the automation. */
816
+ export type AutomationConnectionsList = Array<AutomationConnection>;
817
+ export declare const AutomationConnectionsList: S.Schema<AutomationConnectionsList>;
818
+ export interface Automation {
819
+ /** Type of the response object. */
820
+ object?: string;
821
+ /** The ID of the automation. */
822
+ id?: string;
823
+ /** The name of the automation. */
824
+ name?: string;
825
+ /** The current status of the automation. */
826
+ status?: AutomationStatus;
827
+ /** The date and time the automation was created. */
828
+ created_at?: string;
829
+ /** The date and time the automation was last updated. */
830
+ updated_at?: string;
831
+ /** The steps in the active version of the automation. */
832
+ steps?: AutomationStepsList;
833
+ /** The connections between steps in the active version of the automation. */
834
+ connections?: AutomationConnectionsList;
835
+ }
836
+ export declare const Automation: S.Schema<Automation>;
837
+ export interface GetAutomationRunRequest {
838
+ /** The ID of the automation. */
839
+ automation_id: string;
840
+ /** The ID of the automation run. */
841
+ run_id: string;
842
+ }
843
+ export declare const GetAutomationRunRequest: S.Schema<GetAutomationRunRequest>;
844
+ /** The current status of the automation run. */
845
+ export type AutomationRunStatus = "running" | "completed" | "failed" | "cancelled";
846
+ export declare const AutomationRunStatus: any;
847
+ /** The type of automation step. */
848
+ 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
+ /** A step execution within an automation run. */
851
+ export interface AutomationRunStep {
852
+ /** The key of the automation step. */
853
+ key?: string;
854
+ /** The type of automation step. */
855
+ type?: AutomationRunStepType;
856
+ /** The execution status of this step. */
857
+ status?: string;
858
+ /** The date and time the step started executing. */
859
+ started_at?: string | null;
860
+ /** The date and time the step completed executing. */
861
+ completed_at?: string | null;
862
+ /** The output produced by the step, if any. */
863
+ output?: unknown | null;
864
+ /** The error produced by the step, if any. */
865
+ error?: unknown | null;
866
+ /** The date and time the step record was created. */
867
+ created_at?: string;
868
+ }
869
+ export declare const AutomationRunStep: S.Schema<AutomationRunStep>;
870
+ /** The steps executed in this run, sorted in graph order. */
871
+ export type AutomationRunStepsList = Array<AutomationRunStep>;
872
+ export declare const AutomationRunStepsList: S.Schema<AutomationRunStepsList>;
873
+ export interface AutomationRun {
874
+ /** Type of the response object. */
875
+ object?: string;
876
+ /** The ID of the automation run. */
877
+ id?: string;
878
+ /** The current status of the automation run. */
879
+ status?: AutomationRunStatus;
880
+ /** The date and time the run started. */
881
+ started_at?: string | null;
882
+ /** The date and time the run completed. */
883
+ completed_at?: string | null;
884
+ /** The date and time the run was created. */
885
+ created_at?: string;
886
+ /** The steps executed in this run, sorted in graph order. */
887
+ steps?: AutomationRunStepsList;
888
+ }
889
+ export declare const AutomationRun: S.Schema<AutomationRun>;
890
+ export interface GetBroadcastRequest {
891
+ /** The Broadcast ID. */
892
+ id: string;
893
+ }
894
+ export declare const GetBroadcastRequest: S.Schema<GetBroadcastRequest>;
895
+ /** The email addresses to which replies should be sent. */
896
+ export type GetBroadcastResponseSuccessReplyToList = Array<string>;
897
+ export declare const GetBroadcastResponseSuccessReplyToList: S.Schema<GetBroadcastResponseSuccessReplyToList>;
898
+ export interface GetBroadcastResponseSuccess {
899
+ /** Unique identifier for the broadcast. */
900
+ id?: string;
901
+ /** Name of the broadcast. */
902
+ name?: string;
903
+ /** Deprecated: use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to. */
904
+ audience_id?: string | null;
905
+ /** Unique identifier of the segment this broadcast will be sent to. */
906
+ segment_id?: string | null;
907
+ /** The email address of the sender. */
908
+ from?: string;
909
+ /** The subject line of the email. */
910
+ subject?: string;
911
+ /** The email addresses to which replies should be sent. */
912
+ reply_to?: GetBroadcastResponseSuccessReplyToList;
913
+ /** The preview text of the email. */
914
+ preview_text?: string;
915
+ /** The status of the broadcast. */
916
+ status?: string;
917
+ /** Timestamp indicating when the broadcast was created. */
918
+ created_at?: string;
919
+ /** Timestamp indicating when the broadcast is scheduled to be sent. */
920
+ scheduled_at?: string;
921
+ /** Timestamp indicating when the broadcast was sent. */
922
+ sent_at?: string;
923
+ /** The plain text version of the broadcast content. */
924
+ text?: string | null;
925
+ /** The HTML version of the broadcast content. */
926
+ html?: string | null;
927
+ /** The topic ID that the broadcast is scoped to. */
928
+ topic_id?: string | null;
929
+ }
930
+ export declare const GetBroadcastResponseSuccess: S.Schema<GetBroadcastResponseSuccess>;
931
+ export interface GetContactRequest {
932
+ /** The Contact ID or email address. */
933
+ id: string;
934
+ }
935
+ export declare const GetContactRequest: S.Schema<GetContactRequest>;
936
+ /** A map of custom property keys and values. */
937
+ export type GetContactResponseSuccessPropertiesMap = {
938
+ [key: string]: unknown | undefined;
939
+ };
940
+ export declare const GetContactResponseSuccessPropertiesMap: S.Schema<GetContactResponseSuccessPropertiesMap>;
941
+ export interface GetContactResponseSuccess {
942
+ /** Type of the response object. */
943
+ object?: string;
944
+ /** Unique identifier for the contact. */
945
+ id?: string;
946
+ /** Email address of the contact. */
947
+ email?: string;
948
+ /** First name of the contact. */
949
+ first_name?: string;
950
+ /** Last name of the contact. */
951
+ last_name?: string;
952
+ /** Timestamp indicating when the contact was created. */
953
+ created_at?: string;
954
+ /** Indicates if the contact is unsubscribed. */
955
+ unsubscribed?: boolean;
956
+ /** A map of custom property keys and values. */
957
+ properties?: GetContactResponseSuccessPropertiesMap;
958
+ }
959
+ export declare const GetContactResponseSuccess: S.Schema<GetContactResponseSuccess>;
960
+ export interface GetContactPropertyRequest {
961
+ /** The Contact Property ID. */
962
+ id: string;
963
+ }
964
+ export declare const GetContactPropertyRequest: S.Schema<GetContactPropertyRequest>;
965
+ /** The default value when the property is not set for a contact. */
966
+ export type GetContactPropertyResponseSuccessFallbackValue = string | number;
967
+ export declare const GetContactPropertyResponseSuccessFallbackValue: S.Schema<GetContactPropertyResponseSuccessFallbackValue>;
968
+ export interface GetContactPropertyResponseSuccess {
969
+ /** The object type. */
970
+ object?: string;
971
+ /** The ID of the contact property. */
972
+ id?: string;
973
+ /** The property key. */
974
+ key?: string;
975
+ /** The property type. */
976
+ type?: string;
977
+ /** The default value when the property is not set for a contact. */
978
+ fallback_value?: GetContactPropertyResponseSuccessFallbackValue;
979
+ /** Timestamp indicating when the contact property was created. */
980
+ created_at?: string;
981
+ }
982
+ export declare const GetContactPropertyResponseSuccess: S.Schema<GetContactPropertyResponseSuccess>;
983
+ export interface GetDomainRequest {
984
+ /** The ID of the domain. */
985
+ domain_id: string;
986
+ }
987
+ export declare const GetDomainRequest: S.Schema<GetDomainRequest>;
988
+ export type DomainRecordsList = Array<DomainRecord>;
989
+ export declare const DomainRecordsList: S.Schema<DomainRecordsList>;
990
+ export interface Domain {
991
+ /** The type of object. */
992
+ object?: string;
993
+ /** The ID of the domain. */
994
+ id?: string;
995
+ /** The name of the domain. */
996
+ name?: string;
997
+ /** The status of the domain. */
998
+ status?: string;
999
+ /** The date and time the domain was created. */
1000
+ created_at?: string;
1001
+ /** The region where the domain is hosted. */
1002
+ region?: string;
1003
+ /** Whether open tracking is enabled for this domain. */
1004
+ open_tracking?: boolean;
1005
+ /** Whether click tracking is enabled for this domain. */
1006
+ click_tracking?: boolean;
1007
+ /** The subdomain used for click and open tracking. */
1008
+ tracking_subdomain?: string;
1009
+ capabilities?: DomainCapabilities;
1010
+ records?: DomainRecordsList;
1011
+ }
1012
+ export declare const Domain: S.Schema<Domain>;
1013
+ export interface GetEmailRequest {
1014
+ /** The ID of the email. */
1015
+ email_id: string;
1016
+ }
1017
+ export declare const GetEmailRequest: S.Schema<GetEmailRequest>;
1018
+ export interface GetEmailAttachmentRequest {
1019
+ /** The ID of the email. */
1020
+ email_id: string;
1021
+ /** The ID of the attachment. */
1022
+ attachment_id: string;
1023
+ }
1024
+ export declare const GetEmailAttachmentRequest: S.Schema<GetEmailAttachmentRequest>;
1025
+ /** How the attachment should be displayed. */
1026
+ export type RetrievedAttachmentContentDisposition = "inline" | "attachment";
1027
+ export declare const RetrievedAttachmentContentDisposition: any;
1028
+ export interface RetrievedAttachment {
1029
+ /** The type of object. */
1030
+ object?: string;
1031
+ /** The ID of the attachment. */
1032
+ id?: string;
1033
+ /** The filename of the attachment. */
1034
+ filename?: string;
1035
+ /** The MIME type of the attachment. */
1036
+ content_type?: string;
1037
+ /** The content ID for inline attachments. */
1038
+ content_id?: string;
1039
+ /** How the attachment should be displayed. */
1040
+ content_disposition?: RetrievedAttachmentContentDisposition;
1041
+ /** Signed URL to download the attachment content. */
1042
+ download_url?: string;
1043
+ /** Timestamp when the download URL expires. */
1044
+ expires_at?: string;
1045
+ /** Size of the attachment in bytes. */
1046
+ size?: number;
1047
+ }
1048
+ export declare const RetrievedAttachment: S.Schema<RetrievedAttachment>;
1049
+ export interface GetEmailReceivingRequest {
1050
+ /** The ID of the received email. */
1051
+ email_id: string;
1052
+ }
1053
+ export declare const GetEmailReceivingRequest: S.Schema<GetEmailReceivingRequest>;
1054
+ /** The recipient email addresses. */
1055
+ export type GetReceivedEmailResponseToList = Array<string>;
1056
+ export declare const GetReceivedEmailResponseToList: S.Schema<GetReceivedEmailResponseToList>;
1057
+ /** The BCC recipients. */
1058
+ export type GetReceivedEmailResponseBccList = Array<string>;
1059
+ export declare const GetReceivedEmailResponseBccList: S.Schema<GetReceivedEmailResponseBccList>;
1060
+ /** The CC recipients. */
1061
+ export type GetReceivedEmailResponseCcList = Array<string>;
1062
+ export declare const GetReceivedEmailResponseCcList: S.Schema<GetReceivedEmailResponseCcList>;
1063
+ /** The reply-to addresses. */
1064
+ export type GetReceivedEmailResponseReplyToList = Array<string>;
1065
+ export declare const GetReceivedEmailResponseReplyToList: S.Schema<GetReceivedEmailResponseReplyToList>;
1066
+ /** How the attachment should be displayed. */
1067
+ export type GetReceivedEmailResponseAttachmentsItemContentDisposition = "inline" | "attachment";
1068
+ export declare const GetReceivedEmailResponseAttachmentsItemContentDisposition: any;
1069
+ export interface GetReceivedEmailResponseAttachmentsItem {
1070
+ /** The ID of the attachment. */
1071
+ id?: string;
1072
+ /** The filename of the attachment. */
1073
+ filename?: string;
1074
+ /** The MIME type of the attachment. */
1075
+ content_type?: string;
1076
+ /** The content ID for inline attachments. */
1077
+ content_id?: string;
1078
+ /** How the attachment should be displayed. */
1079
+ content_disposition?: GetReceivedEmailResponseAttachmentsItemContentDisposition;
1080
+ /** Size of the attachment in bytes. */
1081
+ size?: number;
1082
+ }
1083
+ export declare const GetReceivedEmailResponseAttachmentsItem: S.Schema<GetReceivedEmailResponseAttachmentsItem>;
1084
+ /** Array of attachments. */
1085
+ export type GetReceivedEmailResponseAttachmentsList = Array<GetReceivedEmailResponseAttachmentsItem>;
1086
+ export declare const GetReceivedEmailResponseAttachmentsList: S.Schema<GetReceivedEmailResponseAttachmentsList>;
1087
+ export interface GetReceivedEmailResponse {
1088
+ /** The type of object. */
1089
+ object?: string;
1090
+ /** The ID of the received email. */
1091
+ id?: string;
1092
+ /** The recipient email addresses. */
1093
+ to?: GetReceivedEmailResponseToList;
1094
+ /** The sender email address. */
1095
+ from?: string;
1096
+ /** The email subject. */
1097
+ subject?: string;
1098
+ /** The unique message ID from the email headers. */
1099
+ message_id?: string;
1100
+ /** The BCC recipients. */
1101
+ bcc?: GetReceivedEmailResponseBccList | null;
1102
+ /** The CC recipients. */
1103
+ cc?: GetReceivedEmailResponseCcList | null;
1104
+ /** The reply-to addresses. */
1105
+ reply_to?: GetReceivedEmailResponseReplyToList | null;
1106
+ /** The HTML content of the email. */
1107
+ html?: string | null;
1108
+ /** The plain text content of the email. */
1109
+ text?: string | null;
1110
+ /** The email headers. */
1111
+ headers?: unknown | null;
1112
+ /** Timestamp when the email was received. */
1113
+ created_at?: string;
1114
+ /** Array of attachments. */
1115
+ attachments?: GetReceivedEmailResponseAttachmentsList;
1116
+ }
1117
+ export declare const GetReceivedEmailResponse: S.Schema<GetReceivedEmailResponse>;
1118
+ export interface GetEmailReceivingAttachmentRequest {
1119
+ /** The ID of the received email. */
1120
+ email_id: string;
1121
+ /** The ID of the attachment. */
1122
+ attachment_id: string;
1123
+ }
1124
+ export declare const GetEmailReceivingAttachmentRequest: S.Schema<GetEmailReceivingAttachmentRequest>;
1125
+ export interface GetEventRequest {
1126
+ /** The event ID (UUID) or event name. */
1127
+ identifier: string;
1128
+ }
1129
+ export declare const GetEventRequest: S.Schema<GetEventRequest>;
1130
+ export interface Event {
1131
+ /** Type of the response object. */
1132
+ object?: string;
1133
+ /** The event ID. */
1134
+ id?: string;
1135
+ /** The event name. */
1136
+ name?: string;
1137
+ /** A flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
1138
+ schema?: unknown | null;
1139
+ /** The date and time the event was created. */
1140
+ created_at?: string;
1141
+ /** The date and time the event was last updated. */
1142
+ updated_at?: string | null;
1143
+ }
1144
+ export declare const Event: S.Schema<Event>;
1145
+ export interface GetLogRequest {
1146
+ /** The ID of the log. */
1147
+ log_id: string;
1148
+ }
1149
+ export declare const GetLogRequest: S.Schema<GetLogRequest>;
1150
+ /** The HTTP method used. */
1151
+ export type LogMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
1152
+ export declare const LogMethod: any;
1153
+ export interface Log {
1154
+ /** Type of the response object. */
1155
+ object?: string;
1156
+ /** The log ID. */
1157
+ id?: string;
1158
+ /** The date the log was created. */
1159
+ created_at?: string;
1160
+ /** The API endpoint that was called. */
1161
+ endpoint?: string;
1162
+ /** The HTTP method used. */
1163
+ method?: LogMethod;
1164
+ /** The HTTP status code of the response. */
1165
+ response_status?: number;
1166
+ /** The user agent of the request. */
1167
+ user_agent?: string | null;
1168
+ /** The request body sent to the API. */
1169
+ request_body?: unknown | null;
1170
+ /** The response body returned by the API. */
1171
+ response_body?: unknown | null;
1172
+ }
1173
+ export declare const Log: S.Schema<Log>;
1174
+ export interface GetSegmentRequest {
1175
+ /** The Segment ID. */
1176
+ id: string;
1177
+ }
1178
+ export declare const GetSegmentRequest: S.Schema<GetSegmentRequest>;
1179
+ export interface GetSegmentResponseSuccess {
1180
+ /** The ID of the segment. */
1181
+ id?: string;
1182
+ /** The object type. */
1183
+ object?: string;
1184
+ /** The name of the segment. */
1185
+ name?: string;
1186
+ /** The ID of the audience this segment belongs to. */
1187
+ audience_id?: string;
1188
+ /** Filter conditions for the segment. */
1189
+ filter?: unknown;
1190
+ /** Timestamp indicating when the segment was created. */
1191
+ created_at?: string;
1192
+ }
1193
+ export declare const GetSegmentResponseSuccess: S.Schema<GetSegmentResponseSuccess>;
1194
+ export interface GetTemplateRequest {
1195
+ /** The Template ID or alias. */
1196
+ id: string;
1197
+ }
1198
+ export declare const GetTemplateRequest: S.Schema<GetTemplateRequest>;
1199
+ /** Reply-to email addresses. */
1200
+ export type TemplateReplyToList = Array<string>;
1201
+ export declare const TemplateReplyToList: S.Schema<TemplateReplyToList>;
1202
+ /** The type of the variable. */
1203
+ export type TemplateVariableType = "string" | "number" | "boolean" | "object" | "list";
1204
+ export declare const TemplateVariableType: any;
1205
+ export type TemplateVariableFallbackValueCase4List = Array<unknown>;
1206
+ export declare const TemplateVariableFallbackValueCase4List: S.Schema<TemplateVariableFallbackValueCase4List>;
1207
+ /** The fallback value of the variable. */
1208
+ export type TemplateVariableFallbackValue = string | number | boolean | unknown | TemplateVariableFallbackValueCase4List;
1209
+ export declare const TemplateVariableFallbackValue: S.Schema<TemplateVariableFallbackValue>;
1210
+ export interface TemplateVariable {
1211
+ /** The ID of the template variable. */
1212
+ id?: string;
1213
+ /** The key of the variable. */
1214
+ key: string;
1215
+ /** The type of the variable. */
1216
+ type: TemplateVariableType;
1217
+ /** The fallback value of the variable. */
1218
+ fallback_value?: TemplateVariableFallbackValue;
1219
+ /** Timestamp indicating when the variable was created. */
1220
+ created_at?: string;
1221
+ /** Timestamp indicating when the variable was last updated. */
1222
+ updated_at?: string;
1223
+ }
1224
+ export declare const TemplateVariable: S.Schema<TemplateVariable>;
1225
+ export type TemplateVariablesList = Array<TemplateVariable>;
1226
+ export declare const TemplateVariablesList: S.Schema<TemplateVariablesList>;
1227
+ /** The publication status of the template. */
1228
+ export type TemplateStatus = "draft" | "published";
1229
+ export declare const TemplateStatus: any;
1230
+ export interface Template {
1231
+ /** The type of object. */
1232
+ object?: string;
1233
+ /** The ID of the template. */
1234
+ id?: string;
1235
+ /** The ID of the current version of the template. */
1236
+ current_version_id?: string;
1237
+ /** The name of the template. */
1238
+ name?: string;
1239
+ /** The alias of the template. */
1240
+ alias?: string;
1241
+ /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
1242
+ from?: string;
1243
+ /** Email subject. */
1244
+ subject?: string;
1245
+ /** Reply-to email addresses. */
1246
+ reply_to?: TemplateReplyToList | null;
1247
+ /** The HTML version of the template. */
1248
+ html?: string;
1249
+ /** The plain text version of the template. */
1250
+ text?: string;
1251
+ variables?: TemplateVariablesList;
1252
+ /** Timestamp indicating when the template was created. */
1253
+ created_at?: string;
1254
+ /** Timestamp indicating when the template was last updated. */
1255
+ updated_at?: string;
1256
+ /** The publication status of the template. */
1257
+ status?: TemplateStatus;
1258
+ /** Timestamp indicating when the template was published. */
1259
+ published_at?: string | null;
1260
+ /** Indicates whether the template has unpublished versions. */
1261
+ has_unpublished_versions?: boolean;
1262
+ }
1263
+ export declare const Template: S.Schema<Template>;
1264
+ export interface GetTopicRequest {
1265
+ /** The Topic ID. */
1266
+ id: string;
1267
+ }
1268
+ export declare const GetTopicRequest: S.Schema<GetTopicRequest>;
1269
+ /** The default subscription status for the topic. */
1270
+ export type GetTopicResponseSuccessDefaultSubscription = "opt_in" | "opt_out";
1271
+ export declare const GetTopicResponseSuccessDefaultSubscription: any;
1272
+ /** The visibility of the topic. */
1273
+ export type GetTopicResponseSuccessVisibility = "public" | "private";
1274
+ export declare const GetTopicResponseSuccessVisibility: any;
1275
+ export interface GetTopicResponseSuccess {
1276
+ /** The ID of the topic. */
1277
+ id?: string;
1278
+ /** The object type. */
1279
+ object?: string;
1280
+ /** The name of the topic. */
1281
+ name?: string;
1282
+ /** A description of the topic. */
1283
+ description?: string;
1284
+ /** The default subscription status for the topic. */
1285
+ default_subscription?: GetTopicResponseSuccessDefaultSubscription;
1286
+ /** The visibility of the topic. */
1287
+ visibility?: GetTopicResponseSuccessVisibility;
1288
+ /** Timestamp indicating when the topic was created. */
1289
+ created_at?: string;
1290
+ }
1291
+ export declare const GetTopicResponseSuccess: S.Schema<GetTopicResponseSuccess>;
1292
+ export interface GetWebhookRequest {
1293
+ /** The Webhook ID. */
1294
+ webhook_id: string;
1295
+ }
1296
+ export declare const GetWebhookRequest: S.Schema<GetWebhookRequest>;
1297
+ /** Array of event types subscribed to. */
1298
+ export type GetWebhookResponseEventsList = Array<string>;
1299
+ export declare const GetWebhookResponseEventsList: S.Schema<GetWebhookResponseEventsList>;
1300
+ export interface GetWebhookResponse {
1301
+ /** The type of object. */
1302
+ object?: string;
1303
+ /** The ID of the webhook. */
1304
+ id?: string;
1305
+ /** The URL where webhook events are sent. */
1306
+ endpoint?: string;
1307
+ /** Array of event types subscribed to. */
1308
+ events?: GetWebhookResponseEventsList | null;
1309
+ /** The status of the webhook. */
1310
+ status?: string;
1311
+ /** Timestamp indicating when the webhook was created. */
1312
+ created_at?: string;
1313
+ /** The secret key used to verify webhook payloads. */
1314
+ signing_secret?: string | Redacted.Redacted<string>;
1315
+ }
1316
+ export declare const GetWebhookResponse: S.Schema<GetWebhookResponse>;
1317
+ export interface ListApiKeysRequest {
1318
+ /** Number of items to return. */
1319
+ limit?: number;
1320
+ /** Return items after this cursor. */
1321
+ after?: string;
1322
+ /** Return items before this cursor. */
1323
+ before?: string;
1324
+ }
1325
+ export declare const ListApiKeysRequest: S.Schema<ListApiKeysRequest>;
1326
+ export interface ApiKey {
1327
+ /** The ID of the API key. */
1328
+ id?: string;
1329
+ /** The name of the API key. */
1330
+ name?: string;
1331
+ /** The date and time the API key was created. */
1332
+ created_at?: string;
1333
+ /** The date and time the API key was last used. */
1334
+ last_used_at?: string | null;
1335
+ }
1336
+ export declare const ApiKey: S.Schema<ApiKey>;
1337
+ export type ListApiKeysResponseDataList = Array<ApiKey>;
1338
+ export declare const ListApiKeysResponseDataList: S.Schema<ListApiKeysResponseDataList>;
1339
+ export interface ListApiKeysResponse {
1340
+ /** Type of the response object. */
1341
+ object?: string;
1342
+ /** Indicates if there are more results available. */
1343
+ has_more?: boolean;
1344
+ data: ListApiKeysResponseDataList;
1345
+ }
1346
+ export declare const ListApiKeysResponse: S.Schema<ListApiKeysResponse>;
1347
+ export interface ListAutomationRunsRequest {
1348
+ /** The ID of the automation. */
1349
+ automation_id: string;
1350
+ /** Filter runs by status. Comma-separated list of: running, completed, failed, cancelled. */
1351
+ status?: string;
1352
+ /** Number of items to return. */
1353
+ limit?: number;
1354
+ /** Return items after this cursor. */
1355
+ after?: string;
1356
+ /** Return items before this cursor. */
1357
+ before?: string;
1358
+ }
1359
+ export declare const ListAutomationRunsRequest: S.Schema<ListAutomationRunsRequest>;
1360
+ /** The current status of the automation run. */
1361
+ export type AutomationRunListItemStatus = "running" | "completed" | "failed" | "cancelled";
1362
+ export declare const AutomationRunListItemStatus: any;
1363
+ export interface AutomationRunListItem {
1364
+ /** The ID of the automation run. */
1365
+ id?: string;
1366
+ /** The current status of the automation run. */
1367
+ status?: AutomationRunListItemStatus;
1368
+ /** The date and time the run started. */
1369
+ started_at?: string | null;
1370
+ /** The date and time the run completed. */
1371
+ completed_at?: string | null;
1372
+ /** The date and time the run was created. */
1373
+ created_at?: string;
1374
+ }
1375
+ export declare const AutomationRunListItem: S.Schema<AutomationRunListItem>;
1376
+ /** Array of automation runs. */
1377
+ export type ListAutomationRunsResponseDataList = Array<AutomationRunListItem>;
1378
+ export declare const ListAutomationRunsResponseDataList: S.Schema<ListAutomationRunsResponseDataList>;
1379
+ export interface ListAutomationRunsResponse {
1380
+ /** Type of the response object. */
1381
+ object?: string;
1382
+ /** Indicates if there are more results available. */
1383
+ has_more?: boolean;
1384
+ /** Array of automation runs. */
1385
+ data: ListAutomationRunsResponseDataList;
1386
+ }
1387
+ export declare const ListAutomationRunsResponse: S.Schema<ListAutomationRunsResponse>;
1388
+ export type ListAutomationsRequestStatus = "enabled" | "disabled";
1389
+ export declare const ListAutomationsRequestStatus: any;
1390
+ export interface ListAutomationsRequest {
1391
+ /** Filter automations by status. */
1392
+ status?: ListAutomationsRequestStatus | (string & {});
1393
+ /** Number of items to return. */
1394
+ limit?: number;
1395
+ /** Return items after this cursor. */
1396
+ after?: string;
1397
+ /** Return items before this cursor. */
1398
+ before?: string;
1399
+ }
1400
+ export declare const ListAutomationsRequest: S.Schema<ListAutomationsRequest>;
1401
+ /** The current status of the automation. */
1402
+ export type AutomationListItemStatus = "enabled" | "disabled";
1403
+ export declare const AutomationListItemStatus: any;
1404
+ export interface AutomationListItem {
1405
+ /** The ID of the automation. */
1406
+ id?: string;
1407
+ /** The name of the automation. */
1408
+ name?: string;
1409
+ /** The current status of the automation. */
1410
+ status?: AutomationListItemStatus;
1411
+ /** The date and time the automation was created. */
1412
+ created_at?: string;
1413
+ /** The date and time the automation was last updated. */
1414
+ updated_at?: string;
1415
+ }
1416
+ export declare const AutomationListItem: S.Schema<AutomationListItem>;
1417
+ /** Array of automations. */
1418
+ export type ListAutomationsResponseDataList = Array<AutomationListItem>;
1419
+ export declare const ListAutomationsResponseDataList: S.Schema<ListAutomationsResponseDataList>;
1420
+ export interface ListAutomationsResponse {
1421
+ /** Type of the response object. */
1422
+ object?: string;
1423
+ /** Indicates if there are more results available. */
1424
+ has_more?: boolean;
1425
+ /** Array of automations. */
1426
+ data: ListAutomationsResponseDataList;
1427
+ }
1428
+ export declare const ListAutomationsResponse: S.Schema<ListAutomationsResponse>;
1429
+ export interface ListBroadcastsRequest {
1430
+ /** Number of items to return. */
1431
+ limit?: number;
1432
+ /** Return items after this cursor. */
1433
+ after?: string;
1434
+ /** Return items before this cursor. */
1435
+ before?: string;
1436
+ }
1437
+ export declare const ListBroadcastsRequest: S.Schema<ListBroadcastsRequest>;
1438
+ export interface ListBroadcastsResponseSuccessDataItem {
1439
+ /** Unique identifier for the broadcast. */
1440
+ id?: string;
1441
+ /** Name of the broadcast. */
1442
+ name?: string;
1443
+ /** Deprecated. Use segment_id instead. */
1444
+ audience_id?: string;
1445
+ /** Unique identifier of the segment this broadcast will be sent to. */
1446
+ segment_id?: string;
1447
+ /** The status of the broadcast. */
1448
+ status?: string;
1449
+ /** Timestamp indicating when the broadcast was created. */
1450
+ created_at?: string;
1451
+ /** Timestamp indicating when the broadcast is scheduled to be sent. */
1452
+ scheduled_at?: string;
1453
+ /** Timestamp indicating when the broadcast was sent. */
1454
+ sent_at?: string;
1455
+ /** The topic ID that the broadcast is scoped to. */
1456
+ topic_id?: string;
1457
+ }
1458
+ export declare const ListBroadcastsResponseSuccessDataItem: S.Schema<ListBroadcastsResponseSuccessDataItem>;
1459
+ /** Array containing broadcast information. */
1460
+ export type ListBroadcastsResponseSuccessDataList = Array<ListBroadcastsResponseSuccessDataItem>;
1461
+ export declare const ListBroadcastsResponseSuccessDataList: S.Schema<ListBroadcastsResponseSuccessDataList>;
1462
+ export interface ListBroadcastsResponseSuccess {
1463
+ /** Type of the response object. */
1464
+ object?: string;
1465
+ /** Indicates if there are more results available. */
1466
+ has_more?: boolean;
1467
+ /** Array containing broadcast information. */
1468
+ data: ListBroadcastsResponseSuccessDataList;
1469
+ }
1470
+ export declare const ListBroadcastsResponseSuccess: S.Schema<ListBroadcastsResponseSuccess>;
1471
+ export interface ListContactPropertiesRequest {
1472
+ /** Number of items to return. */
1473
+ limit?: number;
1474
+ /** Return items after this cursor. */
1475
+ after?: string;
1476
+ /** Return items before this cursor. */
1477
+ before?: string;
1478
+ }
1479
+ export declare const ListContactPropertiesRequest: S.Schema<ListContactPropertiesRequest>;
1480
+ /** The default value when the property is not set for a contact. */
1481
+ export type ListContactPropertiesResponseSuccessDataItemFallbackValue = string | number;
1482
+ export declare const ListContactPropertiesResponseSuccessDataItemFallbackValue: S.Schema<ListContactPropertiesResponseSuccessDataItemFallbackValue>;
1483
+ export interface ListContactPropertiesResponseSuccessDataItem {
1484
+ /** Unique identifier for the contact property. */
1485
+ id?: string;
1486
+ /** The property key. */
1487
+ key?: string;
1488
+ /** The property type. */
1489
+ type?: string;
1490
+ /** The default value when the property is not set for a contact. */
1491
+ fallback_value?: ListContactPropertiesResponseSuccessDataItemFallbackValue;
1492
+ /** Timestamp indicating when the contact property was created. */
1493
+ created_at?: string;
1494
+ }
1495
+ export declare const ListContactPropertiesResponseSuccessDataItem: S.Schema<ListContactPropertiesResponseSuccessDataItem>;
1496
+ /** Array containing contact property information. */
1497
+ export type ListContactPropertiesResponseSuccessDataList = Array<ListContactPropertiesResponseSuccessDataItem>;
1498
+ export declare const ListContactPropertiesResponseSuccessDataList: S.Schema<ListContactPropertiesResponseSuccessDataList>;
1499
+ export interface ListContactPropertiesResponseSuccess {
1500
+ /** Type of the response object. */
1501
+ object?: string;
1502
+ /** Indicates if there are more results available. */
1503
+ has_more?: boolean;
1504
+ /** Array containing contact property information. */
1505
+ data: ListContactPropertiesResponseSuccessDataList;
1506
+ }
1507
+ export declare const ListContactPropertiesResponseSuccess: S.Schema<ListContactPropertiesResponseSuccess>;
1508
+ export interface ListContactsRequest {
1509
+ /** Filter contacts by segment ID. */
1510
+ segment_id?: string;
1511
+ /** Number of items to return. */
1512
+ limit?: number;
1513
+ /** Return items after this cursor. */
1514
+ after?: string;
1515
+ /** Return items before this cursor. */
1516
+ before?: string;
1517
+ }
1518
+ export declare const ListContactsRequest: S.Schema<ListContactsRequest>;
1519
+ export interface ListContactsResponseSuccessDataItem {
1520
+ /** Unique identifier for the contact. */
1521
+ id?: string;
1522
+ /** Email address of the contact. */
1523
+ email?: string;
1524
+ /** First name of the contact. */
1525
+ first_name?: string;
1526
+ /** Last name of the contact. */
1527
+ last_name?: string;
1528
+ /** Timestamp indicating when the contact was created. */
1529
+ created_at?: string;
1530
+ /** Indicates if the contact is unsubscribed. */
1531
+ unsubscribed?: boolean;
1532
+ }
1533
+ export declare const ListContactsResponseSuccessDataItem: S.Schema<ListContactsResponseSuccessDataItem>;
1534
+ /** Array containing contact information. */
1535
+ export type ListContactsResponseSuccessDataList = Array<ListContactsResponseSuccessDataItem>;
1536
+ export declare const ListContactsResponseSuccessDataList: S.Schema<ListContactsResponseSuccessDataList>;
1537
+ export interface ListContactsResponseSuccess {
1538
+ /** Type of the response object. */
1539
+ object?: string;
1540
+ /** Array containing contact information. */
1541
+ data?: ListContactsResponseSuccessDataList;
1542
+ }
1543
+ export declare const ListContactsResponseSuccess: S.Schema<ListContactsResponseSuccess>;
1544
+ export interface ListContactSegmentsRequest {
1545
+ /** The Contact ID or email address. */
1546
+ contact_id: string;
1547
+ /** Number of items to return. */
1548
+ limit?: number;
1549
+ /** Return items after this cursor. */
1550
+ after?: string;
1551
+ /** Return items before this cursor. */
1552
+ before?: string;
1553
+ }
1554
+ export declare const ListContactSegmentsRequest: S.Schema<ListContactSegmentsRequest>;
1555
+ export interface ListContactSegmentsResponseSuccessDataItem {
1556
+ /** Unique identifier for the segment. */
1557
+ id?: string;
1558
+ /** Name of the segment. */
1559
+ name?: string;
1560
+ /** Timestamp indicating when the contact was added to the segment. */
1561
+ created_at?: string;
1562
+ }
1563
+ export declare const ListContactSegmentsResponseSuccessDataItem: S.Schema<ListContactSegmentsResponseSuccessDataItem>;
1564
+ /** Array containing segment information for this contact. */
1565
+ export type ListContactSegmentsResponseSuccessDataList = Array<ListContactSegmentsResponseSuccessDataItem>;
1566
+ export declare const ListContactSegmentsResponseSuccessDataList: S.Schema<ListContactSegmentsResponseSuccessDataList>;
1567
+ export interface ListContactSegmentsResponseSuccess {
1568
+ /** Type of the response object. */
1569
+ object?: string;
1570
+ /** Indicates if there are more results available. */
1571
+ has_more?: boolean;
1572
+ /** Array containing segment information for this contact. */
1573
+ data: ListContactSegmentsResponseSuccessDataList;
1574
+ }
1575
+ export declare const ListContactSegmentsResponseSuccess: S.Schema<ListContactSegmentsResponseSuccess>;
1576
+ export interface ListContactTopicsRequest {
1577
+ /** The Contact ID or email address. */
1578
+ contact_id: string;
1579
+ /** Number of items to return. */
1580
+ limit?: number;
1581
+ /** Return items after this cursor. */
1582
+ after?: string;
1583
+ /** Return items before this cursor. */
1584
+ before?: string;
1585
+ }
1586
+ export declare const ListContactTopicsRequest: S.Schema<ListContactTopicsRequest>;
1587
+ /** The subscription status for this topic. */
1588
+ export type GetContactTopicsResponseSuccessDataItemSubscription = "opt_in" | "opt_out";
1589
+ export declare const GetContactTopicsResponseSuccessDataItemSubscription: any;
1590
+ export interface GetContactTopicsResponseSuccessDataItem {
1591
+ /** Unique identifier for the topic. */
1592
+ id?: string;
1593
+ /** Name of the topic. */
1594
+ name?: string;
1595
+ /** Description of the topic. */
1596
+ description?: string;
1597
+ /** The subscription status for this topic. */
1598
+ subscription?: GetContactTopicsResponseSuccessDataItemSubscription;
1599
+ }
1600
+ export declare const GetContactTopicsResponseSuccessDataItem: S.Schema<GetContactTopicsResponseSuccessDataItem>;
1601
+ /** Array containing topic subscriptions for this contact. */
1602
+ export type GetContactTopicsResponseSuccessDataList = Array<GetContactTopicsResponseSuccessDataItem>;
1603
+ export declare const GetContactTopicsResponseSuccessDataList: S.Schema<GetContactTopicsResponseSuccessDataList>;
1604
+ export interface GetContactTopicsResponseSuccess {
1605
+ /** Type of the response object. */
1606
+ object?: string;
1607
+ /** Indicates if there are more results available. */
1608
+ has_more?: boolean;
1609
+ /** Array containing topic subscriptions for this contact. */
1610
+ data: GetContactTopicsResponseSuccessDataList;
1611
+ }
1612
+ export declare const GetContactTopicsResponseSuccess: S.Schema<GetContactTopicsResponseSuccess>;
1613
+ export interface ListDomainsRequest {
1614
+ /** Number of items to return. */
1615
+ limit?: number;
1616
+ /** Return items after this cursor. */
1617
+ after?: string;
1618
+ /** Return items before this cursor. */
1619
+ before?: string;
1620
+ }
1621
+ export declare const ListDomainsRequest: S.Schema<ListDomainsRequest>;
1622
+ export interface ListDomainsItem {
1623
+ /** The ID of the domain. */
1624
+ id?: string;
1625
+ /** The name of the domain. */
1626
+ name?: string;
1627
+ /** The status of the domain. */
1628
+ status?: string;
1629
+ /** The date and time the domain was created. */
1630
+ created_at?: string;
1631
+ /** The region where the domain is hosted. */
1632
+ region?: string;
1633
+ capabilities?: DomainCapabilities;
1634
+ }
1635
+ export declare const ListDomainsItem: S.Schema<ListDomainsItem>;
1636
+ export type ListDomainsResponseDataList = Array<ListDomainsItem>;
1637
+ export declare const ListDomainsResponseDataList: S.Schema<ListDomainsResponseDataList>;
1638
+ export interface ListDomainsResponse {
1639
+ /** Type of the response object. */
1640
+ object?: string;
1641
+ /** Indicates if there are more results available. */
1642
+ has_more?: boolean;
1643
+ data: ListDomainsResponseDataList;
1644
+ }
1645
+ export declare const ListDomainsResponse: S.Schema<ListDomainsResponse>;
1646
+ export interface ListEmailAttachmentsRequest {
1647
+ /** The ID of the email. */
1648
+ email_id: string;
1649
+ /** Maximum number of attachments to return. */
1650
+ limit?: number;
1651
+ /** Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'. */
1652
+ after?: string;
1653
+ /** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
1654
+ before?: string;
1655
+ }
1656
+ export declare const ListEmailAttachmentsRequest: S.Schema<ListEmailAttachmentsRequest>;
1657
+ /** How the attachment should be displayed. */
1658
+ export type ListAttachmentsResponseDataItemContentDisposition = "inline" | "attachment";
1659
+ export declare const ListAttachmentsResponseDataItemContentDisposition: any;
1660
+ export interface ListAttachmentsResponseDataItem {
1661
+ /** The ID of the attachment. */
1662
+ id?: string;
1663
+ /** The filename of the attachment. */
1664
+ filename?: string;
1665
+ /** The MIME type of the attachment. */
1666
+ content_type?: string;
1667
+ /** The content ID for inline attachments. */
1668
+ content_id?: string;
1669
+ /** How the attachment should be displayed. */
1670
+ content_disposition?: ListAttachmentsResponseDataItemContentDisposition;
1671
+ /** Signed URL to download the attachment content. */
1672
+ download_url?: string;
1673
+ /** Timestamp when the download URL expires. */
1674
+ expires_at?: string;
1675
+ /** Size of the attachment in bytes. */
1676
+ size?: number;
1677
+ }
1678
+ export declare const ListAttachmentsResponseDataItem: S.Schema<ListAttachmentsResponseDataItem>;
1679
+ /** Array containing attachment information. */
1680
+ export type ListAttachmentsResponseDataList = Array<ListAttachmentsResponseDataItem>;
1681
+ export declare const ListAttachmentsResponseDataList: S.Schema<ListAttachmentsResponseDataList>;
1682
+ export interface ListAttachmentsResponse {
1683
+ /** Type of the response object. */
1684
+ object?: string;
1685
+ /** Indicates if there are more results available. */
1686
+ has_more?: boolean;
1687
+ /** Array containing attachment information. */
1688
+ data: ListAttachmentsResponseDataList;
1689
+ }
1690
+ export declare const ListAttachmentsResponse: S.Schema<ListAttachmentsResponse>;
1691
+ export interface ListEmailReceivingRequest {
1692
+ /** Maximum number of received emails to return. */
1693
+ limit?: number;
1694
+ /** Pagination cursor to fetch results after this email ID. Cannot be used with 'before'. */
1695
+ after?: string;
1696
+ /** Pagination cursor to fetch results before this email ID. Cannot be used with 'after'. */
1697
+ before?: string;
1698
+ }
1699
+ export declare const ListEmailReceivingRequest: S.Schema<ListEmailReceivingRequest>;
1700
+ /** The recipient email addresses. */
1701
+ export type ListReceivedEmailsResponseDataItemToList = Array<string>;
1702
+ export declare const ListReceivedEmailsResponseDataItemToList: S.Schema<ListReceivedEmailsResponseDataItemToList>;
1703
+ /** The BCC recipients. */
1704
+ export type ListReceivedEmailsResponseDataItemBccList = Array<string>;
1705
+ export declare const ListReceivedEmailsResponseDataItemBccList: S.Schema<ListReceivedEmailsResponseDataItemBccList>;
1706
+ /** The CC recipients. */
1707
+ export type ListReceivedEmailsResponseDataItemCcList = Array<string>;
1708
+ export declare const ListReceivedEmailsResponseDataItemCcList: S.Schema<ListReceivedEmailsResponseDataItemCcList>;
1709
+ /** The reply-to addresses. */
1710
+ export type ListReceivedEmailsResponseDataItemReplyToList = Array<string>;
1711
+ export declare const ListReceivedEmailsResponseDataItemReplyToList: S.Schema<ListReceivedEmailsResponseDataItemReplyToList>;
1712
+ /** How the attachment should be displayed. */
1713
+ export type ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition = "inline" | "attachment";
1714
+ export declare const ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition: any;
1715
+ export interface ListReceivedEmailsResponseDataItemAttachmentsItem {
1716
+ /** The ID of the attachment. */
1717
+ id?: string;
1718
+ /** The filename of the attachment. */
1719
+ filename?: string;
1720
+ /** The MIME type of the attachment. */
1721
+ content_type?: string;
1722
+ /** The content ID for inline attachments. */
1723
+ content_id?: string;
1724
+ /** How the attachment should be displayed. */
1725
+ content_disposition?: ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition;
1726
+ /** Size of the attachment in bytes. */
1727
+ size?: number;
1728
+ }
1729
+ export declare const ListReceivedEmailsResponseDataItemAttachmentsItem: S.Schema<ListReceivedEmailsResponseDataItemAttachmentsItem>;
1730
+ /** Array of attachments for this email. */
1731
+ export type ListReceivedEmailsResponseDataItemAttachmentsList = Array<ListReceivedEmailsResponseDataItemAttachmentsItem>;
1732
+ export declare const ListReceivedEmailsResponseDataItemAttachmentsList: S.Schema<ListReceivedEmailsResponseDataItemAttachmentsList>;
1733
+ export interface ListReceivedEmailsResponseDataItem {
1734
+ /** The ID of the received email. */
1735
+ id?: string;
1736
+ /** The recipient email addresses. */
1737
+ to?: ListReceivedEmailsResponseDataItemToList;
1738
+ /** The sender email address. */
1739
+ from?: string;
1740
+ /** The email subject. */
1741
+ subject?: string | null;
1742
+ /** The unique message ID from the email headers. */
1743
+ message_id?: string;
1744
+ /** The BCC recipients. */
1745
+ bcc?: ListReceivedEmailsResponseDataItemBccList | null;
1746
+ /** The CC recipients. */
1747
+ cc?: ListReceivedEmailsResponseDataItemCcList | null;
1748
+ /** The reply-to addresses. */
1749
+ reply_to?: ListReceivedEmailsResponseDataItemReplyToList | null;
1750
+ /** Timestamp when the email was received. */
1751
+ created_at?: string;
1752
+ /** Array of attachments for this email. */
1753
+ attachments?: ListReceivedEmailsResponseDataItemAttachmentsList;
1754
+ }
1755
+ export declare const ListReceivedEmailsResponseDataItem: S.Schema<ListReceivedEmailsResponseDataItem>;
1756
+ /** Array containing received email information. */
1757
+ export type ListReceivedEmailsResponseDataList = Array<ListReceivedEmailsResponseDataItem>;
1758
+ export declare const ListReceivedEmailsResponseDataList: S.Schema<ListReceivedEmailsResponseDataList>;
1759
+ export interface ListReceivedEmailsResponse {
1760
+ /** Type of the response object. */
1761
+ object?: string;
1762
+ /** Indicates if there are more results available. */
1763
+ has_more?: boolean;
1764
+ /** Array containing received email information. */
1765
+ data: ListReceivedEmailsResponseDataList;
1766
+ }
1767
+ export declare const ListReceivedEmailsResponse: S.Schema<ListReceivedEmailsResponse>;
1768
+ export interface ListEmailReceivingAttachmentsRequest {
1769
+ /** The ID of the received email. */
1770
+ email_id: string;
1771
+ /** Maximum number of attachments to return. */
1772
+ limit?: number;
1773
+ /** Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'. */
1774
+ after?: string;
1775
+ /** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
1776
+ before?: string;
1777
+ }
1778
+ export declare const ListEmailReceivingAttachmentsRequest: S.Schema<ListEmailReceivingAttachmentsRequest>;
1779
+ export interface ListEmailsRequest {
1780
+ /** Number of items to return. */
1781
+ limit?: number;
1782
+ /** Return items after this cursor. */
1783
+ after?: string;
1784
+ /** Return items before this cursor. */
1785
+ before?: string;
1786
+ }
1787
+ export declare const ListEmailsRequest: S.Schema<ListEmailsRequest>;
1788
+ /** Array containing email information. */
1789
+ export type ListEmailsResponseDataList = Array<Email>;
1790
+ export declare const ListEmailsResponseDataList: S.Schema<ListEmailsResponseDataList>;
1791
+ export interface ListEmailsResponse {
1792
+ /** Type of the response object. */
1793
+ object?: string;
1794
+ /** Indicates if there are more results available. */
1795
+ has_more?: boolean;
1796
+ /** Array containing email information. */
1797
+ data: ListEmailsResponseDataList;
1798
+ }
1799
+ export declare const ListEmailsResponse: S.Schema<ListEmailsResponse>;
1800
+ export interface ListEventsRequest {
1801
+ /** Number of items to return. */
1802
+ limit?: number;
1803
+ /** Return items after this cursor. */
1804
+ after?: string;
1805
+ /** Return items before this cursor. */
1806
+ before?: string;
1807
+ }
1808
+ export declare const ListEventsRequest: S.Schema<ListEventsRequest>;
1809
+ export interface EventSummary {
1810
+ /** The event ID. */
1811
+ id?: string;
1812
+ /** The event name. */
1813
+ name?: string;
1814
+ /** A flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. */
1815
+ schema?: unknown | null;
1816
+ /** The date and time the event was created. */
1817
+ created_at?: string;
1818
+ /** The date and time the event was last updated. */
1819
+ updated_at?: string | null;
1820
+ }
1821
+ export declare const EventSummary: S.Schema<EventSummary>;
1822
+ /** Array containing event information. */
1823
+ export type ListEventsResponseDataList = Array<EventSummary>;
1824
+ export declare const ListEventsResponseDataList: S.Schema<ListEventsResponseDataList>;
1825
+ export interface ListEventsResponse {
1826
+ /** Type of the response object. */
1827
+ object?: string;
1828
+ /** Indicates if there are more results available. */
1829
+ has_more?: boolean;
1830
+ /** Array containing event information. */
1831
+ data: ListEventsResponseDataList;
1832
+ }
1833
+ export declare const ListEventsResponse: S.Schema<ListEventsResponse>;
1834
+ export interface ListLogsRequest {
1835
+ /** Number of items to return. */
1836
+ limit?: number;
1837
+ /** Return items after this cursor. */
1838
+ after?: string;
1839
+ /** Return items before this cursor. */
1840
+ before?: string;
1841
+ }
1842
+ export declare const ListLogsRequest: S.Schema<ListLogsRequest>;
1843
+ /** The HTTP method used. */
1844
+ export type LogSummaryMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
1845
+ export declare const LogSummaryMethod: any;
1846
+ export interface LogSummary {
1847
+ /** The log ID. */
1848
+ id?: string;
1849
+ /** The date the log was created. */
1850
+ created_at?: string;
1851
+ /** The API endpoint that was called. */
1852
+ endpoint?: string;
1853
+ /** The HTTP method used. */
1854
+ method?: LogSummaryMethod;
1855
+ /** The HTTP status code of the response. */
1856
+ response_status?: number;
1857
+ /** The user agent of the request. */
1858
+ user_agent?: string | null;
1859
+ }
1860
+ export declare const LogSummary: S.Schema<LogSummary>;
1861
+ /** Array containing log information. */
1862
+ export type ListLogsResponseDataList = Array<LogSummary>;
1863
+ export declare const ListLogsResponseDataList: S.Schema<ListLogsResponseDataList>;
1864
+ export interface ListLogsResponse {
1865
+ /** Type of the response object. */
1866
+ object?: string;
1867
+ /** Indicates if there are more results available. */
1868
+ has_more?: boolean;
1869
+ /** Array containing log information. */
1870
+ data: ListLogsResponseDataList;
1871
+ }
1872
+ export declare const ListLogsResponse: S.Schema<ListLogsResponse>;
1873
+ export interface ListSegmentsRequest {
1874
+ /** Number of items to return. */
1875
+ limit?: number;
1876
+ /** Return items after this cursor. */
1877
+ after?: string;
1878
+ /** Return items before this cursor. */
1879
+ before?: string;
1880
+ }
1881
+ export declare const ListSegmentsRequest: S.Schema<ListSegmentsRequest>;
1882
+ export interface ListSegmentsResponseSuccessDataItem {
1883
+ /** Unique identifier for the segment. */
1884
+ id?: string;
1885
+ /** Name of the segment. */
1886
+ name?: string;
1887
+ /** The ID of the audience this segment belongs to. */
1888
+ audience_id?: string;
1889
+ /** Timestamp indicating when the segment was created. */
1890
+ created_at?: string;
1891
+ }
1892
+ export declare const ListSegmentsResponseSuccessDataItem: S.Schema<ListSegmentsResponseSuccessDataItem>;
1893
+ /** Array containing segment information. */
1894
+ export type ListSegmentsResponseSuccessDataList = Array<ListSegmentsResponseSuccessDataItem>;
1895
+ export declare const ListSegmentsResponseSuccessDataList: S.Schema<ListSegmentsResponseSuccessDataList>;
1896
+ export interface ListSegmentsResponseSuccess {
1897
+ /** Type of the response object. */
1898
+ object?: string;
1899
+ /** Indicates if there are more results available. */
1900
+ has_more?: boolean;
1901
+ /** Array containing segment information. */
1902
+ data: ListSegmentsResponseSuccessDataList;
1903
+ }
1904
+ export declare const ListSegmentsResponseSuccess: S.Schema<ListSegmentsResponseSuccess>;
1905
+ export interface ListTemplatesRequest {
1906
+ /** Number of items to return. */
1907
+ limit?: number;
1908
+ /** Return items after this cursor. */
1909
+ after?: string;
1910
+ /** Return items before this cursor. */
1911
+ before?: string;
1912
+ }
1913
+ export declare const ListTemplatesRequest: S.Schema<ListTemplatesRequest>;
1914
+ /** The publication status of the template. */
1915
+ export type TemplateListItemStatus = "draft" | "published";
1916
+ export declare const TemplateListItemStatus: any;
1917
+ export interface TemplateListItem {
1918
+ /** The ID of the template. */
1919
+ id?: string;
1920
+ /** The name of the template. */
1921
+ name?: string;
1922
+ /** The publication status of the template. */
1923
+ status?: TemplateListItemStatus;
1924
+ /** Timestamp indicating when the template was published. */
1925
+ published_at?: string | null;
1926
+ /** Timestamp indicating when the template was created. */
1927
+ created_at?: string;
1928
+ /** Timestamp indicating when the template was last updated. */
1929
+ updated_at?: string;
1930
+ /** The alias of the template. */
1931
+ alias?: string;
1932
+ }
1933
+ export declare const TemplateListItem: S.Schema<TemplateListItem>;
1934
+ /** Array containing templates information. */
1935
+ export type ListTemplatesResponseSuccessDataList = Array<TemplateListItem>;
1936
+ export declare const ListTemplatesResponseSuccessDataList: S.Schema<ListTemplatesResponseSuccessDataList>;
1937
+ export interface ListTemplatesResponseSuccess {
1938
+ /** Type of the response object. */
1939
+ object?: string;
1940
+ /** Array containing templates information. */
1941
+ data: ListTemplatesResponseSuccessDataList;
1942
+ /** Indicates if there are more templates to retrieve. */
1943
+ has_more?: boolean;
1944
+ }
1945
+ export declare const ListTemplatesResponseSuccess: S.Schema<ListTemplatesResponseSuccess>;
1946
+ export interface ListTopicsRequest {
1947
+ /** Number of items to return. */
1948
+ limit?: number;
1949
+ /** Return items after this cursor. */
1950
+ after?: string;
1951
+ /** Return items before this cursor. */
1952
+ before?: string;
1953
+ }
1954
+ export declare const ListTopicsRequest: S.Schema<ListTopicsRequest>;
1955
+ /** The default subscription status for the topic. */
1956
+ export type ListTopicsResponseSuccessDataItemDefaultSubscription = "opt_in" | "opt_out";
1957
+ export declare const ListTopicsResponseSuccessDataItemDefaultSubscription: any;
1958
+ /** The visibility of the topic. */
1959
+ export type ListTopicsResponseSuccessDataItemVisibility = "public" | "private";
1960
+ export declare const ListTopicsResponseSuccessDataItemVisibility: any;
1961
+ export interface ListTopicsResponseSuccessDataItem {
1962
+ /** Unique identifier for the topic. */
1963
+ id?: string;
1964
+ /** Name of the topic. */
1965
+ name?: string;
1966
+ /** A description of the topic. */
1967
+ description?: string;
1968
+ /** The default subscription status for the topic. */
1969
+ default_subscription?: ListTopicsResponseSuccessDataItemDefaultSubscription;
1970
+ /** The visibility of the topic. */
1971
+ visibility?: ListTopicsResponseSuccessDataItemVisibility;
1972
+ /** Timestamp indicating when the topic was created. */
1973
+ created_at?: string;
1974
+ }
1975
+ export declare const ListTopicsResponseSuccessDataItem: S.Schema<ListTopicsResponseSuccessDataItem>;
1976
+ /** Array containing topic information. */
1977
+ export type ListTopicsResponseSuccessDataList = Array<ListTopicsResponseSuccessDataItem>;
1978
+ export declare const ListTopicsResponseSuccessDataList: S.Schema<ListTopicsResponseSuccessDataList>;
1979
+ export interface ListTopicsResponseSuccess {
1980
+ /** Type of the response object. */
1981
+ object?: string;
1982
+ /** Indicates if there are more results available. */
1983
+ has_more?: boolean;
1984
+ /** Array containing topic information. */
1985
+ data: ListTopicsResponseSuccessDataList;
1986
+ }
1987
+ export declare const ListTopicsResponseSuccess: S.Schema<ListTopicsResponseSuccess>;
1988
+ export interface ListWebhooksRequest {
1989
+ /** Maximum number of webhooks to return. */
1990
+ limit?: number;
1991
+ /** Pagination cursor to fetch results after this webhook ID. Cannot be used with 'before'. */
1992
+ after?: string;
1993
+ /** Pagination cursor to fetch results before this webhook ID. Cannot be used with 'after'. */
1994
+ before?: string;
1995
+ }
1996
+ export declare const ListWebhooksRequest: S.Schema<ListWebhooksRequest>;
1997
+ /** Array of event types subscribed to. */
1998
+ export type ListWebhooksResponseDataItemEventsList = Array<string>;
1999
+ export declare const ListWebhooksResponseDataItemEventsList: S.Schema<ListWebhooksResponseDataItemEventsList>;
2000
+ export interface ListWebhooksResponseDataItem {
2001
+ /** The ID of the webhook. */
2002
+ id?: string;
2003
+ /** The URL where webhook events are sent. */
2004
+ endpoint?: string;
2005
+ /** Array of event types subscribed to. */
2006
+ events?: ListWebhooksResponseDataItemEventsList | null;
2007
+ /** The status of the webhook. */
2008
+ status?: string;
2009
+ /** Timestamp indicating when the webhook was created. */
2010
+ created_at?: string;
2011
+ }
2012
+ export declare const ListWebhooksResponseDataItem: S.Schema<ListWebhooksResponseDataItem>;
2013
+ /** Array containing webhook information. */
2014
+ export type ListWebhooksResponseDataList = Array<ListWebhooksResponseDataItem>;
2015
+ export declare const ListWebhooksResponseDataList: S.Schema<ListWebhooksResponseDataList>;
2016
+ export interface ListWebhooksResponse {
2017
+ /** Type of the response object. */
2018
+ object?: string;
2019
+ /** Indicates if there are more results available. */
2020
+ has_more?: boolean;
2021
+ /** Array containing webhook information. */
2022
+ data: ListWebhooksResponseDataList;
2023
+ }
2024
+ export declare const ListWebhooksResponse: S.Schema<ListWebhooksResponse>;
2025
+ export interface PublishTemplateRequest {
2026
+ /** The Template ID or alias. */
2027
+ id: string;
2028
+ }
2029
+ export declare const PublishTemplateRequest: S.Schema<PublishTemplateRequest>;
2030
+ export interface PublishTemplateResponseSuccess {
2031
+ /** The ID of the template. */
2032
+ id?: string;
2033
+ /** The object type of the response. */
2034
+ object?: string;
2035
+ }
2036
+ export declare const PublishTemplateResponseSuccess: S.Schema<PublishTemplateResponseSuccess>;
2037
+ export interface SendBroadcastRequest {
2038
+ /** The Broadcast ID. */
2039
+ id: string;
2040
+ /** Schedule email to be sent later. The date should be in ISO 8601 format. */
2041
+ scheduled_at?: string;
2042
+ }
2043
+ export declare const SendBroadcastRequest: S.Schema<SendBroadcastRequest>;
2044
+ export interface SendBroadcastResponseSuccess {
2045
+ /** The ID of the broadcast. */
2046
+ id?: string;
2047
+ }
2048
+ export declare const SendBroadcastResponseSuccess: S.Schema<SendBroadcastResponseSuccess>;
2049
+ /** An optional payload of key/value pairs to include with the event. */
2050
+ export type SendEventRequestPayloadMap = {
2051
+ [key: string]: unknown | undefined;
2052
+ };
2053
+ export declare const SendEventRequestPayloadMap: S.Schema<SendEventRequestPayloadMap>;
2054
+ export interface SendEventRequest {
2055
+ /** The name of the event to send. */
2056
+ event: string;
2057
+ /** The ID of the contact to associate with this event. Exactly one of `contact_id` or `email` must be provided. */
2058
+ contact_id?: string;
2059
+ /** The email address to associate with this event. Exactly one of `contact_id` or `email` must be provided. */
2060
+ email?: string;
2061
+ /** An optional payload of key/value pairs to include with the event. */
2062
+ payload?: SendEventRequestPayloadMap;
2063
+ }
2064
+ export declare const SendEventRequest: S.Schema<SendEventRequest>;
2065
+ export interface SendEventResponse {
2066
+ }
2067
+ export declare const SendEventResponse: S.Schema<SendEventResponse>;
2068
+ export interface StopAutomationRequest {
2069
+ /** The ID of the automation. */
2070
+ automation_id: string;
2071
+ }
2072
+ export declare const StopAutomationRequest: S.Schema<StopAutomationRequest>;
2073
+ export interface StopAutomationResponse {
2074
+ /** Type of the response object. */
2075
+ object?: string;
2076
+ /** The ID of the stopped automation. */
2077
+ id?: string;
2078
+ /** The status of the automation after stopping. */
2079
+ status?: string;
2080
+ }
2081
+ export declare const StopAutomationResponse: S.Schema<StopAutomationResponse>;
2082
+ /** The status of the automation. */
2083
+ export type UpdateAutomationRequestStatus = "enabled" | "disabled";
2084
+ export declare const UpdateAutomationRequestStatus: any;
2085
+ /** The steps that compose the automation workflow. Must be provided together with `connections`. */
2086
+ export type UpdateAutomationRequestStepsList = Array<AutomationStep>;
2087
+ export declare const UpdateAutomationRequestStepsList: S.Schema<UpdateAutomationRequestStepsList>;
2088
+ /** The connections between steps in the automation graph. Must be provided together with `steps`. */
2089
+ export type UpdateAutomationRequestConnectionsList = Array<AutomationConnection>;
2090
+ export declare const UpdateAutomationRequestConnectionsList: S.Schema<UpdateAutomationRequestConnectionsList>;
2091
+ export interface UpdateAutomationRequest {
2092
+ /** The ID of the automation. */
2093
+ automation_id: string;
2094
+ /** The name of the automation. */
2095
+ name?: string;
2096
+ /** The status of the automation. */
2097
+ status?: UpdateAutomationRequestStatus | (string & {});
2098
+ /** The steps that compose the automation workflow. Must be provided together with `connections`. */
2099
+ steps?: UpdateAutomationRequestStepsList;
2100
+ /** The connections between steps in the automation graph. Must be provided together with `steps`. */
2101
+ connections?: UpdateAutomationRequestConnectionsList;
2102
+ }
2103
+ export declare const UpdateAutomationRequest: S.Schema<UpdateAutomationRequest>;
2104
+ export interface PatchAutomationResponse {
2105
+ /** Type of the response object. */
2106
+ object?: string;
2107
+ /** The ID of the updated automation. */
2108
+ id?: string;
2109
+ }
2110
+ export declare const PatchAutomationResponse: S.Schema<PatchAutomationResponse>;
2111
+ /** The email addresses to which replies should be sent. */
2112
+ export type UpdateBroadcastRequestReplyToList = Array<string>;
2113
+ export declare const UpdateBroadcastRequestReplyToList: S.Schema<UpdateBroadcastRequestReplyToList>;
2114
+ export interface UpdateBroadcastRequest {
2115
+ /** The Broadcast ID. */
2116
+ id: string;
2117
+ /** Name of the broadcast. */
2118
+ name?: string;
2119
+ /** Use `segment_id` instead. Unique identifier of the audience this broadcast will be sent to. */
2120
+ audience_id?: string;
2121
+ /** Unique identifier of the segment this broadcast will be sent to. */
2122
+ segment_id?: string;
2123
+ /** The email address of the sender. */
2124
+ from?: string;
2125
+ /** The subject line of the email. */
2126
+ subject?: string;
2127
+ /** The email addresses to which replies should be sent. */
2128
+ reply_to?: UpdateBroadcastRequestReplyToList;
2129
+ /** The preview text of the email. */
2130
+ preview_text?: string;
2131
+ /** The HTML version of the message. */
2132
+ html?: string;
2133
+ /** The plain text version of the message. */
2134
+ text?: string;
2135
+ /** The topic ID that the broadcast will be scoped to. */
2136
+ topic_id?: string;
2137
+ }
2138
+ export declare const UpdateBroadcastRequest: S.Schema<UpdateBroadcastRequest>;
2139
+ export interface UpdateBroadcastResponseSuccess {
2140
+ /** The ID of the broadcast. */
2141
+ id?: string;
2142
+ /** The object type of the response. */
2143
+ object?: string;
2144
+ }
2145
+ export declare const UpdateBroadcastResponseSuccess: S.Schema<UpdateBroadcastResponseSuccess>;
2146
+ /** A map of custom property keys and values to update. */
2147
+ export type UpdateContactRequestPropertiesMap = {
2148
+ [key: string]: unknown | undefined;
2149
+ };
2150
+ export declare const UpdateContactRequestPropertiesMap: S.Schema<UpdateContactRequestPropertiesMap>;
2151
+ export interface UpdateContactRequest {
2152
+ /** The Contact ID or email address. */
2153
+ id: string;
2154
+ /** Email address of the contact. */
2155
+ email?: string;
2156
+ /** First name of the contact. */
2157
+ first_name?: string;
2158
+ /** Last name of the contact. */
2159
+ last_name?: string;
2160
+ /** The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts. */
2161
+ unsubscribed?: boolean;
2162
+ /** A map of custom property keys and values to update. */
2163
+ properties?: UpdateContactRequestPropertiesMap;
2164
+ }
2165
+ export declare const UpdateContactRequest: S.Schema<UpdateContactRequest>;
2166
+ export interface UpdateContactResponseSuccess {
2167
+ /** Type of the response object. */
2168
+ object?: string;
2169
+ /** Unique identifier for the updated contact. */
2170
+ id?: string;
2171
+ }
2172
+ export declare const UpdateContactResponseSuccess: S.Schema<UpdateContactResponseSuccess>;
2173
+ /** The default value to use when the property is not set for a contact. Must match the type of the property. */
2174
+ export type UpdateContactPropertyRequestFallbackValue = string | number;
2175
+ export declare const UpdateContactPropertyRequestFallbackValue: S.Schema<UpdateContactPropertyRequestFallbackValue>;
2176
+ export interface UpdateContactPropertyRequest {
2177
+ /** The Contact Property ID. */
2178
+ id: string;
2179
+ /** The default value to use when the property is not set for a contact. Must match the type of the property. */
2180
+ fallback_value?: UpdateContactPropertyRequestFallbackValue;
2181
+ }
2182
+ export declare const UpdateContactPropertyRequest: S.Schema<UpdateContactPropertyRequest>;
2183
+ export interface UpdateContactPropertyResponseSuccess {
2184
+ /** The ID of the contact property. */
2185
+ id?: string;
2186
+ /** The object type. */
2187
+ object?: string;
2188
+ }
2189
+ export declare const UpdateContactPropertyResponseSuccess: S.Schema<UpdateContactPropertyResponseSuccess>;
2190
+ export interface UpdateContactSegmentRequest {
2191
+ /** The Contact ID or email address. */
2192
+ contact_id: string;
2193
+ /** The Segment ID. */
2194
+ segment_id: string;
2195
+ }
2196
+ export declare const UpdateContactSegmentRequest: S.Schema<UpdateContactSegmentRequest>;
2197
+ export interface AddContactToSegmentResponseSuccess {
2198
+ /** The object type. */
2199
+ object?: string;
2200
+ /** The ID of the contact. */
2201
+ contact_id?: string;
2202
+ /** The ID of the segment. */
2203
+ segment_id?: string;
2204
+ }
2205
+ export declare const AddContactToSegmentResponseSuccess: S.Schema<AddContactToSegmentResponseSuccess>;
2206
+ /** The subscription status (opt_in or opt_out). */
2207
+ export type UpdateContactTopicsRequestTopicsItemSubscription = "opt_in" | "opt_out";
2208
+ export declare const UpdateContactTopicsRequestTopicsItemSubscription: any;
2209
+ export interface UpdateContactTopicsRequestTopicsItem {
2210
+ /** The ID of the topic. */
2211
+ id?: string;
2212
+ /** The subscription status (opt_in or opt_out). */
2213
+ subscription?: UpdateContactTopicsRequestTopicsItemSubscription | (string & {});
2214
+ }
2215
+ export declare const UpdateContactTopicsRequestTopicsItem: S.Schema<UpdateContactTopicsRequestTopicsItem>;
2216
+ export type UpdateContactTopicsRequestTopicsList = Array<UpdateContactTopicsRequestTopicsItem>;
2217
+ export declare const UpdateContactTopicsRequestTopicsList: S.Schema<UpdateContactTopicsRequestTopicsList>;
2218
+ export interface UpdateContactTopicsRequest {
2219
+ /** The Contact ID or email address. */
2220
+ contact_id: string;
2221
+ topics: UpdateContactTopicsRequestTopicsList;
2222
+ }
2223
+ export declare const UpdateContactTopicsRequest: S.Schema<UpdateContactTopicsRequest>;
2224
+ /** The subscription status. */
2225
+ export type UpdateContactTopicsResponseSuccessTopicsItemSubscription = "opt_in" | "opt_out";
2226
+ export declare const UpdateContactTopicsResponseSuccessTopicsItemSubscription: any;
2227
+ export interface UpdateContactTopicsResponseSuccessTopicsItem {
2228
+ /** The ID of the topic. */
2229
+ id?: string;
2230
+ /** The subscription status. */
2231
+ subscription?: UpdateContactTopicsResponseSuccessTopicsItemSubscription;
2232
+ }
2233
+ export declare const UpdateContactTopicsResponseSuccessTopicsItem: S.Schema<UpdateContactTopicsResponseSuccessTopicsItem>;
2234
+ /** Array of updated topic subscriptions. */
2235
+ export type UpdateContactTopicsResponseSuccessTopicsList = Array<UpdateContactTopicsResponseSuccessTopicsItem>;
2236
+ export declare const UpdateContactTopicsResponseSuccessTopicsList: S.Schema<UpdateContactTopicsResponseSuccessTopicsList>;
2237
+ export interface UpdateContactTopicsResponseSuccess {
2238
+ /** The object type. */
2239
+ object?: string;
2240
+ /** The ID of the contact. */
2241
+ contact_id?: string;
2242
+ /** Array of updated topic subscriptions. */
2243
+ topics?: UpdateContactTopicsResponseSuccessTopicsList;
2244
+ }
2245
+ export declare const UpdateContactTopicsResponseSuccess: S.Schema<UpdateContactTopicsResponseSuccess>;
2246
+ export interface UpdateDomainRequest {
2247
+ /** The ID of the domain. */
2248
+ domain_id: string;
2249
+ /** Track the open rate of each email. */
2250
+ open_tracking?: boolean;
2251
+ /** Track clicks within the body of each HTML email. */
2252
+ click_tracking?: boolean;
2253
+ /** enforced | opportunistic. */
2254
+ tls?: string;
2255
+ capabilities?: DomainCapabilities;
2256
+ /** The subdomain to use for click and open tracking. */
2257
+ tracking_subdomain?: string;
2258
+ }
2259
+ export declare const UpdateDomainRequest: S.Schema<UpdateDomainRequest>;
2260
+ export interface UpdateDomainResponseSuccess {
2261
+ /** The ID of the updated domain. */
2262
+ id?: string;
2263
+ /** The object type representing the updated domain. */
2264
+ object?: string;
2265
+ }
2266
+ export declare const UpdateDomainResponseSuccess: S.Schema<UpdateDomainResponseSuccess>;
2267
+ export interface UpdateEmailRequest {
2268
+ /** The ID of the email. */
2269
+ email_id: string;
2270
+ }
2271
+ export declare const UpdateEmailRequest: S.Schema<UpdateEmailRequest>;
2272
+ export interface UpdateEmailOptions {
2273
+ /** Schedule email to be sent later. The date should be in ISO 8601 format. */
2274
+ scheduled_at?: string;
2275
+ }
2276
+ export declare const UpdateEmailOptions: S.Schema<UpdateEmailOptions>;
2277
+ export interface UpdateEventRequest {
2278
+ /** The event ID (UUID) or event name. */
2279
+ identifier: string;
2280
+ /** 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
+ schema: unknown | null;
2282
+ }
2283
+ export declare const UpdateEventRequest: S.Schema<UpdateEventRequest>;
2284
+ export interface UpdateEventResponse {
2285
+ /** Type of the response object. */
2286
+ object?: string;
2287
+ /** The ID of the updated event. */
2288
+ id?: string;
2289
+ }
2290
+ export declare const UpdateEventResponse: S.Schema<UpdateEventResponse>;
2291
+ /** Reply-to email addresses. */
2292
+ export type UpdateTemplateRequestReplyToList = Array<string>;
2293
+ export declare const UpdateTemplateRequestReplyToList: S.Schema<UpdateTemplateRequestReplyToList>;
2294
+ export type UpdateTemplateRequestVariablesList = Array<TemplateVariableInput>;
2295
+ export declare const UpdateTemplateRequestVariablesList: S.Schema<UpdateTemplateRequestVariablesList>;
2296
+ export interface UpdateTemplateRequest {
2297
+ /** The Template ID or alias. */
2298
+ id: string;
2299
+ /** The name of the template. */
2300
+ name?: string;
2301
+ /** The alias of the template. */
2302
+ alias?: string;
2303
+ /** Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>". */
2304
+ from?: string;
2305
+ /** Email subject. */
2306
+ subject?: string;
2307
+ /** Reply-to email addresses. */
2308
+ reply_to?: UpdateTemplateRequestReplyToList;
2309
+ /** The HTML version of the template. */
2310
+ html?: string;
2311
+ /** The plain text version of the template. */
2312
+ text?: string;
2313
+ variables?: UpdateTemplateRequestVariablesList;
2314
+ }
2315
+ export declare const UpdateTemplateRequest: S.Schema<UpdateTemplateRequest>;
2316
+ export interface UpdateTemplateResponseSuccess {
2317
+ /** The ID of the template. */
2318
+ id?: string;
2319
+ /** The object type of the response. */
2320
+ object?: string;
2321
+ }
2322
+ export declare const UpdateTemplateResponseSuccess: S.Schema<UpdateTemplateResponseSuccess>;
2323
+ /** The visibility of the topic. */
2324
+ export type UpdateTopicRequestVisibility = "public" | "private";
2325
+ export declare const UpdateTopicRequestVisibility: any;
2326
+ export interface UpdateTopicRequest {
2327
+ /** The Topic ID. */
2328
+ id: string;
2329
+ /** The name of the topic. Max 50 characters. */
2330
+ name?: string;
2331
+ /** A description of the topic. Max 200 characters. */
2332
+ description?: string;
2333
+ /** The visibility of the topic. */
2334
+ visibility?: UpdateTopicRequestVisibility | (string & {});
2335
+ }
2336
+ export declare const UpdateTopicRequest: S.Schema<UpdateTopicRequest>;
2337
+ export interface UpdateTopicResponseSuccess {
2338
+ /** The ID of the topic. */
2339
+ id?: string;
2340
+ /** The object type. */
2341
+ object?: string;
2342
+ }
2343
+ export declare const UpdateTopicResponseSuccess: S.Schema<UpdateTopicResponseSuccess>;
2344
+ /** Array of event types to subscribe to. */
2345
+ export type UpdateWebhookRequestEventsList = Array<string>;
2346
+ export declare const UpdateWebhookRequestEventsList: S.Schema<UpdateWebhookRequestEventsList>;
2347
+ /** The status of the webhook. */
2348
+ export type UpdateWebhookRequestStatus = "enabled" | "disabled";
2349
+ export declare const UpdateWebhookRequestStatus: any;
2350
+ export interface UpdateWebhookRequest {
2351
+ /** The Webhook ID. */
2352
+ webhook_id: string;
2353
+ /** The URL where webhook events will be sent. */
2354
+ endpoint?: string;
2355
+ /** Array of event types to subscribe to. */
2356
+ events?: UpdateWebhookRequestEventsList;
2357
+ /** The status of the webhook. */
2358
+ status?: UpdateWebhookRequestStatus | (string & {});
2359
+ }
2360
+ export declare const UpdateWebhookRequest: S.Schema<UpdateWebhookRequest>;
2361
+ export interface UpdateWebhookResponse {
2362
+ /** The type of object. */
2363
+ object?: string;
2364
+ /** The ID of the updated webhook. */
2365
+ id?: string;
2366
+ }
2367
+ export declare const UpdateWebhookResponse: S.Schema<UpdateWebhookResponse>;
2368
+ export interface VerifyDomainRequest {
2369
+ /** The ID of the domain. */
2370
+ domain_id: string;
2371
+ }
2372
+ export declare const VerifyDomainRequest: S.Schema<VerifyDomainRequest>;
2373
+ export interface VerifyDomainResponse {
2374
+ /** The type of object. */
2375
+ object?: string;
2376
+ /** The ID of the domain. */
2377
+ id?: string;
2378
+ }
2379
+ export declare const VerifyDomainResponse: S.Schema<VerifyDomainResponse>;
2380
+ export type CancelEmailError = ResendOpError;
2381
+ /** Cancel the schedule of the e-mail. */
2382
+ export declare const cancelEmail: API.OperationMethod<CancelEmailRequest, Email, CancelEmailError, ResendOpContext>;
2383
+ export type CreateApiKeyError = ResendOpError;
2384
+ /** Create a new API key */
2385
+ export declare const createApiKey: API.OperationMethod<CreateApiKeyRequest, CreateApiKeyResponse, CreateApiKeyError, ResendOpContext>;
2386
+ export type CreateAutomationError = ResendOpError;
2387
+ /** Create an automation */
2388
+ export declare const createAutomation: API.OperationMethod<CreateAutomationRequest, CreateAutomationResponse, CreateAutomationError, ResendOpContext>;
2389
+ export type CreateBroadcastError = ResendOpError;
2390
+ /** Create a broadcast */
2391
+ export declare const createBroadcast: API.OperationMethod<CreateBroadcastRequest, CreateBroadcastResponseSuccess, CreateBroadcastError, ResendOpContext>;
2392
+ export type CreateContactError = ResendOpError;
2393
+ /** Create a new contact */
2394
+ export declare const createContact: API.OperationMethod<CreateContactRequest, CreateContactResponseSuccess, CreateContactError, ResendOpContext>;
2395
+ export type CreateContactPropertyError = ResendOpError;
2396
+ /** Create a new contact property */
2397
+ export declare const createContactProperty: API.OperationMethod<CreateContactPropertyRequest, CreateContactPropertyResponseSuccess, CreateContactPropertyError, ResendOpContext>;
2398
+ export type CreateDomainError = ResendOpError;
2399
+ /** Create a new domain */
2400
+ export declare const createDomain: API.OperationMethod<CreateDomainRequest, CreateDomainResponse, CreateDomainError, ResendOpContext>;
2401
+ export type CreateEmailError = ResendOpError;
2402
+ /** Send an email */
2403
+ export declare const createEmail: API.OperationMethod<CreateEmailRequest, SendEmailResponse, CreateEmailError, ResendOpContext>;
2404
+ export type CreateEmailBatchError = ResendOpError;
2405
+ /** Trigger up to 100 batch emails at once. */
2406
+ export declare const createEmailBatch: API.OperationMethod<CreateEmailBatchRequest, CreateBatchEmailsResponse, CreateEmailBatchError, ResendOpContext>;
2407
+ export type CreateEventError = ResendOpError;
2408
+ /** Create an event */
2409
+ export declare const createEvent: API.OperationMethod<CreateEventRequest, CreateEventResponse, CreateEventError, ResendOpContext>;
2410
+ export type CreateSegmentError = ResendOpError;
2411
+ /** Create a new segment */
2412
+ export declare const createSegment: API.OperationMethod<CreateSegmentRequest, CreateSegmentResponseSuccess, CreateSegmentError, ResendOpContext>;
2413
+ export type CreateTemplateError = ResendOpError;
2414
+ /** Create a template */
2415
+ export declare const createTemplate: API.OperationMethod<CreateTemplateRequest, CreateTemplateResponseSuccess, CreateTemplateError, ResendOpContext>;
2416
+ export type CreateTopicError = ResendOpError;
2417
+ /** Create a new topic */
2418
+ export declare const createTopic: API.OperationMethod<CreateTopicRequest, CreateTopicResponseSuccess, CreateTopicError, ResendOpContext>;
2419
+ export type CreateWebhookError = ResendOpError;
2420
+ /** Create a new webhook */
2421
+ export declare const createWebhook: API.OperationMethod<CreateWebhookRequest, CreateWebhookResponse, CreateWebhookError, ResendOpContext>;
2422
+ export type DeleteApiKeyError = ResendOpError;
2423
+ /** Remove an existing API key */
2424
+ export declare const deleteApiKey: API.OperationMethod<DeleteApiKeyRequest, DeleteApiKeyResponse, DeleteApiKeyError, ResendOpContext>;
2425
+ export type DeleteAutomationError = ResendOpError;
2426
+ /** Delete an automation */
2427
+ export declare const deleteAutomation: API.OperationMethod<DeleteAutomationRequest, DeleteAutomationResponse, DeleteAutomationError, ResendOpContext>;
2428
+ export type DeleteBroadcastError = ResendOpError;
2429
+ /** Remove an existing broadcast that is in the draft status */
2430
+ export declare const deleteBroadcast: API.OperationMethod<DeleteBroadcastRequest, RemoveBroadcastResponseSuccess, DeleteBroadcastError, ResendOpContext>;
2431
+ export type DeleteContactError = ResendOpError;
2432
+ /** Remove an existing contact by ID or email */
2433
+ export declare const deleteContact: API.OperationMethod<DeleteContactRequest, RemoveContactResponseSuccess, DeleteContactError, ResendOpContext>;
2434
+ export type DeleteContactPropertyError = ResendOpError;
2435
+ /** Remove an existing contact property */
2436
+ export declare const deleteContactProperty: API.OperationMethod<DeleteContactPropertyRequest, RemoveContactPropertyResponseSuccess, DeleteContactPropertyError, ResendOpContext>;
2437
+ export type DeleteContactSegmentError = ResendOpError;
2438
+ /** Remove a contact from a segment */
2439
+ export declare const deleteContactSegment: API.OperationMethod<DeleteContactSegmentRequest, RemoveContactFromSegmentResponseSuccess, DeleteContactSegmentError, ResendOpContext>;
2440
+ export type DeleteDomainError = ResendOpError;
2441
+ /** Remove an existing domain */
2442
+ export declare const deleteDomain: API.OperationMethod<DeleteDomainRequest, DeleteDomainResponse, DeleteDomainError, ResendOpContext>;
2443
+ export type DeleteEventError = ResendOpError;
2444
+ /** Delete an event */
2445
+ export declare const deleteEvent: API.OperationMethod<DeleteEventRequest, RemoveEventResponse, DeleteEventError, ResendOpContext>;
2446
+ export type DeleteSegmentError = ResendOpError;
2447
+ /** Remove an existing segment */
2448
+ export declare const deleteSegment: API.OperationMethod<DeleteSegmentRequest, RemoveSegmentResponseSuccess, DeleteSegmentError, ResendOpContext>;
2449
+ export type DeleteTemplateError = ResendOpError;
2450
+ /** Remove an existing template */
2451
+ export declare const deleteTemplate: API.OperationMethod<DeleteTemplateRequest, RemoveTemplateResponseSuccess, DeleteTemplateError, ResendOpContext>;
2452
+ export type DeleteTopicError = ResendOpError;
2453
+ /** Remove an existing topic */
2454
+ export declare const deleteTopic: API.OperationMethod<DeleteTopicRequest, RemoveTopicResponseSuccess, DeleteTopicError, ResendOpContext>;
2455
+ export type DeleteWebhookError = ResendOpError;
2456
+ /** Remove an existing webhook */
2457
+ export declare const deleteWebhook: API.OperationMethod<DeleteWebhookRequest, DeleteWebhookResponse, DeleteWebhookError, ResendOpContext>;
2458
+ export type DuplicateTemplateError = ResendOpError;
2459
+ /** Duplicate a template */
2460
+ export declare const duplicateTemplate: API.OperationMethod<DuplicateTemplateRequest, DuplicateTemplateResponseSuccess, DuplicateTemplateError, ResendOpContext>;
2461
+ export type GetAutomationError = ResendOpError;
2462
+ /** Retrieve a single automation */
2463
+ export declare const getAutomation: API.OperationMethod<GetAutomationRequest, Automation, GetAutomationError, ResendOpContext>;
2464
+ export type GetAutomationRunError = ResendOpError;
2465
+ /** Retrieve a single automation run */
2466
+ export declare const getAutomationRun: API.OperationMethod<GetAutomationRunRequest, AutomationRun, GetAutomationRunError, ResendOpContext>;
2467
+ export type GetBroadcastError = ResendOpError;
2468
+ /** Retrieve a single broadcast */
2469
+ export declare const getBroadcast: API.OperationMethod<GetBroadcastRequest, GetBroadcastResponseSuccess, GetBroadcastError, ResendOpContext>;
2470
+ export type GetContactError = ResendOpError;
2471
+ /** Retrieve a single contact by ID or email */
2472
+ export declare const getContact: API.OperationMethod<GetContactRequest, GetContactResponseSuccess, GetContactError, ResendOpContext>;
2473
+ export type GetContactPropertyError = ResendOpError;
2474
+ /** Retrieve a single contact property */
2475
+ export declare const getContactProperty: API.OperationMethod<GetContactPropertyRequest, GetContactPropertyResponseSuccess, GetContactPropertyError, ResendOpContext>;
2476
+ export type GetDomainError = ResendOpError;
2477
+ /** Retrieve a single domain */
2478
+ export declare const getDomain: API.OperationMethod<GetDomainRequest, Domain, GetDomainError, ResendOpContext>;
2479
+ export type GetEmailError = ResendOpError;
2480
+ /** Retrieve a single email */
2481
+ export declare const getEmail: API.OperationMethod<GetEmailRequest, Email, GetEmailError, ResendOpContext>;
2482
+ export type GetEmailAttachmentError = ResendOpError;
2483
+ /** Retrieve a single attachment for a sent email */
2484
+ export declare const getEmailAttachment: API.OperationMethod<GetEmailAttachmentRequest, RetrievedAttachment, GetEmailAttachmentError, ResendOpContext>;
2485
+ export type GetEmailReceivingError = ResendOpError;
2486
+ /** Retrieve a single received email */
2487
+ export declare const getEmailReceiving: API.OperationMethod<GetEmailReceivingRequest, GetReceivedEmailResponse, GetEmailReceivingError, ResendOpContext>;
2488
+ export type GetEmailReceivingAttachmentError = ResendOpError;
2489
+ /** Retrieve a single attachment for a received email */
2490
+ export declare const getEmailReceivingAttachment: API.OperationMethod<GetEmailReceivingAttachmentRequest, RetrievedAttachment, GetEmailReceivingAttachmentError, ResendOpContext>;
2491
+ export type GetEventError = ResendOpError;
2492
+ /** Retrieve a single event */
2493
+ export declare const getEvent: API.OperationMethod<GetEventRequest, Event, GetEventError, ResendOpContext>;
2494
+ export type GetLogError = ResendOpError;
2495
+ /** Retrieve a single log */
2496
+ export declare const getLog: API.OperationMethod<GetLogRequest, Log, GetLogError, ResendOpContext>;
2497
+ export type GetSegmentError = ResendOpError;
2498
+ /** Retrieve a single segment */
2499
+ export declare const getSegment: API.OperationMethod<GetSegmentRequest, GetSegmentResponseSuccess, GetSegmentError, ResendOpContext>;
2500
+ export type GetTemplateError = ResendOpError;
2501
+ /** Retrieve a single template */
2502
+ export declare const getTemplate: API.OperationMethod<GetTemplateRequest, Template, GetTemplateError, ResendOpContext>;
2503
+ export type GetTopicError = ResendOpError;
2504
+ /** Retrieve a single topic */
2505
+ export declare const getTopic: API.OperationMethod<GetTopicRequest, GetTopicResponseSuccess, GetTopicError, ResendOpContext>;
2506
+ export type GetWebhookError = ResendOpError;
2507
+ /** Retrieve a single webhook */
2508
+ export declare const getWebhook: API.OperationMethod<GetWebhookRequest, GetWebhookResponse, GetWebhookError, ResendOpContext>;
2509
+ export type ListApiKeysError = ResendOpError;
2510
+ /** Retrieve a list of API keys */
2511
+ export declare const listApiKeys: API.PaginatedOperationMethod<ListApiKeysRequest, ListApiKeysResponse, ListApiKeysError, ResendOpContext, ApiKey>;
2512
+ export type ListAutomationRunsError = ResendOpError;
2513
+ /** Retrieve a list of automation runs */
2514
+ export declare const listAutomationRuns: API.PaginatedOperationMethod<ListAutomationRunsRequest, ListAutomationRunsResponse, ListAutomationRunsError, ResendOpContext, AutomationRunListItem>;
2515
+ export type ListAutomationsError = ResendOpError;
2516
+ /** Retrieve a list of automations */
2517
+ export declare const listAutomations: API.PaginatedOperationMethod<ListAutomationsRequest, ListAutomationsResponse, ListAutomationsError, ResendOpContext, AutomationListItem>;
2518
+ export type ListBroadcastsError = ResendOpError;
2519
+ /** Retrieve a list of broadcasts */
2520
+ export declare const listBroadcasts: API.PaginatedOperationMethod<ListBroadcastsRequest, ListBroadcastsResponseSuccess, ListBroadcastsError, ResendOpContext, ListBroadcastsResponseSuccessDataItem>;
2521
+ export type ListContactPropertiesError = ResendOpError;
2522
+ /** Retrieve a list of contact properties */
2523
+ export declare const listContactProperties: API.PaginatedOperationMethod<ListContactPropertiesRequest, ListContactPropertiesResponseSuccess, ListContactPropertiesError, ResendOpContext, ListContactPropertiesResponseSuccessDataItem>;
2524
+ export type ListContactsError = ResendOpError;
2525
+ /** Retrieve a list of contacts */
2526
+ export declare const listContacts: API.OperationMethod<ListContactsRequest, ListContactsResponseSuccess, ListContactsError, ResendOpContext>;
2527
+ export type ListContactSegmentsError = ResendOpError;
2528
+ /** Retrieve a list of segments for a contact */
2529
+ export declare const listContactSegments: API.PaginatedOperationMethod<ListContactSegmentsRequest, ListContactSegmentsResponseSuccess, ListContactSegmentsError, ResendOpContext, ListContactSegmentsResponseSuccessDataItem>;
2530
+ export type ListContactTopicsError = ResendOpError;
2531
+ /** Retrieve topics for a contact */
2532
+ export declare const listContactTopics: API.PaginatedOperationMethod<ListContactTopicsRequest, GetContactTopicsResponseSuccess, ListContactTopicsError, ResendOpContext, GetContactTopicsResponseSuccessDataItem>;
2533
+ export type ListDomainsError = ResendOpError;
2534
+ /** Retrieve a list of domains */
2535
+ export declare const listDomains: API.PaginatedOperationMethod<ListDomainsRequest, ListDomainsResponse, ListDomainsError, ResendOpContext, ListDomainsItem>;
2536
+ export type ListEmailAttachmentsError = ResendOpError;
2537
+ /** Retrieve a list of attachments for a sent email */
2538
+ export declare const listEmailAttachments: API.PaginatedOperationMethod<ListEmailAttachmentsRequest, ListAttachmentsResponse, ListEmailAttachmentsError, ResendOpContext, ListAttachmentsResponseDataItem>;
2539
+ export type ListEmailReceivingError = ResendOpError;
2540
+ /** Retrieve a list of received emails */
2541
+ export declare const listEmailReceiving: API.PaginatedOperationMethod<ListEmailReceivingRequest, ListReceivedEmailsResponse, ListEmailReceivingError, ResendOpContext, ListReceivedEmailsResponseDataItem>;
2542
+ export type ListEmailReceivingAttachmentsError = ResendOpError;
2543
+ /** Retrieve a list of attachments for a received email */
2544
+ export declare const listEmailReceivingAttachments: API.PaginatedOperationMethod<ListEmailReceivingAttachmentsRequest, ListAttachmentsResponse, ListEmailReceivingAttachmentsError, ResendOpContext, ListAttachmentsResponseDataItem>;
2545
+ export type ListEmailsError = ResendOpError;
2546
+ /** Retrieve a list of emails */
2547
+ export declare const listEmails: API.PaginatedOperationMethod<ListEmailsRequest, ListEmailsResponse, ListEmailsError, ResendOpContext, Email>;
2548
+ export type ListEventsError = ResendOpError;
2549
+ /** Retrieve a list of events */
2550
+ export declare const listEvents: API.PaginatedOperationMethod<ListEventsRequest, ListEventsResponse, ListEventsError, ResendOpContext, EventSummary>;
2551
+ export type ListLogsError = ResendOpError;
2552
+ /** Retrieve a list of logs */
2553
+ export declare const listLogs: API.PaginatedOperationMethod<ListLogsRequest, ListLogsResponse, ListLogsError, ResendOpContext, LogSummary>;
2554
+ export type ListSegmentsError = ResendOpError;
2555
+ /** Retrieve a list of segments */
2556
+ export declare const listSegments: API.PaginatedOperationMethod<ListSegmentsRequest, ListSegmentsResponseSuccess, ListSegmentsError, ResendOpContext, ListSegmentsResponseSuccessDataItem>;
2557
+ export type ListTemplatesError = ResendOpError;
2558
+ /** Retrieve a list of templates */
2559
+ export declare const listTemplates: API.PaginatedOperationMethod<ListTemplatesRequest, ListTemplatesResponseSuccess, ListTemplatesError, ResendOpContext, TemplateListItem>;
2560
+ export type ListTopicsError = ResendOpError;
2561
+ /** Retrieve a list of topics */
2562
+ export declare const listTopics: API.PaginatedOperationMethod<ListTopicsRequest, ListTopicsResponseSuccess, ListTopicsError, ResendOpContext, ListTopicsResponseSuccessDataItem>;
2563
+ export type ListWebhooksError = ResendOpError;
2564
+ /** Retrieve a list of webhooks */
2565
+ export declare const listWebhooks: API.PaginatedOperationMethod<ListWebhooksRequest, ListWebhooksResponse, ListWebhooksError, ResendOpContext, ListWebhooksResponseDataItem>;
2566
+ export type PublishTemplateError = ResendOpError;
2567
+ /** Publish a template */
2568
+ export declare const publishTemplate: API.OperationMethod<PublishTemplateRequest, PublishTemplateResponseSuccess, PublishTemplateError, ResendOpContext>;
2569
+ export type SendBroadcastError = ResendOpError;
2570
+ /** Send or schedule a broadcast */
2571
+ export declare const sendBroadcast: API.OperationMethod<SendBroadcastRequest, SendBroadcastResponseSuccess, SendBroadcastError, ResendOpContext>;
2572
+ export type SendEventError = ResendOpError;
2573
+ /** Send an event */
2574
+ export declare const sendEvent: API.OperationMethod<SendEventRequest, SendEventResponse, SendEventError, ResendOpContext>;
2575
+ export type StopAutomationError = ResendOpError;
2576
+ /** Stop an automation */
2577
+ export declare const stopAutomation: API.OperationMethod<StopAutomationRequest, StopAutomationResponse, StopAutomationError, ResendOpContext>;
2578
+ export type UpdateAutomationError = ResendOpError;
2579
+ /** Update an automation */
2580
+ export declare const updateAutomation: API.OperationMethod<UpdateAutomationRequest, PatchAutomationResponse, UpdateAutomationError, ResendOpContext>;
2581
+ export type UpdateBroadcastError = ResendOpError;
2582
+ /** Update an existing broadcast */
2583
+ export declare const updateBroadcast: API.OperationMethod<UpdateBroadcastRequest, UpdateBroadcastResponseSuccess, UpdateBroadcastError, ResendOpContext>;
2584
+ export type UpdateContactError = ResendOpError;
2585
+ /** Update a single contact by ID or email */
2586
+ export declare const updateContact: API.OperationMethod<UpdateContactRequest, UpdateContactResponseSuccess, UpdateContactError, ResendOpContext>;
2587
+ export type UpdateContactPropertyError = ResendOpError;
2588
+ /** Update an existing contact property */
2589
+ export declare const updateContactProperty: API.OperationMethod<UpdateContactPropertyRequest, UpdateContactPropertyResponseSuccess, UpdateContactPropertyError, ResendOpContext>;
2590
+ export type UpdateContactSegmentError = ResendOpError;
2591
+ /** Add a contact to a segment */
2592
+ export declare const updateContactSegment: API.OperationMethod<UpdateContactSegmentRequest, AddContactToSegmentResponseSuccess, UpdateContactSegmentError, ResendOpContext>;
2593
+ export type UpdateContactTopicsError = ResendOpError;
2594
+ /** Update topics for a contact */
2595
+ export declare const updateContactTopics: API.OperationMethod<UpdateContactTopicsRequest, UpdateContactTopicsResponseSuccess, UpdateContactTopicsError, ResendOpContext>;
2596
+ export type UpdateDomainError = ResendOpError;
2597
+ /** Update an existing domain */
2598
+ export declare const updateDomain: API.OperationMethod<UpdateDomainRequest, UpdateDomainResponseSuccess, UpdateDomainError, ResendOpContext>;
2599
+ export type UpdateEmailError = ResendOpError;
2600
+ /** Update a single email */
2601
+ export declare const updateEmail: API.OperationMethod<UpdateEmailRequest, UpdateEmailOptions, UpdateEmailError, ResendOpContext>;
2602
+ export type UpdateEventError = ResendOpError;
2603
+ /** Update an event */
2604
+ export declare const updateEvent: API.OperationMethod<UpdateEventRequest, UpdateEventResponse, UpdateEventError, ResendOpContext>;
2605
+ export type UpdateTemplateError = ResendOpError;
2606
+ /** Update an existing template */
2607
+ export declare const updateTemplate: API.OperationMethod<UpdateTemplateRequest, UpdateTemplateResponseSuccess, UpdateTemplateError, ResendOpContext>;
2608
+ export type UpdateTopicError = ResendOpError;
2609
+ /** Update an existing topic */
2610
+ export declare const updateTopic: API.OperationMethod<UpdateTopicRequest, UpdateTopicResponseSuccess, UpdateTopicError, ResendOpContext>;
2611
+ export type UpdateWebhookError = ResendOpError;
2612
+ /** Update an existing webhook */
2613
+ export declare const updateWebhook: API.OperationMethod<UpdateWebhookRequest, UpdateWebhookResponse, UpdateWebhookError, ResendOpContext>;
2614
+ export type VerifyDomainError = ResendOpError;
2615
+ /** Verify an existing domain Triggers verification of the domain's DNS records including DKIM, SPF, and the tracking CNAME (if a tracking subdomain is configured). */
2616
+ export declare const verifyDomain: API.OperationMethod<VerifyDomainRequest, VerifyDomainResponse, VerifyDomainError, ResendOpContext>;
2617
+ //# sourceMappingURL=resend.d.ts.map