@getlatedev/node 0.2.1339 → 0.2.1340

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.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.1339",
39
+ version: "0.2.1340",
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.1339",
8
+ version: "0.2.1340",
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.1339",
3
+ "version": "0.2.1340",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1105,6 +1105,7 @@ export type AdLead = {
1105
1105
  fieldData?: Array<{
1106
1106
  [key: string]: unknown;
1107
1107
  }>;
1108
+ consents?: AdLeadConsents;
1108
1109
  /**
1109
1110
  * Meta leads only. `contacted` is set when the first WhatsApp message of a lead_received workflow is delivered, `unreachable` when it fails or the phone number is not valid.
1110
1111
  */
@@ -1127,6 +1128,22 @@ export type AdLead = {
1127
1128
  */
1128
1129
  export type status2 = 'new' | 'contacted' | 'unreachable' | 'qualified' | 'converted' | 'disqualified';
1129
1130
 
1131
+ /**
1132
+ * One custom disclaimer checkbox on a Meta lead form (for example a TCPA call or SMS consent), as Meta returns it in custom_disclaimer_responses.
1133
+ */
1134
+ export type AdLeadConsent = {
1135
+ /**
1136
+ * The checkbox key as Meta returns it: the one set in platformSpecificData.customDisclaimer.checkboxes[].key on POST /v1/ads/lead-forms, or otherwise a key Meta derives from the checkbox text, which can be long and contain spaces and punctuation.
1137
+ */
1138
+ checkboxKey: string;
1139
+ isChecked: boolean;
1140
+ };
1141
+
1142
+ /**
1143
+ * Meta lead forms only: the answer to every custom disclaimer checkbox, required or optional. Empty when the form has none, and may be empty on leads stored before 2026-10-22. LinkedIn leads do not carry the field.
1144
+ */
1145
+ export type AdLeadConsents = Array<AdLeadConsent>;
1146
+
1130
1147
  export type AdMetrics = {
1131
1148
  spend?: number;
1132
1149
  impressions?: number;
@@ -15979,6 +15996,10 @@ export type WebhookPayloadLead = {
15979
15996
  fields: {
15980
15997
  [key: string]: (string);
15981
15998
  };
15999
+ /**
16000
+ * Sent on every delivery since 2026-10-25. Absent when an older event is redelivered, since redeliveries replay the stored payload.
16001
+ */
16002
+ consents?: (AdLeadConsents);
15982
16003
  /**
15983
16004
  * True when the lead came from an organic post rather than a paid ad
15984
16005
  */
@@ -53783,6 +53804,7 @@ export type ListFormLeadsResponse = ({
53783
53804
  fieldData?: Array<{
53784
53805
  [key: string]: unknown;
53785
53806
  }>;
53807
+ consents?: AdLeadConsents;
53786
53808
  }>;
53787
53809
  pagination?: {
53788
53810
  hasMore?: boolean;