@billionsend/node 0.3.0 → 0.3.1
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 +8 -0
- package/README.md +23 -14
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +108 -4
- package/dist/index.d.ts +108 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2804,7 +2804,7 @@ interface components {
|
|
|
2804
2804
|
created_at: string;
|
|
2805
2805
|
/** @description Opt-out from every marketing send of the team, whichever domain sends. A recipient's own unsubscribe never sets it: that is recorded for the domain whose email carried the link (see unsubscribed_domains). */
|
|
2806
2806
|
unsubscribed: boolean;
|
|
2807
|
-
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email.
|
|
2807
|
+
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email. Mail from those domains skips the contact, transactional mail too unless the domain turned on `send_transactional_to_unsubscribed`; other domains still reach them. The team-wide switch is `unsubscribed`, not an entry here. An opt-out is permanent: only the recipient can undo it, from the hosted unsubscribe page. */
|
|
2808
2808
|
unsubscribed_domains: {
|
|
2809
2809
|
/**
|
|
2810
2810
|
* Format: uuid
|
|
@@ -2939,7 +2939,7 @@ interface components {
|
|
|
2939
2939
|
created_at: string;
|
|
2940
2940
|
/** @description Opt-out from every marketing send of the team, whichever domain sends. A recipient's own unsubscribe never sets it: that is recorded for the domain whose email carried the link (see unsubscribed_domains). */
|
|
2941
2941
|
unsubscribed: boolean;
|
|
2942
|
-
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email.
|
|
2942
|
+
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email. Mail from those domains skips the contact, transactional mail too unless the domain turned on `send_transactional_to_unsubscribed`; other domains still reach them. The team-wide switch is `unsubscribed`, not an entry here. An opt-out is permanent: only the recipient can undo it, from the hosted unsubscribe page. */
|
|
2943
2943
|
unsubscribed_domains: {
|
|
2944
2944
|
/**
|
|
2945
2945
|
* Format: uuid
|
|
@@ -3000,7 +3000,7 @@ interface components {
|
|
|
3000
3000
|
created_at: string;
|
|
3001
3001
|
/** @description Opt-out from every marketing send of the team, whichever domain sends. A recipient's own unsubscribe never sets it: that is recorded for the domain whose email carried the link (see unsubscribed_domains). */
|
|
3002
3002
|
unsubscribed: boolean;
|
|
3003
|
-
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email.
|
|
3003
|
+
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email. Mail from those domains skips the contact, transactional mail too unless the domain turned on `send_transactional_to_unsubscribed`; other domains still reach them. The team-wide switch is `unsubscribed`, not an entry here. An opt-out is permanent: only the recipient can undo it, from the hosted unsubscribe page. */
|
|
3004
3004
|
unsubscribed_domains: {
|
|
3005
3005
|
/**
|
|
3006
3006
|
* Format: uuid
|
|
@@ -3828,6 +3828,43 @@ interface components {
|
|
|
3828
3828
|
*/
|
|
3829
3829
|
policy?: "none" | "quarantine" | "reject";
|
|
3830
3830
|
}[];
|
|
3831
|
+
/** @description BillionSend extension, on GET /domains/{id} only: the broadcast limit this domain's registrable name is under (only broadcasts are limited; API, SMTP and automation mail never are). Read-only. */
|
|
3832
|
+
sending_limits?: {
|
|
3833
|
+
/**
|
|
3834
|
+
* @description warming: inside the 30-day broadcast warm-up (it starts at the domain's first successful delivery here); limited: past it, but a warning holds g at 1; unlimited: broadcasts are not limited; exempt or trusted: the team is outside the limit
|
|
3835
|
+
* @enum {string}
|
|
3836
|
+
*/
|
|
3837
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
3838
|
+
/** @description The day of the 30-day warm-up (1 on the first day); 0 before the first delivery */
|
|
3839
|
+
warmup_day: number;
|
|
3840
|
+
/** @description When the warm-up ends; null before the first delivery */
|
|
3841
|
+
warmup_ends_on: string | null;
|
|
3842
|
+
/** @description When the running 24-hour window opened; null while none runs (the next broadcast recipient opens one) */
|
|
3843
|
+
window_started_at: string | null;
|
|
3844
|
+
/** @description Broadcast recipients the window admits: max(200, g x (t + b)); of the window that would open now while none runs; null when unlimited */
|
|
3845
|
+
cap: number | null;
|
|
3846
|
+
/** @description What the running window has used; null when unlimited */
|
|
3847
|
+
used: number | null;
|
|
3848
|
+
/** @description The growth multiplier: 2 while every signal is normal, 1 while a warning holds it */
|
|
3849
|
+
g: number;
|
|
3850
|
+
/** @description The warnings holding g at 1 */
|
|
3851
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
3852
|
+
/** @description Transactional deliveries in the 24 hours before the window opened */
|
|
3853
|
+
t: number | null;
|
|
3854
|
+
/** @description Broadcast deliveries in the previous window */
|
|
3855
|
+
b: number | null;
|
|
3856
|
+
/** @description Broadcast recipients waiting for the next window */
|
|
3857
|
+
parked: number;
|
|
3858
|
+
/** @description When the next window can open; null with nothing waiting */
|
|
3859
|
+
next_window_at: string | null;
|
|
3860
|
+
hard_indicators: {
|
|
3861
|
+
/** @enum {string} */
|
|
3862
|
+
delivery: "ok" | "warning" | "paused";
|
|
3863
|
+
/** @enum {string} */
|
|
3864
|
+
content_review: "clear" | "held";
|
|
3865
|
+
providers_in_backoff: number;
|
|
3866
|
+
};
|
|
3867
|
+
};
|
|
3831
3868
|
};
|
|
3832
3869
|
UpdateDomainRequest: {
|
|
3833
3870
|
/** @description Rewrite links to redirect through the tracking host and record email.clicked events. Off by default. */
|
|
@@ -4185,6 +4222,8 @@ interface components {
|
|
|
4185
4222
|
* @enum {string}
|
|
4186
4223
|
*/
|
|
4187
4224
|
origin?: "bounce" | "complaint" | "manual";
|
|
4225
|
+
/** @description BillionSend extension: why the entry is blocked, up to 500 characters; shown as its detail in the dashboard and returned as `note`. Stored on the rows this request creates; an entry that already exists keeps its own */
|
|
4226
|
+
note?: string;
|
|
4188
4227
|
};
|
|
4189
4228
|
BatchRemoveSuppressionsResponse: {
|
|
4190
4229
|
data: components["schemas"]["RemoveSuppressionResponse"][];
|
|
@@ -4230,6 +4269,8 @@ interface components {
|
|
|
4230
4269
|
* @enum {string}
|
|
4231
4270
|
*/
|
|
4232
4271
|
origin?: "bounce" | "complaint" | "manual";
|
|
4272
|
+
/** @description BillionSend extension: why the entry is blocked, up to 500 characters; shown as its detail in the dashboard and returned as `note`. Stored on the rows this request creates; an entry that already exists keeps its own */
|
|
4273
|
+
note?: string;
|
|
4233
4274
|
};
|
|
4234
4275
|
ListSuppressionsResponse: {
|
|
4235
4276
|
/** @enum {string} */
|
|
@@ -4255,6 +4296,8 @@ interface components {
|
|
|
4255
4296
|
* @description Email id whose bounce/complaint created the entry
|
|
4256
4297
|
*/
|
|
4257
4298
|
source_id: string | null;
|
|
4299
|
+
/** @description BillionSend extension: why the entry was added; null on an entry SES wrote */
|
|
4300
|
+
note: string | null;
|
|
4258
4301
|
created_at: string;
|
|
4259
4302
|
}[];
|
|
4260
4303
|
has_more: boolean;
|
|
@@ -4280,6 +4323,8 @@ interface components {
|
|
|
4280
4323
|
* @description Email id whose bounce/complaint created the entry
|
|
4281
4324
|
*/
|
|
4282
4325
|
source_id: string | null;
|
|
4326
|
+
/** @description BillionSend extension: why the entry was added; null on an entry SES wrote */
|
|
4327
|
+
note: string | null;
|
|
4283
4328
|
created_at: string;
|
|
4284
4329
|
/** @enum {string} */
|
|
4285
4330
|
object: "suppression";
|
|
@@ -21335,6 +21380,25 @@ declare class Domains extends Resource {
|
|
|
21335
21380
|
inherited_from?: string;
|
|
21336
21381
|
policy?: "none" | "quarantine" | "reject";
|
|
21337
21382
|
}[];
|
|
21383
|
+
sending_limits?: {
|
|
21384
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
21385
|
+
warmup_day: number;
|
|
21386
|
+
warmup_ends_on: string | null;
|
|
21387
|
+
window_started_at: string | null;
|
|
21388
|
+
cap: number | null;
|
|
21389
|
+
used: number | null;
|
|
21390
|
+
g: number;
|
|
21391
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
21392
|
+
t: number | null;
|
|
21393
|
+
b: number | null;
|
|
21394
|
+
parked: number;
|
|
21395
|
+
next_window_at: string | null;
|
|
21396
|
+
hard_indicators: {
|
|
21397
|
+
delivery: "ok" | "warning" | "paused";
|
|
21398
|
+
content_review: "clear" | "held";
|
|
21399
|
+
providers_in_backoff: number;
|
|
21400
|
+
};
|
|
21401
|
+
};
|
|
21338
21402
|
}>>;
|
|
21339
21403
|
/** `PATCH /domains/{id}` */
|
|
21340
21404
|
update(id: string, payload: RequestBody<"/domains/{id}", "patch">, options?: RequestOptions): Promise<Result<{
|
|
@@ -21388,6 +21452,25 @@ declare class Domains extends Resource {
|
|
|
21388
21452
|
inherited_from?: string;
|
|
21389
21453
|
policy?: "none" | "quarantine" | "reject";
|
|
21390
21454
|
}[];
|
|
21455
|
+
sending_limits?: {
|
|
21456
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
21457
|
+
warmup_day: number;
|
|
21458
|
+
warmup_ends_on: string | null;
|
|
21459
|
+
window_started_at: string | null;
|
|
21460
|
+
cap: number | null;
|
|
21461
|
+
used: number | null;
|
|
21462
|
+
g: number;
|
|
21463
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
21464
|
+
t: number | null;
|
|
21465
|
+
b: number | null;
|
|
21466
|
+
parked: number;
|
|
21467
|
+
next_window_at: string | null;
|
|
21468
|
+
hard_indicators: {
|
|
21469
|
+
delivery: "ok" | "warning" | "paused";
|
|
21470
|
+
content_review: "clear" | "held";
|
|
21471
|
+
providers_in_backoff: number;
|
|
21472
|
+
};
|
|
21473
|
+
};
|
|
21391
21474
|
}>>;
|
|
21392
21475
|
/** `DELETE /domains/{id}` */
|
|
21393
21476
|
delete(id: string, options?: RequestOptions): Promise<Result<{
|
|
@@ -21447,6 +21530,25 @@ declare class Domains extends Resource {
|
|
|
21447
21530
|
inherited_from?: string;
|
|
21448
21531
|
policy?: "none" | "quarantine" | "reject";
|
|
21449
21532
|
}[];
|
|
21533
|
+
sending_limits?: {
|
|
21534
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
21535
|
+
warmup_day: number;
|
|
21536
|
+
warmup_ends_on: string | null;
|
|
21537
|
+
window_started_at: string | null;
|
|
21538
|
+
cap: number | null;
|
|
21539
|
+
used: number | null;
|
|
21540
|
+
g: number;
|
|
21541
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
21542
|
+
t: number | null;
|
|
21543
|
+
b: number | null;
|
|
21544
|
+
parked: number;
|
|
21545
|
+
next_window_at: string | null;
|
|
21546
|
+
hard_indicators: {
|
|
21547
|
+
delivery: "ok" | "warning" | "paused";
|
|
21548
|
+
content_review: "clear" | "held";
|
|
21549
|
+
providers_in_backoff: number;
|
|
21550
|
+
};
|
|
21551
|
+
};
|
|
21450
21552
|
}>>;
|
|
21451
21553
|
}
|
|
21452
21554
|
declare class ApiKeys extends Resource {
|
|
@@ -23984,6 +24086,7 @@ declare class Suppressions extends Resource {
|
|
|
23984
24086
|
removable: boolean;
|
|
23985
24087
|
origin: "bounce" | "complaint" | "manual";
|
|
23986
24088
|
source_id: string | null;
|
|
24089
|
+
note: string | null;
|
|
23987
24090
|
created_at: string;
|
|
23988
24091
|
}[];
|
|
23989
24092
|
has_more: boolean;
|
|
@@ -23999,6 +24102,7 @@ declare class Suppressions extends Resource {
|
|
|
23999
24102
|
removable: boolean;
|
|
24000
24103
|
origin: "bounce" | "complaint" | "manual";
|
|
24001
24104
|
source_id: string | null;
|
|
24105
|
+
note: string | null;
|
|
24002
24106
|
created_at: string;
|
|
24003
24107
|
object: "suppression";
|
|
24004
24108
|
}>>;
|
|
@@ -24172,7 +24276,7 @@ declare function paginate<Item extends {
|
|
|
24172
24276
|
id: string;
|
|
24173
24277
|
}>(fetchPage: (cursor: Cursor) => Promise<Result<CursorPage<Item>>>, start?: Cursor): AsyncGenerator<Item, void, undefined>;
|
|
24174
24278
|
|
|
24175
|
-
declare const VERSION = "0.3.
|
|
24279
|
+
declare const VERSION = "0.3.1";
|
|
24176
24280
|
|
|
24177
24281
|
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 };
|
|
24178
24282
|
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, Brand$1 as Brand, 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, LogoResponse, OAuthGrant, PathParams, QueryParams, ReceivedEmailForwardRequest, ReceivedEmailReplyRequest, ReceivedEmailSendResponse, ReleaseQuarantinedRequest, RemoveApiKeyResponse, RemoveAutomationResponse, RemoveBroadcastResponse, RemoveContactPropertyResponse, RemoveContactResponse, RemoveContactSegmentResponse, RemoveDomainResponse, RemoveEmailResponse, RemoveEventResponse, RemoveInboxLabelResponse, RemoveInboxResponse, RemoveInboxThreadResponse, RemoveLogoResponse, 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, UpdateBrandRequest, UpdateBroadcastRequest, UpdateContactPropertyRequest, UpdateContactRequest, UpdateContactTopicsRequest, UpdateContactTopicsResponse, UpdateDomainRequest, UpdateEmailRequest, UpdateEmailResponse, UpdateEventRequest, UpdateEventResponse, UpdateInboxAgentRequest, UpdateInboxAgentResponse, UpdateInboxDraftRequest, UpdateInboxLabelRequest, UpdateInboxRequest, UpdateInboxThreadRequest, UpdateSegmentRequest, UpdateTemplateRequest, UpdateTopicRequest, UpdateWebhookRequest, UploadLogoForm, UploadLogoParams, UsageResponse, ValidateAutomationRequest, ValidateAutomationResponse, VerificationAvailabilityResponse, VerificationCode, VerificationRun, VerificationTarget, VerifyWebhookOptions, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookIdResponse, components, operations, paths, webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -2804,7 +2804,7 @@ interface components {
|
|
|
2804
2804
|
created_at: string;
|
|
2805
2805
|
/** @description Opt-out from every marketing send of the team, whichever domain sends. A recipient's own unsubscribe never sets it: that is recorded for the domain whose email carried the link (see unsubscribed_domains). */
|
|
2806
2806
|
unsubscribed: boolean;
|
|
2807
|
-
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email.
|
|
2807
|
+
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email. Mail from those domains skips the contact, transactional mail too unless the domain turned on `send_transactional_to_unsubscribed`; other domains still reach them. The team-wide switch is `unsubscribed`, not an entry here. An opt-out is permanent: only the recipient can undo it, from the hosted unsubscribe page. */
|
|
2808
2808
|
unsubscribed_domains: {
|
|
2809
2809
|
/**
|
|
2810
2810
|
* Format: uuid
|
|
@@ -2939,7 +2939,7 @@ interface components {
|
|
|
2939
2939
|
created_at: string;
|
|
2940
2940
|
/** @description Opt-out from every marketing send of the team, whichever domain sends. A recipient's own unsubscribe never sets it: that is recorded for the domain whose email carried the link (see unsubscribed_domains). */
|
|
2941
2941
|
unsubscribed: boolean;
|
|
2942
|
-
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email.
|
|
2942
|
+
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email. Mail from those domains skips the contact, transactional mail too unless the domain turned on `send_transactional_to_unsubscribed`; other domains still reach them. The team-wide switch is `unsubscribed`, not an entry here. An opt-out is permanent: only the recipient can undo it, from the hosted unsubscribe page. */
|
|
2943
2943
|
unsubscribed_domains: {
|
|
2944
2944
|
/**
|
|
2945
2945
|
* Format: uuid
|
|
@@ -3000,7 +3000,7 @@ interface components {
|
|
|
3000
3000
|
created_at: string;
|
|
3001
3001
|
/** @description Opt-out from every marketing send of the team, whichever domain sends. A recipient's own unsubscribe never sets it: that is recorded for the domain whose email carried the link (see unsubscribed_domains). */
|
|
3002
3002
|
unsubscribed: boolean;
|
|
3003
|
-
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email.
|
|
3003
|
+
/** @description BillionSend extension: the domains this contact unsubscribed from through a link in their email. Mail from those domains skips the contact, transactional mail too unless the domain turned on `send_transactional_to_unsubscribed`; other domains still reach them. The team-wide switch is `unsubscribed`, not an entry here. An opt-out is permanent: only the recipient can undo it, from the hosted unsubscribe page. */
|
|
3004
3004
|
unsubscribed_domains: {
|
|
3005
3005
|
/**
|
|
3006
3006
|
* Format: uuid
|
|
@@ -3828,6 +3828,43 @@ interface components {
|
|
|
3828
3828
|
*/
|
|
3829
3829
|
policy?: "none" | "quarantine" | "reject";
|
|
3830
3830
|
}[];
|
|
3831
|
+
/** @description BillionSend extension, on GET /domains/{id} only: the broadcast limit this domain's registrable name is under (only broadcasts are limited; API, SMTP and automation mail never are). Read-only. */
|
|
3832
|
+
sending_limits?: {
|
|
3833
|
+
/**
|
|
3834
|
+
* @description warming: inside the 30-day broadcast warm-up (it starts at the domain's first successful delivery here); limited: past it, but a warning holds g at 1; unlimited: broadcasts are not limited; exempt or trusted: the team is outside the limit
|
|
3835
|
+
* @enum {string}
|
|
3836
|
+
*/
|
|
3837
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
3838
|
+
/** @description The day of the 30-day warm-up (1 on the first day); 0 before the first delivery */
|
|
3839
|
+
warmup_day: number;
|
|
3840
|
+
/** @description When the warm-up ends; null before the first delivery */
|
|
3841
|
+
warmup_ends_on: string | null;
|
|
3842
|
+
/** @description When the running 24-hour window opened; null while none runs (the next broadcast recipient opens one) */
|
|
3843
|
+
window_started_at: string | null;
|
|
3844
|
+
/** @description Broadcast recipients the window admits: max(200, g x (t + b)); of the window that would open now while none runs; null when unlimited */
|
|
3845
|
+
cap: number | null;
|
|
3846
|
+
/** @description What the running window has used; null when unlimited */
|
|
3847
|
+
used: number | null;
|
|
3848
|
+
/** @description The growth multiplier: 2 while every signal is normal, 1 while a warning holds it */
|
|
3849
|
+
g: number;
|
|
3850
|
+
/** @description The warnings holding g at 1 */
|
|
3851
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
3852
|
+
/** @description Transactional deliveries in the 24 hours before the window opened */
|
|
3853
|
+
t: number | null;
|
|
3854
|
+
/** @description Broadcast deliveries in the previous window */
|
|
3855
|
+
b: number | null;
|
|
3856
|
+
/** @description Broadcast recipients waiting for the next window */
|
|
3857
|
+
parked: number;
|
|
3858
|
+
/** @description When the next window can open; null with nothing waiting */
|
|
3859
|
+
next_window_at: string | null;
|
|
3860
|
+
hard_indicators: {
|
|
3861
|
+
/** @enum {string} */
|
|
3862
|
+
delivery: "ok" | "warning" | "paused";
|
|
3863
|
+
/** @enum {string} */
|
|
3864
|
+
content_review: "clear" | "held";
|
|
3865
|
+
providers_in_backoff: number;
|
|
3866
|
+
};
|
|
3867
|
+
};
|
|
3831
3868
|
};
|
|
3832
3869
|
UpdateDomainRequest: {
|
|
3833
3870
|
/** @description Rewrite links to redirect through the tracking host and record email.clicked events. Off by default. */
|
|
@@ -4185,6 +4222,8 @@ interface components {
|
|
|
4185
4222
|
* @enum {string}
|
|
4186
4223
|
*/
|
|
4187
4224
|
origin?: "bounce" | "complaint" | "manual";
|
|
4225
|
+
/** @description BillionSend extension: why the entry is blocked, up to 500 characters; shown as its detail in the dashboard and returned as `note`. Stored on the rows this request creates; an entry that already exists keeps its own */
|
|
4226
|
+
note?: string;
|
|
4188
4227
|
};
|
|
4189
4228
|
BatchRemoveSuppressionsResponse: {
|
|
4190
4229
|
data: components["schemas"]["RemoveSuppressionResponse"][];
|
|
@@ -4230,6 +4269,8 @@ interface components {
|
|
|
4230
4269
|
* @enum {string}
|
|
4231
4270
|
*/
|
|
4232
4271
|
origin?: "bounce" | "complaint" | "manual";
|
|
4272
|
+
/** @description BillionSend extension: why the entry is blocked, up to 500 characters; shown as its detail in the dashboard and returned as `note`. Stored on the rows this request creates; an entry that already exists keeps its own */
|
|
4273
|
+
note?: string;
|
|
4233
4274
|
};
|
|
4234
4275
|
ListSuppressionsResponse: {
|
|
4235
4276
|
/** @enum {string} */
|
|
@@ -4255,6 +4296,8 @@ interface components {
|
|
|
4255
4296
|
* @description Email id whose bounce/complaint created the entry
|
|
4256
4297
|
*/
|
|
4257
4298
|
source_id: string | null;
|
|
4299
|
+
/** @description BillionSend extension: why the entry was added; null on an entry SES wrote */
|
|
4300
|
+
note: string | null;
|
|
4258
4301
|
created_at: string;
|
|
4259
4302
|
}[];
|
|
4260
4303
|
has_more: boolean;
|
|
@@ -4280,6 +4323,8 @@ interface components {
|
|
|
4280
4323
|
* @description Email id whose bounce/complaint created the entry
|
|
4281
4324
|
*/
|
|
4282
4325
|
source_id: string | null;
|
|
4326
|
+
/** @description BillionSend extension: why the entry was added; null on an entry SES wrote */
|
|
4327
|
+
note: string | null;
|
|
4283
4328
|
created_at: string;
|
|
4284
4329
|
/** @enum {string} */
|
|
4285
4330
|
object: "suppression";
|
|
@@ -21335,6 +21380,25 @@ declare class Domains extends Resource {
|
|
|
21335
21380
|
inherited_from?: string;
|
|
21336
21381
|
policy?: "none" | "quarantine" | "reject";
|
|
21337
21382
|
}[];
|
|
21383
|
+
sending_limits?: {
|
|
21384
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
21385
|
+
warmup_day: number;
|
|
21386
|
+
warmup_ends_on: string | null;
|
|
21387
|
+
window_started_at: string | null;
|
|
21388
|
+
cap: number | null;
|
|
21389
|
+
used: number | null;
|
|
21390
|
+
g: number;
|
|
21391
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
21392
|
+
t: number | null;
|
|
21393
|
+
b: number | null;
|
|
21394
|
+
parked: number;
|
|
21395
|
+
next_window_at: string | null;
|
|
21396
|
+
hard_indicators: {
|
|
21397
|
+
delivery: "ok" | "warning" | "paused";
|
|
21398
|
+
content_review: "clear" | "held";
|
|
21399
|
+
providers_in_backoff: number;
|
|
21400
|
+
};
|
|
21401
|
+
};
|
|
21338
21402
|
}>>;
|
|
21339
21403
|
/** `PATCH /domains/{id}` */
|
|
21340
21404
|
update(id: string, payload: RequestBody<"/domains/{id}", "patch">, options?: RequestOptions): Promise<Result<{
|
|
@@ -21388,6 +21452,25 @@ declare class Domains extends Resource {
|
|
|
21388
21452
|
inherited_from?: string;
|
|
21389
21453
|
policy?: "none" | "quarantine" | "reject";
|
|
21390
21454
|
}[];
|
|
21455
|
+
sending_limits?: {
|
|
21456
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
21457
|
+
warmup_day: number;
|
|
21458
|
+
warmup_ends_on: string | null;
|
|
21459
|
+
window_started_at: string | null;
|
|
21460
|
+
cap: number | null;
|
|
21461
|
+
used: number | null;
|
|
21462
|
+
g: number;
|
|
21463
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
21464
|
+
t: number | null;
|
|
21465
|
+
b: number | null;
|
|
21466
|
+
parked: number;
|
|
21467
|
+
next_window_at: string | null;
|
|
21468
|
+
hard_indicators: {
|
|
21469
|
+
delivery: "ok" | "warning" | "paused";
|
|
21470
|
+
content_review: "clear" | "held";
|
|
21471
|
+
providers_in_backoff: number;
|
|
21472
|
+
};
|
|
21473
|
+
};
|
|
21391
21474
|
}>>;
|
|
21392
21475
|
/** `DELETE /domains/{id}` */
|
|
21393
21476
|
delete(id: string, options?: RequestOptions): Promise<Result<{
|
|
@@ -21447,6 +21530,25 @@ declare class Domains extends Resource {
|
|
|
21447
21530
|
inherited_from?: string;
|
|
21448
21531
|
policy?: "none" | "quarantine" | "reject";
|
|
21449
21532
|
}[];
|
|
21533
|
+
sending_limits?: {
|
|
21534
|
+
mode: "warming" | "limited" | "unlimited" | "exempt" | "trusted";
|
|
21535
|
+
warmup_day: number;
|
|
21536
|
+
warmup_ends_on: string | null;
|
|
21537
|
+
window_started_at: string | null;
|
|
21538
|
+
cap: number | null;
|
|
21539
|
+
used: number | null;
|
|
21540
|
+
g: number;
|
|
21541
|
+
g_reasons: ("delivery_warning" | "provider_backoff" | "content_suspicious")[];
|
|
21542
|
+
t: number | null;
|
|
21543
|
+
b: number | null;
|
|
21544
|
+
parked: number;
|
|
21545
|
+
next_window_at: string | null;
|
|
21546
|
+
hard_indicators: {
|
|
21547
|
+
delivery: "ok" | "warning" | "paused";
|
|
21548
|
+
content_review: "clear" | "held";
|
|
21549
|
+
providers_in_backoff: number;
|
|
21550
|
+
};
|
|
21551
|
+
};
|
|
21450
21552
|
}>>;
|
|
21451
21553
|
}
|
|
21452
21554
|
declare class ApiKeys extends Resource {
|
|
@@ -23984,6 +24086,7 @@ declare class Suppressions extends Resource {
|
|
|
23984
24086
|
removable: boolean;
|
|
23985
24087
|
origin: "bounce" | "complaint" | "manual";
|
|
23986
24088
|
source_id: string | null;
|
|
24089
|
+
note: string | null;
|
|
23987
24090
|
created_at: string;
|
|
23988
24091
|
}[];
|
|
23989
24092
|
has_more: boolean;
|
|
@@ -23999,6 +24102,7 @@ declare class Suppressions extends Resource {
|
|
|
23999
24102
|
removable: boolean;
|
|
24000
24103
|
origin: "bounce" | "complaint" | "manual";
|
|
24001
24104
|
source_id: string | null;
|
|
24105
|
+
note: string | null;
|
|
24002
24106
|
created_at: string;
|
|
24003
24107
|
object: "suppression";
|
|
24004
24108
|
}>>;
|
|
@@ -24172,7 +24276,7 @@ declare function paginate<Item extends {
|
|
|
24172
24276
|
id: string;
|
|
24173
24277
|
}>(fetchPage: (cursor: Cursor) => Promise<Result<CursorPage<Item>>>, start?: Cursor): AsyncGenerator<Item, void, undefined>;
|
|
24174
24278
|
|
|
24175
|
-
declare const VERSION = "0.3.
|
|
24279
|
+
declare const VERSION = "0.3.1";
|
|
24176
24280
|
|
|
24177
24281
|
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 };
|
|
24178
24282
|
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, Brand$1 as Brand, 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, LogoResponse, OAuthGrant, PathParams, QueryParams, ReceivedEmailForwardRequest, ReceivedEmailReplyRequest, ReceivedEmailSendResponse, ReleaseQuarantinedRequest, RemoveApiKeyResponse, RemoveAutomationResponse, RemoveBroadcastResponse, RemoveContactPropertyResponse, RemoveContactResponse, RemoveContactSegmentResponse, RemoveDomainResponse, RemoveEmailResponse, RemoveEventResponse, RemoveInboxLabelResponse, RemoveInboxResponse, RemoveInboxThreadResponse, RemoveLogoResponse, 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, UpdateBrandRequest, UpdateBroadcastRequest, UpdateContactPropertyRequest, UpdateContactRequest, UpdateContactTopicsRequest, UpdateContactTopicsResponse, UpdateDomainRequest, UpdateEmailRequest, UpdateEmailResponse, UpdateEventRequest, UpdateEventResponse, UpdateInboxAgentRequest, UpdateInboxAgentResponse, UpdateInboxDraftRequest, UpdateInboxLabelRequest, UpdateInboxRequest, UpdateInboxThreadRequest, UpdateSegmentRequest, UpdateTemplateRequest, UpdateTopicRequest, UpdateWebhookRequest, UploadLogoForm, UploadLogoParams, UsageResponse, ValidateAutomationRequest, ValidateAutomationResponse, VerificationAvailabilityResponse, VerificationCode, VerificationRun, VerificationTarget, VerifyWebhookOptions, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookIdResponse, components, operations, paths, webhooks };
|