@billionsend/node 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +3 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -12
- package/dist/index.d.ts +94 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3542,7 +3542,10 @@ interface components {
|
|
|
3542
3542
|
* @enum {string}
|
|
3543
3543
|
*/
|
|
3544
3544
|
region?: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
|
|
3545
|
-
/**
|
|
3545
|
+
/**
|
|
3546
|
+
* @description The MAIL FROM (return-path) subdomain, fixed when the domain is added: it cannot be changed later (delete and re-add the domain). Defaults to `bounce`, not `send`, so a domain that still sends through another provider whose return path is `send` keeps its bounces working while both send.
|
|
3547
|
+
* @default bounce
|
|
3548
|
+
*/
|
|
3546
3549
|
custom_return_path?: string;
|
|
3547
3550
|
/** @description Inject a tracking pixel served from the tracking host and record email.opened events. Off by default. */
|
|
3548
3551
|
open_tracking?: boolean;
|
|
@@ -3758,6 +3761,8 @@ interface components {
|
|
|
3758
3761
|
logo_radius?: "square" | "gentle" | "rounded" | "circle" | null;
|
|
3759
3762
|
};
|
|
3760
3763
|
tls?: unknown;
|
|
3764
|
+
/** @description Not changeable: the return-path subdomain is fixed when the domain is added. Sending it answers 422; delete and re-add the domain to use another. */
|
|
3765
|
+
custom_return_path?: unknown;
|
|
3761
3766
|
/** @description What the domain is used for (sending, receiving); omitted fields keep their value. */
|
|
3762
3767
|
capabilities?: {
|
|
3763
3768
|
/**
|
|
@@ -3829,7 +3834,10 @@ interface components {
|
|
|
3829
3834
|
* @enum {string}
|
|
3830
3835
|
*/
|
|
3831
3836
|
region?: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
|
|
3832
|
-
/**
|
|
3837
|
+
/**
|
|
3838
|
+
* @description The MAIL FROM (return-path) subdomain, fixed when the domain is added: it cannot be changed later (delete and re-add the domain). Defaults to `bounce`, not `send`, so a domain that still sends through another provider whose return path is `send` keeps its bounces working while both send.
|
|
3839
|
+
* @default bounce
|
|
3840
|
+
*/
|
|
3833
3841
|
custom_return_path?: string;
|
|
3834
3842
|
/** @description Inject a tracking pixel served from the tracking host and record email.opened events. Off by default. */
|
|
3835
3843
|
open_tracking?: boolean;
|
|
@@ -4044,7 +4052,9 @@ interface components {
|
|
|
4044
4052
|
};
|
|
4045
4053
|
BatchAddSuppressionsRequest: {
|
|
4046
4054
|
/** @description Addresses to block, up to 1000; duplicates collapse */
|
|
4047
|
-
emails
|
|
4055
|
+
emails?: string[];
|
|
4056
|
+
/** @description BillionSend extension: domains to block entirely (every address at that exact domain, subdomains not covered), up to 1000; recorded as manual entries, consumer mailbox providers such as gmail.com are refused. Their entries follow the emails' in the response */
|
|
4057
|
+
domains?: string[];
|
|
4048
4058
|
/**
|
|
4049
4059
|
* @description Origin recorded on rows this request creates (default manual): bounce, complaint or manual; an address already suppressed keeps its origin
|
|
4050
4060
|
* @enum {string}
|
|
@@ -4087,7 +4097,9 @@ interface components {
|
|
|
4087
4097
|
* Format: email
|
|
4088
4098
|
* @description Bare email address to block; stored normalized (lowercase)
|
|
4089
4099
|
*/
|
|
4090
|
-
email
|
|
4100
|
+
email?: string;
|
|
4101
|
+
/** @description BillionSend extension: block every address at this exact domain (subdomains are not covered), instead of one email. Recorded as a manual entry; consumer mailbox providers such as gmail.com are refused */
|
|
4102
|
+
domain?: string;
|
|
4091
4103
|
/**
|
|
4092
4104
|
* @description Origin recorded on rows this request creates (default manual): bounce, complaint or manual; an address already suppressed keeps its origin
|
|
4093
4105
|
* @enum {string}
|
|
@@ -4100,7 +4112,17 @@ interface components {
|
|
|
4100
4112
|
data: {
|
|
4101
4113
|
/** Format: uuid */
|
|
4102
4114
|
id: string;
|
|
4103
|
-
|
|
4115
|
+
/** @description The blocked address; null on a domain entry */
|
|
4116
|
+
email: string | null;
|
|
4117
|
+
/**
|
|
4118
|
+
* @description BillionSend extension: an entry for one address, or for every address at one domain
|
|
4119
|
+
* @enum {string}
|
|
4120
|
+
*/
|
|
4121
|
+
kind: "email" | "domain";
|
|
4122
|
+
/** @description The blocked domain; null on an email entry */
|
|
4123
|
+
domain: string | null;
|
|
4124
|
+
/** @description BillionSend extension: false for a permanent entry (a bounce or a complaint) */
|
|
4125
|
+
removable: boolean;
|
|
4104
4126
|
/** @enum {string} */
|
|
4105
4127
|
origin: "bounce" | "complaint" | "manual";
|
|
4106
4128
|
/**
|
|
@@ -4115,7 +4137,17 @@ interface components {
|
|
|
4115
4137
|
GetSuppressionResponse: {
|
|
4116
4138
|
/** Format: uuid */
|
|
4117
4139
|
id: string;
|
|
4118
|
-
|
|
4140
|
+
/** @description The blocked address; null on a domain entry */
|
|
4141
|
+
email: string | null;
|
|
4142
|
+
/**
|
|
4143
|
+
* @description BillionSend extension: an entry for one address, or for every address at one domain
|
|
4144
|
+
* @enum {string}
|
|
4145
|
+
*/
|
|
4146
|
+
kind: "email" | "domain";
|
|
4147
|
+
/** @description The blocked domain; null on an email entry */
|
|
4148
|
+
domain: string | null;
|
|
4149
|
+
/** @description BillionSend extension: false for a permanent entry (a bounce or a complaint) */
|
|
4150
|
+
removable: boolean;
|
|
4119
4151
|
/** @enum {string} */
|
|
4120
4152
|
origin: "bounce" | "complaint" | "manual";
|
|
4121
4153
|
/**
|
|
@@ -6301,6 +6333,46 @@ interface components {
|
|
|
6301
6333
|
/** @enum {string} */
|
|
6302
6334
|
guardrail_status: "ok" | "warning" | "paused";
|
|
6303
6335
|
score_version: number;
|
|
6336
|
+
/** @description Each sending domain's own standing over the trailing 7 days (BillionSend extension). guardrail_status is the team as a whole */
|
|
6337
|
+
domains: components["schemas"]["DomainDeliverability"][];
|
|
6338
|
+
};
|
|
6339
|
+
DomainDeliverability: {
|
|
6340
|
+
/**
|
|
6341
|
+
* Format: uuid
|
|
6342
|
+
* @description The sending domain's id; null for the team's shared-domain addresses
|
|
6343
|
+
*/
|
|
6344
|
+
domain_id: string | null;
|
|
6345
|
+
/** @description The sending domain's name; null for the shared-domain addresses */
|
|
6346
|
+
domain: string | null;
|
|
6347
|
+
/**
|
|
6348
|
+
* @description The domain's own standing, judged on its own mail with the team's windows and lines. paused refuses new sends from this domain (403 domain_sending_paused) while the team's other domains keep sending
|
|
6349
|
+
* @enum {string}
|
|
6350
|
+
*/
|
|
6351
|
+
status: "ok" | "warning" | "paused";
|
|
6352
|
+
/** @description Emails sent from the domain in the window */
|
|
6353
|
+
emails_sent: number;
|
|
6354
|
+
hard_bounce_rate: number;
|
|
6355
|
+
complaint_rate: number;
|
|
6356
|
+
hard_bounces: number;
|
|
6357
|
+
complaints: number;
|
|
6358
|
+
delivered: number;
|
|
6359
|
+
window_days: number;
|
|
6360
|
+
/**
|
|
6361
|
+
* @description status, or insufficient while the window holds fewer than 100 sends and no line has fired
|
|
6362
|
+
* @enum {string}
|
|
6363
|
+
*/
|
|
6364
|
+
tier: "ok" | "warning" | "paused" | "insufficient";
|
|
6365
|
+
/**
|
|
6366
|
+
* @description Whether the domain's mail is paused by its own rates, by the team's as a whole, or both; null when not paused
|
|
6367
|
+
* @enum {string|null}
|
|
6368
|
+
*/
|
|
6369
|
+
paused_by: "domain" | "team" | "both" | null;
|
|
6370
|
+
/** @description Hard-bounce rate over today and yesterday (UTC), the window the pause line judges */
|
|
6371
|
+
recent_hard_bounce_rate: number;
|
|
6372
|
+
/** @description Complaint rate over today and yesterday (UTC) */
|
|
6373
|
+
recent_complaint_rate: number;
|
|
6374
|
+
/** @description 1 minus the rate over its pause line, on the metric nearer to its line (recent rates): 1 with no events, 0 at the line, negative past it */
|
|
6375
|
+
pause_margin: number;
|
|
6304
6376
|
};
|
|
6305
6377
|
ListEmailsResponse: {
|
|
6306
6378
|
/** @enum {string} */
|
|
@@ -6551,6 +6623,7 @@ type UnshareEmailResponse = components["schemas"]["UnshareEmailResponse"];
|
|
|
6551
6623
|
type GetEmailResponse = components["schemas"]["GetEmailResponse"];
|
|
6552
6624
|
type EmailInsightsResponse = components["schemas"]["EmailInsightsResponse"];
|
|
6553
6625
|
type DeliverabilityResponse = components["schemas"]["DeliverabilityResponse"];
|
|
6626
|
+
type DomainDeliverability = components["schemas"]["DomainDeliverability"];
|
|
6554
6627
|
type ListEmailsResponse = components["schemas"]["ListEmailsResponse"];
|
|
6555
6628
|
type RemoveEmailResponse = components["schemas"]["RemoveEmailResponse"];
|
|
6556
6629
|
type HeaderRequestId = components["headers"]["RequestId"];
|
|
@@ -12188,6 +12261,8 @@ interface operations {
|
|
|
12188
12261
|
before?: string;
|
|
12189
12262
|
/** @description Only suppressions of this origin: bounce, complaint or manual */
|
|
12190
12263
|
origin?: "bounce" | "complaint" | "manual";
|
|
12264
|
+
/** @description BillionSend extension. email (default): entries for single addresses; domain: entries for a whole domain; all: both */
|
|
12265
|
+
kind?: "email" | "domain" | "all";
|
|
12191
12266
|
};
|
|
12192
12267
|
header?: never;
|
|
12193
12268
|
path?: never;
|
|
@@ -12195,7 +12270,7 @@ interface operations {
|
|
|
12195
12270
|
};
|
|
12196
12271
|
requestBody?: never;
|
|
12197
12272
|
responses: {
|
|
12198
|
-
/** @description Suppressions, optionally filtered by origin (bounce, complaint or manual). Rows whose address was erased (GDPR/LGPD) keep blocking sends but are hidden from the list and from lookups by email; they are reachable by id only. */
|
|
12273
|
+
/** @description Suppressions, optionally filtered by origin (bounce, complaint or manual). Entries for single addresses by default; `kind=domain` lists the domain entries, `kind=all` both. Rows whose address was erased (GDPR/LGPD) keep blocking sends but are hidden from the list and from lookups by email; they are reachable by id only. */
|
|
12199
12274
|
200: {
|
|
12200
12275
|
headers: {
|
|
12201
12276
|
"X-Request-Id": components["headers"]["RequestId"];
|
|
@@ -12262,7 +12337,7 @@ interface operations {
|
|
|
12262
12337
|
};
|
|
12263
12338
|
};
|
|
12264
12339
|
responses: {
|
|
12265
|
-
/** @description Address blocked with the given origin (bounce, complaint or manual; default manual). Idempotent: an address already suppressed keeps its entry and origin and its existing id is returned. */
|
|
12340
|
+
/** @description Address blocked with the given origin (bounce, complaint or manual; default manual), or, with `domain`, every address at that exact domain (a manual entry). Idempotent: an address or domain already suppressed keeps its entry and origin and its existing id is returned. */
|
|
12266
12341
|
200: {
|
|
12267
12342
|
headers: {
|
|
12268
12343
|
"X-Request-Id": components["headers"]["RequestId"];
|
|
@@ -20944,6 +21019,7 @@ declare class Deliverability extends Resource {
|
|
|
20944
21019
|
insufficient_outcome_data: boolean;
|
|
20945
21020
|
guardrail_status: "ok" | "warning" | "paused";
|
|
20946
21021
|
score_version: number;
|
|
21022
|
+
domains: components["schemas"]["DomainDeliverability"][];
|
|
20947
21023
|
}>>;
|
|
20948
21024
|
}
|
|
20949
21025
|
declare class Agent extends Resource {
|
|
@@ -23203,7 +23279,10 @@ declare class Suppressions extends Resource {
|
|
|
23203
23279
|
object: "list";
|
|
23204
23280
|
data: {
|
|
23205
23281
|
id: string;
|
|
23206
|
-
email: string;
|
|
23282
|
+
email: string | null;
|
|
23283
|
+
kind: "email" | "domain";
|
|
23284
|
+
domain: string | null;
|
|
23285
|
+
removable: boolean;
|
|
23207
23286
|
origin: "bounce" | "complaint" | "manual";
|
|
23208
23287
|
source_id: string | null;
|
|
23209
23288
|
created_at: string;
|
|
@@ -23215,7 +23294,10 @@ declare class Suppressions extends Resource {
|
|
|
23215
23294
|
/** `GET /suppressions/{id}` */
|
|
23216
23295
|
get(id: string, options?: RequestOptions): Promise<Result<{
|
|
23217
23296
|
id: string;
|
|
23218
|
-
email: string;
|
|
23297
|
+
email: string | null;
|
|
23298
|
+
kind: "email" | "domain";
|
|
23299
|
+
domain: string | null;
|
|
23300
|
+
removable: boolean;
|
|
23219
23301
|
origin: "bounce" | "complaint" | "manual";
|
|
23220
23302
|
source_id: string | null;
|
|
23221
23303
|
created_at: string;
|
|
@@ -23390,7 +23472,7 @@ declare function paginate<Item extends {
|
|
|
23390
23472
|
id: string;
|
|
23391
23473
|
}>(fetchPage: (cursor: Cursor) => Promise<Result<CursorPage<Item>>>, start?: Cursor): AsyncGenerator<Item, void, undefined>;
|
|
23392
23474
|
|
|
23393
|
-
declare const VERSION = "0.2.
|
|
23475
|
+
declare const VERSION = "0.2.2";
|
|
23394
23476
|
|
|
23395
23477
|
export { APIConnectionError, APIError, APITimeoutError, AuthenticationError, BillionSend, BillionSendError, ConflictError, DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, EventStream, NotFoundError, PermissionDeniedError, RateLimitError, STREAM_GAP_EVENT, VERSION, ValidationError, WEBHOOK_TOLERANCE_SECONDS, WebhookVerificationError, paginate, verifyWebhook };
|
|
23396
|
-
export type { $defs, AddContactSegmentResponse, AddInboxThreadLabelsRequest, AgentAccountStatus, AgentClaimEmail, AgentSignupRequest, AgentSignupResponse, ApiPath, AutomationConnection, AutomationIdResponse, AutomationIssue, AutomationMetricsResponse, AutomationStep, BatchAddSuppressionsRequest, BatchAddSuppressionsResponse, BatchContactsRequest, BatchContactsResponse, BatchEmailRequest, BatchEmailResponse, BatchGetContactsRequest, BatchGetContactsResponse, BatchRemoveContactsRequest, BatchRemoveContactsResponse, BatchRemoveSuppressionsRequest, BatchRemoveSuppressionsResponse, BatchRequestOptions, BatchSendOptions, BatchValidation, BillionSendOptions, BroadcastIdResponse, CancelAutomationRunResponse, CancelBroadcastResponse, CancelEmailResponse, ClaimDomainRequest, ClientEngagementResponse, ContactIdResponse, ContactImport, ContactPreferencesLinkResponse, ContactPropertyIdResponse, CountryEngagementResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateAutomationRequest, CreateBroadcastRequest, CreateContactImportForm, CreateContactImportParams, CreateContactImportResponse, CreateContactPropertyRequest, CreateContactRequest, CreateDomainRequest, CreateDomainResponse, CreateEventRequest, CreateEventResponse, CreateInboxDraftRequest, CreateInboxLabelRequest, CreateInboxRequest, CreateSegmentRequest, CreateSuppressionRequest, CreateTemplateRequest, CreateTopicRequest, CreateUnsubscribeRequest, CreateWebhookRequest, CreateWebhookResponse, Cursor, CursorPage, DeleteInboxDraftResponse, DeleteReceivedEmailResponse, DeliverabilityResponse, DomainClaim, DuplicateBroadcastResponse, EmailInsightsResponse, EmailMetrics, ErrorResponse, ErrorShape, EstimateVerificationRequest, EstimateVerificationResponse, Event, EventStreamOptions, GetAutomationResponse, GetAutomationRunResponse, GetBroadcastResponse, GetContactPropertyResponse, GetContactResponse, GetDomainResponse, GetEmailResponse, GetLogResponse, GetReceivedAttachmentResponse, GetReceivedAttachmentTextResponse, GetReceivedEmailResponse, GetSegmentResponse, GetSentAttachmentResponse, GetSuppressionResponse, GetTemplateResponse, GetWebhookEventResponse, GetWebhookResponse, HeaderRequestId, HttpMethod, IdempotentRequestOptions, Inbox, InboxAgent, InboxDraft, InboxEventData, InboxEventPayload, InboxEventType, InboxForwardRequest, InboxLabel, InboxRelease, InboxReplyRequest, InboxSafety$1 as InboxSafety, InboxSafetyPatch, InboxSendRequest, InboxSentEmail, InboxStreamEvent, InboxStreamItem, InboxThread, InboxThreadEmail, InboxThreadLabels, LinkClicksResponse, ListApiKeysResponse, ListAutomationRunsResponse, ListAutomationsResponse, ListBroadcastClickedLinksResponse, ListBroadcastRecipientsResponse, ListBroadcastsResponse, ListContactImportsResponse, ListContactPropertiesResponse, ListContactTopicsResponse, ListContactsResponse, ListDomainsResponse, ListEmailsResponse, ListEventsResponse, ListInboxDraftsResponse, ListInboxLabelsResponse, ListInboxThreadEmailsResponse, ListInboxThreadsResponse, ListInboxesResponse, ListItem, ListLogsResponse, ListOAuthGrantsResponse, ListQuarantinedEmailsResponse, ListReceivedAttachmentsResponse, ListReceivedEmailsResponse, ListSegmentsResponse, ListSentAttachmentsResponse, ListSuppressionsResponse, ListTemplatesResponse, ListTopicsResponse, ListUnsubscribesResponse, ListVerificationsResponse, ListWebhookEventAttemptsResponse, ListWebhookEventsResponse, ListWebhooksResponse, OAuthGrant, PathParams, QueryParams, ReceivedEmailForwardRequest, ReceivedEmailReplyRequest, ReceivedEmailSendResponse, ReleaseQuarantinedRequest, RemoveApiKeyResponse, RemoveAutomationResponse, RemoveBroadcastResponse, RemoveContactPropertyResponse, RemoveContactResponse, RemoveContactSegmentResponse, RemoveDomainResponse, RemoveEmailResponse, RemoveEventResponse, RemoveInboxLabelResponse, RemoveInboxResponse, RemoveInboxThreadResponse, RemoveSegmentResponse, RemoveSuppressionResponse, RemoveTemplateResponse, RemoveTopicResponse, RemoveWebhookResponse, ReplayWebhookEventResponse, RequestBody, RequestOptions, ResponseBody, ResponseHeaders, Result, RevokeOAuthGrantResponse, RotateWebhookSecretRequest, RotateWebhookSecretResponse, SearchInboxThreadsResponse, SegmentFilter, SegmentResponse, SendBroadcastRequest, SendBroadcastResponse, SendEmailParams, SendEmailRequest, SendEmailResponse, SendEventRequest, SendEventResponse, SendInboxDraftRequest, SendTemplate, SetInboxThreadLabelsRequest, ShareEmailRequest, ShareEmailResponse, SimulateAutomationRequest, SimulateAutomationResponse, StartVerificationRequest, StartVerificationResponse, StopAutomationResponse, StreamGapEvent, SuppressionIdResponse, TemplateIdResponse, TemplateVariable, TemplateVariableInput, TopicIdResponse, TopicResponse, UnshareEmailResponse, UnsubscribeResponse, UpdateApiKeyRequest, UpdateApiKeyResponse, UpdateAutomationRequest, UpdateBroadcastRequest, UpdateContactPropertyRequest, UpdateContactRequest, UpdateContactTopicsRequest, UpdateContactTopicsResponse, UpdateDomainRequest, UpdateEmailRequest, UpdateEmailResponse, UpdateEventRequest, UpdateEventResponse, UpdateInboxAgentRequest, UpdateInboxAgentResponse, UpdateInboxDraftRequest, UpdateInboxLabelRequest, UpdateInboxRequest, UpdateInboxThreadRequest, UpdateSegmentRequest, UpdateTemplateRequest, UpdateTopicRequest, UpdateWebhookRequest, UsageResponse, ValidateAutomationRequest, ValidateAutomationResponse, VerificationAvailabilityResponse, VerificationCode, VerificationRun, VerificationTarget, VerifyWebhookOptions, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookIdResponse, components, operations, paths, webhooks };
|
|
23478
|
+
export type { $defs, AddContactSegmentResponse, AddInboxThreadLabelsRequest, AgentAccountStatus, AgentClaimEmail, AgentSignupRequest, AgentSignupResponse, ApiPath, AutomationConnection, AutomationIdResponse, AutomationIssue, AutomationMetricsResponse, AutomationStep, BatchAddSuppressionsRequest, BatchAddSuppressionsResponse, BatchContactsRequest, BatchContactsResponse, BatchEmailRequest, BatchEmailResponse, BatchGetContactsRequest, BatchGetContactsResponse, BatchRemoveContactsRequest, BatchRemoveContactsResponse, BatchRemoveSuppressionsRequest, BatchRemoveSuppressionsResponse, BatchRequestOptions, BatchSendOptions, BatchValidation, BillionSendOptions, BroadcastIdResponse, CancelAutomationRunResponse, CancelBroadcastResponse, CancelEmailResponse, ClaimDomainRequest, ClientEngagementResponse, ContactIdResponse, ContactImport, ContactPreferencesLinkResponse, ContactPropertyIdResponse, CountryEngagementResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateAutomationRequest, CreateBroadcastRequest, CreateContactImportForm, CreateContactImportParams, CreateContactImportResponse, CreateContactPropertyRequest, CreateContactRequest, CreateDomainRequest, CreateDomainResponse, CreateEventRequest, CreateEventResponse, CreateInboxDraftRequest, CreateInboxLabelRequest, CreateInboxRequest, CreateSegmentRequest, CreateSuppressionRequest, CreateTemplateRequest, CreateTopicRequest, CreateUnsubscribeRequest, CreateWebhookRequest, CreateWebhookResponse, Cursor, CursorPage, DeleteInboxDraftResponse, DeleteReceivedEmailResponse, DeliverabilityResponse, DomainClaim, DomainDeliverability, DuplicateBroadcastResponse, EmailInsightsResponse, EmailMetrics, ErrorResponse, ErrorShape, EstimateVerificationRequest, EstimateVerificationResponse, Event, EventStreamOptions, GetAutomationResponse, GetAutomationRunResponse, GetBroadcastResponse, GetContactPropertyResponse, GetContactResponse, GetDomainResponse, GetEmailResponse, GetLogResponse, GetReceivedAttachmentResponse, GetReceivedAttachmentTextResponse, GetReceivedEmailResponse, GetSegmentResponse, GetSentAttachmentResponse, GetSuppressionResponse, GetTemplateResponse, GetWebhookEventResponse, GetWebhookResponse, HeaderRequestId, HttpMethod, IdempotentRequestOptions, Inbox, InboxAgent, InboxDraft, InboxEventData, InboxEventPayload, InboxEventType, InboxForwardRequest, InboxLabel, InboxRelease, InboxReplyRequest, InboxSafety$1 as InboxSafety, InboxSafetyPatch, InboxSendRequest, InboxSentEmail, InboxStreamEvent, InboxStreamItem, InboxThread, InboxThreadEmail, InboxThreadLabels, LinkClicksResponse, ListApiKeysResponse, ListAutomationRunsResponse, ListAutomationsResponse, ListBroadcastClickedLinksResponse, ListBroadcastRecipientsResponse, ListBroadcastsResponse, ListContactImportsResponse, ListContactPropertiesResponse, ListContactTopicsResponse, ListContactsResponse, ListDomainsResponse, ListEmailsResponse, ListEventsResponse, ListInboxDraftsResponse, ListInboxLabelsResponse, ListInboxThreadEmailsResponse, ListInboxThreadsResponse, ListInboxesResponse, ListItem, ListLogsResponse, ListOAuthGrantsResponse, ListQuarantinedEmailsResponse, ListReceivedAttachmentsResponse, ListReceivedEmailsResponse, ListSegmentsResponse, ListSentAttachmentsResponse, ListSuppressionsResponse, ListTemplatesResponse, ListTopicsResponse, ListUnsubscribesResponse, ListVerificationsResponse, ListWebhookEventAttemptsResponse, ListWebhookEventsResponse, ListWebhooksResponse, OAuthGrant, PathParams, QueryParams, ReceivedEmailForwardRequest, ReceivedEmailReplyRequest, ReceivedEmailSendResponse, ReleaseQuarantinedRequest, RemoveApiKeyResponse, RemoveAutomationResponse, RemoveBroadcastResponse, RemoveContactPropertyResponse, RemoveContactResponse, RemoveContactSegmentResponse, RemoveDomainResponse, RemoveEmailResponse, RemoveEventResponse, RemoveInboxLabelResponse, RemoveInboxResponse, RemoveInboxThreadResponse, RemoveSegmentResponse, RemoveSuppressionResponse, RemoveTemplateResponse, RemoveTopicResponse, RemoveWebhookResponse, ReplayWebhookEventResponse, RequestBody, RequestOptions, ResponseBody, ResponseHeaders, Result, RevokeOAuthGrantResponse, RotateWebhookSecretRequest, RotateWebhookSecretResponse, SearchInboxThreadsResponse, SegmentFilter, SegmentResponse, SendBroadcastRequest, SendBroadcastResponse, SendEmailParams, SendEmailRequest, SendEmailResponse, SendEventRequest, SendEventResponse, SendInboxDraftRequest, SendTemplate, SetInboxThreadLabelsRequest, ShareEmailRequest, ShareEmailResponse, SimulateAutomationRequest, SimulateAutomationResponse, StartVerificationRequest, StartVerificationResponse, StopAutomationResponse, StreamGapEvent, SuppressionIdResponse, TemplateIdResponse, TemplateVariable, TemplateVariableInput, TopicIdResponse, TopicResponse, UnshareEmailResponse, UnsubscribeResponse, UpdateApiKeyRequest, UpdateApiKeyResponse, UpdateAutomationRequest, UpdateBroadcastRequest, UpdateContactPropertyRequest, UpdateContactRequest, UpdateContactTopicsRequest, UpdateContactTopicsResponse, UpdateDomainRequest, UpdateEmailRequest, UpdateEmailResponse, UpdateEventRequest, UpdateEventResponse, UpdateInboxAgentRequest, UpdateInboxAgentResponse, UpdateInboxDraftRequest, UpdateInboxLabelRequest, UpdateInboxRequest, UpdateInboxThreadRequest, UpdateSegmentRequest, UpdateTemplateRequest, UpdateTopicRequest, UpdateWebhookRequest, UsageResponse, ValidateAutomationRequest, ValidateAutomationResponse, VerificationAvailabilityResponse, VerificationCode, VerificationRun, VerificationTarget, VerifyWebhookOptions, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookIdResponse, components, operations, paths, webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -3542,7 +3542,10 @@ interface components {
|
|
|
3542
3542
|
* @enum {string}
|
|
3543
3543
|
*/
|
|
3544
3544
|
region?: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
|
|
3545
|
-
/**
|
|
3545
|
+
/**
|
|
3546
|
+
* @description The MAIL FROM (return-path) subdomain, fixed when the domain is added: it cannot be changed later (delete and re-add the domain). Defaults to `bounce`, not `send`, so a domain that still sends through another provider whose return path is `send` keeps its bounces working while both send.
|
|
3547
|
+
* @default bounce
|
|
3548
|
+
*/
|
|
3546
3549
|
custom_return_path?: string;
|
|
3547
3550
|
/** @description Inject a tracking pixel served from the tracking host and record email.opened events. Off by default. */
|
|
3548
3551
|
open_tracking?: boolean;
|
|
@@ -3758,6 +3761,8 @@ interface components {
|
|
|
3758
3761
|
logo_radius?: "square" | "gentle" | "rounded" | "circle" | null;
|
|
3759
3762
|
};
|
|
3760
3763
|
tls?: unknown;
|
|
3764
|
+
/** @description Not changeable: the return-path subdomain is fixed when the domain is added. Sending it answers 422; delete and re-add the domain to use another. */
|
|
3765
|
+
custom_return_path?: unknown;
|
|
3761
3766
|
/** @description What the domain is used for (sending, receiving); omitted fields keep their value. */
|
|
3762
3767
|
capabilities?: {
|
|
3763
3768
|
/**
|
|
@@ -3829,7 +3834,10 @@ interface components {
|
|
|
3829
3834
|
* @enum {string}
|
|
3830
3835
|
*/
|
|
3831
3836
|
region?: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
|
|
3832
|
-
/**
|
|
3837
|
+
/**
|
|
3838
|
+
* @description The MAIL FROM (return-path) subdomain, fixed when the domain is added: it cannot be changed later (delete and re-add the domain). Defaults to `bounce`, not `send`, so a domain that still sends through another provider whose return path is `send` keeps its bounces working while both send.
|
|
3839
|
+
* @default bounce
|
|
3840
|
+
*/
|
|
3833
3841
|
custom_return_path?: string;
|
|
3834
3842
|
/** @description Inject a tracking pixel served from the tracking host and record email.opened events. Off by default. */
|
|
3835
3843
|
open_tracking?: boolean;
|
|
@@ -4044,7 +4052,9 @@ interface components {
|
|
|
4044
4052
|
};
|
|
4045
4053
|
BatchAddSuppressionsRequest: {
|
|
4046
4054
|
/** @description Addresses to block, up to 1000; duplicates collapse */
|
|
4047
|
-
emails
|
|
4055
|
+
emails?: string[];
|
|
4056
|
+
/** @description BillionSend extension: domains to block entirely (every address at that exact domain, subdomains not covered), up to 1000; recorded as manual entries, consumer mailbox providers such as gmail.com are refused. Their entries follow the emails' in the response */
|
|
4057
|
+
domains?: string[];
|
|
4048
4058
|
/**
|
|
4049
4059
|
* @description Origin recorded on rows this request creates (default manual): bounce, complaint or manual; an address already suppressed keeps its origin
|
|
4050
4060
|
* @enum {string}
|
|
@@ -4087,7 +4097,9 @@ interface components {
|
|
|
4087
4097
|
* Format: email
|
|
4088
4098
|
* @description Bare email address to block; stored normalized (lowercase)
|
|
4089
4099
|
*/
|
|
4090
|
-
email
|
|
4100
|
+
email?: string;
|
|
4101
|
+
/** @description BillionSend extension: block every address at this exact domain (subdomains are not covered), instead of one email. Recorded as a manual entry; consumer mailbox providers such as gmail.com are refused */
|
|
4102
|
+
domain?: string;
|
|
4091
4103
|
/**
|
|
4092
4104
|
* @description Origin recorded on rows this request creates (default manual): bounce, complaint or manual; an address already suppressed keeps its origin
|
|
4093
4105
|
* @enum {string}
|
|
@@ -4100,7 +4112,17 @@ interface components {
|
|
|
4100
4112
|
data: {
|
|
4101
4113
|
/** Format: uuid */
|
|
4102
4114
|
id: string;
|
|
4103
|
-
|
|
4115
|
+
/** @description The blocked address; null on a domain entry */
|
|
4116
|
+
email: string | null;
|
|
4117
|
+
/**
|
|
4118
|
+
* @description BillionSend extension: an entry for one address, or for every address at one domain
|
|
4119
|
+
* @enum {string}
|
|
4120
|
+
*/
|
|
4121
|
+
kind: "email" | "domain";
|
|
4122
|
+
/** @description The blocked domain; null on an email entry */
|
|
4123
|
+
domain: string | null;
|
|
4124
|
+
/** @description BillionSend extension: false for a permanent entry (a bounce or a complaint) */
|
|
4125
|
+
removable: boolean;
|
|
4104
4126
|
/** @enum {string} */
|
|
4105
4127
|
origin: "bounce" | "complaint" | "manual";
|
|
4106
4128
|
/**
|
|
@@ -4115,7 +4137,17 @@ interface components {
|
|
|
4115
4137
|
GetSuppressionResponse: {
|
|
4116
4138
|
/** Format: uuid */
|
|
4117
4139
|
id: string;
|
|
4118
|
-
|
|
4140
|
+
/** @description The blocked address; null on a domain entry */
|
|
4141
|
+
email: string | null;
|
|
4142
|
+
/**
|
|
4143
|
+
* @description BillionSend extension: an entry for one address, or for every address at one domain
|
|
4144
|
+
* @enum {string}
|
|
4145
|
+
*/
|
|
4146
|
+
kind: "email" | "domain";
|
|
4147
|
+
/** @description The blocked domain; null on an email entry */
|
|
4148
|
+
domain: string | null;
|
|
4149
|
+
/** @description BillionSend extension: false for a permanent entry (a bounce or a complaint) */
|
|
4150
|
+
removable: boolean;
|
|
4119
4151
|
/** @enum {string} */
|
|
4120
4152
|
origin: "bounce" | "complaint" | "manual";
|
|
4121
4153
|
/**
|
|
@@ -6301,6 +6333,46 @@ interface components {
|
|
|
6301
6333
|
/** @enum {string} */
|
|
6302
6334
|
guardrail_status: "ok" | "warning" | "paused";
|
|
6303
6335
|
score_version: number;
|
|
6336
|
+
/** @description Each sending domain's own standing over the trailing 7 days (BillionSend extension). guardrail_status is the team as a whole */
|
|
6337
|
+
domains: components["schemas"]["DomainDeliverability"][];
|
|
6338
|
+
};
|
|
6339
|
+
DomainDeliverability: {
|
|
6340
|
+
/**
|
|
6341
|
+
* Format: uuid
|
|
6342
|
+
* @description The sending domain's id; null for the team's shared-domain addresses
|
|
6343
|
+
*/
|
|
6344
|
+
domain_id: string | null;
|
|
6345
|
+
/** @description The sending domain's name; null for the shared-domain addresses */
|
|
6346
|
+
domain: string | null;
|
|
6347
|
+
/**
|
|
6348
|
+
* @description The domain's own standing, judged on its own mail with the team's windows and lines. paused refuses new sends from this domain (403 domain_sending_paused) while the team's other domains keep sending
|
|
6349
|
+
* @enum {string}
|
|
6350
|
+
*/
|
|
6351
|
+
status: "ok" | "warning" | "paused";
|
|
6352
|
+
/** @description Emails sent from the domain in the window */
|
|
6353
|
+
emails_sent: number;
|
|
6354
|
+
hard_bounce_rate: number;
|
|
6355
|
+
complaint_rate: number;
|
|
6356
|
+
hard_bounces: number;
|
|
6357
|
+
complaints: number;
|
|
6358
|
+
delivered: number;
|
|
6359
|
+
window_days: number;
|
|
6360
|
+
/**
|
|
6361
|
+
* @description status, or insufficient while the window holds fewer than 100 sends and no line has fired
|
|
6362
|
+
* @enum {string}
|
|
6363
|
+
*/
|
|
6364
|
+
tier: "ok" | "warning" | "paused" | "insufficient";
|
|
6365
|
+
/**
|
|
6366
|
+
* @description Whether the domain's mail is paused by its own rates, by the team's as a whole, or both; null when not paused
|
|
6367
|
+
* @enum {string|null}
|
|
6368
|
+
*/
|
|
6369
|
+
paused_by: "domain" | "team" | "both" | null;
|
|
6370
|
+
/** @description Hard-bounce rate over today and yesterday (UTC), the window the pause line judges */
|
|
6371
|
+
recent_hard_bounce_rate: number;
|
|
6372
|
+
/** @description Complaint rate over today and yesterday (UTC) */
|
|
6373
|
+
recent_complaint_rate: number;
|
|
6374
|
+
/** @description 1 minus the rate over its pause line, on the metric nearer to its line (recent rates): 1 with no events, 0 at the line, negative past it */
|
|
6375
|
+
pause_margin: number;
|
|
6304
6376
|
};
|
|
6305
6377
|
ListEmailsResponse: {
|
|
6306
6378
|
/** @enum {string} */
|
|
@@ -6551,6 +6623,7 @@ type UnshareEmailResponse = components["schemas"]["UnshareEmailResponse"];
|
|
|
6551
6623
|
type GetEmailResponse = components["schemas"]["GetEmailResponse"];
|
|
6552
6624
|
type EmailInsightsResponse = components["schemas"]["EmailInsightsResponse"];
|
|
6553
6625
|
type DeliverabilityResponse = components["schemas"]["DeliverabilityResponse"];
|
|
6626
|
+
type DomainDeliverability = components["schemas"]["DomainDeliverability"];
|
|
6554
6627
|
type ListEmailsResponse = components["schemas"]["ListEmailsResponse"];
|
|
6555
6628
|
type RemoveEmailResponse = components["schemas"]["RemoveEmailResponse"];
|
|
6556
6629
|
type HeaderRequestId = components["headers"]["RequestId"];
|
|
@@ -12188,6 +12261,8 @@ interface operations {
|
|
|
12188
12261
|
before?: string;
|
|
12189
12262
|
/** @description Only suppressions of this origin: bounce, complaint or manual */
|
|
12190
12263
|
origin?: "bounce" | "complaint" | "manual";
|
|
12264
|
+
/** @description BillionSend extension. email (default): entries for single addresses; domain: entries for a whole domain; all: both */
|
|
12265
|
+
kind?: "email" | "domain" | "all";
|
|
12191
12266
|
};
|
|
12192
12267
|
header?: never;
|
|
12193
12268
|
path?: never;
|
|
@@ -12195,7 +12270,7 @@ interface operations {
|
|
|
12195
12270
|
};
|
|
12196
12271
|
requestBody?: never;
|
|
12197
12272
|
responses: {
|
|
12198
|
-
/** @description Suppressions, optionally filtered by origin (bounce, complaint or manual). Rows whose address was erased (GDPR/LGPD) keep blocking sends but are hidden from the list and from lookups by email; they are reachable by id only. */
|
|
12273
|
+
/** @description Suppressions, optionally filtered by origin (bounce, complaint or manual). Entries for single addresses by default; `kind=domain` lists the domain entries, `kind=all` both. Rows whose address was erased (GDPR/LGPD) keep blocking sends but are hidden from the list and from lookups by email; they are reachable by id only. */
|
|
12199
12274
|
200: {
|
|
12200
12275
|
headers: {
|
|
12201
12276
|
"X-Request-Id": components["headers"]["RequestId"];
|
|
@@ -12262,7 +12337,7 @@ interface operations {
|
|
|
12262
12337
|
};
|
|
12263
12338
|
};
|
|
12264
12339
|
responses: {
|
|
12265
|
-
/** @description Address blocked with the given origin (bounce, complaint or manual; default manual). Idempotent: an address already suppressed keeps its entry and origin and its existing id is returned. */
|
|
12340
|
+
/** @description Address blocked with the given origin (bounce, complaint or manual; default manual), or, with `domain`, every address at that exact domain (a manual entry). Idempotent: an address or domain already suppressed keeps its entry and origin and its existing id is returned. */
|
|
12266
12341
|
200: {
|
|
12267
12342
|
headers: {
|
|
12268
12343
|
"X-Request-Id": components["headers"]["RequestId"];
|
|
@@ -20944,6 +21019,7 @@ declare class Deliverability extends Resource {
|
|
|
20944
21019
|
insufficient_outcome_data: boolean;
|
|
20945
21020
|
guardrail_status: "ok" | "warning" | "paused";
|
|
20946
21021
|
score_version: number;
|
|
21022
|
+
domains: components["schemas"]["DomainDeliverability"][];
|
|
20947
21023
|
}>>;
|
|
20948
21024
|
}
|
|
20949
21025
|
declare class Agent extends Resource {
|
|
@@ -23203,7 +23279,10 @@ declare class Suppressions extends Resource {
|
|
|
23203
23279
|
object: "list";
|
|
23204
23280
|
data: {
|
|
23205
23281
|
id: string;
|
|
23206
|
-
email: string;
|
|
23282
|
+
email: string | null;
|
|
23283
|
+
kind: "email" | "domain";
|
|
23284
|
+
domain: string | null;
|
|
23285
|
+
removable: boolean;
|
|
23207
23286
|
origin: "bounce" | "complaint" | "manual";
|
|
23208
23287
|
source_id: string | null;
|
|
23209
23288
|
created_at: string;
|
|
@@ -23215,7 +23294,10 @@ declare class Suppressions extends Resource {
|
|
|
23215
23294
|
/** `GET /suppressions/{id}` */
|
|
23216
23295
|
get(id: string, options?: RequestOptions): Promise<Result<{
|
|
23217
23296
|
id: string;
|
|
23218
|
-
email: string;
|
|
23297
|
+
email: string | null;
|
|
23298
|
+
kind: "email" | "domain";
|
|
23299
|
+
domain: string | null;
|
|
23300
|
+
removable: boolean;
|
|
23219
23301
|
origin: "bounce" | "complaint" | "manual";
|
|
23220
23302
|
source_id: string | null;
|
|
23221
23303
|
created_at: string;
|
|
@@ -23390,7 +23472,7 @@ declare function paginate<Item extends {
|
|
|
23390
23472
|
id: string;
|
|
23391
23473
|
}>(fetchPage: (cursor: Cursor) => Promise<Result<CursorPage<Item>>>, start?: Cursor): AsyncGenerator<Item, void, undefined>;
|
|
23392
23474
|
|
|
23393
|
-
declare const VERSION = "0.2.
|
|
23475
|
+
declare const VERSION = "0.2.2";
|
|
23394
23476
|
|
|
23395
23477
|
export { APIConnectionError, APIError, APITimeoutError, AuthenticationError, BillionSend, BillionSendError, ConflictError, DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, EventStream, NotFoundError, PermissionDeniedError, RateLimitError, STREAM_GAP_EVENT, VERSION, ValidationError, WEBHOOK_TOLERANCE_SECONDS, WebhookVerificationError, paginate, verifyWebhook };
|
|
23396
|
-
export type { $defs, AddContactSegmentResponse, AddInboxThreadLabelsRequest, AgentAccountStatus, AgentClaimEmail, AgentSignupRequest, AgentSignupResponse, ApiPath, AutomationConnection, AutomationIdResponse, AutomationIssue, AutomationMetricsResponse, AutomationStep, BatchAddSuppressionsRequest, BatchAddSuppressionsResponse, BatchContactsRequest, BatchContactsResponse, BatchEmailRequest, BatchEmailResponse, BatchGetContactsRequest, BatchGetContactsResponse, BatchRemoveContactsRequest, BatchRemoveContactsResponse, BatchRemoveSuppressionsRequest, BatchRemoveSuppressionsResponse, BatchRequestOptions, BatchSendOptions, BatchValidation, BillionSendOptions, BroadcastIdResponse, CancelAutomationRunResponse, CancelBroadcastResponse, CancelEmailResponse, ClaimDomainRequest, ClientEngagementResponse, ContactIdResponse, ContactImport, ContactPreferencesLinkResponse, ContactPropertyIdResponse, CountryEngagementResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateAutomationRequest, CreateBroadcastRequest, CreateContactImportForm, CreateContactImportParams, CreateContactImportResponse, CreateContactPropertyRequest, CreateContactRequest, CreateDomainRequest, CreateDomainResponse, CreateEventRequest, CreateEventResponse, CreateInboxDraftRequest, CreateInboxLabelRequest, CreateInboxRequest, CreateSegmentRequest, CreateSuppressionRequest, CreateTemplateRequest, CreateTopicRequest, CreateUnsubscribeRequest, CreateWebhookRequest, CreateWebhookResponse, Cursor, CursorPage, DeleteInboxDraftResponse, DeleteReceivedEmailResponse, DeliverabilityResponse, DomainClaim, DuplicateBroadcastResponse, EmailInsightsResponse, EmailMetrics, ErrorResponse, ErrorShape, EstimateVerificationRequest, EstimateVerificationResponse, Event, EventStreamOptions, GetAutomationResponse, GetAutomationRunResponse, GetBroadcastResponse, GetContactPropertyResponse, GetContactResponse, GetDomainResponse, GetEmailResponse, GetLogResponse, GetReceivedAttachmentResponse, GetReceivedAttachmentTextResponse, GetReceivedEmailResponse, GetSegmentResponse, GetSentAttachmentResponse, GetSuppressionResponse, GetTemplateResponse, GetWebhookEventResponse, GetWebhookResponse, HeaderRequestId, HttpMethod, IdempotentRequestOptions, Inbox, InboxAgent, InboxDraft, InboxEventData, InboxEventPayload, InboxEventType, InboxForwardRequest, InboxLabel, InboxRelease, InboxReplyRequest, InboxSafety$1 as InboxSafety, InboxSafetyPatch, InboxSendRequest, InboxSentEmail, InboxStreamEvent, InboxStreamItem, InboxThread, InboxThreadEmail, InboxThreadLabels, LinkClicksResponse, ListApiKeysResponse, ListAutomationRunsResponse, ListAutomationsResponse, ListBroadcastClickedLinksResponse, ListBroadcastRecipientsResponse, ListBroadcastsResponse, ListContactImportsResponse, ListContactPropertiesResponse, ListContactTopicsResponse, ListContactsResponse, ListDomainsResponse, ListEmailsResponse, ListEventsResponse, ListInboxDraftsResponse, ListInboxLabelsResponse, ListInboxThreadEmailsResponse, ListInboxThreadsResponse, ListInboxesResponse, ListItem, ListLogsResponse, ListOAuthGrantsResponse, ListQuarantinedEmailsResponse, ListReceivedAttachmentsResponse, ListReceivedEmailsResponse, ListSegmentsResponse, ListSentAttachmentsResponse, ListSuppressionsResponse, ListTemplatesResponse, ListTopicsResponse, ListUnsubscribesResponse, ListVerificationsResponse, ListWebhookEventAttemptsResponse, ListWebhookEventsResponse, ListWebhooksResponse, OAuthGrant, PathParams, QueryParams, ReceivedEmailForwardRequest, ReceivedEmailReplyRequest, ReceivedEmailSendResponse, ReleaseQuarantinedRequest, RemoveApiKeyResponse, RemoveAutomationResponse, RemoveBroadcastResponse, RemoveContactPropertyResponse, RemoveContactResponse, RemoveContactSegmentResponse, RemoveDomainResponse, RemoveEmailResponse, RemoveEventResponse, RemoveInboxLabelResponse, RemoveInboxResponse, RemoveInboxThreadResponse, RemoveSegmentResponse, RemoveSuppressionResponse, RemoveTemplateResponse, RemoveTopicResponse, RemoveWebhookResponse, ReplayWebhookEventResponse, RequestBody, RequestOptions, ResponseBody, ResponseHeaders, Result, RevokeOAuthGrantResponse, RotateWebhookSecretRequest, RotateWebhookSecretResponse, SearchInboxThreadsResponse, SegmentFilter, SegmentResponse, SendBroadcastRequest, SendBroadcastResponse, SendEmailParams, SendEmailRequest, SendEmailResponse, SendEventRequest, SendEventResponse, SendInboxDraftRequest, SendTemplate, SetInboxThreadLabelsRequest, ShareEmailRequest, ShareEmailResponse, SimulateAutomationRequest, SimulateAutomationResponse, StartVerificationRequest, StartVerificationResponse, StopAutomationResponse, StreamGapEvent, SuppressionIdResponse, TemplateIdResponse, TemplateVariable, TemplateVariableInput, TopicIdResponse, TopicResponse, UnshareEmailResponse, UnsubscribeResponse, UpdateApiKeyRequest, UpdateApiKeyResponse, UpdateAutomationRequest, UpdateBroadcastRequest, UpdateContactPropertyRequest, UpdateContactRequest, UpdateContactTopicsRequest, UpdateContactTopicsResponse, UpdateDomainRequest, UpdateEmailRequest, UpdateEmailResponse, UpdateEventRequest, UpdateEventResponse, UpdateInboxAgentRequest, UpdateInboxAgentResponse, UpdateInboxDraftRequest, UpdateInboxLabelRequest, UpdateInboxRequest, UpdateInboxThreadRequest, UpdateSegmentRequest, UpdateTemplateRequest, UpdateTopicRequest, UpdateWebhookRequest, UsageResponse, ValidateAutomationRequest, ValidateAutomationResponse, VerificationAvailabilityResponse, VerificationCode, VerificationRun, VerificationTarget, VerifyWebhookOptions, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookIdResponse, components, operations, paths, webhooks };
|
|
23478
|
+
export type { $defs, AddContactSegmentResponse, AddInboxThreadLabelsRequest, AgentAccountStatus, AgentClaimEmail, AgentSignupRequest, AgentSignupResponse, ApiPath, AutomationConnection, AutomationIdResponse, AutomationIssue, AutomationMetricsResponse, AutomationStep, BatchAddSuppressionsRequest, BatchAddSuppressionsResponse, BatchContactsRequest, BatchContactsResponse, BatchEmailRequest, BatchEmailResponse, BatchGetContactsRequest, BatchGetContactsResponse, BatchRemoveContactsRequest, BatchRemoveContactsResponse, BatchRemoveSuppressionsRequest, BatchRemoveSuppressionsResponse, BatchRequestOptions, BatchSendOptions, BatchValidation, BillionSendOptions, BroadcastIdResponse, CancelAutomationRunResponse, CancelBroadcastResponse, CancelEmailResponse, ClaimDomainRequest, ClientEngagementResponse, ContactIdResponse, ContactImport, ContactPreferencesLinkResponse, ContactPropertyIdResponse, CountryEngagementResponse, CreateApiKeyRequest, CreateApiKeyResponse, CreateAutomationRequest, CreateBroadcastRequest, CreateContactImportForm, CreateContactImportParams, CreateContactImportResponse, CreateContactPropertyRequest, CreateContactRequest, CreateDomainRequest, CreateDomainResponse, CreateEventRequest, CreateEventResponse, CreateInboxDraftRequest, CreateInboxLabelRequest, CreateInboxRequest, CreateSegmentRequest, CreateSuppressionRequest, CreateTemplateRequest, CreateTopicRequest, CreateUnsubscribeRequest, CreateWebhookRequest, CreateWebhookResponse, Cursor, CursorPage, DeleteInboxDraftResponse, DeleteReceivedEmailResponse, DeliverabilityResponse, DomainClaim, DomainDeliverability, DuplicateBroadcastResponse, EmailInsightsResponse, EmailMetrics, ErrorResponse, ErrorShape, EstimateVerificationRequest, EstimateVerificationResponse, Event, EventStreamOptions, GetAutomationResponse, GetAutomationRunResponse, GetBroadcastResponse, GetContactPropertyResponse, GetContactResponse, GetDomainResponse, GetEmailResponse, GetLogResponse, GetReceivedAttachmentResponse, GetReceivedAttachmentTextResponse, GetReceivedEmailResponse, GetSegmentResponse, GetSentAttachmentResponse, GetSuppressionResponse, GetTemplateResponse, GetWebhookEventResponse, GetWebhookResponse, HeaderRequestId, HttpMethod, IdempotentRequestOptions, Inbox, InboxAgent, InboxDraft, InboxEventData, InboxEventPayload, InboxEventType, InboxForwardRequest, InboxLabel, InboxRelease, InboxReplyRequest, InboxSafety$1 as InboxSafety, InboxSafetyPatch, InboxSendRequest, InboxSentEmail, InboxStreamEvent, InboxStreamItem, InboxThread, InboxThreadEmail, InboxThreadLabels, LinkClicksResponse, ListApiKeysResponse, ListAutomationRunsResponse, ListAutomationsResponse, ListBroadcastClickedLinksResponse, ListBroadcastRecipientsResponse, ListBroadcastsResponse, ListContactImportsResponse, ListContactPropertiesResponse, ListContactTopicsResponse, ListContactsResponse, ListDomainsResponse, ListEmailsResponse, ListEventsResponse, ListInboxDraftsResponse, ListInboxLabelsResponse, ListInboxThreadEmailsResponse, ListInboxThreadsResponse, ListInboxesResponse, ListItem, ListLogsResponse, ListOAuthGrantsResponse, ListQuarantinedEmailsResponse, ListReceivedAttachmentsResponse, ListReceivedEmailsResponse, ListSegmentsResponse, ListSentAttachmentsResponse, ListSuppressionsResponse, ListTemplatesResponse, ListTopicsResponse, ListUnsubscribesResponse, ListVerificationsResponse, ListWebhookEventAttemptsResponse, ListWebhookEventsResponse, ListWebhooksResponse, OAuthGrant, PathParams, QueryParams, ReceivedEmailForwardRequest, ReceivedEmailReplyRequest, ReceivedEmailSendResponse, ReleaseQuarantinedRequest, RemoveApiKeyResponse, RemoveAutomationResponse, RemoveBroadcastResponse, RemoveContactPropertyResponse, RemoveContactResponse, RemoveContactSegmentResponse, RemoveDomainResponse, RemoveEmailResponse, RemoveEventResponse, RemoveInboxLabelResponse, RemoveInboxResponse, RemoveInboxThreadResponse, RemoveSegmentResponse, RemoveSuppressionResponse, RemoveTemplateResponse, RemoveTopicResponse, RemoveWebhookResponse, ReplayWebhookEventResponse, RequestBody, RequestOptions, ResponseBody, ResponseHeaders, Result, RevokeOAuthGrantResponse, RotateWebhookSecretRequest, RotateWebhookSecretResponse, SearchInboxThreadsResponse, SegmentFilter, SegmentResponse, SendBroadcastRequest, SendBroadcastResponse, SendEmailParams, SendEmailRequest, SendEmailResponse, SendEventRequest, SendEventResponse, SendInboxDraftRequest, SendTemplate, SetInboxThreadLabelsRequest, ShareEmailRequest, ShareEmailResponse, SimulateAutomationRequest, SimulateAutomationResponse, StartVerificationRequest, StartVerificationResponse, StopAutomationResponse, StreamGapEvent, SuppressionIdResponse, TemplateIdResponse, TemplateVariable, TemplateVariableInput, TopicIdResponse, TopicResponse, UnshareEmailResponse, UnsubscribeResponse, UpdateApiKeyRequest, UpdateApiKeyResponse, UpdateAutomationRequest, UpdateBroadcastRequest, UpdateContactPropertyRequest, UpdateContactRequest, UpdateContactTopicsRequest, UpdateContactTopicsResponse, UpdateDomainRequest, UpdateEmailRequest, UpdateEmailResponse, UpdateEventRequest, UpdateEventResponse, UpdateInboxAgentRequest, UpdateInboxAgentResponse, UpdateInboxDraftRequest, UpdateInboxLabelRequest, UpdateInboxRequest, UpdateInboxThreadRequest, UpdateSegmentRequest, UpdateTemplateRequest, UpdateTopicRequest, UpdateWebhookRequest, UsageResponse, ValidateAutomationRequest, ValidateAutomationResponse, VerificationAvailabilityResponse, VerificationCode, VerificationRun, VerificationTarget, VerifyWebhookOptions, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookIdResponse, components, operations, paths, webhooks };
|