@getlatedev/node 0.2.1136 → 0.2.1137
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/README.md +6 -0
- package/dist/index.d.mts +140 -24
- package/dist/index.d.ts +140 -24
- package/dist/index.js +20 -1
- package/dist/index.mjs +20 -1
- package/package.json +1 -1
- package/src/client.ts +10 -0
- package/src/generated/sdk.gen.ts +23 -1
- package/src/generated/types.gen.ts +144 -23
|
@@ -10652,6 +10652,62 @@ export type StorePixelInstall = {
|
|
|
10652
10652
|
*/
|
|
10653
10653
|
export type method2 = 'wordpress_widget';
|
|
10654
10654
|
|
|
10655
|
+
export type SupportRun = {
|
|
10656
|
+
/**
|
|
10657
|
+
* Run id, a 24-character hex string.
|
|
10658
|
+
*/
|
|
10659
|
+
runId: string;
|
|
10660
|
+
/**
|
|
10661
|
+
* Conversation thread id. Send it back as `threadId` to ask a follow-up in the same thread.
|
|
10662
|
+
*/
|
|
10663
|
+
threadId: string;
|
|
10664
|
+
/**
|
|
10665
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
10666
|
+
*/
|
|
10667
|
+
status: 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
10668
|
+
/**
|
|
10669
|
+
* Why the run stopped. Null while it is in progress.
|
|
10670
|
+
*/
|
|
10671
|
+
stopReason: ('answered' | 'human_review' | 'cost_cap' | 'deadline' | 'max_iterations' | 'error' | 'expired') | null;
|
|
10672
|
+
/**
|
|
10673
|
+
* Ana's answer. Null while the run is in progress or when it failed.
|
|
10674
|
+
*/
|
|
10675
|
+
answer: (string) | null;
|
|
10676
|
+
usage: SupportRunUsage;
|
|
10677
|
+
/**
|
|
10678
|
+
* The amount billed for the run, in USD: the model cost plus 20%, never above `maxCostUsd`. 0 for a failed run.
|
|
10679
|
+
*/
|
|
10680
|
+
costUsd: number;
|
|
10681
|
+
/**
|
|
10682
|
+
* The cost cap this run was started with, in USD.
|
|
10683
|
+
*/
|
|
10684
|
+
maxCostUsd: number;
|
|
10685
|
+
createdAt: string;
|
|
10686
|
+
startedAt: (string) | null;
|
|
10687
|
+
finishedAt: (string) | null;
|
|
10688
|
+
/**
|
|
10689
|
+
* Seconds to wait before polling again. Present only while the run is queued or running.
|
|
10690
|
+
*/
|
|
10691
|
+
pollAfterSeconds?: number;
|
|
10692
|
+
};
|
|
10693
|
+
|
|
10694
|
+
/**
|
|
10695
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
10696
|
+
*/
|
|
10697
|
+
export type status29 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
10698
|
+
|
|
10699
|
+
/**
|
|
10700
|
+
* Why the run stopped. Null while it is in progress.
|
|
10701
|
+
*/
|
|
10702
|
+
export type stopReason = 'answered' | 'human_review' | 'cost_cap' | 'deadline' | 'max_iterations' | 'error' | 'expired';
|
|
10703
|
+
|
|
10704
|
+
export type SupportRunUsage = {
|
|
10705
|
+
inputTokens: number;
|
|
10706
|
+
outputTokens: number;
|
|
10707
|
+
cacheReadTokens: number;
|
|
10708
|
+
cacheWriteTokens: number;
|
|
10709
|
+
};
|
|
10710
|
+
|
|
10655
10711
|
/**
|
|
10656
10712
|
* Normalized, platform-agnostic ad-targeting spec. Every field is optional, an
|
|
10657
10713
|
* empty object targets the platform's default broadest audience. Field names are
|
|
@@ -11451,7 +11507,7 @@ export type UploadTokenResponse = {
|
|
|
11451
11507
|
status?: 'pending' | 'completed' | 'expired';
|
|
11452
11508
|
};
|
|
11453
11509
|
|
|
11454
|
-
export type
|
|
11510
|
+
export type status30 = 'pending' | 'completed' | 'expired';
|
|
11455
11511
|
|
|
11456
11512
|
export type UploadTokenStatusResponse = {
|
|
11457
11513
|
token?: string;
|
|
@@ -11958,7 +12014,7 @@ export type Verification = {
|
|
|
11958
12014
|
resend?: boolean;
|
|
11959
12015
|
};
|
|
11960
12016
|
|
|
11961
|
-
export type
|
|
12017
|
+
export type status31 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
11962
12018
|
|
|
11963
12019
|
export type channel4 = 'sms' | 'whatsapp';
|
|
11964
12020
|
|
|
@@ -11990,7 +12046,7 @@ export type Webhook = {
|
|
|
11990
12046
|
/**
|
|
11991
12047
|
* Events subscribed to
|
|
11992
12048
|
*/
|
|
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')>;
|
|
12049
|
+
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
12050
|
/**
|
|
11995
12051
|
* Whether webhook delivery is enabled
|
|
11996
12052
|
*/
|
|
@@ -12112,7 +12168,7 @@ export type WebhookLog = {
|
|
|
12112
12168
|
/**
|
|
12113
12169
|
* Delivery outcome
|
|
12114
12170
|
*/
|
|
12115
|
-
export type
|
|
12171
|
+
export type status32 = 'success' | 'failed';
|
|
12116
12172
|
|
|
12117
12173
|
/**
|
|
12118
12174
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -12224,7 +12280,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
12224
12280
|
/**
|
|
12225
12281
|
* Overall outcome of the initial sync.
|
|
12226
12282
|
*/
|
|
12227
|
-
export type
|
|
12283
|
+
export type status33 = 'success' | 'failure';
|
|
12228
12284
|
|
|
12229
12285
|
/**
|
|
12230
12286
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -12585,7 +12641,7 @@ export type event7 = 'ad.video.processed';
|
|
|
12585
12641
|
/**
|
|
12586
12642
|
* `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
|
|
12587
12643
|
*/
|
|
12588
|
-
export type
|
|
12644
|
+
export type status34 = 'ready' | 'error';
|
|
12589
12645
|
|
|
12590
12646
|
/**
|
|
12591
12647
|
* Webhook payload for `analytics.synced`. Fired once per connected account each
|
|
@@ -14528,7 +14584,7 @@ export type event29 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
14528
14584
|
/**
|
|
14529
14585
|
* Terminal status this event fires on. Matches the event suffix.
|
|
14530
14586
|
*/
|
|
14531
|
-
export type
|
|
14587
|
+
export type status35 = 'published' | 'failed' | 'deleted';
|
|
14532
14588
|
|
|
14533
14589
|
/**
|
|
14534
14590
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -14752,6 +14808,18 @@ export type event34 = 'sequence.enrolled' | 'sequence.exited';
|
|
|
14752
14808
|
*/
|
|
14753
14809
|
export type exitReason = 'completed' | 'replied' | 'manual' | 'failed' | 'unsubscribed';
|
|
14754
14810
|
|
|
14811
|
+
export type WebhookPayloadSupportRun = {
|
|
14812
|
+
/**
|
|
14813
|
+
* Event id, the dedupe key.
|
|
14814
|
+
*/
|
|
14815
|
+
id: string;
|
|
14816
|
+
event: 'support.run.completed' | 'support.run.failed';
|
|
14817
|
+
timestamp: string;
|
|
14818
|
+
run: SupportRun;
|
|
14819
|
+
};
|
|
14820
|
+
|
|
14821
|
+
export type event35 = 'support.run.completed' | 'support.run.failed';
|
|
14822
|
+
|
|
14755
14823
|
/**
|
|
14756
14824
|
* Webhook payload for test deliveries
|
|
14757
14825
|
*/
|
|
@@ -14771,7 +14839,7 @@ export type WebhookPayloadTest = {
|
|
|
14771
14839
|
timestamp: string;
|
|
14772
14840
|
};
|
|
14773
14841
|
|
|
14774
|
-
export type
|
|
14842
|
+
export type event36 = 'webhook.test';
|
|
14775
14843
|
|
|
14776
14844
|
/**
|
|
14777
14845
|
* Webhook payload for `whatsapp.account.alert_received`, forwarded from Meta's
|
|
@@ -14818,7 +14886,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
|
|
|
14818
14886
|
timestamp: string;
|
|
14819
14887
|
};
|
|
14820
14888
|
|
|
14821
|
-
export type
|
|
14889
|
+
export type event37 = 'whatsapp.account.alert_received';
|
|
14822
14890
|
|
|
14823
14891
|
export type platform16 = 'whatsapp';
|
|
14824
14892
|
|
|
@@ -14869,12 +14937,12 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
|
|
|
14869
14937
|
timestamp: string;
|
|
14870
14938
|
};
|
|
14871
14939
|
|
|
14872
|
-
export type
|
|
14940
|
+
export type event38 = 'whatsapp.account.name_status_updated';
|
|
14873
14941
|
|
|
14874
14942
|
/**
|
|
14875
14943
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
14876
14944
|
*/
|
|
14877
|
-
export type
|
|
14945
|
+
export type status36 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
14878
14946
|
|
|
14879
14947
|
/**
|
|
14880
14948
|
* Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
|
|
@@ -14922,7 +14990,7 @@ export type WebhookPayloadWhatsAppAccountQualityUpdated = {
|
|
|
14922
14990
|
timestamp: string;
|
|
14923
14991
|
};
|
|
14924
14992
|
|
|
14925
|
-
export type
|
|
14993
|
+
export type event39 = 'whatsapp.account.quality_updated';
|
|
14926
14994
|
|
|
14927
14995
|
/**
|
|
14928
14996
|
* The Meta webhook field that reported the change.
|
|
@@ -14993,12 +15061,12 @@ export type WebhookPayloadWhatsAppAccountStatusUpdated = {
|
|
|
14993
15061
|
timestamp: string;
|
|
14994
15062
|
};
|
|
14995
15063
|
|
|
14996
|
-
export type
|
|
15064
|
+
export type event40 = 'whatsapp.account.status_updated';
|
|
14997
15065
|
|
|
14998
15066
|
/**
|
|
14999
15067
|
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
15000
15068
|
*/
|
|
15001
|
-
export type
|
|
15069
|
+
export type status37 = 'restricted' | 'active';
|
|
15002
15070
|
|
|
15003
15071
|
/**
|
|
15004
15072
|
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
@@ -15045,7 +15113,7 @@ export type WebhookPayloadWhatsAppContactIdentityChanged = {
|
|
|
15045
15113
|
timestamp: string;
|
|
15046
15114
|
};
|
|
15047
15115
|
|
|
15048
|
-
export type
|
|
15116
|
+
export type event41 = 'whatsapp.contact.identity_changed';
|
|
15049
15117
|
|
|
15050
15118
|
/**
|
|
15051
15119
|
* Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
|
|
@@ -15114,7 +15182,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
|
|
|
15114
15182
|
timestamp: string;
|
|
15115
15183
|
};
|
|
15116
15184
|
|
|
15117
|
-
export type
|
|
15185
|
+
export type event42 = 'whatsapp.template.category_updated';
|
|
15118
15186
|
|
|
15119
15187
|
/**
|
|
15120
15188
|
* `scheduled` is Meta's 24h advance notice of an upcoming
|
|
@@ -15191,7 +15259,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
|
15191
15259
|
timestamp: string;
|
|
15192
15260
|
};
|
|
15193
15261
|
|
|
15194
|
-
export type
|
|
15262
|
+
export type event43 = 'whatsapp.template.status_updated';
|
|
15195
15263
|
|
|
15196
15264
|
/**
|
|
15197
15265
|
* New status. Forwarded verbatim from Meta's `event` field.
|
|
@@ -15199,7 +15267,7 @@ export type event42 = 'whatsapp.template.status_updated';
|
|
|
15199
15267
|
* request before the template is actually removed.
|
|
15200
15268
|
*
|
|
15201
15269
|
*/
|
|
15202
|
-
export type
|
|
15270
|
+
export type status38 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
15203
15271
|
|
|
15204
15272
|
export type WebhookPayloadWorkflowRun = {
|
|
15205
15273
|
/**
|
|
@@ -15253,12 +15321,12 @@ export type WebhookPayloadWorkflowRun = {
|
|
|
15253
15321
|
error?: string;
|
|
15254
15322
|
};
|
|
15255
15323
|
|
|
15256
|
-
export type
|
|
15324
|
+
export type event44 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
|
|
15257
15325
|
|
|
15258
15326
|
/**
|
|
15259
15327
|
* 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
15328
|
*/
|
|
15261
|
-
export type
|
|
15329
|
+
export type status39 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
|
|
15262
15330
|
|
|
15263
15331
|
/**
|
|
15264
15332
|
* WhatsApp only. Meta's `conversation` object from the status webhook (the billing
|
|
@@ -15647,7 +15715,7 @@ export type WorkflowExecutionEvent = {
|
|
|
15647
15715
|
|
|
15648
15716
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
15649
15717
|
|
|
15650
|
-
export type
|
|
15718
|
+
export type status40 = 'success' | 'failed' | 'pending';
|
|
15651
15719
|
|
|
15652
15720
|
/**
|
|
15653
15721
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -26323,7 +26391,7 @@ export type CreateWebhookSettingsData = {
|
|
|
26323
26391
|
/**
|
|
26324
26392
|
* Events to subscribe to (at least one required)
|
|
26325
26393
|
*/
|
|
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')>;
|
|
26394
|
+
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
26395
|
/**
|
|
26328
26396
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
26329
26397
|
*/
|
|
@@ -26389,7 +26457,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
26389
26457
|
/**
|
|
26390
26458
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
26391
26459
|
*/
|
|
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')>;
|
|
26460
|
+
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
26461
|
/**
|
|
26394
26462
|
* Enable or disable webhook delivery
|
|
26395
26463
|
*/
|
|
@@ -38385,6 +38453,59 @@ export type AddBroadcastRecipientsError = (unknown | ErrorResponse | {
|
|
|
38385
38453
|
error?: string;
|
|
38386
38454
|
});
|
|
38387
38455
|
|
|
38456
|
+
export type CreateSupportRunData = {
|
|
38457
|
+
body: {
|
|
38458
|
+
/**
|
|
38459
|
+
* The question. Leading and trailing whitespace is trimmed.
|
|
38460
|
+
*/
|
|
38461
|
+
message: string;
|
|
38462
|
+
/**
|
|
38463
|
+
* Continue this thread. The thread must have a run started by your team, and no run in progress.
|
|
38464
|
+
*/
|
|
38465
|
+
threadId?: string;
|
|
38466
|
+
/**
|
|
38467
|
+
* Ids Ana should look at. Each must belong to your workspace.
|
|
38468
|
+
*/
|
|
38469
|
+
context?: {
|
|
38470
|
+
postId?: string;
|
|
38471
|
+
accountId?: string;
|
|
38472
|
+
profileId?: string;
|
|
38473
|
+
};
|
|
38474
|
+
/**
|
|
38475
|
+
* Cost cap for this run, in USD. The run stops at the cap and bills at most this amount.
|
|
38476
|
+
*/
|
|
38477
|
+
maxCostUsd?: number;
|
|
38478
|
+
};
|
|
38479
|
+
headers?: {
|
|
38480
|
+
/**
|
|
38481
|
+
* 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.
|
|
38482
|
+
*/
|
|
38483
|
+
'Idempotency-Key'?: string;
|
|
38484
|
+
};
|
|
38485
|
+
};
|
|
38486
|
+
|
|
38487
|
+
export type CreateSupportRunResponse = ({
|
|
38488
|
+
runId: string;
|
|
38489
|
+
threadId: string;
|
|
38490
|
+
status: 'queued';
|
|
38491
|
+
/**
|
|
38492
|
+
* Seconds to wait before the first poll.
|
|
38493
|
+
*/
|
|
38494
|
+
pollAfterSeconds: number;
|
|
38495
|
+
});
|
|
38496
|
+
|
|
38497
|
+
export type CreateSupportRunError = (ErrorResponse);
|
|
38498
|
+
|
|
38499
|
+
export type GetSupportRunData = {
|
|
38500
|
+
path: {
|
|
38501
|
+
runId: string;
|
|
38502
|
+
};
|
|
38503
|
+
};
|
|
38504
|
+
|
|
38505
|
+
export type GetSupportRunResponse = (SupportRun);
|
|
38506
|
+
|
|
38507
|
+
export type GetSupportRunError = (ErrorResponse);
|
|
38508
|
+
|
|
38388
38509
|
export type ListWorkflowsData = {
|
|
38389
38510
|
query?: {
|
|
38390
38511
|
limit?: number;
|