@messagebird/sdk 0.38.1 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3700,7 +3700,7 @@ type WhatsAppMessageTemplateComponent = {
|
|
|
3700
3700
|
*/
|
|
3701
3701
|
type: string;
|
|
3702
3702
|
/**
|
|
3703
|
-
* The values that fill this part's placeholders. A positional template takes them in `{{n}}` placeholder order; a template with named parameters requires each parameter's `name` to match one the template declares, and order then carries no meaning. Send it on every part except `carousel`, which carries its values on `cards`.
|
|
3703
|
+
* The values that fill this part's placeholders. A positional template takes them in `{{n}}` placeholder order; a template with named parameters requires each parameter's `name` to match one the template declares, and order then carries no meaning. Send it on every part except `carousel`, which carries its values on `cards`. Send no `button` part at all for a button that takes no value, such as a `quick_reply` or `request_contact_info` button, or a `url` button whose address has no placeholder: a part the template has no slot for is refused here, before the message is sent and charged.
|
|
3704
3704
|
*
|
|
3705
3705
|
*/
|
|
3706
3706
|
parameters?: Array<WhatsAppMessageTemplateComponentParameter>;
|
package/dist/index.mjs
CHANGED
|
@@ -7378,9 +7378,9 @@ var BirdClient = class {
|
|
|
7378
7378
|
this.#headers = {
|
|
7379
7379
|
...opts.defaultHeaders,
|
|
7380
7380
|
Authorization: `Bearer ${opts.apiKey}`,
|
|
7381
|
-
"User-Agent": `bird-sdk-js/0.38.
|
|
7381
|
+
"User-Agent": `bird-sdk-js/0.38.2`,
|
|
7382
7382
|
"Bird-Surface": "sdk-js",
|
|
7383
|
-
"Bird-Version": "0.38.
|
|
7383
|
+
"Bird-Version": "0.38.2"
|
|
7384
7384
|
};
|
|
7385
7385
|
const caller = detectCaller();
|
|
7386
7386
|
if (caller) this.#headers["Bird-Caller"] = caller;
|
package/package.json
CHANGED