@getlatedev/node 0.2.1136 → 0.2.1138

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.
@@ -1060,6 +1060,18 @@ export type AdMetrics = {
1060
1060
  * Views reaching 100% of the video's length. Sources: Meta `video_p100_watched_actions`, TikTok `video_views_p100`.
1061
1061
  */
1062
1062
  videoP100WatchedActions?: number;
1063
+ /**
1064
+ * Plays of at least 2 seconds, replays excluded. Hook rate = video2SecWatchedActions / impressions. Sources: TikTok `video_watched_2s` (TikTok only; Meta's closest field, 2-second continuous plays, is not synced). TikTok history note: added 2026-10, and each sync re-fetches only the last 7 days, so older days read 0.
1065
+ */
1066
+ video2SecWatchedActions?: number;
1067
+ /**
1068
+ * Plays of at least 6 seconds, replays excluded. Hold rate = video6SecWatchedActions / video2SecWatchedActions. Sources: TikTok `video_watched_6s` (TikTok only). Same history note as `video2SecWatchedActions`.
1069
+ */
1070
+ video6SecWatchedActions?: number;
1071
+ /**
1072
+ * TikTok's 6-second focused views: plays of at least 6 seconds (or to the end, for shorter videos) or with an interaction in the first 6 seconds, so it is at least `video6SecWatchedActions`. Sources: TikTok `engaged_view` (TikTok only). Same history note as `video2SecWatchedActions`.
1073
+ */
1074
+ video6SecFocusedViews?: number;
1063
1075
  /**
1064
1076
  * Average seconds watched per play. Aggregated over date ranges and across children as a play-weighted average (total watch time / total plays), never a plain average of averages. Sources: Meta `video_avg_time_watched_actions`, TikTok `average_video_play`.
1065
1077
  */
@@ -10652,6 +10664,62 @@ export type StorePixelInstall = {
10652
10664
  */
10653
10665
  export type method2 = 'wordpress_widget';
10654
10666
 
10667
+ export type SupportRun = {
10668
+ /**
10669
+ * Run id, a 24-character hex string.
10670
+ */
10671
+ runId: string;
10672
+ /**
10673
+ * Conversation thread id. Send it back as `threadId` to ask a follow-up in the same thread.
10674
+ */
10675
+ threadId: string;
10676
+ /**
10677
+ * queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
10678
+ */
10679
+ status: 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
10680
+ /**
10681
+ * Why the run stopped. Null while it is in progress.
10682
+ */
10683
+ stopReason: ('answered' | 'human_review' | 'cost_cap' | 'deadline' | 'max_iterations' | 'error' | 'expired') | null;
10684
+ /**
10685
+ * Ana's answer. Null while the run is in progress or when it failed.
10686
+ */
10687
+ answer: (string) | null;
10688
+ usage: SupportRunUsage;
10689
+ /**
10690
+ * The amount billed for the run, in USD: the model cost plus 20%, never above `maxCostUsd`. 0 for a failed run.
10691
+ */
10692
+ costUsd: number;
10693
+ /**
10694
+ * The cost cap this run was started with, in USD.
10695
+ */
10696
+ maxCostUsd: number;
10697
+ createdAt: string;
10698
+ startedAt: (string) | null;
10699
+ finishedAt: (string) | null;
10700
+ /**
10701
+ * Seconds to wait before polling again. Present only while the run is queued or running.
10702
+ */
10703
+ pollAfterSeconds?: number;
10704
+ };
10705
+
10706
+ /**
10707
+ * queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
10708
+ */
10709
+ export type status29 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
10710
+
10711
+ /**
10712
+ * Why the run stopped. Null while it is in progress.
10713
+ */
10714
+ export type stopReason = 'answered' | 'human_review' | 'cost_cap' | 'deadline' | 'max_iterations' | 'error' | 'expired';
10715
+
10716
+ export type SupportRunUsage = {
10717
+ inputTokens: number;
10718
+ outputTokens: number;
10719
+ cacheReadTokens: number;
10720
+ cacheWriteTokens: number;
10721
+ };
10722
+
10655
10723
  /**
10656
10724
  * Normalized, platform-agnostic ad-targeting spec. Every field is optional, an
10657
10725
  * empty object targets the platform's default broadest audience. Field names are
@@ -11451,7 +11519,7 @@ export type UploadTokenResponse = {
11451
11519
  status?: 'pending' | 'completed' | 'expired';
11452
11520
  };
11453
11521
 
11454
- export type status29 = 'pending' | 'completed' | 'expired';
11522
+ export type status30 = 'pending' | 'completed' | 'expired';
11455
11523
 
11456
11524
  export type UploadTokenStatusResponse = {
11457
11525
  token?: string;
@@ -11958,7 +12026,7 @@ export type Verification = {
11958
12026
  resend?: boolean;
11959
12027
  };
11960
12028
 
11961
- export type status30 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
12029
+ export type status31 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
11962
12030
 
11963
12031
  export type channel4 = 'sms' | 'whatsapp';
11964
12032
 
@@ -11990,7 +12058,7 @@ export type Webhook = {
11990
12058
  /**
11991
12059
  * Events subscribed to
11992
12060
  */
11993
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.account.quality_updated' | 'whatsapp.account.status_updated' | 'whatsapp.account.alert_received' | 'whatsapp.contact.identity_changed' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | 'sms.registration.action_required' | 'sms.registration.status_updated' | 'branded_calling.identity.status_updated' | 'branded_calling.identity.action_required' | 'branded_calling.number.status_updated' | 'rcs.agent.status_updated' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'contact.tag_added' | 'contact.tag_removed' | 'contact.field_changed' | 'sequence.enrolled' | 'sequence.exited' | 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed')>;
12061
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.account.quality_updated' | 'whatsapp.account.status_updated' | 'whatsapp.account.alert_received' | 'whatsapp.contact.identity_changed' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | 'sms.registration.action_required' | 'sms.registration.status_updated' | 'branded_calling.identity.status_updated' | 'branded_calling.identity.action_required' | 'branded_calling.number.status_updated' | 'rcs.agent.status_updated' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'contact.tag_added' | 'contact.tag_removed' | 'contact.field_changed' | 'sequence.enrolled' | 'sequence.exited' | 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed' | 'support.run.completed' | 'support.run.failed')>;
11994
12062
  /**
11995
12063
  * Whether webhook delivery is enabled
11996
12064
  */
@@ -12112,7 +12180,7 @@ export type WebhookLog = {
12112
12180
  /**
12113
12181
  * Delivery outcome
12114
12182
  */
12115
- export type status31 = 'success' | 'failed';
12183
+ export type status32 = 'success' | 'failed';
12116
12184
 
12117
12185
  /**
12118
12186
  * Webhook payload for `account.ads.initial_sync_completed` events.
@@ -12224,7 +12292,7 @@ export type event = 'account.ads.initial_sync_completed';
12224
12292
  /**
12225
12293
  * Overall outcome of the initial sync.
12226
12294
  */
12227
- export type status32 = 'success' | 'failure';
12295
+ export type status33 = 'success' | 'failure';
12228
12296
 
12229
12297
  /**
12230
12298
  * Stable category for UX branching. New values may be added; existing ones are
@@ -12585,7 +12653,7 @@ export type event7 = 'ad.video.processed';
12585
12653
  /**
12586
12654
  * `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
12587
12655
  */
12588
- export type status33 = 'ready' | 'error';
12656
+ export type status34 = 'ready' | 'error';
12589
12657
 
12590
12658
  /**
12591
12659
  * Webhook payload for `analytics.synced`. Fired once per connected account each
@@ -14528,7 +14596,7 @@ export type event29 = 'post.platform.published' | 'post.platform.failed' | 'post
14528
14596
  /**
14529
14597
  * Terminal status this event fires on. Matches the event suffix.
14530
14598
  */
14531
- export type status34 = 'published' | 'failed' | 'deleted';
14599
+ export type status35 = 'published' | 'failed' | 'deleted';
14532
14600
 
14533
14601
  /**
14534
14602
  * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
@@ -14752,6 +14820,18 @@ export type event34 = 'sequence.enrolled' | 'sequence.exited';
14752
14820
  */
14753
14821
  export type exitReason = 'completed' | 'replied' | 'manual' | 'failed' | 'unsubscribed';
14754
14822
 
14823
+ export type WebhookPayloadSupportRun = {
14824
+ /**
14825
+ * Event id, the dedupe key.
14826
+ */
14827
+ id: string;
14828
+ event: 'support.run.completed' | 'support.run.failed';
14829
+ timestamp: string;
14830
+ run: SupportRun;
14831
+ };
14832
+
14833
+ export type event35 = 'support.run.completed' | 'support.run.failed';
14834
+
14755
14835
  /**
14756
14836
  * Webhook payload for test deliveries
14757
14837
  */
@@ -14771,7 +14851,7 @@ export type WebhookPayloadTest = {
14771
14851
  timestamp: string;
14772
14852
  };
14773
14853
 
14774
- export type event35 = 'webhook.test';
14854
+ export type event36 = 'webhook.test';
14775
14855
 
14776
14856
  /**
14777
14857
  * Webhook payload for `whatsapp.account.alert_received`, forwarded from Meta's
@@ -14818,7 +14898,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
14818
14898
  timestamp: string;
14819
14899
  };
14820
14900
 
14821
- export type event36 = 'whatsapp.account.alert_received';
14901
+ export type event37 = 'whatsapp.account.alert_received';
14822
14902
 
14823
14903
  export type platform16 = 'whatsapp';
14824
14904
 
@@ -14869,12 +14949,12 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
14869
14949
  timestamp: string;
14870
14950
  };
14871
14951
 
14872
- export type event37 = 'whatsapp.account.name_status_updated';
14952
+ export type event38 = 'whatsapp.account.name_status_updated';
14873
14953
 
14874
14954
  /**
14875
14955
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
14876
14956
  */
14877
- export type status35 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
14957
+ export type status36 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
14878
14958
 
14879
14959
  /**
14880
14960
  * Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
@@ -14922,7 +15002,7 @@ export type WebhookPayloadWhatsAppAccountQualityUpdated = {
14922
15002
  timestamp: string;
14923
15003
  };
14924
15004
 
14925
- export type event38 = 'whatsapp.account.quality_updated';
15005
+ export type event39 = 'whatsapp.account.quality_updated';
14926
15006
 
14927
15007
  /**
14928
15008
  * The Meta webhook field that reported the change.
@@ -14993,12 +15073,12 @@ export type WebhookPayloadWhatsAppAccountStatusUpdated = {
14993
15073
  timestamp: string;
14994
15074
  };
14995
15075
 
14996
- export type event39 = 'whatsapp.account.status_updated';
15076
+ export type event40 = 'whatsapp.account.status_updated';
14997
15077
 
14998
15078
  /**
14999
15079
  * `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
15000
15080
  */
15001
- export type status36 = 'restricted' | 'active';
15081
+ export type status37 = 'restricted' | 'active';
15002
15082
 
15003
15083
  /**
15004
15084
  * Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
@@ -15045,7 +15125,7 @@ export type WebhookPayloadWhatsAppContactIdentityChanged = {
15045
15125
  timestamp: string;
15046
15126
  };
15047
15127
 
15048
- export type event40 = 'whatsapp.contact.identity_changed';
15128
+ export type event41 = 'whatsapp.contact.identity_changed';
15049
15129
 
15050
15130
  /**
15051
15131
  * Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
@@ -15114,7 +15194,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
15114
15194
  timestamp: string;
15115
15195
  };
15116
15196
 
15117
- export type event41 = 'whatsapp.template.category_updated';
15197
+ export type event42 = 'whatsapp.template.category_updated';
15118
15198
 
15119
15199
  /**
15120
15200
  * `scheduled` is Meta's 24h advance notice of an upcoming
@@ -15191,7 +15271,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
15191
15271
  timestamp: string;
15192
15272
  };
15193
15273
 
15194
- export type event42 = 'whatsapp.template.status_updated';
15274
+ export type event43 = 'whatsapp.template.status_updated';
15195
15275
 
15196
15276
  /**
15197
15277
  * New status. Forwarded verbatim from Meta's `event` field.
@@ -15199,7 +15279,7 @@ export type event42 = 'whatsapp.template.status_updated';
15199
15279
  * request before the template is actually removed.
15200
15280
  *
15201
15281
  */
15202
- export type status37 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
15282
+ export type status38 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
15203
15283
 
15204
15284
  export type WebhookPayloadWorkflowRun = {
15205
15285
  /**
@@ -15253,12 +15333,12 @@ export type WebhookPayloadWorkflowRun = {
15253
15333
  error?: string;
15254
15334
  };
15255
15335
 
15256
- export type event43 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
15336
+ export type event44 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
15257
15337
 
15258
15338
  /**
15259
15339
  * running on workflow.run.started; completed or exited (ended on purpose before the last node, e.g. a handoff) on workflow.run.completed; failed on workflow.run.failed.
15260
15340
  */
15261
- export type status38 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
15341
+ export type status39 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
15262
15342
 
15263
15343
  /**
15264
15344
  * WhatsApp only. Meta's `conversation` object from the status webhook (the billing
@@ -15647,7 +15727,7 @@ export type WorkflowExecutionEvent = {
15647
15727
 
15648
15728
  export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
15649
15729
 
15650
- export type status39 = 'success' | 'failed' | 'pending';
15730
+ export type status40 = 'success' | 'failed' | 'pending';
15651
15731
 
15652
15732
  /**
15653
15733
  * A node in a workflow graph. `config` shape depends on `type`.
@@ -26323,7 +26403,7 @@ export type CreateWebhookSettingsData = {
26323
26403
  /**
26324
26404
  * Events to subscribe to (at least one required)
26325
26405
  */
26326
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.account.quality_updated' | 'whatsapp.account.status_updated' | 'whatsapp.account.alert_received' | 'whatsapp.contact.identity_changed' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | 'sms.registration.action_required' | 'sms.registration.status_updated' | 'branded_calling.identity.status_updated' | 'branded_calling.identity.action_required' | 'branded_calling.number.status_updated' | 'rcs.agent.status_updated' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'contact.tag_added' | 'contact.tag_removed' | 'contact.field_changed' | 'sequence.enrolled' | 'sequence.exited' | 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed')>;
26406
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.account.quality_updated' | 'whatsapp.account.status_updated' | 'whatsapp.account.alert_received' | 'whatsapp.contact.identity_changed' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | 'sms.registration.action_required' | 'sms.registration.status_updated' | 'branded_calling.identity.status_updated' | 'branded_calling.identity.action_required' | 'branded_calling.number.status_updated' | 'rcs.agent.status_updated' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'contact.tag_added' | 'contact.tag_removed' | 'contact.field_changed' | 'sequence.enrolled' | 'sequence.exited' | 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed' | 'support.run.completed' | 'support.run.failed')>;
26327
26407
  /**
26328
26408
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
26329
26409
  */
@@ -26389,7 +26469,7 @@ export type UpdateWebhookSettingsData = {
26389
26469
  /**
26390
26470
  * Events to subscribe to. Must contain at least one event if provided.
26391
26471
  */
26392
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.account.quality_updated' | 'whatsapp.account.status_updated' | 'whatsapp.account.alert_received' | 'whatsapp.contact.identity_changed' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | 'sms.registration.action_required' | 'sms.registration.status_updated' | 'branded_calling.identity.status_updated' | 'branded_calling.identity.action_required' | 'branded_calling.number.status_updated' | 'rcs.agent.status_updated' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'contact.tag_added' | 'contact.tag_removed' | 'contact.field_changed' | 'sequence.enrolled' | 'sequence.exited' | 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed')>;
26472
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.account.quality_updated' | 'whatsapp.account.status_updated' | 'whatsapp.account.alert_received' | 'whatsapp.contact.identity_changed' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | 'sms.registration.action_required' | 'sms.registration.status_updated' | 'branded_calling.identity.status_updated' | 'branded_calling.identity.action_required' | 'branded_calling.number.status_updated' | 'rcs.agent.status_updated' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'contact.tag_added' | 'contact.tag_removed' | 'contact.field_changed' | 'sequence.enrolled' | 'sequence.exited' | 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed' | 'support.run.completed' | 'support.run.failed')>;
26393
26473
  /**
26394
26474
  * Enable or disable webhook delivery
26395
26475
  */
@@ -38385,6 +38465,59 @@ export type AddBroadcastRecipientsError = (unknown | ErrorResponse | {
38385
38465
  error?: string;
38386
38466
  });
38387
38467
 
38468
+ export type CreateSupportRunData = {
38469
+ body: {
38470
+ /**
38471
+ * The question. Leading and trailing whitespace is trimmed.
38472
+ */
38473
+ message: string;
38474
+ /**
38475
+ * Continue this thread. The thread must have a run started by your team, and no run in progress.
38476
+ */
38477
+ threadId?: string;
38478
+ /**
38479
+ * Ids Ana should look at. Each must belong to your workspace.
38480
+ */
38481
+ context?: {
38482
+ postId?: string;
38483
+ accountId?: string;
38484
+ profileId?: string;
38485
+ };
38486
+ /**
38487
+ * Cost cap for this run, in USD. The run stops at the cap and bills at most this amount.
38488
+ */
38489
+ maxCostUsd?: number;
38490
+ };
38491
+ headers?: {
38492
+ /**
38493
+ * Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
38494
+ */
38495
+ 'Idempotency-Key'?: string;
38496
+ };
38497
+ };
38498
+
38499
+ export type CreateSupportRunResponse = ({
38500
+ runId: string;
38501
+ threadId: string;
38502
+ status: 'queued';
38503
+ /**
38504
+ * Seconds to wait before the first poll.
38505
+ */
38506
+ pollAfterSeconds: number;
38507
+ });
38508
+
38509
+ export type CreateSupportRunError = (ErrorResponse);
38510
+
38511
+ export type GetSupportRunData = {
38512
+ path: {
38513
+ runId: string;
38514
+ };
38515
+ };
38516
+
38517
+ export type GetSupportRunResponse = (SupportRun);
38518
+
38519
+ export type GetSupportRunError = (ErrorResponse);
38520
+
38388
38521
  export type ListWorkflowsData = {
38389
38522
  query?: {
38390
38523
  limit?: number;