@getlatedev/node 0.2.1715 → 0.2.1716

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
@@ -10969,7 +10969,7 @@ type CreateEmailDraftRequest = {
10969
10969
  html?: string;
10970
10970
  attachments?: Array<EmailAttachmentInput>;
10971
10971
  /**
10972
- * Custom `X-` headers only.
10972
+ * Same headers as on `POST /v1/email/messages`: `X-` names plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Outlook drafts leave out all but `X-` headers.
10973
10973
  */
10974
10974
  headers?: {
10975
10975
  [key: string]: (string);
@@ -20439,7 +20439,11 @@ type SendEmailRequest = {
20439
20439
  contentId?: string;
20440
20440
  }>;
20441
20441
  /**
20442
- * Custom `X-` headers only. `List-Unsubscribe` is dropped on Microsoft and reported in `metadata.droppedHeaders`.
20442
+ * Custom headers: `X-` names, plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Other names, values with line breaks and header lines over 998 characters answer 400.
20443
+ *
20444
+ * `List-Unsubscribe` takes one or more `<https://...>` or `<mailto:...>` URIs separated by commas. `List-Unsubscribe-Post` must be exactly `List-Unsubscribe=One-Click` and needs an https URI in `List-Unsubscribe` (RFC 8058).
20445
+ *
20446
+ * Gmail and IMAP send them all. Outlook sends only `X-` headers: the others are left out and named in `metadata.droppedHeaders` on the sent message.
20443
20447
  */
20444
20448
  headers?: {
20445
20449
  [key: string]: (string);
package/dist/index.d.ts CHANGED
@@ -10969,7 +10969,7 @@ type CreateEmailDraftRequest = {
10969
10969
  html?: string;
10970
10970
  attachments?: Array<EmailAttachmentInput>;
10971
10971
  /**
10972
- * Custom `X-` headers only.
10972
+ * Same headers as on `POST /v1/email/messages`: `X-` names plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Outlook drafts leave out all but `X-` headers.
10973
10973
  */
10974
10974
  headers?: {
10975
10975
  [key: string]: (string);
@@ -20439,7 +20439,11 @@ type SendEmailRequest = {
20439
20439
  contentId?: string;
20440
20440
  }>;
20441
20441
  /**
20442
- * Custom `X-` headers only. `List-Unsubscribe` is dropped on Microsoft and reported in `metadata.droppedHeaders`.
20442
+ * Custom headers: `X-` names, plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Other names, values with line breaks and header lines over 998 characters answer 400.
20443
+ *
20444
+ * `List-Unsubscribe` takes one or more `<https://...>` or `<mailto:...>` URIs separated by commas. `List-Unsubscribe-Post` must be exactly `List-Unsubscribe=One-Click` and needs an https URI in `List-Unsubscribe` (RFC 8058).
20445
+ *
20446
+ * Gmail and IMAP send them all. Outlook sends only `X-` headers: the others are left out and named in `metadata.droppedHeaders` on the sent message.
20443
20447
  */
20444
20448
  headers?: {
20445
20449
  [key: string]: (string);
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1715",
39
+ version: "0.2.1716",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1715",
8
+ version: "0.2.1716",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1715",
3
+ "version": "0.2.1716",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -8824,7 +8824,7 @@ export type CreateEmailDraftRequest = {
8824
8824
  html?: string;
8825
8825
  attachments?: Array<EmailAttachmentInput>;
8826
8826
  /**
8827
- * Custom `X-` headers only.
8827
+ * Same headers as on `POST /v1/email/messages`: `X-` names plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Outlook drafts leave out all but `X-` headers.
8828
8828
  */
8829
8829
  headers?: {
8830
8830
  [key: string]: (string);
@@ -18746,7 +18746,11 @@ export type SendEmailRequest = {
18746
18746
  contentId?: string;
18747
18747
  }>;
18748
18748
  /**
18749
- * Custom `X-` headers only. `List-Unsubscribe` is dropped on Microsoft and reported in `metadata.droppedHeaders`.
18749
+ * Custom headers: `X-` names, plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Other names, values with line breaks and header lines over 998 characters answer 400.
18750
+ *
18751
+ * `List-Unsubscribe` takes one or more `<https://...>` or `<mailto:...>` URIs separated by commas. `List-Unsubscribe-Post` must be exactly `List-Unsubscribe=One-Click` and needs an https URI in `List-Unsubscribe` (RFC 8058).
18752
+ *
18753
+ * Gmail and IMAP send them all. Outlook sends only `X-` headers: the others are left out and named in `metadata.droppedHeaders` on the sent message.
18750
18754
  */
18751
18755
  headers?: {
18752
18756
  [key: string]: (string);