@zernio/node 0.2.519 → 0.2.520

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
@@ -25160,6 +25160,14 @@ type ListCommentAutomationsResponse = ({
25160
25160
  * Tag applied to a contact when they click a tracked link.
25161
25161
  */
25162
25162
  clickTag?: string;
25163
+ /**
25164
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25165
+ */
25166
+ dmDelaySeconds?: number;
25167
+ /**
25168
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25169
+ */
25170
+ commentReplyDelaySeconds?: number;
25163
25171
  isActive?: boolean;
25164
25172
  stats?: {
25165
25173
  triggered?: number;
@@ -25264,6 +25272,14 @@ type CreateCommentAutomationData = {
25264
25272
  * Optional tag applied to a contact when they click a tracked link (requires linkTracking). Lets you segment clickers for broadcasts/sequences.
25265
25273
  */
25266
25274
  clickTag?: string;
25275
+ /**
25276
+ * Seconds to wait after the trigger before sending the DM. Omit or send 0 to reply immediately (the default). Max 86400 (24h). The trigger is still matched and deduplicated the moment the comment arrives, so a delay only moves when the response is sent.
25277
+ */
25278
+ dmDelaySeconds?: number;
25279
+ /**
25280
+ * Seconds to wait before posting the public comment reply. Omit or send 0 to post it right after the DM (the default). The reply never goes out before the DM, so a value below dmDelaySeconds is raised to it. Ignored when trigger=story_reply, which has no public reply.
25281
+ */
25282
+ commentReplyDelaySeconds?: number;
25267
25283
  audience?: CommentAutomationAudience;
25268
25284
  followGate?: CommentAutomationFollowGate;
25269
25285
  };
@@ -25305,6 +25321,14 @@ type CreateCommentAutomationResponse = ({
25305
25321
  commentReplyVariations?: Array<(string)>;
25306
25322
  linkTracking?: boolean;
25307
25323
  clickTag?: string;
25324
+ /**
25325
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25326
+ */
25327
+ dmDelaySeconds?: number;
25328
+ /**
25329
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25330
+ */
25331
+ commentReplyDelaySeconds?: number;
25308
25332
  audience?: CommentAutomationAudience;
25309
25333
  followGate?: CommentAutomationFollowGate;
25310
25334
  isActive?: boolean;
@@ -25364,6 +25388,14 @@ type GetCommentAutomationResponse = ({
25364
25388
  commentReplyVariations?: Array<(string)>;
25365
25389
  linkTracking?: boolean;
25366
25390
  clickTag?: string;
25391
+ /**
25392
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25393
+ */
25394
+ dmDelaySeconds?: number;
25395
+ /**
25396
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25397
+ */
25398
+ commentReplyDelaySeconds?: number;
25367
25399
  audience?: CommentAutomationAudience;
25368
25400
  followGate?: CommentAutomationFollowGate;
25369
25401
  isActive?: boolean;
@@ -25382,9 +25414,9 @@ type GetCommentAutomationResponse = ({
25382
25414
  commenterName?: string;
25383
25415
  commentText?: string;
25384
25416
  /**
25385
- * DM outcome. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25417
+ * DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25386
25418
  */
25387
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25419
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25388
25420
  /**
25389
25421
  * How the audience rule resolved. Absent on automations without one.
25390
25422
  */
@@ -25406,6 +25438,10 @@ type GetCommentAutomationResponse = ({
25406
25438
  * Public-reply error message if commentReplyStatus is failed
25407
25439
  */
25408
25440
  commentReplyError?: string;
25441
+ /**
25442
+ * When the next queued send fires. Present only while something is still pending.
25443
+ */
25444
+ nextDueAt?: string;
25409
25445
  createdAt?: string;
25410
25446
  }>;
25411
25447
  });
@@ -25454,6 +25490,14 @@ type UpdateCommentAutomationData = {
25454
25490
  * Tag applied to a contact when they click a tracked link (requires linkTracking). Empty string clears it.
25455
25491
  */
25456
25492
  clickTag?: string;
25493
+ /**
25494
+ * Seconds to wait after the trigger before sending the DM. Send 0 to clear the delay and reply immediately.
25495
+ */
25496
+ dmDelaySeconds?: number;
25497
+ /**
25498
+ * Seconds to wait before posting the public comment reply. Send 0 to clear it. The reply never goes out before the DM.
25499
+ */
25500
+ commentReplyDelaySeconds?: number;
25457
25501
  audience?: CommentAutomationAudience;
25458
25502
  followGate?: CommentAutomationFollowGate;
25459
25503
  isActive?: boolean;
@@ -25522,7 +25566,7 @@ type ListCommentAutomationLogsData = {
25522
25566
  /**
25523
25567
  * Filter by result status
25524
25568
  */
25525
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25569
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25526
25570
  };
25527
25571
  };
25528
25572
  type ListCommentAutomationLogsResponse = ({
@@ -25534,9 +25578,9 @@ type ListCommentAutomationLogsResponse = ({
25534
25578
  commenterName?: string;
25535
25579
  commentText?: string;
25536
25580
  /**
25537
- * DM outcome. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25581
+ * DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25538
25582
  */
25539
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25583
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25540
25584
  /**
25541
25585
  * How the audience rule resolved. Absent on automations without one.
25542
25586
  */
@@ -25558,6 +25602,10 @@ type ListCommentAutomationLogsResponse = ({
25558
25602
  * Public-reply error message if commentReplyStatus is failed
25559
25603
  */
25560
25604
  commentReplyError?: string;
25605
+ /**
25606
+ * When the next queued send fires. Present only while something is still pending.
25607
+ */
25608
+ nextDueAt?: string;
25561
25609
  createdAt?: string;
25562
25610
  }>;
25563
25611
  pagination?: {
package/dist/index.d.ts CHANGED
@@ -25160,6 +25160,14 @@ type ListCommentAutomationsResponse = ({
25160
25160
  * Tag applied to a contact when they click a tracked link.
25161
25161
  */
25162
25162
  clickTag?: string;
25163
+ /**
25164
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25165
+ */
25166
+ dmDelaySeconds?: number;
25167
+ /**
25168
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25169
+ */
25170
+ commentReplyDelaySeconds?: number;
25163
25171
  isActive?: boolean;
25164
25172
  stats?: {
25165
25173
  triggered?: number;
@@ -25264,6 +25272,14 @@ type CreateCommentAutomationData = {
25264
25272
  * Optional tag applied to a contact when they click a tracked link (requires linkTracking). Lets you segment clickers for broadcasts/sequences.
25265
25273
  */
25266
25274
  clickTag?: string;
25275
+ /**
25276
+ * Seconds to wait after the trigger before sending the DM. Omit or send 0 to reply immediately (the default). Max 86400 (24h). The trigger is still matched and deduplicated the moment the comment arrives, so a delay only moves when the response is sent.
25277
+ */
25278
+ dmDelaySeconds?: number;
25279
+ /**
25280
+ * Seconds to wait before posting the public comment reply. Omit or send 0 to post it right after the DM (the default). The reply never goes out before the DM, so a value below dmDelaySeconds is raised to it. Ignored when trigger=story_reply, which has no public reply.
25281
+ */
25282
+ commentReplyDelaySeconds?: number;
25267
25283
  audience?: CommentAutomationAudience;
25268
25284
  followGate?: CommentAutomationFollowGate;
25269
25285
  };
@@ -25305,6 +25321,14 @@ type CreateCommentAutomationResponse = ({
25305
25321
  commentReplyVariations?: Array<(string)>;
25306
25322
  linkTracking?: boolean;
25307
25323
  clickTag?: string;
25324
+ /**
25325
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25326
+ */
25327
+ dmDelaySeconds?: number;
25328
+ /**
25329
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25330
+ */
25331
+ commentReplyDelaySeconds?: number;
25308
25332
  audience?: CommentAutomationAudience;
25309
25333
  followGate?: CommentAutomationFollowGate;
25310
25334
  isActive?: boolean;
@@ -25364,6 +25388,14 @@ type GetCommentAutomationResponse = ({
25364
25388
  commentReplyVariations?: Array<(string)>;
25365
25389
  linkTracking?: boolean;
25366
25390
  clickTag?: string;
25391
+ /**
25392
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25393
+ */
25394
+ dmDelaySeconds?: number;
25395
+ /**
25396
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25397
+ */
25398
+ commentReplyDelaySeconds?: number;
25367
25399
  audience?: CommentAutomationAudience;
25368
25400
  followGate?: CommentAutomationFollowGate;
25369
25401
  isActive?: boolean;
@@ -25382,9 +25414,9 @@ type GetCommentAutomationResponse = ({
25382
25414
  commenterName?: string;
25383
25415
  commentText?: string;
25384
25416
  /**
25385
- * DM outcome. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25417
+ * DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25386
25418
  */
25387
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25419
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25388
25420
  /**
25389
25421
  * How the audience rule resolved. Absent on automations without one.
25390
25422
  */
@@ -25406,6 +25438,10 @@ type GetCommentAutomationResponse = ({
25406
25438
  * Public-reply error message if commentReplyStatus is failed
25407
25439
  */
25408
25440
  commentReplyError?: string;
25441
+ /**
25442
+ * When the next queued send fires. Present only while something is still pending.
25443
+ */
25444
+ nextDueAt?: string;
25409
25445
  createdAt?: string;
25410
25446
  }>;
25411
25447
  });
@@ -25454,6 +25490,14 @@ type UpdateCommentAutomationData = {
25454
25490
  * Tag applied to a contact when they click a tracked link (requires linkTracking). Empty string clears it.
25455
25491
  */
25456
25492
  clickTag?: string;
25493
+ /**
25494
+ * Seconds to wait after the trigger before sending the DM. Send 0 to clear the delay and reply immediately.
25495
+ */
25496
+ dmDelaySeconds?: number;
25497
+ /**
25498
+ * Seconds to wait before posting the public comment reply. Send 0 to clear it. The reply never goes out before the DM.
25499
+ */
25500
+ commentReplyDelaySeconds?: number;
25457
25501
  audience?: CommentAutomationAudience;
25458
25502
  followGate?: CommentAutomationFollowGate;
25459
25503
  isActive?: boolean;
@@ -25522,7 +25566,7 @@ type ListCommentAutomationLogsData = {
25522
25566
  /**
25523
25567
  * Filter by result status
25524
25568
  */
25525
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25569
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25526
25570
  };
25527
25571
  };
25528
25572
  type ListCommentAutomationLogsResponse = ({
@@ -25534,9 +25578,9 @@ type ListCommentAutomationLogsResponse = ({
25534
25578
  commenterName?: string;
25535
25579
  commentText?: string;
25536
25580
  /**
25537
- * DM outcome. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25581
+ * DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25538
25582
  */
25539
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25583
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25540
25584
  /**
25541
25585
  * How the audience rule resolved. Absent on automations without one.
25542
25586
  */
@@ -25558,6 +25602,10 @@ type ListCommentAutomationLogsResponse = ({
25558
25602
  * Public-reply error message if commentReplyStatus is failed
25559
25603
  */
25560
25604
  commentReplyError?: string;
25605
+ /**
25606
+ * When the next queued send fires. Present only while something is still pending.
25607
+ */
25608
+ nextDueAt?: string;
25561
25609
  createdAt?: string;
25562
25610
  }>;
25563
25611
  pagination?: {
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.519",
39
+ version: "0.2.520",
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.519",
8
+ version: "0.2.520",
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.519",
3
+ "version": "0.2.520",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25503,6 +25503,14 @@ export type ListCommentAutomationsResponse = ({
25503
25503
  * Tag applied to a contact when they click a tracked link.
25504
25504
  */
25505
25505
  clickTag?: string;
25506
+ /**
25507
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25508
+ */
25509
+ dmDelaySeconds?: number;
25510
+ /**
25511
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25512
+ */
25513
+ commentReplyDelaySeconds?: number;
25506
25514
  isActive?: boolean;
25507
25515
  stats?: {
25508
25516
  triggered?: number;
@@ -25609,6 +25617,14 @@ export type CreateCommentAutomationData = {
25609
25617
  * Optional tag applied to a contact when they click a tracked link (requires linkTracking). Lets you segment clickers for broadcasts/sequences.
25610
25618
  */
25611
25619
  clickTag?: string;
25620
+ /**
25621
+ * Seconds to wait after the trigger before sending the DM. Omit or send 0 to reply immediately (the default). Max 86400 (24h). The trigger is still matched and deduplicated the moment the comment arrives, so a delay only moves when the response is sent.
25622
+ */
25623
+ dmDelaySeconds?: number;
25624
+ /**
25625
+ * Seconds to wait before posting the public comment reply. Omit or send 0 to post it right after the DM (the default). The reply never goes out before the DM, so a value below dmDelaySeconds is raised to it. Ignored when trigger=story_reply, which has no public reply.
25626
+ */
25627
+ commentReplyDelaySeconds?: number;
25612
25628
  audience?: CommentAutomationAudience;
25613
25629
  followGate?: CommentAutomationFollowGate;
25614
25630
  };
@@ -25651,6 +25667,14 @@ export type CreateCommentAutomationResponse = ({
25651
25667
  commentReplyVariations?: Array<(string)>;
25652
25668
  linkTracking?: boolean;
25653
25669
  clickTag?: string;
25670
+ /**
25671
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25672
+ */
25673
+ dmDelaySeconds?: number;
25674
+ /**
25675
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25676
+ */
25677
+ commentReplyDelaySeconds?: number;
25654
25678
  audience?: CommentAutomationAudience;
25655
25679
  followGate?: CommentAutomationFollowGate;
25656
25680
  isActive?: boolean;
@@ -25713,6 +25737,14 @@ export type GetCommentAutomationResponse = ({
25713
25737
  commentReplyVariations?: Array<(string)>;
25714
25738
  linkTracking?: boolean;
25715
25739
  clickTag?: string;
25740
+ /**
25741
+ * Seconds waited after the trigger before the DM is sent. Absent when the DM goes out immediately.
25742
+ */
25743
+ dmDelaySeconds?: number;
25744
+ /**
25745
+ * Seconds waited before the public reply is posted. Absent when it follows the DM immediately.
25746
+ */
25747
+ commentReplyDelaySeconds?: number;
25716
25748
  audience?: CommentAutomationAudience;
25717
25749
  followGate?: CommentAutomationFollowGate;
25718
25750
  isActive?: boolean;
@@ -25731,9 +25763,9 @@ export type GetCommentAutomationResponse = ({
25731
25763
  commenterName?: string;
25732
25764
  commentText?: string;
25733
25765
  /**
25734
- * DM outcome. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25766
+ * DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25735
25767
  */
25736
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25768
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25737
25769
  /**
25738
25770
  * How the audience rule resolved. Absent on automations without one.
25739
25771
  */
@@ -25755,6 +25787,10 @@ export type GetCommentAutomationResponse = ({
25755
25787
  * Public-reply error message if commentReplyStatus is failed
25756
25788
  */
25757
25789
  commentReplyError?: string;
25790
+ /**
25791
+ * When the next queued send fires. Present only while something is still pending.
25792
+ */
25793
+ nextDueAt?: string;
25758
25794
  createdAt?: string;
25759
25795
  }>;
25760
25796
  });
@@ -25805,6 +25841,14 @@ export type UpdateCommentAutomationData = {
25805
25841
  * Tag applied to a contact when they click a tracked link (requires linkTracking). Empty string clears it.
25806
25842
  */
25807
25843
  clickTag?: string;
25844
+ /**
25845
+ * Seconds to wait after the trigger before sending the DM. Send 0 to clear the delay and reply immediately.
25846
+ */
25847
+ dmDelaySeconds?: number;
25848
+ /**
25849
+ * Seconds to wait before posting the public comment reply. Send 0 to clear it. The reply never goes out before the DM.
25850
+ */
25851
+ commentReplyDelaySeconds?: number;
25808
25852
  audience?: CommentAutomationAudience;
25809
25853
  followGate?: CommentAutomationFollowGate;
25810
25854
  isActive?: boolean;
@@ -25879,7 +25923,7 @@ export type ListCommentAutomationLogsData = {
25879
25923
  /**
25880
25924
  * Filter by result status
25881
25925
  */
25882
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25926
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25883
25927
  };
25884
25928
  };
25885
25929
 
@@ -25892,9 +25936,9 @@ export type ListCommentAutomationLogsResponse = ({
25892
25936
  commenterName?: string;
25893
25937
  commentText?: string;
25894
25938
  /**
25895
- * DM outcome. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25939
+ * DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap.
25896
25940
  */
25897
- status?: 'sent' | 'failed' | 'skipped' | 'gated';
25941
+ status?: 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
25898
25942
  /**
25899
25943
  * How the audience rule resolved. Absent on automations without one.
25900
25944
  */
@@ -25916,6 +25960,10 @@ export type ListCommentAutomationLogsResponse = ({
25916
25960
  * Public-reply error message if commentReplyStatus is failed
25917
25961
  */
25918
25962
  commentReplyError?: string;
25963
+ /**
25964
+ * When the next queued send fires. Present only while something is still pending.
25965
+ */
25966
+ nextDueAt?: string;
25919
25967
  createdAt?: string;
25920
25968
  }>;
25921
25969
  pagination?: {