@zernio/node 0.2.1492 → 0.2.1493
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 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -0
- package/src/generated/types.gen.ts +8 -2
package/dist/index.d.mts
CHANGED
|
@@ -40309,14 +40309,20 @@ type GetInboxPostCommentsResponse = ({
|
|
|
40309
40309
|
*
|
|
40310
40310
|
*/
|
|
40311
40311
|
repliesHasMore?: boolean;
|
|
40312
|
+
/**
|
|
40313
|
+
* Whether this comment can be replied to. Always present.
|
|
40314
|
+
*/
|
|
40312
40315
|
canReply?: boolean;
|
|
40316
|
+
/**
|
|
40317
|
+
* Whether DELETE is expected to work on this comment. True for the account's own comments, and for anyone's comment on Facebook, Instagram and YouTube. On TikTok, TikTok's own flag decides. False does not block the call: the platform decides. Always present.
|
|
40318
|
+
*/
|
|
40313
40319
|
canDelete?: boolean;
|
|
40314
40320
|
/**
|
|
40315
|
-
* Whether this comment
|
|
40321
|
+
* Whether hide is supported for this comment's platform (Facebook, Instagram, Threads, X, TikTok). It does not check each comment: X needs a conversation started by the account, and Threads only hides top-level replies. Always present.
|
|
40316
40322
|
*/
|
|
40317
40323
|
canHide?: boolean;
|
|
40318
40324
|
/**
|
|
40319
|
-
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn)
|
|
40325
|
+
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn, TikTok). Always present.
|
|
40320
40326
|
*/
|
|
40321
40327
|
canLike?: boolean;
|
|
40322
40328
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -40309,14 +40309,20 @@ type GetInboxPostCommentsResponse = ({
|
|
|
40309
40309
|
*
|
|
40310
40310
|
*/
|
|
40311
40311
|
repliesHasMore?: boolean;
|
|
40312
|
+
/**
|
|
40313
|
+
* Whether this comment can be replied to. Always present.
|
|
40314
|
+
*/
|
|
40312
40315
|
canReply?: boolean;
|
|
40316
|
+
/**
|
|
40317
|
+
* Whether DELETE is expected to work on this comment. True for the account's own comments, and for anyone's comment on Facebook, Instagram and YouTube. On TikTok, TikTok's own flag decides. False does not block the call: the platform decides. Always present.
|
|
40318
|
+
*/
|
|
40313
40319
|
canDelete?: boolean;
|
|
40314
40320
|
/**
|
|
40315
|
-
* Whether this comment
|
|
40321
|
+
* Whether hide is supported for this comment's platform (Facebook, Instagram, Threads, X, TikTok). It does not check each comment: X needs a conversation started by the account, and Threads only hides top-level replies. Always present.
|
|
40316
40322
|
*/
|
|
40317
40323
|
canHide?: boolean;
|
|
40318
40324
|
/**
|
|
40319
|
-
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn)
|
|
40325
|
+
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn, TikTok). Always present.
|
|
40320
40326
|
*/
|
|
40321
40327
|
canLike?: boolean;
|
|
40322
40328
|
/**
|
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.1493",
|
|
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.1493",
|
|
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
|
@@ -7121,6 +7121,12 @@ export const replyToInboxPost = <ThrowOnError extends boolean = false>(options:
|
|
|
7121
7121
|
* Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only).
|
|
7122
7122
|
* Requires accountId and commentId query parameters.
|
|
7123
7123
|
*
|
|
7124
|
+
* Zernio does not check `canDelete` before calling the platform. When the platform refuses, the call fails with the platform's message, normally as `platform_api_error` with the platform's own 4xx status.
|
|
7125
|
+
*
|
|
7126
|
+
* On Facebook and Instagram the account can delete anyone's comment on its own posts. On TikTok only the account's own comments can be deleted; hide the others.
|
|
7127
|
+
*
|
|
7128
|
+
* On YouTube, a comment the channel did not write is rejected instead, through the same moderation status as `setCommentModeration`, and the response still reports it as deleted. Use `setCommentModeration` directly to reverse the rejection later or to ban the author.
|
|
7129
|
+
*
|
|
7124
7130
|
*/
|
|
7125
7131
|
export const deleteInboxComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteInboxCommentData, ThrowOnError>) => {
|
|
7126
7132
|
return (options?.client ?? client).delete<DeleteInboxCommentResponse, DeleteInboxCommentError, ThrowOnError>({
|
|
@@ -7171,8 +7177,11 @@ export const setCommentModeration = <ThrowOnError extends boolean = false>(optio
|
|
|
7171
7177
|
* Hide a comment on a post. Supported by Facebook, Instagram, Threads, X, and TikTok
|
|
7172
7178
|
* (accounts connected through the TikTok for Business app).
|
|
7173
7179
|
* Hidden comments are only visible to the commenter and page admin.
|
|
7180
|
+
*
|
|
7174
7181
|
* For X, the reply must belong to a conversation started by the authenticated user.
|
|
7175
7182
|
*
|
|
7183
|
+
* On Threads only top-level replies can be hidden, and hiding one also hides its nested replies.
|
|
7184
|
+
*
|
|
7176
7185
|
*/
|
|
7177
7186
|
export const hideInboxComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HideInboxCommentData, ThrowOnError>) => {
|
|
7178
7187
|
return (options?.client ?? client).post<HideInboxCommentResponse, HideInboxCommentError, ThrowOnError>({
|
|
@@ -40105,14 +40105,20 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
40105
40105
|
*
|
|
40106
40106
|
*/
|
|
40107
40107
|
repliesHasMore?: boolean;
|
|
40108
|
+
/**
|
|
40109
|
+
* Whether this comment can be replied to. Always present.
|
|
40110
|
+
*/
|
|
40108
40111
|
canReply?: boolean;
|
|
40112
|
+
/**
|
|
40113
|
+
* Whether DELETE is expected to work on this comment. True for the account's own comments, and for anyone's comment on Facebook, Instagram and YouTube. On TikTok, TikTok's own flag decides. False does not block the call: the platform decides. Always present.
|
|
40114
|
+
*/
|
|
40109
40115
|
canDelete?: boolean;
|
|
40110
40116
|
/**
|
|
40111
|
-
* Whether this comment
|
|
40117
|
+
* Whether hide is supported for this comment's platform (Facebook, Instagram, Threads, X, TikTok). It does not check each comment: X needs a conversation started by the account, and Threads only hides top-level replies. Always present.
|
|
40112
40118
|
*/
|
|
40113
40119
|
canHide?: boolean;
|
|
40114
40120
|
/**
|
|
40115
|
-
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn)
|
|
40121
|
+
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn, TikTok). Always present.
|
|
40116
40122
|
*/
|
|
40117
40123
|
canLike?: boolean;
|
|
40118
40124
|
/**
|