@zernio/node 0.2.912 → 0.2.913
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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +11 -4
- package/src/generated/types.gen.ts +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -24975,14 +24975,14 @@ type ListInboxCommentsError = ({
|
|
|
24975
24975
|
type GetInboxPostCommentsData = {
|
|
24976
24976
|
path: {
|
|
24977
24977
|
/**
|
|
24978
|
-
* 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
|
|
24978
|
+
* 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, kept for backwards compatibility; prefer the `commentId` query parameter, which also works on Instagram.
|
|
24979
24979
|
*/
|
|
24980
24980
|
postId: string;
|
|
24981
24981
|
};
|
|
24982
24982
|
query: {
|
|
24983
24983
|
accountId: string;
|
|
24984
24984
|
/**
|
|
24985
|
-
* (Reddit and TikTok
|
|
24985
|
+
* (Facebook, Instagram, Reddit and TikTok) Get replies to a specific comment. On Facebook and Instagram, the requested comment is returned in the top-level `comment` field and comments[] holds its replies.
|
|
24986
24986
|
*/
|
|
24987
24987
|
commentId?: string;
|
|
24988
24988
|
/**
|
|
@@ -25033,7 +25033,7 @@ type GetInboxPostCommentsResponse = ({
|
|
|
25033
25033
|
[key: string]: unknown;
|
|
25034
25034
|
}>;
|
|
25035
25035
|
/**
|
|
25036
|
-
* 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
|
|
25036
|
+
* 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 the `commentId` query parameter to GET /v1/inbox/comments/{postId} (or, for backwards compatibility, as `postId`). Absent (not false) on every other platform, including Instagram, which has no equivalent signal.
|
|
25037
25037
|
*/
|
|
25038
25038
|
repliesHasMore?: boolean;
|
|
25039
25039
|
canReply?: boolean;
|
|
@@ -25132,6 +25132,15 @@ type GetInboxPostCommentsResponse = ({
|
|
|
25132
25132
|
*/
|
|
25133
25133
|
isGallery?: boolean;
|
|
25134
25134
|
} | null;
|
|
25135
|
+
/**
|
|
25136
|
+
* (Facebook and Instagram only) Present when `commentId` was passed: the requested
|
|
25137
|
+
* comment itself, in the same shape as an entry in comments[]. comments[] then holds
|
|
25138
|
+
* that comment's replies instead of the post's top-level comments.
|
|
25139
|
+
*
|
|
25140
|
+
*/
|
|
25141
|
+
comment?: {
|
|
25142
|
+
[key: string]: unknown;
|
|
25143
|
+
};
|
|
25135
25144
|
pagination?: {
|
|
25136
25145
|
hasMore?: boolean;
|
|
25137
25146
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -24975,14 +24975,14 @@ type ListInboxCommentsError = ({
|
|
|
24975
24975
|
type GetInboxPostCommentsData = {
|
|
24976
24976
|
path: {
|
|
24977
24977
|
/**
|
|
24978
|
-
* 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
|
|
24978
|
+
* 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, kept for backwards compatibility; prefer the `commentId` query parameter, which also works on Instagram.
|
|
24979
24979
|
*/
|
|
24980
24980
|
postId: string;
|
|
24981
24981
|
};
|
|
24982
24982
|
query: {
|
|
24983
24983
|
accountId: string;
|
|
24984
24984
|
/**
|
|
24985
|
-
* (Reddit and TikTok
|
|
24985
|
+
* (Facebook, Instagram, Reddit and TikTok) Get replies to a specific comment. On Facebook and Instagram, the requested comment is returned in the top-level `comment` field and comments[] holds its replies.
|
|
24986
24986
|
*/
|
|
24987
24987
|
commentId?: string;
|
|
24988
24988
|
/**
|
|
@@ -25033,7 +25033,7 @@ type GetInboxPostCommentsResponse = ({
|
|
|
25033
25033
|
[key: string]: unknown;
|
|
25034
25034
|
}>;
|
|
25035
25035
|
/**
|
|
25036
|
-
* 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
|
|
25036
|
+
* 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 the `commentId` query parameter to GET /v1/inbox/comments/{postId} (or, for backwards compatibility, as `postId`). Absent (not false) on every other platform, including Instagram, which has no equivalent signal.
|
|
25037
25037
|
*/
|
|
25038
25038
|
repliesHasMore?: boolean;
|
|
25039
25039
|
canReply?: boolean;
|
|
@@ -25132,6 +25132,15 @@ type GetInboxPostCommentsResponse = ({
|
|
|
25132
25132
|
*/
|
|
25133
25133
|
isGallery?: boolean;
|
|
25134
25134
|
} | null;
|
|
25135
|
+
/**
|
|
25136
|
+
* (Facebook and Instagram only) Present when `commentId` was passed: the requested
|
|
25137
|
+
* comment itself, in the same shape as an entry in comments[]. comments[] then holds
|
|
25138
|
+
* that comment's replies instead of the post's top-level comments.
|
|
25139
|
+
*
|
|
25140
|
+
*/
|
|
25141
|
+
comment?: {
|
|
25142
|
+
[key: string]: unknown;
|
|
25143
|
+
};
|
|
25135
25144
|
pagination?: {
|
|
25136
25145
|
hasMore?: boolean;
|
|
25137
25146
|
/**
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.913",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.913",
|
|
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
|
@@ -4315,10 +4315,17 @@ export const listInboxComments = <ThrowOnError extends boolean = false>(options?
|
|
|
4315
4315
|
* Get post comments
|
|
4316
4316
|
* Fetch comments for a specific post. Requires accountId query parameter.
|
|
4317
4317
|
*
|
|
4318
|
-
*
|
|
4319
|
-
* comment
|
|
4320
|
-
*
|
|
4321
|
-
*
|
|
4318
|
+
* Pass `commentId` (Facebook, Instagram, Reddit, TikTok) to fetch replies to a specific
|
|
4319
|
+
* comment instead of the post's top-level comments. Facebook, Instagram and TikTok return
|
|
4320
|
+
* the comment's replies, paged by `limit`/`cursor`; Reddit returns the focused comment
|
|
4321
|
+
* thread instead. On Facebook and Instagram the requested comment itself comes back in the
|
|
4322
|
+
* top-level `comment` field.
|
|
4323
|
+
*
|
|
4324
|
+
* On Facebook, passing a COMMENT id as `postId` (instead of using `commentId`) is also
|
|
4325
|
+
* supported for backwards compatibility and returns that comment's replies the same way.
|
|
4326
|
+
* Prefer `commentId` for new integrations; it also works on Instagram, which rejects a
|
|
4327
|
+
* comment id passed as `postId`. YouTube does not support either form, `postId` must be a
|
|
4328
|
+
* video id.
|
|
4322
4329
|
*
|
|
4323
4330
|
* Responses are cached for up to 10 minutes, so a page may lag new comments by that
|
|
4324
4331
|
* window. Do not poll this endpoint for real-time updates: subscribe to the
|
|
@@ -24498,14 +24498,14 @@ export type ListInboxCommentsError = ({
|
|
|
24498
24498
|
export type GetInboxPostCommentsData = {
|
|
24499
24499
|
path: {
|
|
24500
24500
|
/**
|
|
24501
|
-
* 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
|
|
24501
|
+
* 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, kept for backwards compatibility; prefer the `commentId` query parameter, which also works on Instagram.
|
|
24502
24502
|
*/
|
|
24503
24503
|
postId: string;
|
|
24504
24504
|
};
|
|
24505
24505
|
query: {
|
|
24506
24506
|
accountId: string;
|
|
24507
24507
|
/**
|
|
24508
|
-
* (Reddit and TikTok
|
|
24508
|
+
* (Facebook, Instagram, Reddit and TikTok) Get replies to a specific comment. On Facebook and Instagram, the requested comment is returned in the top-level `comment` field and comments[] holds its replies.
|
|
24509
24509
|
*/
|
|
24510
24510
|
commentId?: string;
|
|
24511
24511
|
/**
|
|
@@ -24557,7 +24557,7 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
24557
24557
|
[key: string]: unknown;
|
|
24558
24558
|
}>;
|
|
24559
24559
|
/**
|
|
24560
|
-
* 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
|
|
24560
|
+
* 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 the `commentId` query parameter to GET /v1/inbox/comments/{postId} (or, for backwards compatibility, as `postId`). Absent (not false) on every other platform, including Instagram, which has no equivalent signal.
|
|
24561
24561
|
*/
|
|
24562
24562
|
repliesHasMore?: boolean;
|
|
24563
24563
|
canReply?: boolean;
|
|
@@ -24656,6 +24656,15 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
24656
24656
|
*/
|
|
24657
24657
|
isGallery?: boolean;
|
|
24658
24658
|
} | null;
|
|
24659
|
+
/**
|
|
24660
|
+
* (Facebook and Instagram only) Present when `commentId` was passed: the requested
|
|
24661
|
+
* comment itself, in the same shape as an entry in comments[]. comments[] then holds
|
|
24662
|
+
* that comment's replies instead of the post's top-level comments.
|
|
24663
|
+
*
|
|
24664
|
+
*/
|
|
24665
|
+
comment?: {
|
|
24666
|
+
[key: string]: unknown;
|
|
24667
|
+
};
|
|
24659
24668
|
pagination?: {
|
|
24660
24669
|
hasMore?: boolean;
|
|
24661
24670
|
/**
|