@messagebird/sdk 0.10.1 → 0.11.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
@@ -481,7 +481,7 @@ type EventWhatsAppAccepted = {
481
481
  data: EventWhatsAppAcceptedData;
482
482
  };
483
483
  /**
484
- * Payload of the voice.call.initiated event.
484
+ * Payload of the voice_call.initiated event.
485
485
  */
486
486
  type EventVoiceCallInitiatedData = EventVoiceBase;
487
487
  /**
@@ -523,7 +523,7 @@ type EventVoiceCallInitiated = {
523
523
  /**
524
524
  * Event type.
525
525
  */
526
- type: "voice.call.initiated";
526
+ type: "voice_call.initiated";
527
527
  /**
528
528
  * Time the call was initiated.
529
529
  */
@@ -536,7 +536,7 @@ type EventVoiceCallInitiated = {
536
536
  */
537
537
  type VoiceCallStatus = "answered" | "no_answer" | "busy" | "canceled" | "failed" | "rejected" | "unknown" | "ringing" | "in_progress";
538
538
  /**
539
- * Payload of the voice.call.ended event.
539
+ * Payload of the voice_call.ended event.
540
540
  */
541
541
  type EventVoiceCallEndedData = EventVoiceBase & {
542
542
  status: VoiceCallStatus;
@@ -560,7 +560,7 @@ type EventVoiceCallEnded = {
560
560
  /**
561
561
  * Event type.
562
562
  */
563
- type: "voice.call.ended";
563
+ type: "voice_call.ended";
564
564
  /**
565
565
  * When the call ended (BYE or final non-2xx response).
566
566
  */
@@ -568,7 +568,7 @@ type EventVoiceCallEnded = {
568
568
  data: EventVoiceCallEndedData;
569
569
  };
570
570
  /**
571
- * Payload of the voice.call.answered event.
571
+ * Payload of the voice_call.answered event.
572
572
  */
573
573
  type EventVoiceCallAnsweredData = EventVoiceBase;
574
574
  /**
@@ -578,7 +578,7 @@ type EventVoiceCallAnswered = {
578
578
  /**
579
579
  * Event type.
580
580
  */
581
- type: "voice.call.answered";
581
+ type: "voice_call.answered";
582
582
  /**
583
583
  * Time the call was answered.
584
584
  */
@@ -1818,11 +1818,11 @@ type WebhookEvent = ({
1818
1818
  } & EventSmsTfnVerificationSubmitted) | ({
1819
1819
  type: "sms.undelivered";
1820
1820
  } & EventSmsUndelivered) | ({
1821
- type: "voice.call.answered";
1821
+ type: "voice_call.answered";
1822
1822
  } & EventVoiceCallAnswered) | ({
1823
- type: "voice.call.ended";
1823
+ type: "voice_call.ended";
1824
1824
  } & EventVoiceCallEnded) | ({
1825
- type: "voice.call.initiated";
1825
+ type: "voice_call.initiated";
1826
1826
  } & EventVoiceCallInitiated) | ({
1827
1827
  type: "whatsapp.accepted";
1828
1828
  } & EventWhatsAppAccepted) | ({
@@ -6962,9 +6962,9 @@ declare const WebhookEventType: {
6962
6962
  readonly SmsTfnVerificationRejected: "sms.tfn_verification.rejected";
6963
6963
  readonly SmsTfnVerificationSubmitted: "sms.tfn_verification.submitted";
6964
6964
  readonly SmsUndelivered: "sms.undelivered";
6965
- readonly VoiceCallAnswered: "voice.call.answered";
6966
- readonly VoiceCallEnded: "voice.call.ended";
6967
- readonly VoiceCallInitiated: "voice.call.initiated";
6965
+ readonly VoiceCallAnswered: "voice_call.answered";
6966
+ readonly VoiceCallEnded: "voice_call.ended";
6967
+ readonly VoiceCallInitiated: "voice_call.initiated";
6968
6968
  readonly WhatsappAccepted: "whatsapp.accepted";
6969
6969
  readonly WhatsappDelivered: "whatsapp.delivered";
6970
6970
  readonly WhatsappFailed: "whatsapp.failed";
package/dist/index.mjs CHANGED
@@ -3935,9 +3935,9 @@ var BirdClient = class {
3935
3935
  this.#headers = {
3936
3936
  ...opts.defaultHeaders,
3937
3937
  Authorization: `Bearer ${opts.apiKey}`,
3938
- "User-Agent": `bird-sdk-js/0.10.1`,
3938
+ "User-Agent": `bird-sdk-js/0.11.0`,
3939
3939
  "Bird-Surface": "sdk-js",
3940
- "Bird-Version": "0.10.1"
3940
+ "Bird-Version": "0.11.0"
3941
3941
  };
3942
3942
  const caller = detectCaller();
3943
3943
  if (caller) this.#headers["Bird-Caller"] = caller;
@@ -4060,9 +4060,9 @@ const WebhookEventType = {
4060
4060
  SmsTfnVerificationRejected: "sms.tfn_verification.rejected",
4061
4061
  SmsTfnVerificationSubmitted: "sms.tfn_verification.submitted",
4062
4062
  SmsUndelivered: "sms.undelivered",
4063
- VoiceCallAnswered: "voice.call.answered",
4064
- VoiceCallEnded: "voice.call.ended",
4065
- VoiceCallInitiated: "voice.call.initiated",
4063
+ VoiceCallAnswered: "voice_call.answered",
4064
+ VoiceCallEnded: "voice_call.ended",
4065
+ VoiceCallInitiated: "voice_call.initiated",
4066
4066
  WhatsappAccepted: "whatsapp.accepted",
4067
4067
  WhatsappDelivered: "whatsapp.delivered",
4068
4068
  WhatsappFailed: "whatsapp.failed",