@messagebird/sdk 0.8.1 → 0.8.3

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
@@ -849,6 +849,11 @@ type EventEmailMailboxMessageReceivedData = {
849
849
  * Number of attachments on the message. Metadata is durable; bytes are fetchable while within the 30-day original-source window.
850
850
  */
851
851
  attachment_count: number;
852
+ /**
853
+ * Whether the sender of the received message was authenticated. `pass` means the sender's identity was verified; `fail` means it was checked and did not verify; `unknown` means no verdict is available and the sender should not be treated as verified.
854
+ *
855
+ */
856
+ authentication?: "pass" | "fail" | "unknown" | null;
852
857
  /**
853
858
  * Whether SPF passed for the sender, or null when no verdict was computable.
854
859
  */
@@ -1109,6 +1114,11 @@ type EventEmailReceivedData = {
1109
1114
  * In-Reply-To header — the Message-ID this message replies to, or null when it is not a reply.
1110
1115
  */
1111
1116
  in_reply_to?: string | null;
1117
+ /**
1118
+ * Whether the sender of the received message was authenticated. `pass` means the sender's identity was verified; `fail` means it was checked and did not verify; `unknown` means no verdict is available and the sender should not be treated as verified.
1119
+ *
1120
+ */
1121
+ authentication?: "pass" | "fail" | "unknown" | null;
1112
1122
  /**
1113
1123
  * Whether SPF passed for the sender, or null when the result did not carry an SPF verdict.
1114
1124
  */
package/dist/index.mjs CHANGED
@@ -3153,9 +3153,9 @@ var BirdClient = class {
3153
3153
  this.#headers = {
3154
3154
  ...opts.defaultHeaders,
3155
3155
  Authorization: `Bearer ${opts.apiKey}`,
3156
- "User-Agent": `bird-sdk-js/0.8.1`,
3156
+ "User-Agent": `bird-sdk-js/0.8.3`,
3157
3157
  "Bird-Surface": "sdk-js",
3158
- "Bird-Version": "0.8.1"
3158
+ "Bird-Version": "0.8.3"
3159
3159
  };
3160
3160
  const caller = detectCaller();
3161
3161
  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.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "Official TypeScript SDK for the Bird API.",
5
5
  "license": "MIT",
6
6
  "author": "Bird",