@billionsend/node 0.2.2 → 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 +18 -0
- package/README.md +42 -17
- package/dist/index.cjs +94 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +816 -12
- package/dist/index.d.ts +816 -12
- package/dist/index.js +94 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -744,6 +744,30 @@ interface paths {
|
|
|
744
744
|
patch?: never;
|
|
745
745
|
trace?: never;
|
|
746
746
|
};
|
|
747
|
+
"/domains/{id}/unsubscribe-page/logo": {
|
|
748
|
+
parameters: {
|
|
749
|
+
query?: never;
|
|
750
|
+
header?: never;
|
|
751
|
+
path?: never;
|
|
752
|
+
cookie?: never;
|
|
753
|
+
};
|
|
754
|
+
get?: never;
|
|
755
|
+
/**
|
|
756
|
+
* Upload a domain's unsubscribe page logo
|
|
757
|
+
* @description BillionSend extension. Sets this domain's own logo on its unsubscribe pages, replacing any earlier one; send the image as `multipart/form-data` in a field named `file`. PNG, JPEG or WebP, judged from the bytes, at most 2 MiB. Afterwards `unsubscribe_page.logo_url` on Retrieve a domain returns the new address. A domain without a logo of its own shows the team's (PUT /brand/logo). On a plan without branding (Free) recipients see the built-in look until the team upgrades.
|
|
758
|
+
*/
|
|
759
|
+
put: operations["domains.unsubscribePage.logo.upload"];
|
|
760
|
+
post?: never;
|
|
761
|
+
/**
|
|
762
|
+
* Remove a domain's unsubscribe page logo
|
|
763
|
+
* @description BillionSend extension. Removes this domain's own logo; its unsubscribe pages then show the team's logo (GET /brand), or none. Removing a logo that is not there succeeds.
|
|
764
|
+
*/
|
|
765
|
+
delete: operations["domains.unsubscribePage.logo.delete"];
|
|
766
|
+
options?: never;
|
|
767
|
+
head?: never;
|
|
768
|
+
patch?: never;
|
|
769
|
+
trace?: never;
|
|
770
|
+
};
|
|
747
771
|
"/domains/claim": {
|
|
748
772
|
parameters: {
|
|
749
773
|
query?: never;
|
|
@@ -1513,6 +1537,54 @@ interface paths {
|
|
|
1513
1537
|
patch?: never;
|
|
1514
1538
|
trace?: never;
|
|
1515
1539
|
};
|
|
1540
|
+
"/brand": {
|
|
1541
|
+
parameters: {
|
|
1542
|
+
query?: never;
|
|
1543
|
+
header?: never;
|
|
1544
|
+
path?: never;
|
|
1545
|
+
cookie?: never;
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* Retrieve the brand defaults
|
|
1549
|
+
* @description BillionSend extension. The team's brand defaults for its hosted unsubscribe pages (the dashboard's Settings → Brand): the logo, accent color, font, footer address and the two footer switches. A domain's own `unsubscribe_page` overrides any of them.
|
|
1550
|
+
*/
|
|
1551
|
+
get: operations["brand.get"];
|
|
1552
|
+
put?: never;
|
|
1553
|
+
post?: never;
|
|
1554
|
+
delete?: never;
|
|
1555
|
+
options?: never;
|
|
1556
|
+
head?: never;
|
|
1557
|
+
/**
|
|
1558
|
+
* Update the brand defaults
|
|
1559
|
+
* @description BillionSend extension. Changes the team's brand defaults; fields not sent keep their value, null clears one. Needs a key made by an owner or admin (as the dashboard's Brand settings do).
|
|
1560
|
+
*/
|
|
1561
|
+
patch: operations["brand.update"];
|
|
1562
|
+
trace?: never;
|
|
1563
|
+
};
|
|
1564
|
+
"/brand/logo": {
|
|
1565
|
+
parameters: {
|
|
1566
|
+
query?: never;
|
|
1567
|
+
header?: never;
|
|
1568
|
+
path?: never;
|
|
1569
|
+
cookie?: never;
|
|
1570
|
+
};
|
|
1571
|
+
get?: never;
|
|
1572
|
+
/**
|
|
1573
|
+
* Upload the team logo
|
|
1574
|
+
* @description BillionSend extension. Sets the team's logo, the one every domain's unsubscribe page shows unless the domain has its own (PUT /domains/{id}/unsubscribe-page/logo), and the team's picture in the dashboard; it replaces any earlier one. Send the image as `multipart/form-data` in a field named `file`: PNG, JPEG or WebP, judged from the bytes, at most 2 MiB. Needs a key made by an owner or admin.
|
|
1575
|
+
*/
|
|
1576
|
+
put: operations["brand.logo.upload"];
|
|
1577
|
+
post?: never;
|
|
1578
|
+
/**
|
|
1579
|
+
* Remove the team logo
|
|
1580
|
+
* @description BillionSend extension. Removes the team's logo; pages of domains without a logo of their own then show none. Removing a logo that is not there succeeds. Needs a key made by an owner or admin.
|
|
1581
|
+
*/
|
|
1582
|
+
delete: operations["brand.logo.delete"];
|
|
1583
|
+
options?: never;
|
|
1584
|
+
head?: never;
|
|
1585
|
+
patch?: never;
|
|
1586
|
+
trace?: never;
|
|
1587
|
+
};
|
|
1516
1588
|
"/usage": {
|
|
1517
1589
|
parameters: {
|
|
1518
1590
|
query?: never;
|
|
@@ -2732,7 +2804,7 @@ interface components {
|
|
|
2732
2804
|
created_at: string;
|
|
2733
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). */
|
|
2734
2806
|
unsubscribed: boolean;
|
|
2735
|
-
/** @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. */
|
|
2736
2808
|
unsubscribed_domains: {
|
|
2737
2809
|
/**
|
|
2738
2810
|
* Format: uuid
|
|
@@ -2867,7 +2939,7 @@ interface components {
|
|
|
2867
2939
|
created_at: string;
|
|
2868
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). */
|
|
2869
2941
|
unsubscribed: boolean;
|
|
2870
|
-
/** @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. */
|
|
2871
2943
|
unsubscribed_domains: {
|
|
2872
2944
|
/**
|
|
2873
2945
|
* Format: uuid
|
|
@@ -2928,7 +3000,7 @@ interface components {
|
|
|
2928
3000
|
created_at: string;
|
|
2929
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). */
|
|
2930
3002
|
unsubscribed: boolean;
|
|
2931
|
-
/** @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. */
|
|
2932
3004
|
unsubscribed_domains: {
|
|
2933
3005
|
/**
|
|
2934
3006
|
* Format: uuid
|
|
@@ -3205,6 +3277,10 @@ interface components {
|
|
|
3205
3277
|
* @description Topic id; only contacts subscribed to it receive the broadcast
|
|
3206
3278
|
*/
|
|
3207
3279
|
topic_id?: string | null;
|
|
3280
|
+
/** @description BillionSend extension: when true (the default), a contact who got 8 or more of your broadcasts and automation emails with no tracked open or click for 120 days (or ever) gets a short "still want these?" email with a confirm link instead of this broadcast, and is left out of later broadcasts if it does not confirm or engage within 14 days. Applies only when the sending domain has open or click tracking on. false sends the content to everyone */
|
|
3281
|
+
dormant_check?: boolean;
|
|
3282
|
+
/** @description BillionSend extension: true also sends to contacts marked dormant (they did not answer a "still want these?" email). Default false */
|
|
3283
|
+
include_dormant?: boolean;
|
|
3208
3284
|
/** @description true sends (or schedules) immediately instead of saving a draft */
|
|
3209
3285
|
send?: boolean;
|
|
3210
3286
|
/** @description Deliver later (requires send: true): ISO 8601 with offset or relative like "in 1 hour" */
|
|
@@ -3284,6 +3360,10 @@ interface components {
|
|
|
3284
3360
|
domain_id: string | null;
|
|
3285
3361
|
html: string | null;
|
|
3286
3362
|
text: string | null;
|
|
3363
|
+
/** @description BillionSend extension: whether long-unengaged contacts get the "still want these?" email instead */
|
|
3364
|
+
dormant_check: boolean;
|
|
3365
|
+
/** @description BillionSend extension: whether contacts marked dormant are included */
|
|
3366
|
+
include_dormant: boolean;
|
|
3287
3367
|
};
|
|
3288
3368
|
ListBroadcastRecipientsResponse: {
|
|
3289
3369
|
/** @enum {string} */
|
|
@@ -3346,6 +3426,10 @@ interface components {
|
|
|
3346
3426
|
preview_text?: string;
|
|
3347
3427
|
/** Format: uuid */
|
|
3348
3428
|
topic_id?: string | null;
|
|
3429
|
+
/** @description BillionSend extension: when true (the default), a contact who got 8 or more of your broadcasts and automation emails with no tracked open or click for 120 days (or ever) gets a short "still want these?" email with a confirm link instead of this broadcast, and is left out of later broadcasts if it does not confirm or engage within 14 days. Applies only when the sending domain has open or click tracking on. false sends the content to everyone */
|
|
3430
|
+
dormant_check?: boolean;
|
|
3431
|
+
/** @description BillionSend extension: true also sends to contacts marked dormant (they did not answer a "still want these?" email). Default false */
|
|
3432
|
+
include_dormant?: boolean;
|
|
3349
3433
|
};
|
|
3350
3434
|
RemoveBroadcastResponse: {
|
|
3351
3435
|
/** @enum {string} */
|
|
@@ -3475,18 +3559,24 @@ interface components {
|
|
|
3475
3559
|
unsubscribe_status: "pending" | "active" | "failed" | null;
|
|
3476
3560
|
/** @description BillionSend extension: why the unsubscribe subdomain is not active, when known */
|
|
3477
3561
|
unsubscribe_error: string | null;
|
|
3478
|
-
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. A null field falls back to the team's default page, then to the built-in default. */
|
|
3562
|
+
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. A null field falls back to the team's default page, then to the built-in default. On a plan without branding (Free) recipients see the built-in look and logo whatever is saved; the saved look applies again on a paid plan. */
|
|
3479
3563
|
unsubscribe_page: {
|
|
3480
3564
|
brand_name: string | null;
|
|
3481
3565
|
message: string | null;
|
|
3482
3566
|
success_message: string | null;
|
|
3483
3567
|
redirect_url: string | null;
|
|
3568
|
+
/** @description Support link under the page; null shows none */
|
|
3569
|
+
support_url: string | null;
|
|
3570
|
+
/** @description This domain's own choice for the "Powered by BillionSend" line; null follows the team's brand default */
|
|
3571
|
+
powered_by: boolean | null;
|
|
3572
|
+
/** @description Read-only: whether recipients see the line now. This domain's choice, else the team's, and always true on a plan that cannot hide it */
|
|
3573
|
+
powered_by_effective: boolean;
|
|
3484
3574
|
background_color: string | null;
|
|
3485
3575
|
text_color: string | null;
|
|
3486
3576
|
accent_color: string | null;
|
|
3487
3577
|
/** @enum {string|null} */
|
|
3488
3578
|
logo_radius: "square" | "gentle" | "rounded" | "circle" | null;
|
|
3489
|
-
/** @description Read-only
|
|
3579
|
+
/** @description Read-only: this domain's own logo, null when none is uploaded (the page then shows the team's logo) or when this deployment has no logo storage. Set with PUT /domains/{id}/unsubscribe-page/logo, removed with DELETE */
|
|
3490
3580
|
logo_url: string | null;
|
|
3491
3581
|
};
|
|
3492
3582
|
capabilities: {
|
|
@@ -3600,18 +3690,24 @@ interface components {
|
|
|
3600
3690
|
unsubscribe_status: "pending" | "active" | "failed" | null;
|
|
3601
3691
|
/** @description BillionSend extension: why the unsubscribe subdomain is not active, when known */
|
|
3602
3692
|
unsubscribe_error: string | null;
|
|
3603
|
-
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. A null field falls back to the team's default page, then to the built-in default. */
|
|
3693
|
+
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. A null field falls back to the team's default page, then to the built-in default. On a plan without branding (Free) recipients see the built-in look and logo whatever is saved; the saved look applies again on a paid plan. */
|
|
3604
3694
|
unsubscribe_page: {
|
|
3605
3695
|
brand_name: string | null;
|
|
3606
3696
|
message: string | null;
|
|
3607
3697
|
success_message: string | null;
|
|
3608
3698
|
redirect_url: string | null;
|
|
3699
|
+
/** @description Support link under the page; null shows none */
|
|
3700
|
+
support_url: string | null;
|
|
3701
|
+
/** @description This domain's own choice for the "Powered by BillionSend" line; null follows the team's brand default */
|
|
3702
|
+
powered_by: boolean | null;
|
|
3703
|
+
/** @description Read-only: whether recipients see the line now. This domain's choice, else the team's, and always true on a plan that cannot hide it */
|
|
3704
|
+
powered_by_effective: boolean;
|
|
3609
3705
|
background_color: string | null;
|
|
3610
3706
|
text_color: string | null;
|
|
3611
3707
|
accent_color: string | null;
|
|
3612
3708
|
/** @enum {string|null} */
|
|
3613
3709
|
logo_radius: "square" | "gentle" | "rounded" | "circle" | null;
|
|
3614
|
-
/** @description Read-only
|
|
3710
|
+
/** @description Read-only: this domain's own logo, null when none is uploaded (the page then shows the team's logo) or when this deployment has no logo storage. Set with PUT /domains/{id}/unsubscribe-page/logo, removed with DELETE */
|
|
3615
3711
|
logo_url: string | null;
|
|
3616
3712
|
};
|
|
3617
3713
|
capabilities: {
|
|
@@ -3665,18 +3761,24 @@ interface components {
|
|
|
3665
3761
|
unsubscribe_status: "pending" | "active" | "failed" | null;
|
|
3666
3762
|
/** @description BillionSend extension: why the unsubscribe subdomain is not active, when known */
|
|
3667
3763
|
unsubscribe_error: string | null;
|
|
3668
|
-
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. A null field falls back to the team's default page, then to the built-in default. */
|
|
3764
|
+
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. A null field falls back to the team's default page, then to the built-in default. On a plan without branding (Free) recipients see the built-in look and logo whatever is saved; the saved look applies again on a paid plan. */
|
|
3669
3765
|
unsubscribe_page: {
|
|
3670
3766
|
brand_name: string | null;
|
|
3671
3767
|
message: string | null;
|
|
3672
3768
|
success_message: string | null;
|
|
3673
3769
|
redirect_url: string | null;
|
|
3770
|
+
/** @description Support link under the page; null shows none */
|
|
3771
|
+
support_url: string | null;
|
|
3772
|
+
/** @description This domain's own choice for the "Powered by BillionSend" line; null follows the team's brand default */
|
|
3773
|
+
powered_by: boolean | null;
|
|
3774
|
+
/** @description Read-only: whether recipients see the line now. This domain's choice, else the team's, and always true on a plan that cannot hide it */
|
|
3775
|
+
powered_by_effective: boolean;
|
|
3674
3776
|
background_color: string | null;
|
|
3675
3777
|
text_color: string | null;
|
|
3676
3778
|
accent_color: string | null;
|
|
3677
3779
|
/** @enum {string|null} */
|
|
3678
3780
|
logo_radius: "square" | "gentle" | "rounded" | "circle" | null;
|
|
3679
|
-
/** @description Read-only
|
|
3781
|
+
/** @description Read-only: this domain's own logo, null when none is uploaded (the page then shows the team's logo) or when this deployment has no logo storage. Set with PUT /domains/{id}/unsubscribe-page/logo, removed with DELETE */
|
|
3680
3782
|
logo_url: string | null;
|
|
3681
3783
|
};
|
|
3682
3784
|
capabilities: {
|
|
@@ -3726,6 +3828,43 @@ interface components {
|
|
|
3726
3828
|
*/
|
|
3727
3829
|
policy?: "none" | "quarantine" | "reject";
|
|
3728
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
|
+
};
|
|
3729
3868
|
};
|
|
3730
3869
|
UpdateDomainRequest: {
|
|
3731
3870
|
/** @description Rewrite links to redirect through the tracking host and record email.clicked events. Off by default. */
|
|
@@ -3738,7 +3877,7 @@ interface components {
|
|
|
3738
3877
|
unsubscribe_subdomain?: string | null;
|
|
3739
3878
|
/** @description BillionSend extension: a recipient who unsubscribed from this domain, or from the whole team, gets no mail from it at all, transactional mail included. Turn this on to send this domain's transactional mail (no topic, not a broadcast) to them anyway. Default false. Broadcasts and topic mail always respect the unsubscribe. */
|
|
3740
3879
|
send_transactional_to_unsubscribed?: boolean;
|
|
3741
|
-
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. Fields not sent keep their value; null clears one, and a cleared field falls back to the team's default page. logo_url is read-only here: the logo
|
|
3880
|
+
/** @description BillionSend extension: this domain's own look for its unsubscribe pages. Fields not sent keep their value; null clears one, and a cleared field falls back to the team's default page. logo_url is read-only here: upload the logo with PUT /domains/{id}/unsubscribe-page/logo. */
|
|
3742
3881
|
unsubscribe_page?: {
|
|
3743
3882
|
/** @description Name shown on the page; max 80 characters */
|
|
3744
3883
|
brand_name?: string | null;
|
|
@@ -3748,6 +3887,10 @@ interface components {
|
|
|
3748
3887
|
success_message?: string | null;
|
|
3749
3888
|
/** @description Where the recipient goes after unsubscribing instead of the in-page message; http(s) only */
|
|
3750
3889
|
redirect_url?: string | null;
|
|
3890
|
+
/** @description A support link shown under the page; http(s) only. null shows none (the team has no support link of its own to fall back to) */
|
|
3891
|
+
support_url?: string | null;
|
|
3892
|
+
/** @description Show "Powered by BillionSend" under the page (true) or hide it (false); null follows the team's brand default (GET /brand). A plan that cannot hide it shows it whatever is saved: the value is kept and applies on a plan that can; read powered_by_effective for what recipients see. */
|
|
3893
|
+
powered_by?: boolean | null;
|
|
3751
3894
|
/** @description Page background, #rrggbb */
|
|
3752
3895
|
background_color?: string | null;
|
|
3753
3896
|
/** @description Page text color, #rrggbb */
|
|
@@ -3779,6 +3922,25 @@ interface components {
|
|
|
3779
3922
|
/** @description BillionSend extension: store mail to addresses without an inbox (true) or refuse it at RCPT (false). Turning it on needs receiving enabled and a paid plan. */
|
|
3780
3923
|
receiving_catch_all?: boolean;
|
|
3781
3924
|
};
|
|
3925
|
+
LogoResponse: {
|
|
3926
|
+
/** @enum {string} */
|
|
3927
|
+
object: "logo";
|
|
3928
|
+
/** @description Public URL of the stored logo; it changes on every upload (a cache-buster) */
|
|
3929
|
+
logo_url: string;
|
|
3930
|
+
};
|
|
3931
|
+
UploadLogoForm: {
|
|
3932
|
+
/**
|
|
3933
|
+
* Format: binary
|
|
3934
|
+
* @description The image: PNG, JPEG or WebP (judged from its bytes, not its name or type), at most 2 MiB. SVG is not accepted
|
|
3935
|
+
*/
|
|
3936
|
+
file?: string;
|
|
3937
|
+
};
|
|
3938
|
+
RemoveLogoResponse: {
|
|
3939
|
+
/** @enum {string} */
|
|
3940
|
+
object: "logo";
|
|
3941
|
+
/** @enum {boolean} */
|
|
3942
|
+
deleted: true;
|
|
3943
|
+
};
|
|
3782
3944
|
RemoveDomainResponse: {
|
|
3783
3945
|
/** @enum {string} */
|
|
3784
3946
|
object: "domain";
|
|
@@ -4060,6 +4222,8 @@ interface components {
|
|
|
4060
4222
|
* @enum {string}
|
|
4061
4223
|
*/
|
|
4062
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;
|
|
4063
4227
|
};
|
|
4064
4228
|
BatchRemoveSuppressionsResponse: {
|
|
4065
4229
|
data: components["schemas"]["RemoveSuppressionResponse"][];
|
|
@@ -4105,6 +4269,8 @@ interface components {
|
|
|
4105
4269
|
* @enum {string}
|
|
4106
4270
|
*/
|
|
4107
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;
|
|
4108
4274
|
};
|
|
4109
4275
|
ListSuppressionsResponse: {
|
|
4110
4276
|
/** @enum {string} */
|
|
@@ -4130,6 +4296,8 @@ interface components {
|
|
|
4130
4296
|
* @description Email id whose bounce/complaint created the entry
|
|
4131
4297
|
*/
|
|
4132
4298
|
source_id: string | null;
|
|
4299
|
+
/** @description BillionSend extension: why the entry was added; null on an entry SES wrote */
|
|
4300
|
+
note: string | null;
|
|
4133
4301
|
created_at: string;
|
|
4134
4302
|
}[];
|
|
4135
4303
|
has_more: boolean;
|
|
@@ -4155,6 +4323,8 @@ interface components {
|
|
|
4155
4323
|
* @description Email id whose bounce/complaint created the entry
|
|
4156
4324
|
*/
|
|
4157
4325
|
source_id: string | null;
|
|
4326
|
+
/** @description BillionSend extension: why the entry was added; null on an entry SES wrote */
|
|
4327
|
+
note: string | null;
|
|
4158
4328
|
created_at: string;
|
|
4159
4329
|
/** @enum {string} */
|
|
4160
4330
|
object: "suppression";
|
|
@@ -4874,6 +5044,45 @@ interface components {
|
|
|
4874
5044
|
created_at: string;
|
|
4875
5045
|
finished_at: string | null;
|
|
4876
5046
|
};
|
|
5047
|
+
Brand: {
|
|
5048
|
+
/** @enum {string} */
|
|
5049
|
+
object: "brand";
|
|
5050
|
+
/** @description Read-only: the team's logo, shown on every domain's page that has no logo of its own; null when none is uploaded or this deployment has no logo storage. Set with PUT /brand/logo, removed with DELETE /brand/logo */
|
|
5051
|
+
logo_url: string | null;
|
|
5052
|
+
/** @description Button and link color, #rrggbb; null is the built-in color */
|
|
5053
|
+
accent_color: string | null;
|
|
5054
|
+
/**
|
|
5055
|
+
* @description Page font; null is the built-in font
|
|
5056
|
+
* @enum {string|null}
|
|
5057
|
+
*/
|
|
5058
|
+
font: "geist" | "system" | "serif" | "mono" | null;
|
|
5059
|
+
/** @description Postal address shown in the page's footer; null shows none */
|
|
5060
|
+
company_address: string | null;
|
|
5061
|
+
/** @description Whether "Powered by BillionSend" shows under the page of every domain that does not set its own powered_by. Always true on a plan that cannot hide it */
|
|
5062
|
+
powered_by: boolean;
|
|
5063
|
+
/** @description Read-only: the plan cannot hide the line (Free), so it shows on every domain whatever is saved */
|
|
5064
|
+
powered_by_locked: boolean;
|
|
5065
|
+
/** @description Whether the page lists the topics a recipient can switch */
|
|
5066
|
+
show_topics: boolean;
|
|
5067
|
+
/** @description Read-only: the plan has no branding (Free): recipients see the built-in look and logo; what is saved here applies again on a paid plan */
|
|
5068
|
+
branding_locked: boolean;
|
|
5069
|
+
};
|
|
5070
|
+
/** @description Fields not sent keep their value. */
|
|
5071
|
+
UpdateBrandRequest: {
|
|
5072
|
+
/** @description Button and link color, #rrggbb; null (or an empty string) clears it */
|
|
5073
|
+
accent_color?: string | null;
|
|
5074
|
+
/**
|
|
5075
|
+
* @description Page font; null clears it back to the built-in font
|
|
5076
|
+
* @enum {string|null}
|
|
5077
|
+
*/
|
|
5078
|
+
font?: "geist" | "system" | "serif" | "mono" | null;
|
|
5079
|
+
/** @description Postal address shown in the page's footer, max 200 characters; null (or an empty string) clears it */
|
|
5080
|
+
company_address?: string | null;
|
|
5081
|
+
/** @description Show "Powered by BillionSend" under the page (true) or hide it (false). A plan that cannot hide it (Free) saves true whatever is sent, as the dashboard does; the response then reads powered_by true and powered_by_locked true */
|
|
5082
|
+
powered_by?: boolean;
|
|
5083
|
+
/** @description List the topics a recipient can switch on the page */
|
|
5084
|
+
show_topics?: boolean;
|
|
5085
|
+
};
|
|
4877
5086
|
UsageResponse: {
|
|
4878
5087
|
/** @enum {string} */
|
|
4879
5088
|
object: "usage";
|
|
@@ -6475,6 +6684,9 @@ type CreateDomainRequest = components["schemas"]["CreateDomainRequest"];
|
|
|
6475
6684
|
type ListDomainsResponse = components["schemas"]["ListDomainsResponse"];
|
|
6476
6685
|
type GetDomainResponse = components["schemas"]["GetDomainResponse"];
|
|
6477
6686
|
type UpdateDomainRequest = components["schemas"]["UpdateDomainRequest"];
|
|
6687
|
+
type LogoResponse = components["schemas"]["LogoResponse"];
|
|
6688
|
+
type UploadLogoForm = components["schemas"]["UploadLogoForm"];
|
|
6689
|
+
type RemoveLogoResponse = components["schemas"]["RemoveLogoResponse"];
|
|
6478
6690
|
type RemoveDomainResponse = components["schemas"]["RemoveDomainResponse"];
|
|
6479
6691
|
type DomainClaim = components["schemas"]["DomainClaim"];
|
|
6480
6692
|
type ClaimDomainRequest = components["schemas"]["ClaimDomainRequest"];
|
|
@@ -6551,6 +6763,8 @@ type StartVerificationResponse = components["schemas"]["StartVerificationRespons
|
|
|
6551
6763
|
type StartVerificationRequest = components["schemas"]["StartVerificationRequest"];
|
|
6552
6764
|
type ListVerificationsResponse = components["schemas"]["ListVerificationsResponse"];
|
|
6553
6765
|
type VerificationRun = components["schemas"]["VerificationRun"];
|
|
6766
|
+
type Brand$1 = components["schemas"]["Brand"];
|
|
6767
|
+
type UpdateBrandRequest = components["schemas"]["UpdateBrandRequest"];
|
|
6554
6768
|
type UsageResponse = components["schemas"]["UsageResponse"];
|
|
6555
6769
|
type ListLogsResponse = components["schemas"]["ListLogsResponse"];
|
|
6556
6770
|
type GetLogResponse = components["schemas"]["GetLogResponse"];
|
|
@@ -10880,6 +11094,150 @@ interface operations {
|
|
|
10880
11094
|
};
|
|
10881
11095
|
};
|
|
10882
11096
|
};
|
|
11097
|
+
"domains.unsubscribePage.logo.upload": {
|
|
11098
|
+
parameters: {
|
|
11099
|
+
query?: never;
|
|
11100
|
+
header?: never;
|
|
11101
|
+
path: {
|
|
11102
|
+
id: string;
|
|
11103
|
+
};
|
|
11104
|
+
cookie?: never;
|
|
11105
|
+
};
|
|
11106
|
+
requestBody: {
|
|
11107
|
+
content: {
|
|
11108
|
+
"multipart/form-data": components["schemas"]["UploadLogoForm"];
|
|
11109
|
+
};
|
|
11110
|
+
};
|
|
11111
|
+
responses: {
|
|
11112
|
+
/** @description Logo stored */
|
|
11113
|
+
200: {
|
|
11114
|
+
headers: {
|
|
11115
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11116
|
+
[name: string]: unknown;
|
|
11117
|
+
};
|
|
11118
|
+
content: {
|
|
11119
|
+
"application/json": components["schemas"]["LogoResponse"];
|
|
11120
|
+
};
|
|
11121
|
+
};
|
|
11122
|
+
/** @description Missing, malformed, unknown or revoked API key */
|
|
11123
|
+
401: {
|
|
11124
|
+
headers: {
|
|
11125
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11126
|
+
[name: string]: unknown;
|
|
11127
|
+
};
|
|
11128
|
+
content: {
|
|
11129
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11130
|
+
};
|
|
11131
|
+
};
|
|
11132
|
+
/** @description The team's subdomain of the shared domain, which is read-only; refused to a sending-only key, a key held to one inbox (restricted_api_key) */
|
|
11133
|
+
403: {
|
|
11134
|
+
headers: {
|
|
11135
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11136
|
+
[name: string]: unknown;
|
|
11137
|
+
};
|
|
11138
|
+
content: {
|
|
11139
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11140
|
+
};
|
|
11141
|
+
};
|
|
11142
|
+
/** @description Not found, a domain other than the one the calling key is held to, or this deployment stores no logos */
|
|
11143
|
+
404: {
|
|
11144
|
+
headers: {
|
|
11145
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11146
|
+
[name: string]: unknown;
|
|
11147
|
+
};
|
|
11148
|
+
content: {
|
|
11149
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11150
|
+
};
|
|
11151
|
+
};
|
|
11152
|
+
/** @description No file, a file larger than the limit, or not a PNG, JPEG or WebP image */
|
|
11153
|
+
422: {
|
|
11154
|
+
headers: {
|
|
11155
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11156
|
+
[name: string]: unknown;
|
|
11157
|
+
};
|
|
11158
|
+
content: {
|
|
11159
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11160
|
+
};
|
|
11161
|
+
};
|
|
11162
|
+
/** @description Over the rate limit (rate_limit_exceeded, with Retry-After) */
|
|
11163
|
+
429: {
|
|
11164
|
+
headers: {
|
|
11165
|
+
/** @description Seconds until the request may be retried; sent with rate_limit_exceeded */
|
|
11166
|
+
"Retry-After"?: number;
|
|
11167
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11168
|
+
[name: string]: unknown;
|
|
11169
|
+
};
|
|
11170
|
+
content: {
|
|
11171
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11172
|
+
};
|
|
11173
|
+
};
|
|
11174
|
+
};
|
|
11175
|
+
};
|
|
11176
|
+
"domains.unsubscribePage.logo.delete": {
|
|
11177
|
+
parameters: {
|
|
11178
|
+
query?: never;
|
|
11179
|
+
header?: never;
|
|
11180
|
+
path: {
|
|
11181
|
+
id: string;
|
|
11182
|
+
};
|
|
11183
|
+
cookie?: never;
|
|
11184
|
+
};
|
|
11185
|
+
requestBody?: never;
|
|
11186
|
+
responses: {
|
|
11187
|
+
/** @description Logo removed */
|
|
11188
|
+
200: {
|
|
11189
|
+
headers: {
|
|
11190
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11191
|
+
[name: string]: unknown;
|
|
11192
|
+
};
|
|
11193
|
+
content: {
|
|
11194
|
+
"application/json": components["schemas"]["RemoveLogoResponse"];
|
|
11195
|
+
};
|
|
11196
|
+
};
|
|
11197
|
+
/** @description Missing, malformed, unknown or revoked API key */
|
|
11198
|
+
401: {
|
|
11199
|
+
headers: {
|
|
11200
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11201
|
+
[name: string]: unknown;
|
|
11202
|
+
};
|
|
11203
|
+
content: {
|
|
11204
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11205
|
+
};
|
|
11206
|
+
};
|
|
11207
|
+
/** @description The team's subdomain of the shared domain, which is read-only; refused to a sending-only key, a key held to one inbox (restricted_api_key) */
|
|
11208
|
+
403: {
|
|
11209
|
+
headers: {
|
|
11210
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11211
|
+
[name: string]: unknown;
|
|
11212
|
+
};
|
|
11213
|
+
content: {
|
|
11214
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11215
|
+
};
|
|
11216
|
+
};
|
|
11217
|
+
/** @description Not found, a domain other than the one the calling key is held to, or this deployment stores no logos */
|
|
11218
|
+
404: {
|
|
11219
|
+
headers: {
|
|
11220
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11221
|
+
[name: string]: unknown;
|
|
11222
|
+
};
|
|
11223
|
+
content: {
|
|
11224
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11225
|
+
};
|
|
11226
|
+
};
|
|
11227
|
+
/** @description Over the rate limit (rate_limit_exceeded, with Retry-After) */
|
|
11228
|
+
429: {
|
|
11229
|
+
headers: {
|
|
11230
|
+
/** @description Seconds until the request may be retried; sent with rate_limit_exceeded */
|
|
11231
|
+
"Retry-After"?: number;
|
|
11232
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
11233
|
+
[name: string]: unknown;
|
|
11234
|
+
};
|
|
11235
|
+
content: {
|
|
11236
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11237
|
+
};
|
|
11238
|
+
};
|
|
11239
|
+
};
|
|
11240
|
+
};
|
|
10883
11241
|
"domains.claims.create": {
|
|
10884
11242
|
parameters: {
|
|
10885
11243
|
query?: never;
|
|
@@ -14953,6 +15311,286 @@ interface operations {
|
|
|
14953
15311
|
};
|
|
14954
15312
|
};
|
|
14955
15313
|
};
|
|
15314
|
+
"brand.get": {
|
|
15315
|
+
parameters: {
|
|
15316
|
+
query?: never;
|
|
15317
|
+
header?: never;
|
|
15318
|
+
path?: never;
|
|
15319
|
+
cookie?: never;
|
|
15320
|
+
};
|
|
15321
|
+
requestBody?: never;
|
|
15322
|
+
responses: {
|
|
15323
|
+
/** @description The brand defaults */
|
|
15324
|
+
200: {
|
|
15325
|
+
headers: {
|
|
15326
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15327
|
+
[name: string]: unknown;
|
|
15328
|
+
};
|
|
15329
|
+
content: {
|
|
15330
|
+
"application/json": components["schemas"]["Brand"];
|
|
15331
|
+
};
|
|
15332
|
+
};
|
|
15333
|
+
/** @description Missing, malformed, unknown or revoked API key */
|
|
15334
|
+
401: {
|
|
15335
|
+
headers: {
|
|
15336
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15337
|
+
[name: string]: unknown;
|
|
15338
|
+
};
|
|
15339
|
+
content: {
|
|
15340
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15341
|
+
};
|
|
15342
|
+
};
|
|
15343
|
+
/** @description A key held to one domain: the brand belongs to the team as a whole; refused to a sending-only key, a key held to one domain, a key held to one inbox (restricted_api_key) */
|
|
15344
|
+
403: {
|
|
15345
|
+
headers: {
|
|
15346
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15347
|
+
[name: string]: unknown;
|
|
15348
|
+
};
|
|
15349
|
+
content: {
|
|
15350
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15351
|
+
};
|
|
15352
|
+
};
|
|
15353
|
+
/** @description The team is gone */
|
|
15354
|
+
404: {
|
|
15355
|
+
headers: {
|
|
15356
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15357
|
+
[name: string]: unknown;
|
|
15358
|
+
};
|
|
15359
|
+
content: {
|
|
15360
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15361
|
+
};
|
|
15362
|
+
};
|
|
15363
|
+
/** @description Over the rate limit (rate_limit_exceeded, with Retry-After) */
|
|
15364
|
+
429: {
|
|
15365
|
+
headers: {
|
|
15366
|
+
/** @description Seconds until the request may be retried; sent with rate_limit_exceeded */
|
|
15367
|
+
"Retry-After"?: number;
|
|
15368
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15369
|
+
[name: string]: unknown;
|
|
15370
|
+
};
|
|
15371
|
+
content: {
|
|
15372
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15373
|
+
};
|
|
15374
|
+
};
|
|
15375
|
+
};
|
|
15376
|
+
};
|
|
15377
|
+
"brand.update": {
|
|
15378
|
+
parameters: {
|
|
15379
|
+
query?: never;
|
|
15380
|
+
header?: never;
|
|
15381
|
+
path?: never;
|
|
15382
|
+
cookie?: never;
|
|
15383
|
+
};
|
|
15384
|
+
requestBody?: {
|
|
15385
|
+
content: {
|
|
15386
|
+
"application/json": components["schemas"]["UpdateBrandRequest"];
|
|
15387
|
+
};
|
|
15388
|
+
};
|
|
15389
|
+
responses: {
|
|
15390
|
+
/** @description The brand defaults after the change */
|
|
15391
|
+
200: {
|
|
15392
|
+
headers: {
|
|
15393
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15394
|
+
[name: string]: unknown;
|
|
15395
|
+
};
|
|
15396
|
+
content: {
|
|
15397
|
+
"application/json": components["schemas"]["Brand"];
|
|
15398
|
+
};
|
|
15399
|
+
};
|
|
15400
|
+
/** @description Missing, malformed, unknown or revoked API key */
|
|
15401
|
+
401: {
|
|
15402
|
+
headers: {
|
|
15403
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15404
|
+
[name: string]: unknown;
|
|
15405
|
+
};
|
|
15406
|
+
content: {
|
|
15407
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15408
|
+
};
|
|
15409
|
+
};
|
|
15410
|
+
/** @description Needs a role with manage access, or a key held to one domain (the brand belongs to the team); refused to a sending-only key, a key held to one domain, a key held to one inbox (restricted_api_key) */
|
|
15411
|
+
403: {
|
|
15412
|
+
headers: {
|
|
15413
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15414
|
+
[name: string]: unknown;
|
|
15415
|
+
};
|
|
15416
|
+
content: {
|
|
15417
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15418
|
+
};
|
|
15419
|
+
};
|
|
15420
|
+
/** @description The team is gone */
|
|
15421
|
+
404: {
|
|
15422
|
+
headers: {
|
|
15423
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15424
|
+
[name: string]: unknown;
|
|
15425
|
+
};
|
|
15426
|
+
content: {
|
|
15427
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15428
|
+
};
|
|
15429
|
+
};
|
|
15430
|
+
/** @description Validation error */
|
|
15431
|
+
422: {
|
|
15432
|
+
headers: {
|
|
15433
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15434
|
+
[name: string]: unknown;
|
|
15435
|
+
};
|
|
15436
|
+
content: {
|
|
15437
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15438
|
+
};
|
|
15439
|
+
};
|
|
15440
|
+
/** @description Over the rate limit (rate_limit_exceeded, with Retry-After) */
|
|
15441
|
+
429: {
|
|
15442
|
+
headers: {
|
|
15443
|
+
/** @description Seconds until the request may be retried; sent with rate_limit_exceeded */
|
|
15444
|
+
"Retry-After"?: number;
|
|
15445
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15446
|
+
[name: string]: unknown;
|
|
15447
|
+
};
|
|
15448
|
+
content: {
|
|
15449
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15450
|
+
};
|
|
15451
|
+
};
|
|
15452
|
+
};
|
|
15453
|
+
};
|
|
15454
|
+
"brand.logo.upload": {
|
|
15455
|
+
parameters: {
|
|
15456
|
+
query?: never;
|
|
15457
|
+
header?: never;
|
|
15458
|
+
path?: never;
|
|
15459
|
+
cookie?: never;
|
|
15460
|
+
};
|
|
15461
|
+
requestBody: {
|
|
15462
|
+
content: {
|
|
15463
|
+
"multipart/form-data": components["schemas"]["UploadLogoForm"];
|
|
15464
|
+
};
|
|
15465
|
+
};
|
|
15466
|
+
responses: {
|
|
15467
|
+
/** @description Logo stored */
|
|
15468
|
+
200: {
|
|
15469
|
+
headers: {
|
|
15470
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15471
|
+
[name: string]: unknown;
|
|
15472
|
+
};
|
|
15473
|
+
content: {
|
|
15474
|
+
"application/json": components["schemas"]["LogoResponse"];
|
|
15475
|
+
};
|
|
15476
|
+
};
|
|
15477
|
+
/** @description Missing, malformed, unknown or revoked API key */
|
|
15478
|
+
401: {
|
|
15479
|
+
headers: {
|
|
15480
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15481
|
+
[name: string]: unknown;
|
|
15482
|
+
};
|
|
15483
|
+
content: {
|
|
15484
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15485
|
+
};
|
|
15486
|
+
};
|
|
15487
|
+
/** @description Needs a role with manage access, or a key held to one domain; refused to a sending-only key, a key held to one domain, a key held to one inbox (restricted_api_key) */
|
|
15488
|
+
403: {
|
|
15489
|
+
headers: {
|
|
15490
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15491
|
+
[name: string]: unknown;
|
|
15492
|
+
};
|
|
15493
|
+
content: {
|
|
15494
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15495
|
+
};
|
|
15496
|
+
};
|
|
15497
|
+
/** @description This deployment stores no logos */
|
|
15498
|
+
404: {
|
|
15499
|
+
headers: {
|
|
15500
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15501
|
+
[name: string]: unknown;
|
|
15502
|
+
};
|
|
15503
|
+
content: {
|
|
15504
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15505
|
+
};
|
|
15506
|
+
};
|
|
15507
|
+
/** @description No file, a file larger than the limit, or not a PNG, JPEG or WebP image */
|
|
15508
|
+
422: {
|
|
15509
|
+
headers: {
|
|
15510
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15511
|
+
[name: string]: unknown;
|
|
15512
|
+
};
|
|
15513
|
+
content: {
|
|
15514
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15515
|
+
};
|
|
15516
|
+
};
|
|
15517
|
+
/** @description Over the rate limit (rate_limit_exceeded, with Retry-After) */
|
|
15518
|
+
429: {
|
|
15519
|
+
headers: {
|
|
15520
|
+
/** @description Seconds until the request may be retried; sent with rate_limit_exceeded */
|
|
15521
|
+
"Retry-After"?: number;
|
|
15522
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15523
|
+
[name: string]: unknown;
|
|
15524
|
+
};
|
|
15525
|
+
content: {
|
|
15526
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15527
|
+
};
|
|
15528
|
+
};
|
|
15529
|
+
};
|
|
15530
|
+
};
|
|
15531
|
+
"brand.logo.delete": {
|
|
15532
|
+
parameters: {
|
|
15533
|
+
query?: never;
|
|
15534
|
+
header?: never;
|
|
15535
|
+
path?: never;
|
|
15536
|
+
cookie?: never;
|
|
15537
|
+
};
|
|
15538
|
+
requestBody?: never;
|
|
15539
|
+
responses: {
|
|
15540
|
+
/** @description Logo removed */
|
|
15541
|
+
200: {
|
|
15542
|
+
headers: {
|
|
15543
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15544
|
+
[name: string]: unknown;
|
|
15545
|
+
};
|
|
15546
|
+
content: {
|
|
15547
|
+
"application/json": components["schemas"]["RemoveLogoResponse"];
|
|
15548
|
+
};
|
|
15549
|
+
};
|
|
15550
|
+
/** @description Missing, malformed, unknown or revoked API key */
|
|
15551
|
+
401: {
|
|
15552
|
+
headers: {
|
|
15553
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15554
|
+
[name: string]: unknown;
|
|
15555
|
+
};
|
|
15556
|
+
content: {
|
|
15557
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15558
|
+
};
|
|
15559
|
+
};
|
|
15560
|
+
/** @description Needs a role with manage access, or a key held to one domain; refused to a sending-only key, a key held to one domain, a key held to one inbox (restricted_api_key) */
|
|
15561
|
+
403: {
|
|
15562
|
+
headers: {
|
|
15563
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15564
|
+
[name: string]: unknown;
|
|
15565
|
+
};
|
|
15566
|
+
content: {
|
|
15567
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15568
|
+
};
|
|
15569
|
+
};
|
|
15570
|
+
/** @description This deployment stores no logos */
|
|
15571
|
+
404: {
|
|
15572
|
+
headers: {
|
|
15573
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15574
|
+
[name: string]: unknown;
|
|
15575
|
+
};
|
|
15576
|
+
content: {
|
|
15577
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15578
|
+
};
|
|
15579
|
+
};
|
|
15580
|
+
/** @description Over the rate limit (rate_limit_exceeded, with Retry-After) */
|
|
15581
|
+
429: {
|
|
15582
|
+
headers: {
|
|
15583
|
+
/** @description Seconds until the request may be retried; sent with rate_limit_exceeded */
|
|
15584
|
+
"Retry-After"?: number;
|
|
15585
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
15586
|
+
[name: string]: unknown;
|
|
15587
|
+
};
|
|
15588
|
+
content: {
|
|
15589
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15590
|
+
};
|
|
15591
|
+
};
|
|
15592
|
+
};
|
|
15593
|
+
};
|
|
14956
15594
|
"usage.get": {
|
|
14957
15595
|
parameters: {
|
|
14958
15596
|
query?: never;
|
|
@@ -20410,6 +21048,8 @@ interface CallInit<P extends ApiPath, M extends HttpMethod> {
|
|
|
20410
21048
|
/** The operation honours `Idempotency-Key`: one is always sent, `idempotencyKey` or a new one. */
|
|
20411
21049
|
idempotent?: boolean;
|
|
20412
21050
|
idempotencyKey?: string;
|
|
21051
|
+
/** Not repeated after a 5xx or a dropped connection even though its method is repeatable (a 429 still is). */
|
|
21052
|
+
noRepeat?: boolean;
|
|
20413
21053
|
options?: RequestOptions;
|
|
20414
21054
|
/** `false` for the few operations that take no API key. */
|
|
20415
21055
|
auth?: boolean;
|
|
@@ -20443,6 +21083,92 @@ interface BatchSendOptions extends IdempotentRequestOptions {
|
|
|
20443
21083
|
batchValidation?: BatchValidation;
|
|
20444
21084
|
}
|
|
20445
21085
|
|
|
21086
|
+
/**
|
|
21087
|
+
* The image {@link BrandLogo.upload} and {@link DomainUnsubscribePageLogo.upload}
|
|
21088
|
+
* send: PNG, JPEG or WebP, at most 2 MiB (the API judges the format from the
|
|
21089
|
+
* bytes; SVG is refused).
|
|
21090
|
+
*/
|
|
21091
|
+
interface UploadLogoParams {
|
|
21092
|
+
/** The image: a `Blob` or `File`, or its bytes. */
|
|
21093
|
+
file: Blob | Uint8Array | ArrayBuffer;
|
|
21094
|
+
/**
|
|
21095
|
+
* The file name sent with the upload. A `File` keeps its own name; otherwise
|
|
21096
|
+
* the default is `logo.png`, `logo.jpg` or `logo.webp`, by what the bytes are.
|
|
21097
|
+
*/
|
|
21098
|
+
filename?: string;
|
|
21099
|
+
/**
|
|
21100
|
+
* The content type of the part. A `Blob` or `File` keeps its own type;
|
|
21101
|
+
* otherwise it is judged from the bytes (`image/png`, `image/jpeg` or
|
|
21102
|
+
* `image/webp`).
|
|
21103
|
+
*/
|
|
21104
|
+
contentType?: string;
|
|
21105
|
+
}
|
|
21106
|
+
/** `/brand/logo`: the team's default logo. */
|
|
21107
|
+
declare class BrandLogo extends Resource {
|
|
21108
|
+
/**
|
|
21109
|
+
* `PUT /brand/logo`: uploads the team's logo (PNG, JPEG or WebP, at most 2 MiB)
|
|
21110
|
+
* as `multipart/form-data`. An upload is not repeated after a 5xx or a dropped
|
|
21111
|
+
* connection (a 429 is).
|
|
21112
|
+
*/
|
|
21113
|
+
upload(params: UploadLogoParams, options?: RequestOptions): Promise<Result<{
|
|
21114
|
+
object: "logo";
|
|
21115
|
+
logo_url: string;
|
|
21116
|
+
}>>;
|
|
21117
|
+
/** `DELETE /brand/logo` */
|
|
21118
|
+
delete(options?: RequestOptions): Promise<Result<{
|
|
21119
|
+
object: "logo";
|
|
21120
|
+
deleted: true;
|
|
21121
|
+
}>>;
|
|
21122
|
+
}
|
|
21123
|
+
/** `/brand`: the team's default look for its recipient-facing pages. */
|
|
21124
|
+
declare class Brand extends Resource {
|
|
21125
|
+
readonly logo: BrandLogo;
|
|
21126
|
+
/** `GET /brand` */
|
|
21127
|
+
get(options?: RequestOptions): Promise<Result<{
|
|
21128
|
+
object: "brand";
|
|
21129
|
+
logo_url: string | null;
|
|
21130
|
+
accent_color: string | null;
|
|
21131
|
+
font: "geist" | "system" | "serif" | "mono" | null;
|
|
21132
|
+
company_address: string | null;
|
|
21133
|
+
powered_by: boolean;
|
|
21134
|
+
powered_by_locked: boolean;
|
|
21135
|
+
show_topics: boolean;
|
|
21136
|
+
branding_locked: boolean;
|
|
21137
|
+
}>>;
|
|
21138
|
+
/** `PATCH /brand`: fields not sent keep their value. */
|
|
21139
|
+
update(payload: RequestBody<"/brand", "patch">, options?: RequestOptions): Promise<Result<{
|
|
21140
|
+
object: "brand";
|
|
21141
|
+
logo_url: string | null;
|
|
21142
|
+
accent_color: string | null;
|
|
21143
|
+
font: "geist" | "system" | "serif" | "mono" | null;
|
|
21144
|
+
company_address: string | null;
|
|
21145
|
+
powered_by: boolean;
|
|
21146
|
+
powered_by_locked: boolean;
|
|
21147
|
+
show_topics: boolean;
|
|
21148
|
+
branding_locked: boolean;
|
|
21149
|
+
}>>;
|
|
21150
|
+
}
|
|
21151
|
+
/** `/domains/{id}/unsubscribe-page/logo`: one domain's own unsubscribe-page logo. */
|
|
21152
|
+
declare class DomainUnsubscribePageLogo extends Resource {
|
|
21153
|
+
/**
|
|
21154
|
+
* `PUT /domains/{id}/unsubscribe-page/logo`: uploads the domain's logo (PNG,
|
|
21155
|
+
* JPEG or WebP, at most 2 MiB) as `multipart/form-data`. An upload is not
|
|
21156
|
+
* repeated after a 5xx or a dropped connection (a 429 is).
|
|
21157
|
+
*/
|
|
21158
|
+
upload(id: string, params: UploadLogoParams, options?: RequestOptions): Promise<Result<{
|
|
21159
|
+
object: "logo";
|
|
21160
|
+
logo_url: string;
|
|
21161
|
+
}>>;
|
|
21162
|
+
/** `DELETE /domains/{id}/unsubscribe-page/logo` */
|
|
21163
|
+
delete(id: string, options?: RequestOptions): Promise<Result<{
|
|
21164
|
+
object: "logo";
|
|
21165
|
+
deleted: true;
|
|
21166
|
+
}>>;
|
|
21167
|
+
}
|
|
21168
|
+
declare class DomainUnsubscribePage extends Resource {
|
|
21169
|
+
readonly logo: DomainUnsubscribePageLogo;
|
|
21170
|
+
}
|
|
21171
|
+
|
|
20446
21172
|
declare class DomainClaims extends Resource {
|
|
20447
21173
|
/** `POST /domains/claim`: starts a claim on a domain another team already holds. */
|
|
20448
21174
|
create(payload: RequestBody<"/domains/claim", "post">, options?: RequestOptions): Promise<Result<{
|
|
@@ -20504,6 +21230,7 @@ declare class DomainClaims extends Resource {
|
|
|
20504
21230
|
}
|
|
20505
21231
|
declare class Domains extends Resource {
|
|
20506
21232
|
readonly claims: DomainClaims;
|
|
21233
|
+
readonly unsubscribePage: DomainUnsubscribePage;
|
|
20507
21234
|
/** `POST /domains` */
|
|
20508
21235
|
create(payload: RequestBody<"/domains", "post">, options?: RequestOptions): Promise<Result<{
|
|
20509
21236
|
id: string;
|
|
@@ -20525,6 +21252,9 @@ declare class Domains extends Resource {
|
|
|
20525
21252
|
message: string | null;
|
|
20526
21253
|
success_message: string | null;
|
|
20527
21254
|
redirect_url: string | null;
|
|
21255
|
+
support_url: string | null;
|
|
21256
|
+
powered_by: boolean | null;
|
|
21257
|
+
powered_by_effective: boolean;
|
|
20528
21258
|
background_color: string | null;
|
|
20529
21259
|
text_color: string | null;
|
|
20530
21260
|
accent_color: string | null;
|
|
@@ -20576,6 +21306,9 @@ declare class Domains extends Resource {
|
|
|
20576
21306
|
message: string | null;
|
|
20577
21307
|
success_message: string | null;
|
|
20578
21308
|
redirect_url: string | null;
|
|
21309
|
+
support_url: string | null;
|
|
21310
|
+
powered_by: boolean | null;
|
|
21311
|
+
powered_by_effective: boolean;
|
|
20579
21312
|
background_color: string | null;
|
|
20580
21313
|
text_color: string | null;
|
|
20581
21314
|
accent_color: string | null;
|
|
@@ -20616,6 +21349,9 @@ declare class Domains extends Resource {
|
|
|
20616
21349
|
message: string | null;
|
|
20617
21350
|
success_message: string | null;
|
|
20618
21351
|
redirect_url: string | null;
|
|
21352
|
+
support_url: string | null;
|
|
21353
|
+
powered_by: boolean | null;
|
|
21354
|
+
powered_by_effective: boolean;
|
|
20619
21355
|
background_color: string | null;
|
|
20620
21356
|
text_color: string | null;
|
|
20621
21357
|
accent_color: string | null;
|
|
@@ -20644,6 +21380,25 @@ declare class Domains extends Resource {
|
|
|
20644
21380
|
inherited_from?: string;
|
|
20645
21381
|
policy?: "none" | "quarantine" | "reject";
|
|
20646
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
|
+
};
|
|
20647
21402
|
}>>;
|
|
20648
21403
|
/** `PATCH /domains/{id}` */
|
|
20649
21404
|
update(id: string, payload: RequestBody<"/domains/{id}", "patch">, options?: RequestOptions): Promise<Result<{
|
|
@@ -20666,6 +21421,9 @@ declare class Domains extends Resource {
|
|
|
20666
21421
|
message: string | null;
|
|
20667
21422
|
success_message: string | null;
|
|
20668
21423
|
redirect_url: string | null;
|
|
21424
|
+
support_url: string | null;
|
|
21425
|
+
powered_by: boolean | null;
|
|
21426
|
+
powered_by_effective: boolean;
|
|
20669
21427
|
background_color: string | null;
|
|
20670
21428
|
text_color: string | null;
|
|
20671
21429
|
accent_color: string | null;
|
|
@@ -20694,6 +21452,25 @@ declare class Domains extends Resource {
|
|
|
20694
21452
|
inherited_from?: string;
|
|
20695
21453
|
policy?: "none" | "quarantine" | "reject";
|
|
20696
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
|
+
};
|
|
20697
21474
|
}>>;
|
|
20698
21475
|
/** `DELETE /domains/{id}` */
|
|
20699
21476
|
delete(id: string, options?: RequestOptions): Promise<Result<{
|
|
@@ -20722,6 +21499,9 @@ declare class Domains extends Resource {
|
|
|
20722
21499
|
message: string | null;
|
|
20723
21500
|
success_message: string | null;
|
|
20724
21501
|
redirect_url: string | null;
|
|
21502
|
+
support_url: string | null;
|
|
21503
|
+
powered_by: boolean | null;
|
|
21504
|
+
powered_by_effective: boolean;
|
|
20725
21505
|
background_color: string | null;
|
|
20726
21506
|
text_color: string | null;
|
|
20727
21507
|
accent_color: string | null;
|
|
@@ -20750,6 +21530,25 @@ declare class Domains extends Resource {
|
|
|
20750
21530
|
inherited_from?: string;
|
|
20751
21531
|
policy?: "none" | "quarantine" | "reject";
|
|
20752
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
|
+
};
|
|
20753
21552
|
}>>;
|
|
20754
21553
|
}
|
|
20755
21554
|
declare class ApiKeys extends Resource {
|
|
@@ -21372,6 +22171,8 @@ declare class Broadcasts extends Resource {
|
|
|
21372
22171
|
domain_id: string | null;
|
|
21373
22172
|
html: string | null;
|
|
21374
22173
|
text: string | null;
|
|
22174
|
+
dormant_check: boolean;
|
|
22175
|
+
include_dormant: boolean;
|
|
21375
22176
|
}>>;
|
|
21376
22177
|
/** `PATCH /broadcasts/{id}` */
|
|
21377
22178
|
update(id: string, payload: RequestBody<"/broadcasts/{id}", "patch">, options?: RequestOptions): Promise<Result<{
|
|
@@ -23285,6 +24086,7 @@ declare class Suppressions extends Resource {
|
|
|
23285
24086
|
removable: boolean;
|
|
23286
24087
|
origin: "bounce" | "complaint" | "manual";
|
|
23287
24088
|
source_id: string | null;
|
|
24089
|
+
note: string | null;
|
|
23288
24090
|
created_at: string;
|
|
23289
24091
|
}[];
|
|
23290
24092
|
has_more: boolean;
|
|
@@ -23300,6 +24102,7 @@ declare class Suppressions extends Resource {
|
|
|
23300
24102
|
removable: boolean;
|
|
23301
24103
|
origin: "bounce" | "complaint" | "manual";
|
|
23302
24104
|
source_id: string | null;
|
|
24105
|
+
note: string | null;
|
|
23303
24106
|
created_at: string;
|
|
23304
24107
|
object: "suppression";
|
|
23305
24108
|
}>>;
|
|
@@ -23437,6 +24240,7 @@ declare class BillionSend {
|
|
|
23437
24240
|
readonly events: Events;
|
|
23438
24241
|
readonly logs: Logs;
|
|
23439
24242
|
readonly oauthGrants: OauthGrants;
|
|
24243
|
+
readonly brand: Brand;
|
|
23440
24244
|
/**
|
|
23441
24245
|
* @param apiKeyOrOptions An API key (`bs_...`), or options. Without a key the
|
|
23442
24246
|
* client reads `BILLIONSEND_API_KEY`; only `agent.signup` works with no key at all.
|
|
@@ -23472,7 +24276,7 @@ declare function paginate<Item extends {
|
|
|
23472
24276
|
id: string;
|
|
23473
24277
|
}>(fetchPage: (cursor: Cursor) => Promise<Result<CursorPage<Item>>>, start?: Cursor): AsyncGenerator<Item, void, undefined>;
|
|
23474
24278
|
|
|
23475
|
-
declare const VERSION = "0.
|
|
24279
|
+
declare const VERSION = "0.3.1";
|
|
23476
24280
|
|
|
23477
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 };
|
|
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 };
|
|
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 };
|