@zernio/node 0.2.519 → 0.2.521
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 +55 -7
- package/dist/index.d.ts +55 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -0
- package/src/generated/types.gen.ts +55 -7
package/dist/index.d.mts
CHANGED
|
@@ -8131,7 +8131,7 @@ type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.platfo
|
|
|
8131
8131
|
*/
|
|
8132
8132
|
type status12 = 'published' | 'failed' | 'deleted';
|
|
8133
8133
|
/**
|
|
8134
|
-
* Webhook payload for reaction received events (WhatsApp, Telegram)
|
|
8134
|
+
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
|
|
8135
8135
|
*/
|
|
8136
8136
|
type WebhookPayloadReaction = {
|
|
8137
8137
|
/**
|
|
@@ -8156,7 +8156,7 @@ type WebhookPayloadReaction = {
|
|
|
8156
8156
|
*/
|
|
8157
8157
|
platformMessageId: string;
|
|
8158
8158
|
/**
|
|
8159
|
-
*
|
|
8159
|
+
* Whoever added or removed the reaction. Usually the participant, but on Slack, Instagram and Facebook Messenger it is the business own platform id when the reaction was made from the native app: compare it with conversation.participantId.
|
|
8160
8160
|
*/
|
|
8161
8161
|
sender: {
|
|
8162
8162
|
id: string;
|
|
@@ -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
|
@@ -8131,7 +8131,7 @@ type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.platfo
|
|
|
8131
8131
|
*/
|
|
8132
8132
|
type status12 = 'published' | 'failed' | 'deleted';
|
|
8133
8133
|
/**
|
|
8134
|
-
* Webhook payload for reaction received events (WhatsApp, Telegram)
|
|
8134
|
+
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
|
|
8135
8135
|
*/
|
|
8136
8136
|
type WebhookPayloadReaction = {
|
|
8137
8137
|
/**
|
|
@@ -8156,7 +8156,7 @@ type WebhookPayloadReaction = {
|
|
|
8156
8156
|
*/
|
|
8157
8157
|
platformMessageId: string;
|
|
8158
8158
|
/**
|
|
8159
|
-
*
|
|
8159
|
+
* Whoever added or removed the reaction. Usually the participant, but on Slack, Instagram and Facebook Messenger it is the business own platform id when the reaction was made from the native app: compare it with conversation.participantId.
|
|
8160
8160
|
*/
|
|
8161
8161
|
sender: {
|
|
8162
8162
|
id: string;
|
|
@@ -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.
|
|
39
|
+
version: "0.2.521",
|
|
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.521",
|
|
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
|
@@ -3231,6 +3231,8 @@ export const markConversationRead = <ThrowOnError extends boolean = false>(optio
|
|
|
3231
3231
|
* Add an emoji reaction to a message. Platform support:
|
|
3232
3232
|
* - Telegram: Supports a subset of Unicode emoji reactions
|
|
3233
3233
|
* - WhatsApp: Supports any standard emoji (one reaction per message per sender)
|
|
3234
|
+
* - Instagram and Facebook Messenger: Any standard emoji, subject to Meta's 24h messaging window
|
|
3235
|
+
* - Slack: The emoji must have a Slack name (e.g. `:thumbsup:`); unnamed characters return 400
|
|
3234
3236
|
* - All others: Returns 400 (not supported)
|
|
3235
3237
|
*
|
|
3236
3238
|
*/
|
|
@@ -3246,6 +3248,8 @@ export const addMessageReaction = <ThrowOnError extends boolean = false>(options
|
|
|
3246
3248
|
* Remove a reaction from a message. Platform support:
|
|
3247
3249
|
* - Telegram: Send empty reaction array to clear
|
|
3248
3250
|
* - WhatsApp: Send empty emoji to remove
|
|
3251
|
+
* - Instagram and Facebook Messenger: Sends Meta's `unreact` action; the emoji does not need to be repeated
|
|
3252
|
+
* - Slack: Removes the reaction we previously sent on that message
|
|
3249
3253
|
* - All others: Returns 400 (not supported)
|
|
3250
3254
|
*
|
|
3251
3255
|
*/
|
|
@@ -7168,7 +7168,7 @@ export type event19 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
7168
7168
|
export type status12 = 'published' | 'failed' | 'deleted';
|
|
7169
7169
|
|
|
7170
7170
|
/**
|
|
7171
|
-
* Webhook payload for reaction received events (WhatsApp, Telegram)
|
|
7171
|
+
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
|
|
7172
7172
|
*/
|
|
7173
7173
|
export type WebhookPayloadReaction = {
|
|
7174
7174
|
/**
|
|
@@ -7193,7 +7193,7 @@ export type WebhookPayloadReaction = {
|
|
|
7193
7193
|
*/
|
|
7194
7194
|
platformMessageId: string;
|
|
7195
7195
|
/**
|
|
7196
|
-
*
|
|
7196
|
+
* Whoever added or removed the reaction. Usually the participant, but on Slack, Instagram and Facebook Messenger it is the business own platform id when the reaction was made from the native app: compare it with conversation.participantId.
|
|
7197
7197
|
*/
|
|
7198
7198
|
sender: {
|
|
7199
7199
|
id: string;
|
|
@@ -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?: {
|