@zernio/node 0.2.108 → 0.2.110

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 CHANGED
@@ -5052,6 +5052,10 @@ type ListAccountGroupsError = ({
5052
5052
  type CreateAccountGroupData = {
5053
5053
  body: {
5054
5054
  name: string;
5055
+ /**
5056
+ * ID of the profile this group belongs to. All accountIds must belong to this profile.
5057
+ */
5058
+ profileId: string;
5055
5059
  accountIds: Array<(string)>;
5056
5060
  };
5057
5061
  };
@@ -12154,11 +12158,11 @@ type CreateCommentAutomationData = {
12154
12158
  */
12155
12159
  accountId: string;
12156
12160
  /**
12157
- * Platform media/post ID
12161
+ * Platform media/post ID. Omit for an account-wide (any-post) automation.
12158
12162
  */
12159
- platformPostId: string;
12163
+ platformPostId?: string;
12160
12164
  /**
12161
- * Zernio post ID (optional)
12165
+ * Zernio post ID. Required only when also targeting a specific post via platformPostId.
12162
12166
  */
12163
12167
  postId?: string;
12164
12168
  /**
package/dist/index.d.ts CHANGED
@@ -5052,6 +5052,10 @@ type ListAccountGroupsError = ({
5052
5052
  type CreateAccountGroupData = {
5053
5053
  body: {
5054
5054
  name: string;
5055
+ /**
5056
+ * ID of the profile this group belongs to. All accountIds must belong to this profile.
5057
+ */
5058
+ profileId: string;
5055
5059
  accountIds: Array<(string)>;
5056
5060
  };
5057
5061
  };
@@ -12154,11 +12158,11 @@ type CreateCommentAutomationData = {
12154
12158
  */
12155
12159
  accountId: string;
12156
12160
  /**
12157
- * Platform media/post ID
12161
+ * Platform media/post ID. Omit for an account-wide (any-post) automation.
12158
12162
  */
12159
- platformPostId: string;
12163
+ platformPostId?: string;
12160
12164
  /**
12161
- * Zernio post ID (optional)
12165
+ * Zernio post ID. Required only when also targeting a specific post via platformPostId.
12162
12166
  */
12163
12167
  postId?: string;
12164
12168
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.108",
3
+ "version": "0.2.110",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3075,9 +3075,16 @@ export const listCommentAutomations = <ThrowOnError extends boolean = false>(opt
3075
3075
 
3076
3076
  /**
3077
3077
  * Create comment-to-DM automation
3078
- * Create a keyword-triggered DM automation on an Instagram or Facebook post.
3078
+ * Create a keyword-triggered DM automation on an Instagram or Facebook account.
3079
3079
  * When someone comments a matching keyword, they automatically receive a DM.
3080
- * Only one active automation per post is allowed.
3080
+ *
3081
+ * Two modes:
3082
+ * * **Per-post** — set `platformPostId` to scope the automation to one specific post.
3083
+ * Only one active per-post automation is allowed per post.
3084
+ * * **Account-wide ("any post")** — omit `platformPostId` (and `postId`). The automation
3085
+ * evaluates every comment on every post on the account. You can stack unlimited
3086
+ * account-wide automations, each with its own keyword set, and they all run
3087
+ * independently. Per-post automations take priority on their post.
3081
3088
  *
3082
3089
  */
3083
3090
  export const createCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => {
@@ -4686,6 +4686,10 @@ export type ListAccountGroupsError = ({
4686
4686
  export type CreateAccountGroupData = {
4687
4687
  body: {
4688
4688
  name: string;
4689
+ /**
4690
+ * ID of the profile this group belongs to. All accountIds must belong to this profile.
4691
+ */
4692
+ profileId: string;
4689
4693
  accountIds: Array<(string)>;
4690
4694
  };
4691
4695
  };
@@ -12420,11 +12424,11 @@ export type CreateCommentAutomationData = {
12420
12424
  */
12421
12425
  accountId: string;
12422
12426
  /**
12423
- * Platform media/post ID
12427
+ * Platform media/post ID. Omit for an account-wide (any-post) automation.
12424
12428
  */
12425
- platformPostId: string;
12429
+ platformPostId?: string;
12426
12430
  /**
12427
- * Zernio post ID (optional)
12431
+ * Zernio post ID. Required only when also targeting a specific post via platformPostId.
12428
12432
  */
12429
12433
  postId?: string;
12430
12434
  /**