@zernio/node 0.2.1036 → 0.2.1038

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
@@ -4825,6 +4825,14 @@ type CommentAutomationAudience = {
4825
4825
  *
4826
4826
  */
4827
4827
  whenUnknown?: 'send' | 'skip' | 'verify';
4828
+ /**
4829
+ * Send `followGate.message` with its button to EVERY commenter and deliver the real
4830
+ * DM when they tap it, with no follow check at any point. Cannot be combined with a
4831
+ * `followerStatus` other than `any` or with `minFollowerCount` (400); `whenUnknown`
4832
+ * is ignored. Instagram only. A PATCH that sends `audience` without this field clears it.
4833
+ *
4834
+ */
4835
+ tapToUnlock?: boolean;
4828
4836
  };
4829
4837
  type followerStatus = 'any' | 'follower' | 'non_follower';
4830
4838
  /**
@@ -4842,11 +4850,11 @@ type whenUnknown = 'send' | 'skip' | 'verify';
4842
4850
  */
4843
4851
  type CommentAutomationFollowGate = {
4844
4852
  /**
4845
- * Confirmation DM sent when whenUnknown=verify.
4853
+ * Confirmation DM sent when whenUnknown=verify or tapToUnlock=true. The default copy asks for a follow under whenUnknown=verify and only for the tap under tapToUnlock.
4846
4854
  */
4847
4855
  message?: string;
4848
4856
  /**
4849
- * Confirm button label. Defaults to "I'm following".
4857
+ * Confirm button label. Defaults to "I'm following" (whenUnknown=verify) or "Unlock" (tapToUnlock).
4850
4858
  */
4851
4859
  buttonLabel?: string;
4852
4860
  /**
@@ -19212,7 +19220,7 @@ type GetAllAccountsHealthResponse = ({
19212
19220
  needsReconnect?: boolean;
19213
19221
  issues?: Array<(string)>;
19214
19222
  /**
19215
- * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
19223
+ * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
19216
19224
  */
19217
19225
  messagingRestriction?: {
19218
19226
  /**
@@ -19226,6 +19234,10 @@ type GetAllAccountsHealthResponse = ({
19226
19234
  message?: (string) | null;
19227
19235
  firstSeenAt?: string;
19228
19236
  lastSeenAt?: string;
19237
+ /**
19238
+ * When held automation DMs are next retried. Null when nothing is held.
19239
+ */
19240
+ pausedUntil?: (string) | null;
19229
19241
  } | null;
19230
19242
  }>;
19231
19243
  });
@@ -19364,7 +19376,7 @@ type GetAccountHealthResponse = ({
19364
19376
  */
19365
19377
  recommendations?: Array<(string)>;
19366
19378
  /**
19367
- * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
19379
+ * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
19368
19380
  */
19369
19381
  messagingRestriction?: {
19370
19382
  /**
@@ -19378,6 +19390,10 @@ type GetAccountHealthResponse = ({
19378
19390
  message?: (string) | null;
19379
19391
  firstSeenAt?: string;
19380
19392
  lastSeenAt?: string;
19393
+ /**
19394
+ * When held automation DMs are next retried. Null when nothing is held.
19395
+ */
19396
+ pausedUntil?: (string) | null;
19381
19397
  } | null;
19382
19398
  /**
19383
19399
  * WhatsApp accounts only. Live probe of the Meta link behind the channel, performed at request time (the same read as GET /v1/whatsapp/number-info).
package/dist/index.d.ts CHANGED
@@ -4825,6 +4825,14 @@ type CommentAutomationAudience = {
4825
4825
  *
4826
4826
  */
4827
4827
  whenUnknown?: 'send' | 'skip' | 'verify';
4828
+ /**
4829
+ * Send `followGate.message` with its button to EVERY commenter and deliver the real
4830
+ * DM when they tap it, with no follow check at any point. Cannot be combined with a
4831
+ * `followerStatus` other than `any` or with `minFollowerCount` (400); `whenUnknown`
4832
+ * is ignored. Instagram only. A PATCH that sends `audience` without this field clears it.
4833
+ *
4834
+ */
4835
+ tapToUnlock?: boolean;
4828
4836
  };
4829
4837
  type followerStatus = 'any' | 'follower' | 'non_follower';
4830
4838
  /**
@@ -4842,11 +4850,11 @@ type whenUnknown = 'send' | 'skip' | 'verify';
4842
4850
  */
4843
4851
  type CommentAutomationFollowGate = {
4844
4852
  /**
4845
- * Confirmation DM sent when whenUnknown=verify.
4853
+ * Confirmation DM sent when whenUnknown=verify or tapToUnlock=true. The default copy asks for a follow under whenUnknown=verify and only for the tap under tapToUnlock.
4846
4854
  */
4847
4855
  message?: string;
4848
4856
  /**
4849
- * Confirm button label. Defaults to "I'm following".
4857
+ * Confirm button label. Defaults to "I'm following" (whenUnknown=verify) or "Unlock" (tapToUnlock).
4850
4858
  */
4851
4859
  buttonLabel?: string;
4852
4860
  /**
@@ -19212,7 +19220,7 @@ type GetAllAccountsHealthResponse = ({
19212
19220
  needsReconnect?: boolean;
19213
19221
  issues?: Array<(string)>;
19214
19222
  /**
19215
- * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
19223
+ * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
19216
19224
  */
19217
19225
  messagingRestriction?: {
19218
19226
  /**
@@ -19226,6 +19234,10 @@ type GetAllAccountsHealthResponse = ({
19226
19234
  message?: (string) | null;
19227
19235
  firstSeenAt?: string;
19228
19236
  lastSeenAt?: string;
19237
+ /**
19238
+ * When held automation DMs are next retried. Null when nothing is held.
19239
+ */
19240
+ pausedUntil?: (string) | null;
19229
19241
  } | null;
19230
19242
  }>;
19231
19243
  });
@@ -19364,7 +19376,7 @@ type GetAccountHealthResponse = ({
19364
19376
  */
19365
19377
  recommendations?: Array<(string)>;
19366
19378
  /**
19367
- * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
19379
+ * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
19368
19380
  */
19369
19381
  messagingRestriction?: {
19370
19382
  /**
@@ -19378,6 +19390,10 @@ type GetAccountHealthResponse = ({
19378
19390
  message?: (string) | null;
19379
19391
  firstSeenAt?: string;
19380
19392
  lastSeenAt?: string;
19393
+ /**
19394
+ * When held automation DMs are next retried. Null when nothing is held.
19395
+ */
19396
+ pausedUntil?: (string) | null;
19381
19397
  } | null;
19382
19398
  /**
19383
19399
  * WhatsApp accounts only. Live probe of the Meta link behind the channel, performed at request time (the same read as GET /v1/whatsapp/number-info).
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.1036",
39
+ version: "0.2.1038",
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.1036",
8
+ version: "0.2.1038",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1036",
3
+ "version": "0.2.1038",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9041,7 +9041,9 @@ export const listCommentAutomations = <ThrowOnError extends boolean = false>(opt
9041
9041
  * follow relationship for people who have messaged the account, so `audience.whenUnknown`
9042
9042
  * decides what happens for everyone else - including `verify`, which sends a one-tap
9043
9043
  * confirmation DM (`followGate`) and then delivers the real DM automatically. People we
9044
- * already know follow you skip the tap entirely.
9044
+ * already know follow you skip the tap entirely. Set `audience.tapToUnlock: true` instead
9045
+ * to send that button DM to every commenter and deliver the real DM on the tap with no
9046
+ * follow check.
9045
9047
  *
9046
9048
  * Set `alsoMatchInDms: true` on a `comment` automation to also answer people who send
9047
9049
  * a keyword as a direct message instead of commenting it. One automation then covers
@@ -2986,6 +2986,14 @@ export type CommentAutomationAudience = {
2986
2986
  *
2987
2987
  */
2988
2988
  whenUnknown?: 'send' | 'skip' | 'verify';
2989
+ /**
2990
+ * Send `followGate.message` with its button to EVERY commenter and deliver the real
2991
+ * DM when they tap it, with no follow check at any point. Cannot be combined with a
2992
+ * `followerStatus` other than `any` or with `minFollowerCount` (400); `whenUnknown`
2993
+ * is ignored. Instagram only. A PATCH that sends `audience` without this field clears it.
2994
+ *
2995
+ */
2996
+ tapToUnlock?: boolean;
2989
2997
  };
2990
2998
 
2991
2999
  export type followerStatus = 'any' | 'follower' | 'non_follower';
@@ -3006,11 +3014,11 @@ export type whenUnknown = 'send' | 'skip' | 'verify';
3006
3014
  */
3007
3015
  export type CommentAutomationFollowGate = {
3008
3016
  /**
3009
- * Confirmation DM sent when whenUnknown=verify.
3017
+ * Confirmation DM sent when whenUnknown=verify or tapToUnlock=true. The default copy asks for a follow under whenUnknown=verify and only for the tap under tapToUnlock.
3010
3018
  */
3011
3019
  message?: string;
3012
3020
  /**
3013
- * Confirm button label. Defaults to "I'm following".
3021
+ * Confirm button label. Defaults to "I'm following" (whenUnknown=verify) or "Unlock" (tapToUnlock).
3014
3022
  */
3015
3023
  buttonLabel?: string;
3016
3024
  /**
@@ -18090,7 +18098,7 @@ export type GetAllAccountsHealthResponse = ({
18090
18098
  needsReconnect?: boolean;
18091
18099
  issues?: Array<(string)>;
18092
18100
  /**
18093
- * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
18101
+ * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
18094
18102
  */
18095
18103
  messagingRestriction?: {
18096
18104
  /**
@@ -18104,6 +18112,10 @@ export type GetAllAccountsHealthResponse = ({
18104
18112
  message?: (string) | null;
18105
18113
  firstSeenAt?: string;
18106
18114
  lastSeenAt?: string;
18115
+ /**
18116
+ * When held automation DMs are next retried. Null when nothing is held.
18117
+ */
18118
+ pausedUntil?: (string) | null;
18107
18119
  } | null;
18108
18120
  }>;
18109
18121
  });
@@ -18254,7 +18266,7 @@ export type GetAccountHealthResponse = ({
18254
18266
  */
18255
18267
  recommendations?: Array<(string)>;
18256
18268
  /**
18257
- * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
18269
+ * Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
18258
18270
  */
18259
18271
  messagingRestriction?: {
18260
18272
  /**
@@ -18268,6 +18280,10 @@ export type GetAccountHealthResponse = ({
18268
18280
  message?: (string) | null;
18269
18281
  firstSeenAt?: string;
18270
18282
  lastSeenAt?: string;
18283
+ /**
18284
+ * When held automation DMs are next retried. Null when nothing is held.
18285
+ */
18286
+ pausedUntil?: (string) | null;
18271
18287
  } | null;
18272
18288
  /**
18273
18289
  * WhatsApp accounts only. Live probe of the Meta link behind the channel, performed at request time (the same read as GET /v1/whatsapp/number-info).