@getlatedev/node 0.2.1307 → 0.2.1309

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
@@ -33315,35 +33315,39 @@ type ListInboxMentionsResponse = ({
33315
33315
  * Mention document ID
33316
33316
  */
33317
33317
  id?: string;
33318
- platform?: 'linkedin' | 'instagram';
33318
+ platform?: 'linkedin' | 'instagram' | 'facebook';
33319
33319
  /**
33320
- * Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
33320
+ * Instagram and Facebook: `caption` when the Instagram account was tagged in a media caption, `post` when the Facebook Page was tagged in a post, `comment` when either was tagged in a comment. Null for LinkedIn.
33321
33321
  */
33322
- type?: ('caption' | 'comment') | null;
33322
+ type?: ('caption' | 'post' | 'comment') | null;
33323
33323
  /**
33324
- * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
33324
+ * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn and Facebook.
33325
33325
  */
33326
33326
  mediaId?: (string) | null;
33327
33327
  /**
33328
- * Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
33328
+ * Facebook only: ID of the post the Page was mentioned in (or under). Null for LinkedIn and Instagram.
33329
+ */
33330
+ postId?: (string) | null;
33331
+ /**
33332
+ * Instagram and Facebook: ID of the comment that mentioned the account. Null for caption and post mentions and for LinkedIn.
33329
33333
  */
33330
33334
  commentId?: (string) | null;
33331
33335
  accountId?: string;
33332
33336
  accountUsername?: string;
33333
33337
  /**
33334
- * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
33338
+ * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram, the post or comment text on Facebook. Empty until it has been read.
33335
33339
  */
33336
33340
  content?: string;
33337
33341
  /**
33338
- * URL to the source post on LinkedIn. Null on Instagram.
33342
+ * URL to the source post on LinkedIn. Null on Instagram and Facebook.
33339
33343
  */
33340
33344
  permalink?: (string) | null;
33341
33345
  /**
33342
- * LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
33346
+ * LinkedIn URN of the person who mentioned you, the Instagram-scoped ID of the commenter on an Instagram comment mention, or the ID of the Facebook user or Page that mentioned your Page when Meta sends it.
33343
33347
  */
33344
33348
  authorUrn?: (string) | null;
33345
33349
  /**
33346
- * Display name of the author, resolved from authorUrn. Null when LinkedIn does not allow resolving the profile.
33350
+ * Display name of the author, resolved from authorUrn on LinkedIn (null when LinkedIn does not allow resolving the profile) and taken from the webhook on Facebook.
33347
33351
  */
33348
33352
  authorName?: (string) | null;
33349
33353
  /**
@@ -33355,7 +33359,7 @@ type ListInboxMentionsResponse = ({
33355
33359
  */
33356
33360
  authorPicture?: (string) | null;
33357
33361
  /**
33358
- * URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
33362
+ * URN of the LinkedIn organization that was mentioned, the Instagram user ID of the mentioned account, or the ID of the mentioned Facebook Page.
33359
33363
  */
33360
33364
  organizationalEntity?: string;
33361
33365
  publishedAt?: string;
@@ -51295,10 +51299,13 @@ type CreateLeadFormData = {
51295
51299
  thankYouTitle?: string;
51296
51300
  thankYouBody?: string;
51297
51301
  thankYouButtonText?: string;
51302
+ /**
51303
+ * Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
51304
+ */
51298
51305
  thankYouButtonType?: string;
51299
51306
  thankYouWebsiteUrl?: string;
51300
51307
  /**
51301
- * Adds a 'Continue in Messenger' option to the thank-you page (Meta thank_you_page.enable_messenger), so the lead can carry on chatting with the Page. Set thankYouButtonType to MESSAGE_BUSINESS or P2B_MESSENGER to make the chat the primary button.
51308
+ * Sent as Meta thank_you_page.enable_messenger (boolean). Accepted only inside platformSpecificData: a top-level thankYouEnableMessenger is a 400.
51302
51309
  */
51303
51310
  thankYouEnableMessenger?: boolean;
51304
51311
  /**
package/dist/index.d.ts CHANGED
@@ -33315,35 +33315,39 @@ type ListInboxMentionsResponse = ({
33315
33315
  * Mention document ID
33316
33316
  */
33317
33317
  id?: string;
33318
- platform?: 'linkedin' | 'instagram';
33318
+ platform?: 'linkedin' | 'instagram' | 'facebook';
33319
33319
  /**
33320
- * Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
33320
+ * Instagram and Facebook: `caption` when the Instagram account was tagged in a media caption, `post` when the Facebook Page was tagged in a post, `comment` when either was tagged in a comment. Null for LinkedIn.
33321
33321
  */
33322
- type?: ('caption' | 'comment') | null;
33322
+ type?: ('caption' | 'post' | 'comment') | null;
33323
33323
  /**
33324
- * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
33324
+ * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn and Facebook.
33325
33325
  */
33326
33326
  mediaId?: (string) | null;
33327
33327
  /**
33328
- * Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
33328
+ * Facebook only: ID of the post the Page was mentioned in (or under). Null for LinkedIn and Instagram.
33329
+ */
33330
+ postId?: (string) | null;
33331
+ /**
33332
+ * Instagram and Facebook: ID of the comment that mentioned the account. Null for caption and post mentions and for LinkedIn.
33329
33333
  */
33330
33334
  commentId?: (string) | null;
33331
33335
  accountId?: string;
33332
33336
  accountUsername?: string;
33333
33337
  /**
33334
- * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
33338
+ * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram, the post or comment text on Facebook. Empty until it has been read.
33335
33339
  */
33336
33340
  content?: string;
33337
33341
  /**
33338
- * URL to the source post on LinkedIn. Null on Instagram.
33342
+ * URL to the source post on LinkedIn. Null on Instagram and Facebook.
33339
33343
  */
33340
33344
  permalink?: (string) | null;
33341
33345
  /**
33342
- * LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
33346
+ * LinkedIn URN of the person who mentioned you, the Instagram-scoped ID of the commenter on an Instagram comment mention, or the ID of the Facebook user or Page that mentioned your Page when Meta sends it.
33343
33347
  */
33344
33348
  authorUrn?: (string) | null;
33345
33349
  /**
33346
- * Display name of the author, resolved from authorUrn. Null when LinkedIn does not allow resolving the profile.
33350
+ * Display name of the author, resolved from authorUrn on LinkedIn (null when LinkedIn does not allow resolving the profile) and taken from the webhook on Facebook.
33347
33351
  */
33348
33352
  authorName?: (string) | null;
33349
33353
  /**
@@ -33355,7 +33359,7 @@ type ListInboxMentionsResponse = ({
33355
33359
  */
33356
33360
  authorPicture?: (string) | null;
33357
33361
  /**
33358
- * URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
33362
+ * URN of the LinkedIn organization that was mentioned, the Instagram user ID of the mentioned account, or the ID of the mentioned Facebook Page.
33359
33363
  */
33360
33364
  organizationalEntity?: string;
33361
33365
  publishedAt?: string;
@@ -51295,10 +51299,13 @@ type CreateLeadFormData = {
51295
51299
  thankYouTitle?: string;
51296
51300
  thankYouBody?: string;
51297
51301
  thankYouButtonText?: string;
51302
+ /**
51303
+ * Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
51304
+ */
51298
51305
  thankYouButtonType?: string;
51299
51306
  thankYouWebsiteUrl?: string;
51300
51307
  /**
51301
- * Adds a 'Continue in Messenger' option to the thank-you page (Meta thank_you_page.enable_messenger), so the lead can carry on chatting with the Page. Set thankYouButtonType to MESSAGE_BUSINESS or P2B_MESSENGER to make the chat the primary button.
51308
+ * Sent as Meta thank_you_page.enable_messenger (boolean). Accepted only inside platformSpecificData: a top-level thankYouEnableMessenger is a 400.
51302
51309
  */
51303
51310
  thankYouEnableMessenger?: boolean;
51304
51311
  /**
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.1307",
39
+ version: "0.2.1309",
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.1307",
8
+ version: "0.2.1309",
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.1307",
3
+ "version": "0.2.1309",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -5490,6 +5490,10 @@ export const getTweet = <ThrowOnError extends boolean = false>(options: OptionsL
5490
5490
  * own posts are never listed, even when they contain its @handle. Their text is read from Instagram
5491
5491
  * in the background after the first request, so `content` can be empty on the first read. Pass
5492
5492
  * `mediaId` and `commentId` to `POST /v1/inbox/mentions/reply` to answer one.
5493
+ * - **Facebook**: post mentions (someone tags the Page in a post) and comment mentions (someone tags
5494
+ * it in a comment), delivered by the Page `mention` webhook with their text. Comments on the Page's
5495
+ * own posts and anything the Page wrote itself are never listed. Facebook mentions cannot be replied
5496
+ * to through `POST /v1/inbox/mentions/reply`.
5493
5497
  *
5494
5498
  * Requires Inbox addon.
5495
5499
  *
@@ -13533,7 +13537,7 @@ export const listLeadForms = <ThrowOnError extends boolean = false>(options: Opt
13533
13537
  * Create a lead form
13534
13538
  * Creates a lead form on a Facebook Page or LinkedIn Company Page to collect contact details from ads.
13535
13539
  *
13536
- * The form content goes inside `platformSpecificData` for both platforms (the shape is selected by the accountId's platform). Meta: created on the connected Facebook Page (POST /{page-id}/leadgen_forms), where `accountId` may be the `metaads` ads connection (its Page comes from the Facebook account linked to the same profile), an Instagram account (the Page its ads run under: its own linked Page, else the Facebook or business-login Meta ads account on the same profile) or the Facebook account itself; the old top-level Meta fields (questions, thankYou*, contextCard, …) are DEPRECATED but still accepted while platformSpecificData is absent; mixing both shapes is a 400. LinkedIn: created on the ad account's Company Page. NOT idempotent: a retry creates a second form. Meta prefilled question types (EMAIL, PHONE, FULL_NAME, …) must omit label/key; CUSTOM questions require both. LinkedIn exposes only free-text and multiple-choice questions via API (prefilled-from-profile fields are Campaign Manager UI-only). Requires the Ads add-on.
13540
+ * The form content goes inside `platformSpecificData` for both platforms (the shape is selected by the accountId's platform). Meta: created on the connected Facebook Page (POST /{page-id}/leadgen_forms), where `accountId` may be the `metaads` ads connection (its Page comes from the Facebook account linked to the same profile), an Instagram account (the Page its ads run under: its own linked Page, else the Facebook or business-login Meta ads account on the same profile) or the Facebook account itself; the old top-level Meta fields (questions, thankYou*, contextCard, …) are DEPRECATED but still accepted while platformSpecificData is absent; mixing both shapes is a 400. thankYouEnableMessenger, isPhoneSmsVerifyEnabled and customDisclaimer are accepted only inside platformSpecificData (top-level is a 400). LinkedIn: created on the ad account's Company Page. NOT idempotent: a retry creates a second form. Meta prefilled question types (EMAIL, PHONE, FULL_NAME, …) must omit label/key; CUSTOM questions require both. LinkedIn exposes only free-text and multiple-choice questions via API (prefilled-from-profile fields are Campaign Manager UI-only). Requires the Ads add-on.
13537
13541
  *
13538
13542
  */
13539
13543
  export const createLeadForm = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateLeadFormData, ThrowOnError>) => {
@@ -32923,35 +32923,39 @@ export type ListInboxMentionsResponse = ({
32923
32923
  * Mention document ID
32924
32924
  */
32925
32925
  id?: string;
32926
- platform?: 'linkedin' | 'instagram';
32926
+ platform?: 'linkedin' | 'instagram' | 'facebook';
32927
32927
  /**
32928
- * Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
32928
+ * Instagram and Facebook: `caption` when the Instagram account was tagged in a media caption, `post` when the Facebook Page was tagged in a post, `comment` when either was tagged in a comment. Null for LinkedIn.
32929
32929
  */
32930
- type?: ('caption' | 'comment') | null;
32930
+ type?: ('caption' | 'post' | 'comment') | null;
32931
32931
  /**
32932
- * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
32932
+ * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn and Facebook.
32933
32933
  */
32934
32934
  mediaId?: (string) | null;
32935
32935
  /**
32936
- * Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
32936
+ * Facebook only: ID of the post the Page was mentioned in (or under). Null for LinkedIn and Instagram.
32937
+ */
32938
+ postId?: (string) | null;
32939
+ /**
32940
+ * Instagram and Facebook: ID of the comment that mentioned the account. Null for caption and post mentions and for LinkedIn.
32937
32941
  */
32938
32942
  commentId?: (string) | null;
32939
32943
  accountId?: string;
32940
32944
  accountUsername?: string;
32941
32945
  /**
32942
- * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
32946
+ * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram, the post or comment text on Facebook. Empty until it has been read.
32943
32947
  */
32944
32948
  content?: string;
32945
32949
  /**
32946
- * URL to the source post on LinkedIn. Null on Instagram.
32950
+ * URL to the source post on LinkedIn. Null on Instagram and Facebook.
32947
32951
  */
32948
32952
  permalink?: (string) | null;
32949
32953
  /**
32950
- * LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
32954
+ * LinkedIn URN of the person who mentioned you, the Instagram-scoped ID of the commenter on an Instagram comment mention, or the ID of the Facebook user or Page that mentioned your Page when Meta sends it.
32951
32955
  */
32952
32956
  authorUrn?: (string) | null;
32953
32957
  /**
32954
- * Display name of the author, resolved from authorUrn. Null when LinkedIn does not allow resolving the profile.
32958
+ * Display name of the author, resolved from authorUrn on LinkedIn (null when LinkedIn does not allow resolving the profile) and taken from the webhook on Facebook.
32955
32959
  */
32956
32960
  authorName?: (string) | null;
32957
32961
  /**
@@ -32963,7 +32967,7 @@ export type ListInboxMentionsResponse = ({
32963
32967
  */
32964
32968
  authorPicture?: (string) | null;
32965
32969
  /**
32966
- * URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
32970
+ * URN of the LinkedIn organization that was mentioned, the Instagram user ID of the mentioned account, or the ID of the mentioned Facebook Page.
32967
32971
  */
32968
32972
  organizationalEntity?: string;
32969
32973
  publishedAt?: string;
@@ -52211,10 +52215,13 @@ export type CreateLeadFormData = {
52211
52215
  thankYouTitle?: string;
52212
52216
  thankYouBody?: string;
52213
52217
  thankYouButtonText?: string;
52218
+ /**
52219
+ * Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
52220
+ */
52214
52221
  thankYouButtonType?: string;
52215
52222
  thankYouWebsiteUrl?: string;
52216
52223
  /**
52217
- * Adds a 'Continue in Messenger' option to the thank-you page (Meta thank_you_page.enable_messenger), so the lead can carry on chatting with the Page. Set thankYouButtonType to MESSAGE_BUSINESS or P2B_MESSENGER to make the chat the primary button.
52224
+ * Sent as Meta thank_you_page.enable_messenger (boolean). Accepted only inside platformSpecificData: a top-level thankYouEnableMessenger is a 400.
52218
52225
  */
52219
52226
  thankYouEnableMessenger?: boolean;
52220
52227
  /**