@getlatedev/node 0.2.340 → 0.2.342

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
@@ -13914,7 +13914,7 @@ type SearchInboxConversationsData = {
13914
13914
  */
13915
13915
  cursor?: string;
13916
13916
  /**
13917
- * Only match messages sent to you (incoming) or by you (outgoing)
13917
+ * Only match messages sent to you (incoming) or by you (outgoing). Contact-identity matching is not applied when this is set.
13918
13918
  */
13919
13919
  direction?: 'incoming' | 'outgoing';
13920
13920
  /**
@@ -13930,7 +13930,7 @@ type SearchInboxConversationsData = {
13930
13930
  */
13931
13931
  profileId?: string;
13932
13932
  /**
13933
- * Text to search for in message content
13933
+ * Text to search for, in message content and in the contact's name, username, or phone number
13934
13934
  */
13935
13935
  query: string;
13936
13936
  };
@@ -13948,14 +13948,18 @@ type SearchInboxConversationsResponse = ({
13948
13948
  participantUsername?: (string) | null;
13949
13949
  participantPicture?: (string) | null;
13950
13950
  status?: 'active' | 'archived';
13951
+ /**
13952
+ * The conversation's most recent message preview
13953
+ */
13954
+ lastMessage?: (string) | null;
13951
13955
  lastMessageAt?: (string) | null;
13952
13956
  };
13953
13957
  /**
13954
- * Total number of matching messages in this conversation
13958
+ * Number of matching messages in this conversation. 0 when the conversation matched only on contact identity (name, username, or phone number), not on message text.
13955
13959
  */
13956
13960
  matchCount?: number;
13957
13961
  /**
13958
- * Up to 3 most-recent matching messages
13962
+ * Up to 3 most-recent matching messages (empty for an identity-only match)
13959
13963
  */
13960
13964
  matches?: Array<{
13961
13965
  id?: string;
@@ -22638,6 +22642,14 @@ type ListAdAccountsResponse = ({
22638
22642
  * Signed UTC offset in hours, reflecting current DST (Meta only).
22639
22643
  */
22640
22644
  timezoneOffsetHoursUtc?: number;
22645
+ /**
22646
+ * Meta only. Whether the account can create/run ads now. Absent (treat as true) on non-Meta platforms.
22647
+ */
22648
+ selectable?: boolean;
22649
+ /**
22650
+ * Meta only. Human-readable reason when selectable is false; null when selectable.
22651
+ */
22652
+ unusableReason?: (string) | null;
22641
22653
  }>;
22642
22654
  });
22643
22655
  type ListAdAccountsError = ({
package/dist/index.d.ts CHANGED
@@ -13914,7 +13914,7 @@ type SearchInboxConversationsData = {
13914
13914
  */
13915
13915
  cursor?: string;
13916
13916
  /**
13917
- * Only match messages sent to you (incoming) or by you (outgoing)
13917
+ * Only match messages sent to you (incoming) or by you (outgoing). Contact-identity matching is not applied when this is set.
13918
13918
  */
13919
13919
  direction?: 'incoming' | 'outgoing';
13920
13920
  /**
@@ -13930,7 +13930,7 @@ type SearchInboxConversationsData = {
13930
13930
  */
13931
13931
  profileId?: string;
13932
13932
  /**
13933
- * Text to search for in message content
13933
+ * Text to search for, in message content and in the contact's name, username, or phone number
13934
13934
  */
13935
13935
  query: string;
13936
13936
  };
@@ -13948,14 +13948,18 @@ type SearchInboxConversationsResponse = ({
13948
13948
  participantUsername?: (string) | null;
13949
13949
  participantPicture?: (string) | null;
13950
13950
  status?: 'active' | 'archived';
13951
+ /**
13952
+ * The conversation's most recent message preview
13953
+ */
13954
+ lastMessage?: (string) | null;
13951
13955
  lastMessageAt?: (string) | null;
13952
13956
  };
13953
13957
  /**
13954
- * Total number of matching messages in this conversation
13958
+ * Number of matching messages in this conversation. 0 when the conversation matched only on contact identity (name, username, or phone number), not on message text.
13955
13959
  */
13956
13960
  matchCount?: number;
13957
13961
  /**
13958
- * Up to 3 most-recent matching messages
13962
+ * Up to 3 most-recent matching messages (empty for an identity-only match)
13959
13963
  */
13960
13964
  matches?: Array<{
13961
13965
  id?: string;
@@ -22638,6 +22642,14 @@ type ListAdAccountsResponse = ({
22638
22642
  * Signed UTC offset in hours, reflecting current DST (Meta only).
22639
22643
  */
22640
22644
  timezoneOffsetHoursUtc?: number;
22645
+ /**
22646
+ * Meta only. Whether the account can create/run ads now. Absent (treat as true) on non-Meta platforms.
22647
+ */
22648
+ selectable?: boolean;
22649
+ /**
22650
+ * Meta only. Human-readable reason when selectable is false; null when selectable.
22651
+ */
22652
+ unusableReason?: (string) | null;
22641
22653
  }>;
22642
22654
  });
22643
22655
  type ListAdAccountsError = ({
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.340",
39
+ version: "0.2.342",
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.340",
8
+ version: "0.2.342",
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.340",
3
+ "version": "0.2.342",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2718,11 +2718,14 @@ export const createInboxConversation = <ThrowOnError extends boolean = false>(op
2718
2718
 
2719
2719
  /**
2720
2720
  * Search conversations
2721
- * Search message text across your conversations and get back the conversations that contain the query, each with up to 3 most-recent matching messages. Useful for finding threads about a topic, or (with direction=outgoing) collecting examples of how you write to customers, for example to teach an AI agent your tone of voice.
2721
+ * Search your conversations two ways at once, and get back the matching conversations, most-recent match first:
2722
2722
  *
2723
- * Only platforms whose messages are stored by Zernio are searchable: WhatsApp, SMS, Telegram, Facebook and Instagram. Twitter/X, Bluesky and Reddit conversations are fetched live from the platforms and cannot be searched; those accounts are listed in meta.accountsSkipped.
2723
+ * - Message text: matches words inside message bodies. Case-insensitive and accent-insensitive, exact tokens only (no substrings, no stemming). Each hit carries up to 3 most-recent matching messages. With direction=outgoing you can collect examples of how you write to customers, for example to teach an AI agent your tone of voice.
2724
+ * - Contact identity: matches the participant's name, username, or phone number as a case-insensitive substring. These hits have matchCount 0 and an empty matches array.
2724
2725
  *
2725
- * Matching is word-based: case-insensitive and accent-insensitive, exact tokens only (no substrings, no stemming). Quote a phrase to match it exactly.
2726
+ * A conversation that matches both ways is returned once, carrying its message matches.
2727
+ *
2728
+ * Only platforms whose messages are stored by Zernio are searchable: WhatsApp, SMS, Telegram, Facebook, Instagram, Twitter/X and Reddit. Bluesky conversations are fetched live from the platform and cannot be searched; those accounts are listed in meta.accountsSkipped.
2726
2729
  *
2727
2730
  */
2728
2731
  export const searchInboxConversations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SearchInboxConversationsData, ThrowOnError>) => {
@@ -13837,7 +13837,7 @@ export type SearchInboxConversationsData = {
13837
13837
  */
13838
13838
  cursor?: string;
13839
13839
  /**
13840
- * Only match messages sent to you (incoming) or by you (outgoing)
13840
+ * Only match messages sent to you (incoming) or by you (outgoing). Contact-identity matching is not applied when this is set.
13841
13841
  */
13842
13842
  direction?: 'incoming' | 'outgoing';
13843
13843
  /**
@@ -13853,7 +13853,7 @@ export type SearchInboxConversationsData = {
13853
13853
  */
13854
13854
  profileId?: string;
13855
13855
  /**
13856
- * Text to search for in message content
13856
+ * Text to search for, in message content and in the contact's name, username, or phone number
13857
13857
  */
13858
13858
  query: string;
13859
13859
  };
@@ -13872,14 +13872,18 @@ export type SearchInboxConversationsResponse = ({
13872
13872
  participantUsername?: (string) | null;
13873
13873
  participantPicture?: (string) | null;
13874
13874
  status?: 'active' | 'archived';
13875
+ /**
13876
+ * The conversation's most recent message preview
13877
+ */
13878
+ lastMessage?: (string) | null;
13875
13879
  lastMessageAt?: (string) | null;
13876
13880
  };
13877
13881
  /**
13878
- * Total number of matching messages in this conversation
13882
+ * Number of matching messages in this conversation. 0 when the conversation matched only on contact identity (name, username, or phone number), not on message text.
13879
13883
  */
13880
13884
  matchCount?: number;
13881
13885
  /**
13882
- * Up to 3 most-recent matching messages
13886
+ * Up to 3 most-recent matching messages (empty for an identity-only match)
13883
13887
  */
13884
13888
  matches?: Array<{
13885
13889
  id?: string;
@@ -23273,6 +23277,14 @@ export type ListAdAccountsResponse = ({
23273
23277
  * Signed UTC offset in hours, reflecting current DST (Meta only).
23274
23278
  */
23275
23279
  timezoneOffsetHoursUtc?: number;
23280
+ /**
23281
+ * Meta only. Whether the account can create/run ads now. Absent (treat as true) on non-Meta platforms.
23282
+ */
23283
+ selectable?: boolean;
23284
+ /**
23285
+ * Meta only. Human-readable reason when selectable is false; null when selectable.
23286
+ */
23287
+ unusableReason?: (string) | null;
23276
23288
  }>;
23277
23289
  });
23278
23290