@getlatedev/node 0.2.876 → 0.2.878

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
@@ -8990,6 +8990,9 @@ type SocialAccount = {
8990
8990
  * - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one.
8991
8991
  * - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName.
8992
8992
  *
8993
+ * For Instagram accounts:
8994
+ * - loginMethod: "facebook_login" when the account was connected through Facebook Login. Absent on accounts connected with Instagram Login. On facebook_login accounts, comment reads leave hidden comments out entirely instead of returning them with isHidden true.
8995
+ *
8993
8996
  * For X (Twitter) accounts:
8994
8997
  * - profileData.extraData.isPremium: Whether X reports a paid subscription (Basic, Premium, Premium+, or a blue verified badge), which raises the post length limit from 280 to 25,000 characters. Read live at connect and reconnect and refreshed by the daily follower snapshot; because X intermittently reports no subscription for subscribed accounts, a cancellation is stored on the fourth consecutive daily snapshot that reports it (about four days). Accounts connected before the extraData layout carry the same flag at profileData.isPremium.
8995
8998
  *
@@ -11854,9 +11857,15 @@ type WebhookPayloadMessageSent = {
11854
11857
  conversation: InboxWebhookConversation;
11855
11858
  account: InboxWebhookAccount;
11856
11859
  /**
11857
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards or the TikTok message type. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
11860
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
11858
11861
  */
11859
11862
  metadata?: {
11863
+ /**
11864
+ * Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
11865
+ */
11866
+ metaInteractive?: {
11867
+ [key: string]: unknown;
11868
+ };
11860
11869
  /**
11861
11870
  * WhatsApp only. The location pin this message carries, in the same
11862
11871
  * shape the inbox send API accepts. Present on API sends that passed
@@ -23440,11 +23449,13 @@ type GetInboxConversationMessagesResponse = ({
23440
23449
  * delivered as `message.platformMessageId` on webhooks),
23441
23450
  * `waInteractive` (a compact descriptor of WhatsApp interactive
23442
23451
  * content sent: buttons / list / cta_url / flow / location_request),
23443
- * and for inbound interactive taps `interactiveType` / `interactiveId`.
23444
- * It can also carry `source` (`whatsapp_business_app` /
23445
- * `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on
23446
- * a POST /v1/whatsapp/bulk send), which is where the message reached us
23447
- * from rather than who produced it: read `sentVia` for that.
23452
+ * `metaInteractive` (outgoing Instagram/Facebook buttons, quickReplies
23453
+ * and template, as sent), and for inbound interactive taps
23454
+ * `interactiveType` / `interactiveId`. It can also carry `source`
23455
+ * (`whatsapp_business_app` / `coexistence_history` on a WhatsApp
23456
+ * Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send),
23457
+ * which is where the message reached us from rather than who produced
23458
+ * it: read `sentVia` for that.
23448
23459
  *
23449
23460
  */
23450
23461
  metadata?: {
@@ -24714,7 +24725,7 @@ type ListInboxCommentsError = ({
24714
24725
  type GetInboxPostCommentsData = {
24715
24726
  path: {
24716
24727
  /**
24717
- * Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID. On Facebook and Instagram, a comment ID is also accepted here and returns that comment's replies.
24728
+ * Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID. On Facebook, a comment ID is also accepted here and returns that comment's replies (not supported on Instagram).
24718
24729
  */
24719
24730
  postId: string;
24720
24731
  };
@@ -24786,7 +24797,7 @@ type GetInboxPostCommentsResponse = ({
24786
24797
  */
24787
24798
  canLike?: boolean;
24788
24799
  /**
24789
- * Whether the comment is currently hidden
24800
+ * Whether the comment is currently hidden. On Instagram accounts connected through Facebook Login, Meta leaves hidden comments (and their replies) out of the list entirely, so they never appear with isHidden true; Instagram Login accounts and Facebook Pages return them with isHidden true.
24790
24801
  */
24791
24802
  isHidden?: boolean;
24792
24803
  /**
package/dist/index.d.ts CHANGED
@@ -8990,6 +8990,9 @@ type SocialAccount = {
8990
8990
  * - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one.
8991
8991
  * - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName.
8992
8992
  *
8993
+ * For Instagram accounts:
8994
+ * - loginMethod: "facebook_login" when the account was connected through Facebook Login. Absent on accounts connected with Instagram Login. On facebook_login accounts, comment reads leave hidden comments out entirely instead of returning them with isHidden true.
8995
+ *
8993
8996
  * For X (Twitter) accounts:
8994
8997
  * - profileData.extraData.isPremium: Whether X reports a paid subscription (Basic, Premium, Premium+, or a blue verified badge), which raises the post length limit from 280 to 25,000 characters. Read live at connect and reconnect and refreshed by the daily follower snapshot; because X intermittently reports no subscription for subscribed accounts, a cancellation is stored on the fourth consecutive daily snapshot that reports it (about four days). Accounts connected before the extraData layout carry the same flag at profileData.isPremium.
8995
8998
  *
@@ -11854,9 +11857,15 @@ type WebhookPayloadMessageSent = {
11854
11857
  conversation: InboxWebhookConversation;
11855
11858
  account: InboxWebhookAccount;
11856
11859
  /**
11857
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards or the TikTok message type. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
11860
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
11858
11861
  */
11859
11862
  metadata?: {
11863
+ /**
11864
+ * Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
11865
+ */
11866
+ metaInteractive?: {
11867
+ [key: string]: unknown;
11868
+ };
11860
11869
  /**
11861
11870
  * WhatsApp only. The location pin this message carries, in the same
11862
11871
  * shape the inbox send API accepts. Present on API sends that passed
@@ -23440,11 +23449,13 @@ type GetInboxConversationMessagesResponse = ({
23440
23449
  * delivered as `message.platformMessageId` on webhooks),
23441
23450
  * `waInteractive` (a compact descriptor of WhatsApp interactive
23442
23451
  * content sent: buttons / list / cta_url / flow / location_request),
23443
- * and for inbound interactive taps `interactiveType` / `interactiveId`.
23444
- * It can also carry `source` (`whatsapp_business_app` /
23445
- * `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on
23446
- * a POST /v1/whatsapp/bulk send), which is where the message reached us
23447
- * from rather than who produced it: read `sentVia` for that.
23452
+ * `metaInteractive` (outgoing Instagram/Facebook buttons, quickReplies
23453
+ * and template, as sent), and for inbound interactive taps
23454
+ * `interactiveType` / `interactiveId`. It can also carry `source`
23455
+ * (`whatsapp_business_app` / `coexistence_history` on a WhatsApp
23456
+ * Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send),
23457
+ * which is where the message reached us from rather than who produced
23458
+ * it: read `sentVia` for that.
23448
23459
  *
23449
23460
  */
23450
23461
  metadata?: {
@@ -24714,7 +24725,7 @@ type ListInboxCommentsError = ({
24714
24725
  type GetInboxPostCommentsData = {
24715
24726
  path: {
24716
24727
  /**
24717
- * Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID. On Facebook and Instagram, a comment ID is also accepted here and returns that comment's replies.
24728
+ * Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID. On Facebook, a comment ID is also accepted here and returns that comment's replies (not supported on Instagram).
24718
24729
  */
24719
24730
  postId: string;
24720
24731
  };
@@ -24786,7 +24797,7 @@ type GetInboxPostCommentsResponse = ({
24786
24797
  */
24787
24798
  canLike?: boolean;
24788
24799
  /**
24789
- * Whether the comment is currently hidden
24800
+ * Whether the comment is currently hidden. On Instagram accounts connected through Facebook Login, Meta leaves hidden comments (and their replies) out of the list entirely, so they never appear with isHidden true; Instagram Login accounts and Facebook Pages return them with isHidden true.
24790
24801
  */
24791
24802
  isHidden?: boolean;
24792
24803
  /**
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.876",
39
+ version: "0.2.878",
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.876",
8
+ version: "0.2.878",
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.876",
3
+ "version": "0.2.878",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -4246,9 +4246,10 @@ export const listInboxComments = <ThrowOnError extends boolean = false>(options?
4246
4246
  * Get post comments
4247
4247
  * Fetch comments for a specific post. Requires accountId query parameter.
4248
4248
  *
4249
- * On Facebook and Instagram, passing a COMMENT id as `postId` is also supported and
4250
- * returns that comment's replies instead of the post's top-level comments. This is not
4251
- * available on YouTube, where `postId` must be a video id.
4249
+ * On Facebook, passing a COMMENT id as `postId` is also supported and returns that
4250
+ * comment's replies instead of the post's top-level comments. Instagram does not support
4251
+ * this and returns 400: its replies come nested in each comment's `replies` array, with no
4252
+ * separate paging. YouTube does not support it either, `postId` must be a video id.
4252
4253
  *
4253
4254
  * Responses are cached for up to 10 minutes, so a page may lag new comments by that
4254
4255
  * window. Do not poll this endpoint for real-time updates: subscribe to the
@@ -4260,6 +4261,11 @@ export const listInboxComments = <ThrowOnError extends boolean = false>(options?
4260
4261
  * `commentId` pages the full reply list of one comment. Developer-app TikTok accounts
4261
4262
  * return 400 with code `PLATFORM_LIMITATION`.
4262
4263
  *
4264
+ * Hidden comments: Facebook Pages and Instagram accounts connected through Instagram Login
4265
+ * return them with `isHidden: true`. Instagram accounts connected through Facebook Login do
4266
+ * not return them at all (Meta omits them, together with their replies), so a hidden comment
4267
+ * and a deleted one look the same on this read.
4268
+ *
4263
4269
  */
4264
4270
  export const getInboxPostComments = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInboxPostCommentsData, ThrowOnError>) => {
4265
4271
  return (options?.client ?? client).get<GetInboxPostCommentsResponse, GetInboxPostCommentsError, ThrowOnError>({
@@ -7614,6 +7614,9 @@ export type SocialAccount = {
7614
7614
  * - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one.
7615
7615
  * - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName.
7616
7616
  *
7617
+ * For Instagram accounts:
7618
+ * - loginMethod: "facebook_login" when the account was connected through Facebook Login. Absent on accounts connected with Instagram Login. On facebook_login accounts, comment reads leave hidden comments out entirely instead of returning them with isHidden true.
7619
+ *
7617
7620
  * For X (Twitter) accounts:
7618
7621
  * - profileData.extraData.isPremium: Whether X reports a paid subscription (Basic, Premium, Premium+, or a blue verified badge), which raises the post length limit from 280 to 25,000 characters. Read live at connect and reconnect and refreshed by the daily follower snapshot; because X intermittently reports no subscription for subscribed accounts, a cancellation is stored on the fourth consecutive daily snapshot that reports it (about four days). Accounts connected before the extraData layout carry the same flag at profileData.isPremium.
7619
7622
  *
@@ -10572,9 +10575,15 @@ export type WebhookPayloadMessageSent = {
10572
10575
  conversation: InboxWebhookConversation;
10573
10576
  account: InboxWebhookAccount;
10574
10577
  /**
10575
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards or the TikTok message type. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
10578
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
10576
10579
  */
10577
10580
  metadata?: {
10581
+ /**
10582
+ * Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
10583
+ */
10584
+ metaInteractive?: {
10585
+ [key: string]: unknown;
10586
+ };
10578
10587
  /**
10579
10588
  * WhatsApp only. The location pin this message carries, in the same
10580
10589
  * shape the inbox send API accepts. Present on API sends that passed
@@ -22901,11 +22910,13 @@ export type GetInboxConversationMessagesResponse = ({
22901
22910
  * delivered as `message.platformMessageId` on webhooks),
22902
22911
  * `waInteractive` (a compact descriptor of WhatsApp interactive
22903
22912
  * content sent: buttons / list / cta_url / flow / location_request),
22904
- * and for inbound interactive taps `interactiveType` / `interactiveId`.
22905
- * It can also carry `source` (`whatsapp_business_app` /
22906
- * `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on
22907
- * a POST /v1/whatsapp/bulk send), which is where the message reached us
22908
- * from rather than who produced it: read `sentVia` for that.
22913
+ * `metaInteractive` (outgoing Instagram/Facebook buttons, quickReplies
22914
+ * and template, as sent), and for inbound interactive taps
22915
+ * `interactiveType` / `interactiveId`. It can also carry `source`
22916
+ * (`whatsapp_business_app` / `coexistence_history` on a WhatsApp
22917
+ * Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send),
22918
+ * which is where the message reached us from rather than who produced
22919
+ * it: read `sentVia` for that.
22909
22920
  *
22910
22921
  */
22911
22922
  metadata?: {
@@ -24240,7 +24251,7 @@ export type ListInboxCommentsError = ({
24240
24251
  export type GetInboxPostCommentsData = {
24241
24252
  path: {
24242
24253
  /**
24243
- * Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID. On Facebook and Instagram, a comment ID is also accepted here and returns that comment's replies.
24254
+ * Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID. On Facebook, a comment ID is also accepted here and returns that comment's replies (not supported on Instagram).
24244
24255
  */
24245
24256
  postId: string;
24246
24257
  };
@@ -24313,7 +24324,7 @@ export type GetInboxPostCommentsResponse = ({
24313
24324
  */
24314
24325
  canLike?: boolean;
24315
24326
  /**
24316
- * Whether the comment is currently hidden
24327
+ * Whether the comment is currently hidden. On Instagram accounts connected through Facebook Login, Meta leaves hidden comments (and their replies) out of the list entirely, so they never appear with isHidden true; Instagram Login accounts and Facebook Pages return them with isHidden true.
24317
24328
  */
24318
24329
  isHidden?: boolean;
24319
24330
  /**