@getlatedev/node 0.2.1714 → 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
@@ -10708,6 +10708,14 @@ type ConversionEvent = {
10708
10708
  * Axon Pixel browser id (the `_axwrt` cookie). Sent to Axon as `user_data.axwrt`, not hashed.
10709
10709
  */
10710
10710
  axwrt?: string;
10711
+ /**
10712
+ * X click ID (the `twclid` URL param X adds to ad clicks). Sent to X as a `twclid` identifier, not hashed.
10713
+ */
10714
+ twclid?: string;
10715
+ /**
10716
+ * Microsoft Advertising click ID (the `msclkid` URL param Microsoft adds to ad clicks). Sent to Microsoft as `MicrosoftClickId`, not hashed.
10717
+ */
10718
+ msclkid?: string;
10711
10719
  };
10712
10720
  };
10713
10721
  /**
@@ -10961,7 +10969,7 @@ type CreateEmailDraftRequest = {
10961
10969
  html?: string;
10962
10970
  attachments?: Array<EmailAttachmentInput>;
10963
10971
  /**
10964
- * 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.
10965
10973
  */
10966
10974
  headers?: {
10967
10975
  [key: string]: (string);
@@ -20431,7 +20439,11 @@ type SendEmailRequest = {
20431
20439
  contentId?: string;
20432
20440
  }>;
20433
20441
  /**
20434
- * 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.
20435
20447
  */
20436
20448
  headers?: {
20437
20449
  [key: string]: (string);
@@ -73955,7 +73967,9 @@ type ListAdConversionDestinationsResponse = ({
73955
73967
  * Destination identifier. Meta: pixel ID. Google:
73956
73968
  * conversion action resource name. LinkedIn:
73957
73969
  * numeric conversion rule ID. OpenAI Ads: pixel wire
73958
- * id. Reddit: pixel id (`a2_...`).
73970
+ * id. Reddit: pixel id (`a2_...`). Microsoft
73971
+ * Advertising: `accounts/{id}/conversionGoals/{id}`.
73972
+ * X Ads: pixel event id (`tw-...`).
73959
73973
  *
73960
73974
  */
73961
73975
  id?: string;
@@ -74359,7 +74373,9 @@ type ListConversionDestinationsResponse = ({
74359
74373
  * Destination identifier. Meta: pixel ID. Google:
74360
74374
  * conversion action resource name. LinkedIn:
74361
74375
  * numeric conversion rule ID. OpenAI Ads: pixel wire
74362
- * id. Reddit: pixel id (`a2_...`).
74376
+ * id. Reddit: pixel id (`a2_...`). Microsoft
74377
+ * Advertising: `accounts/{id}/conversionGoals/{id}`.
74378
+ * X Ads: pixel event id (`tw-...`).
74363
74379
  *
74364
74380
  */
74365
74381
  id?: string;
package/dist/index.d.ts CHANGED
@@ -10708,6 +10708,14 @@ type ConversionEvent = {
10708
10708
  * Axon Pixel browser id (the `_axwrt` cookie). Sent to Axon as `user_data.axwrt`, not hashed.
10709
10709
  */
10710
10710
  axwrt?: string;
10711
+ /**
10712
+ * X click ID (the `twclid` URL param X adds to ad clicks). Sent to X as a `twclid` identifier, not hashed.
10713
+ */
10714
+ twclid?: string;
10715
+ /**
10716
+ * Microsoft Advertising click ID (the `msclkid` URL param Microsoft adds to ad clicks). Sent to Microsoft as `MicrosoftClickId`, not hashed.
10717
+ */
10718
+ msclkid?: string;
10711
10719
  };
10712
10720
  };
10713
10721
  /**
@@ -10961,7 +10969,7 @@ type CreateEmailDraftRequest = {
10961
10969
  html?: string;
10962
10970
  attachments?: Array<EmailAttachmentInput>;
10963
10971
  /**
10964
- * 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.
10965
10973
  */
10966
10974
  headers?: {
10967
10975
  [key: string]: (string);
@@ -20431,7 +20439,11 @@ type SendEmailRequest = {
20431
20439
  contentId?: string;
20432
20440
  }>;
20433
20441
  /**
20434
- * 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.
20435
20447
  */
20436
20448
  headers?: {
20437
20449
  [key: string]: (string);
@@ -73955,7 +73967,9 @@ type ListAdConversionDestinationsResponse = ({
73955
73967
  * Destination identifier. Meta: pixel ID. Google:
73956
73968
  * conversion action resource name. LinkedIn:
73957
73969
  * numeric conversion rule ID. OpenAI Ads: pixel wire
73958
- * id. Reddit: pixel id (`a2_...`).
73970
+ * id. Reddit: pixel id (`a2_...`). Microsoft
73971
+ * Advertising: `accounts/{id}/conversionGoals/{id}`.
73972
+ * X Ads: pixel event id (`tw-...`).
73959
73973
  *
73960
73974
  */
73961
73975
  id?: string;
@@ -74359,7 +74373,9 @@ type ListConversionDestinationsResponse = ({
74359
74373
  * Destination identifier. Meta: pixel ID. Google:
74360
74374
  * conversion action resource name. LinkedIn:
74361
74375
  * numeric conversion rule ID. OpenAI Ads: pixel wire
74362
- * id. Reddit: pixel id (`a2_...`).
74376
+ * id. Reddit: pixel id (`a2_...`). Microsoft
74377
+ * Advertising: `accounts/{id}/conversionGoals/{id}`.
74378
+ * X Ads: pixel event id (`tw-...`).
74363
74379
  *
74364
74380
  */
74365
74381
  id?: 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.1714",
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.1714",
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.1714",
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",
@@ -19897,6 +19897,8 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
19897
19897
  * - OpenAI Ads (`openaiads`) via its Conversions API (a separate host, `bzr.openai.com`)
19898
19898
  * - Pinterest (`pinterestads`) via `POST /v5/ad_accounts/{id}/events`
19899
19899
  * - Reddit (`redditads`) via the Reddit Conversions API (`POST /api/v3/pixels/{pixelId}/conversion_events`)
19900
+ * - Microsoft Advertising (`microsoftads`) via offline conversion uploads (`ApplyOfflineConversions`)
19901
+ * - X Ads (`xads`) via the X Conversion API (`POST /12/measurement/conversions/{pixelId}`)
19900
19902
  *
19901
19903
  * ### `destinationId` per platform
19902
19904
  *
@@ -19907,6 +19909,8 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
19907
19909
  * - OpenAI Ads: pixel wire id (numeric `pixel_id`, distinct from the internal pixel id), as returned by `GET /v1/ads/conversions/destinations`
19908
19910
  * - Pinterest: numeric ad account id, e.g. `549755885175` (Pinterest attributes to the ad account, not to a tag)
19909
19911
  * - Reddit: pixel id, e.g. `a2_abc123`, as returned by `GET /v1/ads/conversions/destinations` (any other shape returns 400)
19912
+ * - Microsoft Advertising: offline conversion goal, e.g. `accounts/123456789/conversionGoals/987654`. Each event needs `clickIds.msclkid`, an `email` or a `phone`; the goal decides the event type.
19913
+ * - X Ads: X Pixel event id, e.g. `tw-rbhhj-rcfms`. Each event needs `clickIds.twclid`, an `email`, a `phone`, or `ipAddress` plus `userAgent`; the event decides the type and `eventId` is sent as `conversion_id`.
19910
19914
  *
19911
19915
  * Callers can list valid destinations via `GET /v1/ads/conversions/destinations`.
19912
19916
  *
@@ -8554,6 +8554,14 @@ export type ConversionEvent = {
8554
8554
  * Axon Pixel browser id (the `_axwrt` cookie). Sent to Axon as `user_data.axwrt`, not hashed.
8555
8555
  */
8556
8556
  axwrt?: string;
8557
+ /**
8558
+ * X click ID (the `twclid` URL param X adds to ad clicks). Sent to X as a `twclid` identifier, not hashed.
8559
+ */
8560
+ twclid?: string;
8561
+ /**
8562
+ * Microsoft Advertising click ID (the `msclkid` URL param Microsoft adds to ad clicks). Sent to Microsoft as `MicrosoftClickId`, not hashed.
8563
+ */
8564
+ msclkid?: string;
8557
8565
  };
8558
8566
  };
8559
8567
  /**
@@ -8816,7 +8824,7 @@ export type CreateEmailDraftRequest = {
8816
8824
  html?: string;
8817
8825
  attachments?: Array<EmailAttachmentInput>;
8818
8826
  /**
8819
- * 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.
8820
8828
  */
8821
8829
  headers?: {
8822
8830
  [key: string]: (string);
@@ -18738,7 +18746,11 @@ export type SendEmailRequest = {
18738
18746
  contentId?: string;
18739
18747
  }>;
18740
18748
  /**
18741
- * 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.
18742
18754
  */
18743
18755
  headers?: {
18744
18756
  [key: string]: (string);
@@ -75797,7 +75809,9 @@ export type ListAdConversionDestinationsResponse = ({
75797
75809
  * Destination identifier. Meta: pixel ID. Google:
75798
75810
  * conversion action resource name. LinkedIn:
75799
75811
  * numeric conversion rule ID. OpenAI Ads: pixel wire
75800
- * id. Reddit: pixel id (`a2_...`).
75812
+ * id. Reddit: pixel id (`a2_...`). Microsoft
75813
+ * Advertising: `accounts/{id}/conversionGoals/{id}`.
75814
+ * X Ads: pixel event id (`tw-...`).
75801
75815
  *
75802
75816
  */
75803
75817
  id?: string;
@@ -76234,7 +76248,9 @@ export type ListConversionDestinationsResponse = ({
76234
76248
  * Destination identifier. Meta: pixel ID. Google:
76235
76249
  * conversion action resource name. LinkedIn:
76236
76250
  * numeric conversion rule ID. OpenAI Ads: pixel wire
76237
- * id. Reddit: pixel id (`a2_...`).
76251
+ * id. Reddit: pixel id (`a2_...`). Microsoft
76252
+ * Advertising: `accounts/{id}/conversionGoals/{id}`.
76253
+ * X Ads: pixel event id (`tw-...`).
76238
76254
  *
76239
76255
  */
76240
76256
  id?: string;