@getlatedev/node 0.2.340 → 0.2.341
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 +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -3
- package/src/generated/types.gen.ts +8 -4
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
|
-
*
|
|
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;
|
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
|
-
*
|
|
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;
|
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.
|
|
39
|
+
version: "0.2.341",
|
|
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.
|
|
8
|
+
version: "0.2.341",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -2718,11 +2718,14 @@ export const createInboxConversation = <ThrowOnError extends boolean = false>(op
|
|
|
2718
2718
|
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Search conversations
|
|
2721
|
-
* Search
|
|
2721
|
+
* Search your conversations two ways at once, and get back the matching conversations, most-recent match first:
|
|
2722
2722
|
*
|
|
2723
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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;
|