@getlatedev/node 0.2.1271 → 0.2.1272

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
@@ -32694,19 +32694,31 @@ type ListInboxMentionsResponse = ({
32694
32694
  * Mention document ID
32695
32695
  */
32696
32696
  id?: string;
32697
- platform?: 'linkedin';
32697
+ platform?: 'linkedin' | 'instagram';
32698
+ /**
32699
+ * Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
32700
+ */
32701
+ type?: ('caption' | 'comment') | null;
32702
+ /**
32703
+ * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
32704
+ */
32705
+ mediaId?: (string) | null;
32706
+ /**
32707
+ * Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
32708
+ */
32709
+ commentId?: (string) | null;
32698
32710
  accountId?: string;
32699
32711
  accountUsername?: string;
32700
32712
  /**
32701
- * Text of the post that mentioned you
32713
+ * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
32702
32714
  */
32703
32715
  content?: string;
32704
32716
  /**
32705
- * URL to the source post on LinkedIn
32717
+ * URL to the source post on LinkedIn. Null on Instagram.
32706
32718
  */
32707
32719
  permalink?: (string) | null;
32708
32720
  /**
32709
- * LinkedIn URN of the person who mentioned you
32721
+ * LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
32710
32722
  */
32711
32723
  authorUrn?: (string) | null;
32712
32724
  /**
@@ -32714,7 +32726,7 @@ type ListInboxMentionsResponse = ({
32714
32726
  */
32715
32727
  authorName?: (string) | null;
32716
32728
  /**
32717
- * LinkedIn vanity name of the author (the slug in their profile URL)
32729
+ * LinkedIn vanity name of the author (the slug in their profile URL), or the Instagram username of the commenter or media owner.
32718
32730
  */
32719
32731
  authorUsername?: (string) | null;
32720
32732
  /**
@@ -32722,7 +32734,7 @@ type ListInboxMentionsResponse = ({
32722
32734
  */
32723
32735
  authorPicture?: (string) | null;
32724
32736
  /**
32725
- * URN of the organization that was mentioned
32737
+ * URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
32726
32738
  */
32727
32739
  organizationalEntity?: string;
32728
32740
  publishedAt?: string;
package/dist/index.d.ts CHANGED
@@ -32694,19 +32694,31 @@ type ListInboxMentionsResponse = ({
32694
32694
  * Mention document ID
32695
32695
  */
32696
32696
  id?: string;
32697
- platform?: 'linkedin';
32697
+ platform?: 'linkedin' | 'instagram';
32698
+ /**
32699
+ * Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
32700
+ */
32701
+ type?: ('caption' | 'comment') | null;
32702
+ /**
32703
+ * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
32704
+ */
32705
+ mediaId?: (string) | null;
32706
+ /**
32707
+ * Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
32708
+ */
32709
+ commentId?: (string) | null;
32698
32710
  accountId?: string;
32699
32711
  accountUsername?: string;
32700
32712
  /**
32701
- * Text of the post that mentioned you
32713
+ * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
32702
32714
  */
32703
32715
  content?: string;
32704
32716
  /**
32705
- * URL to the source post on LinkedIn
32717
+ * URL to the source post on LinkedIn. Null on Instagram.
32706
32718
  */
32707
32719
  permalink?: (string) | null;
32708
32720
  /**
32709
- * LinkedIn URN of the person who mentioned you
32721
+ * LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
32710
32722
  */
32711
32723
  authorUrn?: (string) | null;
32712
32724
  /**
@@ -32714,7 +32726,7 @@ type ListInboxMentionsResponse = ({
32714
32726
  */
32715
32727
  authorName?: (string) | null;
32716
32728
  /**
32717
- * LinkedIn vanity name of the author (the slug in their profile URL)
32729
+ * LinkedIn vanity name of the author (the slug in their profile URL), or the Instagram username of the commenter or media owner.
32718
32730
  */
32719
32731
  authorUsername?: (string) | null;
32720
32732
  /**
@@ -32722,7 +32734,7 @@ type ListInboxMentionsResponse = ({
32722
32734
  */
32723
32735
  authorPicture?: (string) | null;
32724
32736
  /**
32725
- * URN of the organization that was mentioned
32737
+ * URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
32726
32738
  */
32727
32739
  organizationalEntity?: string;
32728
32740
  publishedAt?: 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.1271",
39
+ version: "0.2.1272",
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.1271",
8
+ version: "0.2.1272",
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.1271",
3
+ "version": "0.2.1272",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -5429,8 +5429,15 @@ export const getTweet = <ThrowOnError extends boolean = false>(options: OptionsL
5429
5429
 
5430
5430
  /**
5431
5431
  * List mentions
5432
- * Returns mentions of your connected organization accounts, delivered via platform webhooks.
5433
- * Currently supports LinkedIn organization mentions.
5432
+ * Returns mentions of your connected accounts from the last 7 days.
5433
+ *
5434
+ * - **LinkedIn**: organization mentions, delivered by webhooks and a background pull.
5435
+ * - **Instagram**: comment mentions (someone tags the account in a comment) and caption mentions
5436
+ * (someone tags it in their media caption), delivered by Meta webhooks. Accounts connected through
5437
+ * Instagram Login receive comment mentions only. Accounts connected through Facebook Login receive
5438
+ * both; their text is read from Instagram in the background after the first request, so `content`
5439
+ * can be empty on the first read. Pass `mediaId` and `commentId` to `POST /v1/inbox/mentions/reply`
5440
+ * to answer one.
5434
5441
  *
5435
5442
  * Requires Inbox addon.
5436
5443
  *
@@ -5455,10 +5462,8 @@ export const listInboxMentions = <ThrowOnError extends boolean = false>(options?
5455
5462
  *
5456
5463
  * Story mentions are not supported by Instagram's API.
5457
5464
  *
5458
- * `GET /v1/inbox/mentions` currently returns LinkedIn mentions only and does
5459
- * not surface Instagram mentions. Source `mediaId` and `commentId` from Instagram's
5460
- * `comments` webhook, which is where mention notifications are delivered for accounts
5461
- * connected through Instagram Login.
5465
+ * `GET /v1/inbox/mentions` returns Instagram mentions with the `mediaId` and `commentId`
5466
+ * to pass here.
5462
5467
  *
5463
5468
  */
5464
5469
  export const replyToMention = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ReplyToMentionData, ThrowOnError>) => {
@@ -32276,19 +32276,31 @@ export type ListInboxMentionsResponse = ({
32276
32276
  * Mention document ID
32277
32277
  */
32278
32278
  id?: string;
32279
- platform?: 'linkedin';
32279
+ platform?: 'linkedin' | 'instagram';
32280
+ /**
32281
+ * Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
32282
+ */
32283
+ type?: ('caption' | 'comment') | null;
32284
+ /**
32285
+ * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
32286
+ */
32287
+ mediaId?: (string) | null;
32288
+ /**
32289
+ * Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
32290
+ */
32291
+ commentId?: (string) | null;
32280
32292
  accountId?: string;
32281
32293
  accountUsername?: string;
32282
32294
  /**
32283
- * Text of the post that mentioned you
32295
+ * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
32284
32296
  */
32285
32297
  content?: string;
32286
32298
  /**
32287
- * URL to the source post on LinkedIn
32299
+ * URL to the source post on LinkedIn. Null on Instagram.
32288
32300
  */
32289
32301
  permalink?: (string) | null;
32290
32302
  /**
32291
- * LinkedIn URN of the person who mentioned you
32303
+ * LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
32292
32304
  */
32293
32305
  authorUrn?: (string) | null;
32294
32306
  /**
@@ -32296,7 +32308,7 @@ export type ListInboxMentionsResponse = ({
32296
32308
  */
32297
32309
  authorName?: (string) | null;
32298
32310
  /**
32299
- * LinkedIn vanity name of the author (the slug in their profile URL)
32311
+ * LinkedIn vanity name of the author (the slug in their profile URL), or the Instagram username of the commenter or media owner.
32300
32312
  */
32301
32313
  authorUsername?: (string) | null;
32302
32314
  /**
@@ -32304,7 +32316,7 @@ export type ListInboxMentionsResponse = ({
32304
32316
  */
32305
32317
  authorPicture?: (string) | null;
32306
32318
  /**
32307
- * URN of the organization that was mentioned
32319
+ * URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
32308
32320
  */
32309
32321
  organizationalEntity?: string;
32310
32322
  publishedAt?: string;