@getlatedev/node 0.2.563 → 0.2.564
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 +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +17 -2
- package/src/generated/types.gen.ts +9 -2
package/dist/index.d.mts
CHANGED
|
@@ -18838,7 +18838,7 @@ type ListInboxCommentsError = ({
|
|
|
18838
18838
|
type GetInboxPostCommentsData = {
|
|
18839
18839
|
path: {
|
|
18840
18840
|
/**
|
|
18841
|
-
* Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID.
|
|
18841
|
+
* 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.
|
|
18842
18842
|
*/
|
|
18843
18843
|
postId: string;
|
|
18844
18844
|
};
|
|
@@ -18849,7 +18849,7 @@ type GetInboxPostCommentsData = {
|
|
|
18849
18849
|
*/
|
|
18850
18850
|
commentId?: string;
|
|
18851
18851
|
/**
|
|
18852
|
-
* Pagination cursor
|
|
18852
|
+
* Pagination cursor, returned by a previous call as `pagination.cursor`. This is the platform's own opaque paging value passed through verbatim: never construct, decode or validate it client-side.
|
|
18853
18853
|
*/
|
|
18854
18854
|
cursor?: string;
|
|
18855
18855
|
/**
|
|
@@ -18880,6 +18880,9 @@ type GetInboxPostCommentsResponse = ({
|
|
|
18880
18880
|
verifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
|
|
18881
18881
|
};
|
|
18882
18882
|
likeCount?: number;
|
|
18883
|
+
/**
|
|
18884
|
+
* The platform's own reply count, which includes hidden and deleted replies. Can exceed replies[].length even when repliesHasMore is false or absent.
|
|
18885
|
+
*/
|
|
18883
18886
|
replyCount?: number;
|
|
18884
18887
|
/**
|
|
18885
18888
|
* The platform this comment is from
|
|
@@ -18892,6 +18895,10 @@ type GetInboxPostCommentsResponse = ({
|
|
|
18892
18895
|
replies?: Array<{
|
|
18893
18896
|
[key: string]: unknown;
|
|
18894
18897
|
}>;
|
|
18898
|
+
/**
|
|
18899
|
+
* Facebook only. True when replies[] (capped at 10) does not hold the comment's full reply thread; fetch the rest by passing the comment id as postId to GET /v1/inbox/comments/{postId}. Absent (not false) on every other platform, including Instagram, which has no equivalent signal.
|
|
18900
|
+
*/
|
|
18901
|
+
repliesHasMore?: boolean;
|
|
18895
18902
|
canReply?: boolean;
|
|
18896
18903
|
canDelete?: boolean;
|
|
18897
18904
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -18838,7 +18838,7 @@ type ListInboxCommentsError = ({
|
|
|
18838
18838
|
type GetInboxPostCommentsData = {
|
|
18839
18839
|
path: {
|
|
18840
18840
|
/**
|
|
18841
|
-
* Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID.
|
|
18841
|
+
* 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.
|
|
18842
18842
|
*/
|
|
18843
18843
|
postId: string;
|
|
18844
18844
|
};
|
|
@@ -18849,7 +18849,7 @@ type GetInboxPostCommentsData = {
|
|
|
18849
18849
|
*/
|
|
18850
18850
|
commentId?: string;
|
|
18851
18851
|
/**
|
|
18852
|
-
* Pagination cursor
|
|
18852
|
+
* Pagination cursor, returned by a previous call as `pagination.cursor`. This is the platform's own opaque paging value passed through verbatim: never construct, decode or validate it client-side.
|
|
18853
18853
|
*/
|
|
18854
18854
|
cursor?: string;
|
|
18855
18855
|
/**
|
|
@@ -18880,6 +18880,9 @@ type GetInboxPostCommentsResponse = ({
|
|
|
18880
18880
|
verifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
|
|
18881
18881
|
};
|
|
18882
18882
|
likeCount?: number;
|
|
18883
|
+
/**
|
|
18884
|
+
* The platform's own reply count, which includes hidden and deleted replies. Can exceed replies[].length even when repliesHasMore is false or absent.
|
|
18885
|
+
*/
|
|
18883
18886
|
replyCount?: number;
|
|
18884
18887
|
/**
|
|
18885
18888
|
* The platform this comment is from
|
|
@@ -18892,6 +18895,10 @@ type GetInboxPostCommentsResponse = ({
|
|
|
18892
18895
|
replies?: Array<{
|
|
18893
18896
|
[key: string]: unknown;
|
|
18894
18897
|
}>;
|
|
18898
|
+
/**
|
|
18899
|
+
* Facebook only. True when replies[] (capped at 10) does not hold the comment's full reply thread; fetch the rest by passing the comment id as postId to GET /v1/inbox/comments/{postId}. Absent (not false) on every other platform, including Instagram, which has no equivalent signal.
|
|
18900
|
+
*/
|
|
18901
|
+
repliesHasMore?: boolean;
|
|
18895
18902
|
canReply?: boolean;
|
|
18896
18903
|
canDelete?: boolean;
|
|
18897
18904
|
/**
|
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.564",
|
|
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.564",
|
|
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
|
@@ -3523,8 +3523,18 @@ export const getMessageAttachment = <ThrowOnError extends boolean = false>(optio
|
|
|
3523
3523
|
* (Instagram side); a row whose count can't be read is omitted.
|
|
3524
3524
|
*
|
|
3525
3525
|
* Pagination walks each account's platform listing. Following `nextCursor` reaches past
|
|
3526
|
-
* the first page on Facebook
|
|
3527
|
-
* support a server-side date window; on the others the listing stops
|
|
3526
|
+
* the first page on Facebook, Instagram, Threads, LinkedIn and YouTube, since they are
|
|
3527
|
+
* the platforms that support a server-side date window; on the others the listing stops
|
|
3528
|
+
* at its first page. Cursor pagination is only coherent for the default sort
|
|
3529
|
+
* (`sortBy=date`, `sortOrder=desc`): with `sortOrder=asc`, or with `sortBy=comments`,
|
|
3530
|
+
* the cursor filter does not match the sort order and the second page is unreliable.
|
|
3531
|
+
*
|
|
3532
|
+
* `nextCursor` is opaque: pass it back verbatim, never construct or parse it, its
|
|
3533
|
+
* composition may change without notice. Because each page re-queries a live window,
|
|
3534
|
+
* results can still shift between requests, so dedupe by `id` on the client.
|
|
3535
|
+
*
|
|
3536
|
+
* `commentCount` semantics differ by platform: YouTube's includes replies, Facebook's counts
|
|
3537
|
+
* top-level comments only.
|
|
3528
3538
|
*
|
|
3529
3539
|
*/
|
|
3530
3540
|
export const listInboxComments = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListInboxCommentsData, ThrowOnError>) => {
|
|
@@ -3537,6 +3547,11 @@ export const listInboxComments = <ThrowOnError extends boolean = false>(options?
|
|
|
3537
3547
|
/**
|
|
3538
3548
|
* Get post comments
|
|
3539
3549
|
* Fetch comments for a specific post. Requires accountId query parameter.
|
|
3550
|
+
*
|
|
3551
|
+
* On Facebook and Instagram, passing a COMMENT id as `postId` is also supported and
|
|
3552
|
+
* returns that comment's replies instead of the post's top-level comments. This is not
|
|
3553
|
+
* available on YouTube, where `postId` must be a video id.
|
|
3554
|
+
*
|
|
3540
3555
|
*/
|
|
3541
3556
|
export const getInboxPostComments = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInboxPostCommentsData, ThrowOnError>) => {
|
|
3542
3557
|
return (options?.client ?? client).get<GetInboxPostCommentsResponse, GetInboxPostCommentsError, ThrowOnError>({
|
|
@@ -18527,7 +18527,7 @@ export type ListInboxCommentsError = ({
|
|
|
18527
18527
|
export type GetInboxPostCommentsData = {
|
|
18528
18528
|
path: {
|
|
18529
18529
|
/**
|
|
18530
|
-
* Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID.
|
|
18530
|
+
* 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.
|
|
18531
18531
|
*/
|
|
18532
18532
|
postId: string;
|
|
18533
18533
|
};
|
|
@@ -18538,7 +18538,7 @@ export type GetInboxPostCommentsData = {
|
|
|
18538
18538
|
*/
|
|
18539
18539
|
commentId?: string;
|
|
18540
18540
|
/**
|
|
18541
|
-
* Pagination cursor
|
|
18541
|
+
* Pagination cursor, returned by a previous call as `pagination.cursor`. This is the platform's own opaque paging value passed through verbatim: never construct, decode or validate it client-side.
|
|
18542
18542
|
*/
|
|
18543
18543
|
cursor?: string;
|
|
18544
18544
|
/**
|
|
@@ -18570,6 +18570,9 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
18570
18570
|
verifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
|
|
18571
18571
|
};
|
|
18572
18572
|
likeCount?: number;
|
|
18573
|
+
/**
|
|
18574
|
+
* The platform's own reply count, which includes hidden and deleted replies. Can exceed replies[].length even when repliesHasMore is false or absent.
|
|
18575
|
+
*/
|
|
18573
18576
|
replyCount?: number;
|
|
18574
18577
|
/**
|
|
18575
18578
|
* The platform this comment is from
|
|
@@ -18582,6 +18585,10 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
18582
18585
|
replies?: Array<{
|
|
18583
18586
|
[key: string]: unknown;
|
|
18584
18587
|
}>;
|
|
18588
|
+
/**
|
|
18589
|
+
* Facebook only. True when replies[] (capped at 10) does not hold the comment's full reply thread; fetch the rest by passing the comment id as postId to GET /v1/inbox/comments/{postId}. Absent (not false) on every other platform, including Instagram, which has no equivalent signal.
|
|
18590
|
+
*/
|
|
18591
|
+
repliesHasMore?: boolean;
|
|
18585
18592
|
canReply?: boolean;
|
|
18586
18593
|
canDelete?: boolean;
|
|
18587
18594
|
/**
|