@zernio/node 0.2.199 → 0.2.200
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +17 -6
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.200",
|
|
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.200",
|
|
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
|
@@ -3879,16 +3879,27 @@ export const listCommentAutomations = <ThrowOnError extends boolean = false>(opt
|
|
|
3879
3879
|
/**
|
|
3880
3880
|
* Create comment-to-DM automation
|
|
3881
3881
|
* Create a keyword-triggered DM automation on an Instagram or Facebook account.
|
|
3882
|
-
* When someone comments a matching keyword,
|
|
3883
|
-
*
|
|
3884
|
-
*
|
|
3885
|
-
*
|
|
3886
|
-
*
|
|
3887
|
-
* *
|
|
3882
|
+
* When someone comments a matching keyword (or, with `trigger: story_reply`, replies
|
|
3883
|
+
* to your Instagram story with one), they automatically receive a DM.
|
|
3884
|
+
*
|
|
3885
|
+
* Triggers (`trigger`):
|
|
3886
|
+
* * `comment` (default): fires on keyword comments on a post or reel.
|
|
3887
|
+
* * `story_reply`: fires when someone replies to your Instagram story with a keyword,
|
|
3888
|
+
* and answers them with a DM. Set `platformPostId` to a story media id to scope to
|
|
3889
|
+
* one story, or omit it to match replies to any story.
|
|
3890
|
+
*
|
|
3891
|
+
* Targeting (comment trigger):
|
|
3892
|
+
* * Per-post: set `platformPostId` to scope to one specific post (only one active
|
|
3893
|
+
* per-post automation is allowed per post).
|
|
3894
|
+
* * Account-wide ("any post"): omit `platformPostId` (and `postId`). The automation
|
|
3888
3895
|
* evaluates every comment on every post on the account. You can stack unlimited
|
|
3889
3896
|
* account-wide automations, each with its own keyword set, and they all run
|
|
3890
3897
|
* independently. Per-post automations take priority on their post.
|
|
3891
3898
|
*
|
|
3899
|
+
* Links in the DM's buttons can be click-tracked (`linkTracking`, on by default) and
|
|
3900
|
+
* clickers optionally tagged (`clickTag`) for segmentation. Stats returned include
|
|
3901
|
+
* delivered, read, and link clicks.
|
|
3902
|
+
*
|
|
3892
3903
|
*/
|
|
3893
3904
|
export const createCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => {
|
|
3894
3905
|
return (options?.client ?? client).post<CreateCommentAutomationResponse, CreateCommentAutomationError, ThrowOnError>({
|