@messagebird/sdk 0.46.0 → 0.47.0

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 CHANGED
@@ -8970,6 +8970,16 @@ type EventWhatsAppReceivedData = EventWhatsAppBase & {
8970
8970
  *
8971
8971
  */
8972
8972
  contact_cards?: Array<WhatsAppContactCard>;
8973
+ /**
8974
+ * The message this one answers, when WhatsApp reports it as a reply. Absent when it answers nothing, or when the message it names is not one we hold.
8975
+ *
8976
+ */
8977
+ in_reply_to_message_id?: WhatsAppMessageId;
8978
+ /**
8979
+ * What the contact tapped, when the message answers an interactive message or a template's quick-reply button.
8980
+ *
8981
+ */
8982
+ interactive_reply?: WhatsAppInteractiveReply;
8973
8983
  /**
8974
8984
  * Set when the contact sent content the API does not model, naming the WhatsApp content type.
8975
8985
  *
@@ -9340,6 +9350,10 @@ type VoiceInboundForwardAs = "dialed_number" | "calling_number";
9340
9350
  * - `caller_id_not_verified`: The number in the `From` header is not a verified
9341
9351
  * caller ID for this workspace. Verify it, or present a number you have
9342
9352
  * already verified.
9353
+ * - `number_ownership_not_verified`: You bought this number, but the country that
9354
+ * issued it has not yet accepted the documents proving your workspace owns it.
9355
+ * Open the number under Numbers and complete its ownership requirements, then
9356
+ * place the call again.
9343
9357
  * - `destination_not_enabled`: You have not turned on calling to this
9344
9358
  * destination country. Enable it in your voice destination settings.
9345
9359
  * - `insufficient_balance`: Your wallet did not cover the call. Top up, or turn
@@ -9362,7 +9376,7 @@ type VoiceInboundForwardAs = "dialed_number" | "calling_number";
9362
9376
  * - `call_not_permitted`: The call could not be priced for your account.
9363
9377
  *
9364
9378
  */
9365
- type VoiceCallRejectionReason = "source_not_allowed" | "caller_id_not_verified" | "routing_not_configured" | "no_route_found" | "destination_blocked" | "destination_not_enabled" | "insufficient_balance" | "daily_spend_exceeded" | "concurrent_calls_exceeded" | "calls_per_second_exceeded" | "call_not_permitted";
9379
+ type VoiceCallRejectionReason = "source_not_allowed" | "caller_id_not_verified" | "routing_not_configured" | "no_route_found" | "destination_blocked" | "destination_not_enabled" | "insufficient_balance" | "daily_spend_exceeded" | "concurrent_calls_exceeded" | "calls_per_second_exceeded" | "call_not_permitted" | "number_ownership_not_verified";
9366
9380
  type VoiceCallInboundRouteReject = {
9367
9381
  /**
9368
9382
  * The number turned the call away. This is where every number starts, so it covers a number nobody has configured as well as one set to reject.
package/dist/index.mjs CHANGED
@@ -7790,9 +7790,9 @@ var BirdClient = class {
7790
7790
  this.#headers = {
7791
7791
  ...opts.defaultHeaders,
7792
7792
  ...opts.apiKey ? { Authorization: `Bearer ${opts.apiKey}` } : {},
7793
- "User-Agent": `bird-sdk-js/0.46.0`,
7793
+ "User-Agent": `bird-sdk-js/0.47.0`,
7794
7794
  "Bird-Surface": "sdk-js",
7795
- "Bird-Version": "0.46.0"
7795
+ "Bird-Version": "0.47.0"
7796
7796
  };
7797
7797
  const caller = detectCaller();
7798
7798
  if (caller) this.#headers["Bird-Caller"] = caller;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messagebird/sdk",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "The official TypeScript SDK for the Bird API: email, SMS, WhatsApp, verification, and Realtime on one typed client.",
5
5
  "license": "MIT",
6
6
  "author": "Bird",