@getlatedev/node 0.2.339 → 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 +11 -7
- package/dist/index.d.ts +11 -7
- 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 +11 -7
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;
|
|
@@ -23101,7 +23105,7 @@ type CreateStandaloneAdData = {
|
|
|
23101
23105
|
/**
|
|
23102
23106
|
* Top-level platforms to deliver on. A position field below is only honoured when its parent platform is included here.
|
|
23103
23107
|
*/
|
|
23104
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
23108
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
23105
23109
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
23106
23110
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
23107
23111
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
|
@@ -23258,7 +23262,7 @@ type CreateStandaloneAdData = {
|
|
|
23258
23262
|
* Placements this asset is pinned to. At least one field must be set (an empty rule is invalid — that role is served by the default asset). Same enums as the top-level `placements` object.
|
|
23259
23263
|
*/
|
|
23260
23264
|
placements: {
|
|
23261
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
23265
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
23262
23266
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
23263
23267
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
23264
23268
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
|
@@ -24914,7 +24918,7 @@ type CreateCtwaAdData = {
|
|
|
24914
24918
|
/**
|
|
24915
24919
|
* Top-level platforms to deliver on. A position field below is only honoured when its parent platform is included here.
|
|
24916
24920
|
*/
|
|
24917
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
24921
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
24918
24922
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
24919
24923
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
24920
24924
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
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;
|
|
@@ -23101,7 +23105,7 @@ type CreateStandaloneAdData = {
|
|
|
23101
23105
|
/**
|
|
23102
23106
|
* Top-level platforms to deliver on. A position field below is only honoured when its parent platform is included here.
|
|
23103
23107
|
*/
|
|
23104
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
23108
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
23105
23109
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
23106
23110
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
23107
23111
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
|
@@ -23258,7 +23262,7 @@ type CreateStandaloneAdData = {
|
|
|
23258
23262
|
* Placements this asset is pinned to. At least one field must be set (an empty rule is invalid — that role is served by the default asset). Same enums as the top-level `placements` object.
|
|
23259
23263
|
*/
|
|
23260
23264
|
placements: {
|
|
23261
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
23265
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
23262
23266
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
23263
23267
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
23264
23268
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
|
@@ -24914,7 +24918,7 @@ type CreateCtwaAdData = {
|
|
|
24914
24918
|
/**
|
|
24915
24919
|
* Top-level platforms to deliver on. A position field below is only honoured when its parent platform is included here.
|
|
24916
24920
|
*/
|
|
24917
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
24921
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
24918
24922
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
24919
24923
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
24920
24924
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
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;
|
|
@@ -23741,7 +23745,7 @@ export type CreateStandaloneAdData = {
|
|
|
23741
23745
|
/**
|
|
23742
23746
|
* Top-level platforms to deliver on. A position field below is only honoured when its parent platform is included here.
|
|
23743
23747
|
*/
|
|
23744
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
23748
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
23745
23749
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
23746
23750
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
23747
23751
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
|
@@ -23898,7 +23902,7 @@ export type CreateStandaloneAdData = {
|
|
|
23898
23902
|
* Placements this asset is pinned to. At least one field must be set (an empty rule is invalid — that role is served by the default asset). Same enums as the top-level `placements` object.
|
|
23899
23903
|
*/
|
|
23900
23904
|
placements: {
|
|
23901
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
23905
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
23902
23906
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
23903
23907
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
23904
23908
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|
|
@@ -25653,7 +25657,7 @@ export type CreateCtwaAdData = {
|
|
|
25653
25657
|
/**
|
|
25654
25658
|
* Top-level platforms to deliver on. A position field below is only honoured when its parent platform is included here.
|
|
25655
25659
|
*/
|
|
25656
|
-
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network')>;
|
|
25660
|
+
publisherPlatforms?: Array<('facebook' | 'instagram' | 'threads' | 'messenger' | 'audience_network' | 'whatsapp')>;
|
|
25657
25661
|
facebookPositions?: Array<('feed' | 'right_hand_column' | 'marketplace' | 'video_feeds' | 'story' | 'search' | 'instream_video' | 'facebook_reels' | 'facebook_reels_overlay' | 'profile_feed' | 'notification')>;
|
|
25658
25662
|
instagramPositions?: Array<('stream' | 'story' | 'explore' | 'explore_home' | 'reels' | 'profile_feed' | 'ig_search' | 'profile_reels')>;
|
|
25659
25663
|
messengerPositions?: Array<('messenger_home' | 'sponsored_messages' | 'story')>;
|