@messagebird/sdk 0.7.0 → 0.7.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/dist/index.d.mts +16 -16
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2104,7 +2104,7 @@ type SmsMessageSendRequest = unknown & {
|
|
|
2104
2104
|
*/
|
|
2105
2105
|
category?: SmsMessageCategory;
|
|
2106
2106
|
/**
|
|
2107
|
-
* Preview feature — how long, in seconds (60–172800), Bird keeps trying to deliver before the message transitions to `expired`. Currently unavailable; supplying this field returns `422
|
|
2107
|
+
* Preview feature — how long, in seconds (60–172800), Bird keeps trying to deliver before the message transitions to `expired`. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2108
2108
|
*
|
|
2109
2109
|
*/
|
|
2110
2110
|
validity_period?: number;
|
|
@@ -2121,15 +2121,15 @@ type SmsMessageSendRequest = unknown & {
|
|
|
2121
2121
|
[key: string]: unknown;
|
|
2122
2122
|
};
|
|
2123
2123
|
/**
|
|
2124
|
-
* Preview feature — multimedia (MMS) attachments. Currently unavailable; supplying this field returns `422
|
|
2124
|
+
* Preview feature — multimedia (MMS) attachments. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2125
2125
|
*/
|
|
2126
2126
|
media_urls?: Array<string>;
|
|
2127
2127
|
/**
|
|
2128
|
-
* Preview feature — sender selection from a messaging profile pool. Currently unavailable; supplying this field returns `422
|
|
2128
|
+
* Preview feature — sender selection from a messaging profile pool. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2129
2129
|
*/
|
|
2130
2130
|
messaging_profile_id?: string;
|
|
2131
2131
|
/**
|
|
2132
|
-
* Preview feature — send-later scheduling. Currently unavailable; supplying this field returns `422
|
|
2132
|
+
* Preview feature — send-later scheduling. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2133
2133
|
*/
|
|
2134
2134
|
scheduled_at?: string;
|
|
2135
2135
|
/**
|
|
@@ -2138,37 +2138,37 @@ type SmsMessageSendRequest = unknown & {
|
|
|
2138
2138
|
*/
|
|
2139
2139
|
template?: SmsTemplateSend;
|
|
2140
2140
|
/**
|
|
2141
|
-
* Preview feature — broadcast correlation. Currently unavailable; supplying this field returns `422
|
|
2141
|
+
* Preview feature — broadcast correlation. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2142
2142
|
*/
|
|
2143
2143
|
broadcast_id?: string;
|
|
2144
2144
|
/**
|
|
2145
|
-
* Preview feature — campaign correlation for analytics. Currently unavailable; supplying this field returns `422
|
|
2145
|
+
* Preview feature — campaign correlation for analytics. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2146
2146
|
*/
|
|
2147
2147
|
campaign_id?: string;
|
|
2148
2148
|
/**
|
|
2149
|
-
* Preview feature — audience-targeted sends. Currently unavailable; supplying this field returns `422
|
|
2149
|
+
* Preview feature — audience-targeted sends. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2150
2150
|
*/
|
|
2151
2151
|
audience_id?: string;
|
|
2152
2152
|
/**
|
|
2153
|
-
* Preview feature — contact-targeted sends. Currently unavailable; supplying this field returns `422
|
|
2153
|
+
* Preview feature — contact-targeted sends. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2154
2154
|
*/
|
|
2155
2155
|
contact_id?: string;
|
|
2156
2156
|
/**
|
|
2157
|
-
* Preview feature — topic-gated sends. Currently unavailable; supplying this field returns `422
|
|
2157
|
+
* Preview feature — topic-gated sends. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2158
2158
|
*/
|
|
2159
2159
|
topic_id?: string;
|
|
2160
2160
|
/**
|
|
2161
|
-
* Preview feature — per-segment price ceiling. Currently unavailable; supplying this field returns `422
|
|
2161
|
+
* Preview feature — per-segment price ceiling. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2162
2162
|
*/
|
|
2163
2163
|
max_price_per_segment?: number;
|
|
2164
2164
|
/**
|
|
2165
|
-
* Preview feature — per-recipient substitution for batch sends. Currently unavailable; supplying this field returns `422
|
|
2165
|
+
* Preview feature — per-recipient substitution for batch sends. Currently unavailable; supplying this field returns `422 SMSUnsupportedFeature`.
|
|
2166
2166
|
*/
|
|
2167
2167
|
personalization?: {
|
|
2168
2168
|
[key: string]: unknown;
|
|
2169
2169
|
};
|
|
2170
2170
|
/**
|
|
2171
|
-
* Preview feature — link click tracking. Defaults to `false`. Currently unavailable; setting this to `true` returns `422
|
|
2171
|
+
* Preview feature — link click tracking. Defaults to `false`. Currently unavailable; setting this to `true` returns `422 SMSUnsupportedFeature`.
|
|
2172
2172
|
*/
|
|
2173
2173
|
track_clicks?: boolean;
|
|
2174
2174
|
};
|
|
@@ -2452,7 +2452,7 @@ type EmailAttachment = {
|
|
|
2452
2452
|
*/
|
|
2453
2453
|
content: string;
|
|
2454
2454
|
/**
|
|
2455
|
-
* Preview feature — provide a URL and Bird fetches the attachment for you. Currently unavailable. Use `content` instead. The schema currently requires `content`, so a request with only `path` is rejected with 422 for missing `content`; a request supplying both `content` and `path` is rejected with 422 `
|
|
2455
|
+
* Preview feature — provide a URL and Bird fetches the attachment for you. Currently unavailable. Use `content` instead. The schema currently requires `content`, so a request with only `path` is rejected with 422 for missing `content`; a request supplying both `content` and `path` is rejected with 422 `UnsupportedEmailFeature` until this preview ships. When generally available: HTTPS-only, single redirect followed and re-validated, private IP ranges blocked, request timeout enforced, fetched content counts toward the 20 MB estimated generated message-size cap after encoding and MIME wrapping.
|
|
2456
2456
|
*
|
|
2457
2457
|
*/
|
|
2458
2458
|
path?: string;
|
|
@@ -2574,7 +2574,7 @@ type EmailMessageSendRequest = {
|
|
|
2574
2574
|
*/
|
|
2575
2575
|
category?: "marketing" | "transactional";
|
|
2576
2576
|
/**
|
|
2577
|
-
* Preview feature — threaded replies. Currently unavailable; supplying this field returns `422
|
|
2577
|
+
* Preview feature — threaded replies. Currently unavailable; supplying this field returns `422 UnsupportedEmailFeature`. When generally available, sets In-Reply-To and References headers automatically.
|
|
2578
2578
|
*/
|
|
2579
2579
|
in_reply_to_message_id?: EmailId;
|
|
2580
2580
|
/**
|
|
@@ -2588,11 +2588,11 @@ type EmailMessageSendRequest = {
|
|
|
2588
2588
|
*/
|
|
2589
2589
|
scheduled_at?: string;
|
|
2590
2590
|
/**
|
|
2591
|
-
* Preview feature — contact-targeted sends. Currently unavailable; supplying this field returns `422
|
|
2591
|
+
* Preview feature — contact-targeted sends. Currently unavailable; supplying this field returns `422 UnsupportedEmailFeature`.
|
|
2592
2592
|
*/
|
|
2593
2593
|
contact_id?: string;
|
|
2594
2594
|
/**
|
|
2595
|
-
* Preview feature — topic-gated sends. Currently unavailable; supplying this field returns `422
|
|
2595
|
+
* Preview feature — topic-gated sends. Currently unavailable; supplying this field returns `422 UnsupportedEmailFeature`. When generally available, a non-empty `topic_id` gates delivery on the recipient's opt-in state for that topic — if the recipient is opt_out, the send is silently suppressed and an `email.suppressed` event fires with `reason: topic_opt_out`.
|
|
2596
2596
|
*
|
|
2597
2597
|
*/
|
|
2598
2598
|
topic_id?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2930,9 +2930,9 @@ var BirdClient = class {
|
|
|
2930
2930
|
this.#headers = {
|
|
2931
2931
|
...opts.defaultHeaders,
|
|
2932
2932
|
Authorization: `Bearer ${opts.apiKey}`,
|
|
2933
|
-
"User-Agent": `bird-sdk-js/0.7.
|
|
2933
|
+
"User-Agent": `bird-sdk-js/0.7.1`,
|
|
2934
2934
|
"Bird-Surface": "sdk-js",
|
|
2935
|
-
"Bird-Version": "0.7.
|
|
2935
|
+
"Bird-Version": "0.7.1"
|
|
2936
2936
|
};
|
|
2937
2937
|
const caller = detectCaller();
|
|
2938
2938
|
if (caller) this.#headers["Bird-Caller"] = caller;
|