@getlatedev/node 0.2.936 → 0.2.938
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 +74 -26
- package/dist/index.d.ts +74 -26
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +74 -26
package/dist/index.d.mts
CHANGED
|
@@ -2413,7 +2413,18 @@ type AdFunnelCounts = {
|
|
|
2413
2413
|
messagingFirstReplies?: number;
|
|
2414
2414
|
};
|
|
2415
2415
|
type AdKeyword = {
|
|
2416
|
+
/**
|
|
2417
|
+
* Zernio keyword ID. Accepted as `keywordId` by PATCH/DELETE /v1/ads/keywords/{keywordId}.
|
|
2418
|
+
*/
|
|
2416
2419
|
id?: string;
|
|
2420
|
+
/**
|
|
2421
|
+
* Google ad_group_criterion.criterion_id. Unique only within its ad group (`adSetId`), not across the account.
|
|
2422
|
+
*/
|
|
2423
|
+
platformCriterionId?: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* Google resource name, customers/{adAccountId}/adGroupCriteria/{adSetId}~{platformCriterionId}.
|
|
2426
|
+
*/
|
|
2427
|
+
resourceName?: string;
|
|
2417
2428
|
/**
|
|
2418
2429
|
* Account ID owning the sync
|
|
2419
2430
|
*/
|
|
@@ -10539,7 +10550,7 @@ type status18 = 'success' | 'failed';
|
|
|
10539
10550
|
*/
|
|
10540
10551
|
type WebhookPayloadAccountAdsInitialSyncCompleted = {
|
|
10541
10552
|
/**
|
|
10542
|
-
* Stable webhook event ID
|
|
10553
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10543
10554
|
*/
|
|
10544
10555
|
id: string;
|
|
10545
10556
|
event: 'account.ads.initial_sync_completed';
|
|
@@ -10660,7 +10671,7 @@ type errorCategory2 = 'token_invalid' | 'permission_denied' | 'no_ad_accounts' |
|
|
|
10660
10671
|
*/
|
|
10661
10672
|
type WebhookPayloadAccountConnected = {
|
|
10662
10673
|
/**
|
|
10663
|
-
* Stable webhook event ID
|
|
10674
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10664
10675
|
*/
|
|
10665
10676
|
id: string;
|
|
10666
10677
|
event: 'account.connected';
|
|
@@ -10688,7 +10699,7 @@ type event2 = 'account.connected';
|
|
|
10688
10699
|
*/
|
|
10689
10700
|
type WebhookPayloadAccountDisconnected = {
|
|
10690
10701
|
/**
|
|
10691
|
-
* Stable webhook event ID
|
|
10702
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10692
10703
|
*/
|
|
10693
10704
|
id: string;
|
|
10694
10705
|
event: 'account.disconnected';
|
|
@@ -10737,7 +10748,7 @@ type disconnectionType = 'intentional' | 'unintentional';
|
|
|
10737
10748
|
*/
|
|
10738
10749
|
type WebhookPayloadAdStatusChanged = {
|
|
10739
10750
|
/**
|
|
10740
|
-
* Stable webhook event ID
|
|
10751
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10741
10752
|
*/
|
|
10742
10753
|
id: string;
|
|
10743
10754
|
event: 'ad.status_changed';
|
|
@@ -10870,7 +10881,7 @@ type level = 'CAMPAIGN' | 'AD_SET' | 'AD';
|
|
|
10870
10881
|
*/
|
|
10871
10882
|
type WebhookPayloadAnalyticsSynced = {
|
|
10872
10883
|
/**
|
|
10873
|
-
* Stable webhook event ID
|
|
10884
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10874
10885
|
*/
|
|
10875
10886
|
id: string;
|
|
10876
10887
|
event: 'analytics.synced';
|
|
@@ -10918,6 +10929,9 @@ type event5 = 'analytics.synced';
|
|
|
10918
10929
|
*
|
|
10919
10930
|
*/
|
|
10920
10931
|
type WebhookPayloadCallEnded = {
|
|
10932
|
+
/**
|
|
10933
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10934
|
+
*/
|
|
10921
10935
|
id: string;
|
|
10922
10936
|
event: 'call.ended';
|
|
10923
10937
|
call: {
|
|
@@ -10983,6 +10997,9 @@ type event6 = 'call.ended';
|
|
|
10983
10997
|
*
|
|
10984
10998
|
*/
|
|
10985
10999
|
type WebhookPayloadCallFailed = {
|
|
11000
|
+
/**
|
|
11001
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11002
|
+
*/
|
|
10986
11003
|
id: string;
|
|
10987
11004
|
event: 'call.failed';
|
|
10988
11005
|
call: {
|
|
@@ -11013,6 +11030,9 @@ type event7 = 'call.failed';
|
|
|
11013
11030
|
*
|
|
11014
11031
|
*/
|
|
11015
11032
|
type WebhookPayloadCallPermissionRequest = {
|
|
11033
|
+
/**
|
|
11034
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11035
|
+
*/
|
|
11016
11036
|
id: string;
|
|
11017
11037
|
event: 'call.permission_request';
|
|
11018
11038
|
permission: {
|
|
@@ -11047,7 +11067,7 @@ type response = 'accept' | 'reject';
|
|
|
11047
11067
|
*/
|
|
11048
11068
|
type WebhookPayloadCallReceived = {
|
|
11049
11069
|
/**
|
|
11050
|
-
* Stable webhook event ID
|
|
11070
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11051
11071
|
*/
|
|
11052
11072
|
id: string;
|
|
11053
11073
|
event: 'call.received';
|
|
@@ -11094,7 +11114,7 @@ type event9 = 'call.received';
|
|
|
11094
11114
|
*/
|
|
11095
11115
|
type WebhookPayloadComment = {
|
|
11096
11116
|
/**
|
|
11097
|
-
* Stable webhook event ID
|
|
11117
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11098
11118
|
*/
|
|
11099
11119
|
id: string;
|
|
11100
11120
|
event: 'comment.received';
|
|
@@ -11251,7 +11271,7 @@ type platform12 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin'
|
|
|
11251
11271
|
*/
|
|
11252
11272
|
type WebhookPayloadConversationControlChanged = {
|
|
11253
11273
|
/**
|
|
11254
|
-
* Stable webhook event ID
|
|
11274
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11255
11275
|
*/
|
|
11256
11276
|
id: string;
|
|
11257
11277
|
event: 'conversation.control_changed';
|
|
@@ -11295,7 +11315,7 @@ type previousOwner = 'app' | 'ai_agent' | 'other';
|
|
|
11295
11315
|
*/
|
|
11296
11316
|
type WebhookPayloadConversationStarted = {
|
|
11297
11317
|
/**
|
|
11298
|
-
* Stable webhook event ID
|
|
11318
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11299
11319
|
*/
|
|
11300
11320
|
id: string;
|
|
11301
11321
|
event: 'conversation.started';
|
|
@@ -11321,7 +11341,7 @@ type event12 = 'conversation.started';
|
|
|
11321
11341
|
*/
|
|
11322
11342
|
type WebhookPayloadExternalPost = {
|
|
11323
11343
|
/**
|
|
11324
|
-
* Stable webhook event ID
|
|
11344
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11325
11345
|
*/
|
|
11326
11346
|
id: string;
|
|
11327
11347
|
event: 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
|
|
@@ -11346,7 +11366,7 @@ type event13 = 'post.external.created' | 'post.external.updated' | 'post.externa
|
|
|
11346
11366
|
*/
|
|
11347
11367
|
type WebhookPayloadLead = {
|
|
11348
11368
|
/**
|
|
11349
|
-
* Stable webhook event ID
|
|
11369
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11350
11370
|
*/
|
|
11351
11371
|
id: string;
|
|
11352
11372
|
event: 'lead.received';
|
|
@@ -11416,7 +11436,7 @@ type platform13 = 'facebook';
|
|
|
11416
11436
|
*/
|
|
11417
11437
|
type WebhookPayloadMessage = {
|
|
11418
11438
|
/**
|
|
11419
|
-
* Stable webhook event ID
|
|
11439
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11420
11440
|
*/
|
|
11421
11441
|
id: string;
|
|
11422
11442
|
event: 'message.received';
|
|
@@ -11986,6 +12006,9 @@ type contactsOrigin = 'contact_request' | 'other';
|
|
|
11986
12006
|
*
|
|
11987
12007
|
*/
|
|
11988
12008
|
type WebhookPayloadMessageDeleted = {
|
|
12009
|
+
/**
|
|
12010
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12011
|
+
*/
|
|
11989
12012
|
id: string;
|
|
11990
12013
|
event: 'message.deleted';
|
|
11991
12014
|
message: InboxWebhookMessage;
|
|
@@ -12013,6 +12036,9 @@ type event16 = 'message.deleted';
|
|
|
12013
12036
|
*
|
|
12014
12037
|
*/
|
|
12015
12038
|
type WebhookPayloadMessageDeliveryStatus = {
|
|
12039
|
+
/**
|
|
12040
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12041
|
+
*/
|
|
12016
12042
|
id: string;
|
|
12017
12043
|
event: 'message.delivered' | 'message.read' | 'message.failed';
|
|
12018
12044
|
message: InboxWebhookMessage;
|
|
@@ -12063,6 +12089,9 @@ type event17 = 'message.delivered' | 'message.read' | 'message.failed';
|
|
|
12063
12089
|
*
|
|
12064
12090
|
*/
|
|
12065
12091
|
type WebhookPayloadMessageEdited = {
|
|
12092
|
+
/**
|
|
12093
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12094
|
+
*/
|
|
12066
12095
|
id: string;
|
|
12067
12096
|
event: 'message.edited';
|
|
12068
12097
|
message: InboxWebhookMessage;
|
|
@@ -12091,7 +12120,7 @@ type event18 = 'message.edited';
|
|
|
12091
12120
|
*/
|
|
12092
12121
|
type WebhookPayloadMessageSent = {
|
|
12093
12122
|
/**
|
|
12094
|
-
* Stable webhook event ID
|
|
12123
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12095
12124
|
*/
|
|
12096
12125
|
id: string;
|
|
12097
12126
|
event: 'message.sent';
|
|
@@ -12313,7 +12342,7 @@ type source3 = 'whatsapp_business_app' | 'cloud_api' | 'meta_business_agent';
|
|
|
12313
12342
|
*/
|
|
12314
12343
|
type WebhookPayloadPhoneNumberStockAvailable = {
|
|
12315
12344
|
/**
|
|
12316
|
-
* Stable webhook event ID
|
|
12345
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12317
12346
|
*/
|
|
12318
12347
|
id: string;
|
|
12319
12348
|
event: 'phone_number.stock_available';
|
|
@@ -12355,7 +12384,7 @@ type event20 = 'phone_number.stock_available';
|
|
|
12355
12384
|
*/
|
|
12356
12385
|
type WebhookPayloadPost = {
|
|
12357
12386
|
/**
|
|
12358
|
-
* Stable webhook event ID
|
|
12387
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12359
12388
|
*/
|
|
12360
12389
|
id: string;
|
|
12361
12390
|
event: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
|
|
@@ -12420,7 +12449,7 @@ type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.parti
|
|
|
12420
12449
|
*/
|
|
12421
12450
|
type WebhookPayloadPostPlatform = {
|
|
12422
12451
|
/**
|
|
12423
|
-
* Stable webhook event ID.
|
|
12452
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12424
12453
|
*/
|
|
12425
12454
|
id: string;
|
|
12426
12455
|
event: 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
|
|
@@ -12524,7 +12553,7 @@ type status20 = 'published' | 'failed' | 'deleted';
|
|
|
12524
12553
|
*/
|
|
12525
12554
|
type WebhookPayloadReaction = {
|
|
12526
12555
|
/**
|
|
12527
|
-
* Stable webhook event ID
|
|
12556
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12528
12557
|
*/
|
|
12529
12558
|
id: string;
|
|
12530
12559
|
event: 'reaction.received';
|
|
@@ -12578,7 +12607,7 @@ type action = 'added' | 'removed';
|
|
|
12578
12607
|
*/
|
|
12579
12608
|
type WebhookPayloadReferral = {
|
|
12580
12609
|
/**
|
|
12581
|
-
* Stable webhook event ID
|
|
12610
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12582
12611
|
*/
|
|
12583
12612
|
id: string;
|
|
12584
12613
|
event: 'referral.received';
|
|
@@ -12648,7 +12677,7 @@ type event24 = 'referral.received';
|
|
|
12648
12677
|
*/
|
|
12649
12678
|
type WebhookPayloadReviewNew = {
|
|
12650
12679
|
/**
|
|
12651
|
-
* Stable webhook event ID
|
|
12680
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12652
12681
|
*/
|
|
12653
12682
|
id: string;
|
|
12654
12683
|
event: 'review.new';
|
|
@@ -12679,7 +12708,7 @@ type event25 = 'review.new';
|
|
|
12679
12708
|
*/
|
|
12680
12709
|
type WebhookPayloadReviewUpdated = {
|
|
12681
12710
|
/**
|
|
12682
|
-
* Stable webhook event ID
|
|
12711
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12683
12712
|
*/
|
|
12684
12713
|
id: string;
|
|
12685
12714
|
event: 'review.updated';
|
|
@@ -12704,7 +12733,7 @@ type event26 = 'review.updated';
|
|
|
12704
12733
|
*/
|
|
12705
12734
|
type WebhookPayloadTest = {
|
|
12706
12735
|
/**
|
|
12707
|
-
* Stable webhook event ID
|
|
12736
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12708
12737
|
*/
|
|
12709
12738
|
id: string;
|
|
12710
12739
|
event: 'webhook.test';
|
|
@@ -12730,7 +12759,7 @@ type event27 = 'webhook.test';
|
|
|
12730
12759
|
*/
|
|
12731
12760
|
type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
|
|
12732
12761
|
/**
|
|
12733
|
-
* Stable webhook event ID
|
|
12762
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12734
12763
|
*/
|
|
12735
12764
|
id: string;
|
|
12736
12765
|
event: 'whatsapp.account.name_status_updated';
|
|
@@ -12779,7 +12808,7 @@ type status21 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
|
12779
12808
|
*/
|
|
12780
12809
|
type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
|
|
12781
12810
|
/**
|
|
12782
|
-
* Stable webhook event ID
|
|
12811
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12783
12812
|
*/
|
|
12784
12813
|
id: string;
|
|
12785
12814
|
event: 'whatsapp.template.category_updated';
|
|
@@ -12859,7 +12888,7 @@ type scheduledCategory = 'UTILITY' | 'MARKETING' | 'AUTHENTICATION';
|
|
|
12859
12888
|
*/
|
|
12860
12889
|
type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
12861
12890
|
/**
|
|
12862
|
-
* Stable webhook event ID
|
|
12891
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12863
12892
|
*/
|
|
12864
12893
|
id: string;
|
|
12865
12894
|
event: 'whatsapp.template.status_updated';
|
|
@@ -35105,7 +35134,7 @@ type UpdateAdKeywordData = {
|
|
|
35105
35134
|
};
|
|
35106
35135
|
path: {
|
|
35107
35136
|
/**
|
|
35108
|
-
* Zernio keyword ID (
|
|
35137
|
+
* Zernio keyword ID (`id`), or Google's native `{adSetId}~{platformCriterionId}` (the tail of `resourceName`, e.g. 1234567890~987654321). A bare criterion id is rejected because it is only unique within its ad group.
|
|
35109
35138
|
*/
|
|
35110
35139
|
keywordId: string;
|
|
35111
35140
|
};
|
|
@@ -35119,7 +35148,7 @@ type UpdateAdKeywordError = (ErrorResponse | {
|
|
|
35119
35148
|
type RemoveAdKeywordData = {
|
|
35120
35149
|
path: {
|
|
35121
35150
|
/**
|
|
35122
|
-
* Zernio keyword ID (
|
|
35151
|
+
* Zernio keyword ID (`id`), or Google's native `{adSetId}~{platformCriterionId}` (the tail of `resourceName`, e.g. 1234567890~987654321). A bare criterion id is rejected because it is only unique within its ad group.
|
|
35123
35152
|
*/
|
|
35124
35153
|
keywordId: string;
|
|
35125
35154
|
};
|
|
@@ -35129,7 +35158,26 @@ type RemoveAdKeywordResponse = ({
|
|
|
35129
35158
|
* Always true on success
|
|
35130
35159
|
*/
|
|
35131
35160
|
removed?: boolean;
|
|
35161
|
+
/**
|
|
35162
|
+
* Zernio keyword ID
|
|
35163
|
+
*/
|
|
35132
35164
|
keywordId?: string;
|
|
35165
|
+
/**
|
|
35166
|
+
* Google ad_group_criterion.criterion_id
|
|
35167
|
+
*/
|
|
35168
|
+
platformCriterionId?: string;
|
|
35169
|
+
/**
|
|
35170
|
+
* Google resource name of the removed criterion
|
|
35171
|
+
*/
|
|
35172
|
+
resourceName?: string;
|
|
35173
|
+
/**
|
|
35174
|
+
* Google campaign ID
|
|
35175
|
+
*/
|
|
35176
|
+
campaignId?: string;
|
|
35177
|
+
/**
|
|
35178
|
+
* Google ad group ID
|
|
35179
|
+
*/
|
|
35180
|
+
adSetId?: string;
|
|
35133
35181
|
});
|
|
35134
35182
|
type RemoveAdKeywordError = (ErrorResponse | {
|
|
35135
35183
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2413,7 +2413,18 @@ type AdFunnelCounts = {
|
|
|
2413
2413
|
messagingFirstReplies?: number;
|
|
2414
2414
|
};
|
|
2415
2415
|
type AdKeyword = {
|
|
2416
|
+
/**
|
|
2417
|
+
* Zernio keyword ID. Accepted as `keywordId` by PATCH/DELETE /v1/ads/keywords/{keywordId}.
|
|
2418
|
+
*/
|
|
2416
2419
|
id?: string;
|
|
2420
|
+
/**
|
|
2421
|
+
* Google ad_group_criterion.criterion_id. Unique only within its ad group (`adSetId`), not across the account.
|
|
2422
|
+
*/
|
|
2423
|
+
platformCriterionId?: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* Google resource name, customers/{adAccountId}/adGroupCriteria/{adSetId}~{platformCriterionId}.
|
|
2426
|
+
*/
|
|
2427
|
+
resourceName?: string;
|
|
2417
2428
|
/**
|
|
2418
2429
|
* Account ID owning the sync
|
|
2419
2430
|
*/
|
|
@@ -10539,7 +10550,7 @@ type status18 = 'success' | 'failed';
|
|
|
10539
10550
|
*/
|
|
10540
10551
|
type WebhookPayloadAccountAdsInitialSyncCompleted = {
|
|
10541
10552
|
/**
|
|
10542
|
-
* Stable webhook event ID
|
|
10553
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10543
10554
|
*/
|
|
10544
10555
|
id: string;
|
|
10545
10556
|
event: 'account.ads.initial_sync_completed';
|
|
@@ -10660,7 +10671,7 @@ type errorCategory2 = 'token_invalid' | 'permission_denied' | 'no_ad_accounts' |
|
|
|
10660
10671
|
*/
|
|
10661
10672
|
type WebhookPayloadAccountConnected = {
|
|
10662
10673
|
/**
|
|
10663
|
-
* Stable webhook event ID
|
|
10674
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10664
10675
|
*/
|
|
10665
10676
|
id: string;
|
|
10666
10677
|
event: 'account.connected';
|
|
@@ -10688,7 +10699,7 @@ type event2 = 'account.connected';
|
|
|
10688
10699
|
*/
|
|
10689
10700
|
type WebhookPayloadAccountDisconnected = {
|
|
10690
10701
|
/**
|
|
10691
|
-
* Stable webhook event ID
|
|
10702
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10692
10703
|
*/
|
|
10693
10704
|
id: string;
|
|
10694
10705
|
event: 'account.disconnected';
|
|
@@ -10737,7 +10748,7 @@ type disconnectionType = 'intentional' | 'unintentional';
|
|
|
10737
10748
|
*/
|
|
10738
10749
|
type WebhookPayloadAdStatusChanged = {
|
|
10739
10750
|
/**
|
|
10740
|
-
* Stable webhook event ID
|
|
10751
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10741
10752
|
*/
|
|
10742
10753
|
id: string;
|
|
10743
10754
|
event: 'ad.status_changed';
|
|
@@ -10870,7 +10881,7 @@ type level = 'CAMPAIGN' | 'AD_SET' | 'AD';
|
|
|
10870
10881
|
*/
|
|
10871
10882
|
type WebhookPayloadAnalyticsSynced = {
|
|
10872
10883
|
/**
|
|
10873
|
-
* Stable webhook event ID
|
|
10884
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10874
10885
|
*/
|
|
10875
10886
|
id: string;
|
|
10876
10887
|
event: 'analytics.synced';
|
|
@@ -10918,6 +10929,9 @@ type event5 = 'analytics.synced';
|
|
|
10918
10929
|
*
|
|
10919
10930
|
*/
|
|
10920
10931
|
type WebhookPayloadCallEnded = {
|
|
10932
|
+
/**
|
|
10933
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10934
|
+
*/
|
|
10921
10935
|
id: string;
|
|
10922
10936
|
event: 'call.ended';
|
|
10923
10937
|
call: {
|
|
@@ -10983,6 +10997,9 @@ type event6 = 'call.ended';
|
|
|
10983
10997
|
*
|
|
10984
10998
|
*/
|
|
10985
10999
|
type WebhookPayloadCallFailed = {
|
|
11000
|
+
/**
|
|
11001
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11002
|
+
*/
|
|
10986
11003
|
id: string;
|
|
10987
11004
|
event: 'call.failed';
|
|
10988
11005
|
call: {
|
|
@@ -11013,6 +11030,9 @@ type event7 = 'call.failed';
|
|
|
11013
11030
|
*
|
|
11014
11031
|
*/
|
|
11015
11032
|
type WebhookPayloadCallPermissionRequest = {
|
|
11033
|
+
/**
|
|
11034
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11035
|
+
*/
|
|
11016
11036
|
id: string;
|
|
11017
11037
|
event: 'call.permission_request';
|
|
11018
11038
|
permission: {
|
|
@@ -11047,7 +11067,7 @@ type response = 'accept' | 'reject';
|
|
|
11047
11067
|
*/
|
|
11048
11068
|
type WebhookPayloadCallReceived = {
|
|
11049
11069
|
/**
|
|
11050
|
-
* Stable webhook event ID
|
|
11070
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11051
11071
|
*/
|
|
11052
11072
|
id: string;
|
|
11053
11073
|
event: 'call.received';
|
|
@@ -11094,7 +11114,7 @@ type event9 = 'call.received';
|
|
|
11094
11114
|
*/
|
|
11095
11115
|
type WebhookPayloadComment = {
|
|
11096
11116
|
/**
|
|
11097
|
-
* Stable webhook event ID
|
|
11117
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11098
11118
|
*/
|
|
11099
11119
|
id: string;
|
|
11100
11120
|
event: 'comment.received';
|
|
@@ -11251,7 +11271,7 @@ type platform12 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin'
|
|
|
11251
11271
|
*/
|
|
11252
11272
|
type WebhookPayloadConversationControlChanged = {
|
|
11253
11273
|
/**
|
|
11254
|
-
* Stable webhook event ID
|
|
11274
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11255
11275
|
*/
|
|
11256
11276
|
id: string;
|
|
11257
11277
|
event: 'conversation.control_changed';
|
|
@@ -11295,7 +11315,7 @@ type previousOwner = 'app' | 'ai_agent' | 'other';
|
|
|
11295
11315
|
*/
|
|
11296
11316
|
type WebhookPayloadConversationStarted = {
|
|
11297
11317
|
/**
|
|
11298
|
-
* Stable webhook event ID
|
|
11318
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11299
11319
|
*/
|
|
11300
11320
|
id: string;
|
|
11301
11321
|
event: 'conversation.started';
|
|
@@ -11321,7 +11341,7 @@ type event12 = 'conversation.started';
|
|
|
11321
11341
|
*/
|
|
11322
11342
|
type WebhookPayloadExternalPost = {
|
|
11323
11343
|
/**
|
|
11324
|
-
* Stable webhook event ID
|
|
11344
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11325
11345
|
*/
|
|
11326
11346
|
id: string;
|
|
11327
11347
|
event: 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
|
|
@@ -11346,7 +11366,7 @@ type event13 = 'post.external.created' | 'post.external.updated' | 'post.externa
|
|
|
11346
11366
|
*/
|
|
11347
11367
|
type WebhookPayloadLead = {
|
|
11348
11368
|
/**
|
|
11349
|
-
* Stable webhook event ID
|
|
11369
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11350
11370
|
*/
|
|
11351
11371
|
id: string;
|
|
11352
11372
|
event: 'lead.received';
|
|
@@ -11416,7 +11436,7 @@ type platform13 = 'facebook';
|
|
|
11416
11436
|
*/
|
|
11417
11437
|
type WebhookPayloadMessage = {
|
|
11418
11438
|
/**
|
|
11419
|
-
* Stable webhook event ID
|
|
11439
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11420
11440
|
*/
|
|
11421
11441
|
id: string;
|
|
11422
11442
|
event: 'message.received';
|
|
@@ -11986,6 +12006,9 @@ type contactsOrigin = 'contact_request' | 'other';
|
|
|
11986
12006
|
*
|
|
11987
12007
|
*/
|
|
11988
12008
|
type WebhookPayloadMessageDeleted = {
|
|
12009
|
+
/**
|
|
12010
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12011
|
+
*/
|
|
11989
12012
|
id: string;
|
|
11990
12013
|
event: 'message.deleted';
|
|
11991
12014
|
message: InboxWebhookMessage;
|
|
@@ -12013,6 +12036,9 @@ type event16 = 'message.deleted';
|
|
|
12013
12036
|
*
|
|
12014
12037
|
*/
|
|
12015
12038
|
type WebhookPayloadMessageDeliveryStatus = {
|
|
12039
|
+
/**
|
|
12040
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12041
|
+
*/
|
|
12016
12042
|
id: string;
|
|
12017
12043
|
event: 'message.delivered' | 'message.read' | 'message.failed';
|
|
12018
12044
|
message: InboxWebhookMessage;
|
|
@@ -12063,6 +12089,9 @@ type event17 = 'message.delivered' | 'message.read' | 'message.failed';
|
|
|
12063
12089
|
*
|
|
12064
12090
|
*/
|
|
12065
12091
|
type WebhookPayloadMessageEdited = {
|
|
12092
|
+
/**
|
|
12093
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12094
|
+
*/
|
|
12066
12095
|
id: string;
|
|
12067
12096
|
event: 'message.edited';
|
|
12068
12097
|
message: InboxWebhookMessage;
|
|
@@ -12091,7 +12120,7 @@ type event18 = 'message.edited';
|
|
|
12091
12120
|
*/
|
|
12092
12121
|
type WebhookPayloadMessageSent = {
|
|
12093
12122
|
/**
|
|
12094
|
-
* Stable webhook event ID
|
|
12123
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12095
12124
|
*/
|
|
12096
12125
|
id: string;
|
|
12097
12126
|
event: 'message.sent';
|
|
@@ -12313,7 +12342,7 @@ type source3 = 'whatsapp_business_app' | 'cloud_api' | 'meta_business_agent';
|
|
|
12313
12342
|
*/
|
|
12314
12343
|
type WebhookPayloadPhoneNumberStockAvailable = {
|
|
12315
12344
|
/**
|
|
12316
|
-
* Stable webhook event ID
|
|
12345
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12317
12346
|
*/
|
|
12318
12347
|
id: string;
|
|
12319
12348
|
event: 'phone_number.stock_available';
|
|
@@ -12355,7 +12384,7 @@ type event20 = 'phone_number.stock_available';
|
|
|
12355
12384
|
*/
|
|
12356
12385
|
type WebhookPayloadPost = {
|
|
12357
12386
|
/**
|
|
12358
|
-
* Stable webhook event ID
|
|
12387
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12359
12388
|
*/
|
|
12360
12389
|
id: string;
|
|
12361
12390
|
event: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
|
|
@@ -12420,7 +12449,7 @@ type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.parti
|
|
|
12420
12449
|
*/
|
|
12421
12450
|
type WebhookPayloadPostPlatform = {
|
|
12422
12451
|
/**
|
|
12423
|
-
* Stable webhook event ID.
|
|
12452
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12424
12453
|
*/
|
|
12425
12454
|
id: string;
|
|
12426
12455
|
event: 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
|
|
@@ -12524,7 +12553,7 @@ type status20 = 'published' | 'failed' | 'deleted';
|
|
|
12524
12553
|
*/
|
|
12525
12554
|
type WebhookPayloadReaction = {
|
|
12526
12555
|
/**
|
|
12527
|
-
* Stable webhook event ID
|
|
12556
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12528
12557
|
*/
|
|
12529
12558
|
id: string;
|
|
12530
12559
|
event: 'reaction.received';
|
|
@@ -12578,7 +12607,7 @@ type action = 'added' | 'removed';
|
|
|
12578
12607
|
*/
|
|
12579
12608
|
type WebhookPayloadReferral = {
|
|
12580
12609
|
/**
|
|
12581
|
-
* Stable webhook event ID
|
|
12610
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12582
12611
|
*/
|
|
12583
12612
|
id: string;
|
|
12584
12613
|
event: 'referral.received';
|
|
@@ -12648,7 +12677,7 @@ type event24 = 'referral.received';
|
|
|
12648
12677
|
*/
|
|
12649
12678
|
type WebhookPayloadReviewNew = {
|
|
12650
12679
|
/**
|
|
12651
|
-
* Stable webhook event ID
|
|
12680
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12652
12681
|
*/
|
|
12653
12682
|
id: string;
|
|
12654
12683
|
event: 'review.new';
|
|
@@ -12679,7 +12708,7 @@ type event25 = 'review.new';
|
|
|
12679
12708
|
*/
|
|
12680
12709
|
type WebhookPayloadReviewUpdated = {
|
|
12681
12710
|
/**
|
|
12682
|
-
* Stable webhook event ID
|
|
12711
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12683
12712
|
*/
|
|
12684
12713
|
id: string;
|
|
12685
12714
|
event: 'review.updated';
|
|
@@ -12704,7 +12733,7 @@ type event26 = 'review.updated';
|
|
|
12704
12733
|
*/
|
|
12705
12734
|
type WebhookPayloadTest = {
|
|
12706
12735
|
/**
|
|
12707
|
-
* Stable webhook event ID
|
|
12736
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12708
12737
|
*/
|
|
12709
12738
|
id: string;
|
|
12710
12739
|
event: 'webhook.test';
|
|
@@ -12730,7 +12759,7 @@ type event27 = 'webhook.test';
|
|
|
12730
12759
|
*/
|
|
12731
12760
|
type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
|
|
12732
12761
|
/**
|
|
12733
|
-
* Stable webhook event ID
|
|
12762
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12734
12763
|
*/
|
|
12735
12764
|
id: string;
|
|
12736
12765
|
event: 'whatsapp.account.name_status_updated';
|
|
@@ -12779,7 +12808,7 @@ type status21 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
|
12779
12808
|
*/
|
|
12780
12809
|
type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
|
|
12781
12810
|
/**
|
|
12782
|
-
* Stable webhook event ID
|
|
12811
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12783
12812
|
*/
|
|
12784
12813
|
id: string;
|
|
12785
12814
|
event: 'whatsapp.template.category_updated';
|
|
@@ -12859,7 +12888,7 @@ type scheduledCategory = 'UTILITY' | 'MARKETING' | 'AUTHENTICATION';
|
|
|
12859
12888
|
*/
|
|
12860
12889
|
type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
12861
12890
|
/**
|
|
12862
|
-
* Stable webhook event ID
|
|
12891
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
12863
12892
|
*/
|
|
12864
12893
|
id: string;
|
|
12865
12894
|
event: 'whatsapp.template.status_updated';
|
|
@@ -35105,7 +35134,7 @@ type UpdateAdKeywordData = {
|
|
|
35105
35134
|
};
|
|
35106
35135
|
path: {
|
|
35107
35136
|
/**
|
|
35108
|
-
* Zernio keyword ID (
|
|
35137
|
+
* Zernio keyword ID (`id`), or Google's native `{adSetId}~{platformCriterionId}` (the tail of `resourceName`, e.g. 1234567890~987654321). A bare criterion id is rejected because it is only unique within its ad group.
|
|
35109
35138
|
*/
|
|
35110
35139
|
keywordId: string;
|
|
35111
35140
|
};
|
|
@@ -35119,7 +35148,7 @@ type UpdateAdKeywordError = (ErrorResponse | {
|
|
|
35119
35148
|
type RemoveAdKeywordData = {
|
|
35120
35149
|
path: {
|
|
35121
35150
|
/**
|
|
35122
|
-
* Zernio keyword ID (
|
|
35151
|
+
* Zernio keyword ID (`id`), or Google's native `{adSetId}~{platformCriterionId}` (the tail of `resourceName`, e.g. 1234567890~987654321). A bare criterion id is rejected because it is only unique within its ad group.
|
|
35123
35152
|
*/
|
|
35124
35153
|
keywordId: string;
|
|
35125
35154
|
};
|
|
@@ -35129,7 +35158,26 @@ type RemoveAdKeywordResponse = ({
|
|
|
35129
35158
|
* Always true on success
|
|
35130
35159
|
*/
|
|
35131
35160
|
removed?: boolean;
|
|
35161
|
+
/**
|
|
35162
|
+
* Zernio keyword ID
|
|
35163
|
+
*/
|
|
35132
35164
|
keywordId?: string;
|
|
35165
|
+
/**
|
|
35166
|
+
* Google ad_group_criterion.criterion_id
|
|
35167
|
+
*/
|
|
35168
|
+
platformCriterionId?: string;
|
|
35169
|
+
/**
|
|
35170
|
+
* Google resource name of the removed criterion
|
|
35171
|
+
*/
|
|
35172
|
+
resourceName?: string;
|
|
35173
|
+
/**
|
|
35174
|
+
* Google campaign ID
|
|
35175
|
+
*/
|
|
35176
|
+
campaignId?: string;
|
|
35177
|
+
/**
|
|
35178
|
+
* Google ad group ID
|
|
35179
|
+
*/
|
|
35180
|
+
adSetId?: string;
|
|
35133
35181
|
});
|
|
35134
35182
|
type RemoveAdKeywordError = (ErrorResponse | {
|
|
35135
35183
|
error?: string;
|
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.938",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.938",
|
|
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
|
@@ -743,7 +743,18 @@ export type AdFunnelCounts = {
|
|
|
743
743
|
};
|
|
744
744
|
|
|
745
745
|
export type AdKeyword = {
|
|
746
|
+
/**
|
|
747
|
+
* Zernio keyword ID. Accepted as `keywordId` by PATCH/DELETE /v1/ads/keywords/{keywordId}.
|
|
748
|
+
*/
|
|
746
749
|
id?: string;
|
|
750
|
+
/**
|
|
751
|
+
* Google ad_group_criterion.criterion_id. Unique only within its ad group (`adSetId`), not across the account.
|
|
752
|
+
*/
|
|
753
|
+
platformCriterionId?: string;
|
|
754
|
+
/**
|
|
755
|
+
* Google resource name, customers/{adAccountId}/adGroupCriteria/{adSetId}~{platformCriterionId}.
|
|
756
|
+
*/
|
|
757
|
+
resourceName?: string;
|
|
747
758
|
/**
|
|
748
759
|
* Account ID owning the sync
|
|
749
760
|
*/
|
|
@@ -9210,7 +9221,7 @@ export type status18 = 'success' | 'failed';
|
|
|
9210
9221
|
*/
|
|
9211
9222
|
export type WebhookPayloadAccountAdsInitialSyncCompleted = {
|
|
9212
9223
|
/**
|
|
9213
|
-
* Stable webhook event ID
|
|
9224
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9214
9225
|
*/
|
|
9215
9226
|
id: string;
|
|
9216
9227
|
event: 'account.ads.initial_sync_completed';
|
|
@@ -9335,7 +9346,7 @@ export type errorCategory2 = 'token_invalid' | 'permission_denied' | 'no_ad_acco
|
|
|
9335
9346
|
*/
|
|
9336
9347
|
export type WebhookPayloadAccountConnected = {
|
|
9337
9348
|
/**
|
|
9338
|
-
* Stable webhook event ID
|
|
9349
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9339
9350
|
*/
|
|
9340
9351
|
id: string;
|
|
9341
9352
|
event: 'account.connected';
|
|
@@ -9365,7 +9376,7 @@ export type event2 = 'account.connected';
|
|
|
9365
9376
|
*/
|
|
9366
9377
|
export type WebhookPayloadAccountDisconnected = {
|
|
9367
9378
|
/**
|
|
9368
|
-
* Stable webhook event ID
|
|
9379
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9369
9380
|
*/
|
|
9370
9381
|
id: string;
|
|
9371
9382
|
event: 'account.disconnected';
|
|
@@ -9417,7 +9428,7 @@ export type disconnectionType = 'intentional' | 'unintentional';
|
|
|
9417
9428
|
*/
|
|
9418
9429
|
export type WebhookPayloadAdStatusChanged = {
|
|
9419
9430
|
/**
|
|
9420
|
-
* Stable webhook event ID
|
|
9431
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9421
9432
|
*/
|
|
9422
9433
|
id: string;
|
|
9423
9434
|
event: 'ad.status_changed';
|
|
@@ -9553,7 +9564,7 @@ export type level = 'CAMPAIGN' | 'AD_SET' | 'AD';
|
|
|
9553
9564
|
*/
|
|
9554
9565
|
export type WebhookPayloadAnalyticsSynced = {
|
|
9555
9566
|
/**
|
|
9556
|
-
* Stable webhook event ID
|
|
9567
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9557
9568
|
*/
|
|
9558
9569
|
id: string;
|
|
9559
9570
|
event: 'analytics.synced';
|
|
@@ -9603,6 +9614,9 @@ export type event5 = 'analytics.synced';
|
|
|
9603
9614
|
*
|
|
9604
9615
|
*/
|
|
9605
9616
|
export type WebhookPayloadCallEnded = {
|
|
9617
|
+
/**
|
|
9618
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9619
|
+
*/
|
|
9606
9620
|
id: string;
|
|
9607
9621
|
event: 'call.ended';
|
|
9608
9622
|
call: {
|
|
@@ -9670,6 +9684,9 @@ export type event6 = 'call.ended';
|
|
|
9670
9684
|
*
|
|
9671
9685
|
*/
|
|
9672
9686
|
export type WebhookPayloadCallFailed = {
|
|
9687
|
+
/**
|
|
9688
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9689
|
+
*/
|
|
9673
9690
|
id: string;
|
|
9674
9691
|
event: 'call.failed';
|
|
9675
9692
|
call: {
|
|
@@ -9702,6 +9719,9 @@ export type event7 = 'call.failed';
|
|
|
9702
9719
|
*
|
|
9703
9720
|
*/
|
|
9704
9721
|
export type WebhookPayloadCallPermissionRequest = {
|
|
9722
|
+
/**
|
|
9723
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9724
|
+
*/
|
|
9705
9725
|
id: string;
|
|
9706
9726
|
event: 'call.permission_request';
|
|
9707
9727
|
permission: {
|
|
@@ -9739,7 +9759,7 @@ export type response = 'accept' | 'reject';
|
|
|
9739
9759
|
*/
|
|
9740
9760
|
export type WebhookPayloadCallReceived = {
|
|
9741
9761
|
/**
|
|
9742
|
-
* Stable webhook event ID
|
|
9762
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9743
9763
|
*/
|
|
9744
9764
|
id: string;
|
|
9745
9765
|
event: 'call.received';
|
|
@@ -9788,7 +9808,7 @@ export type event9 = 'call.received';
|
|
|
9788
9808
|
*/
|
|
9789
9809
|
export type WebhookPayloadComment = {
|
|
9790
9810
|
/**
|
|
9791
|
-
* Stable webhook event ID
|
|
9811
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9792
9812
|
*/
|
|
9793
9813
|
id: string;
|
|
9794
9814
|
event: 'comment.received';
|
|
@@ -9948,7 +9968,7 @@ export type platform12 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'lin
|
|
|
9948
9968
|
*/
|
|
9949
9969
|
export type WebhookPayloadConversationControlChanged = {
|
|
9950
9970
|
/**
|
|
9951
|
-
* Stable webhook event ID
|
|
9971
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
9952
9972
|
*/
|
|
9953
9973
|
id: string;
|
|
9954
9974
|
event: 'conversation.control_changed';
|
|
@@ -9996,7 +10016,7 @@ export type previousOwner = 'app' | 'ai_agent' | 'other';
|
|
|
9996
10016
|
*/
|
|
9997
10017
|
export type WebhookPayloadConversationStarted = {
|
|
9998
10018
|
/**
|
|
9999
|
-
* Stable webhook event ID
|
|
10019
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10000
10020
|
*/
|
|
10001
10021
|
id: string;
|
|
10002
10022
|
event: 'conversation.started';
|
|
@@ -10024,7 +10044,7 @@ export type event12 = 'conversation.started';
|
|
|
10024
10044
|
*/
|
|
10025
10045
|
export type WebhookPayloadExternalPost = {
|
|
10026
10046
|
/**
|
|
10027
|
-
* Stable webhook event ID
|
|
10047
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10028
10048
|
*/
|
|
10029
10049
|
id: string;
|
|
10030
10050
|
event: 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
|
|
@@ -10051,7 +10071,7 @@ export type event13 = 'post.external.created' | 'post.external.updated' | 'post.
|
|
|
10051
10071
|
*/
|
|
10052
10072
|
export type WebhookPayloadLead = {
|
|
10053
10073
|
/**
|
|
10054
|
-
* Stable webhook event ID
|
|
10074
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10055
10075
|
*/
|
|
10056
10076
|
id: string;
|
|
10057
10077
|
event: 'lead.received';
|
|
@@ -10124,7 +10144,7 @@ export type platform13 = 'facebook';
|
|
|
10124
10144
|
*/
|
|
10125
10145
|
export type WebhookPayloadMessage = {
|
|
10126
10146
|
/**
|
|
10127
|
-
* Stable webhook event ID
|
|
10147
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10128
10148
|
*/
|
|
10129
10149
|
id: string;
|
|
10130
10150
|
event: 'message.received';
|
|
@@ -10699,6 +10719,9 @@ export type contactsOrigin = 'contact_request' | 'other';
|
|
|
10699
10719
|
*
|
|
10700
10720
|
*/
|
|
10701
10721
|
export type WebhookPayloadMessageDeleted = {
|
|
10722
|
+
/**
|
|
10723
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10724
|
+
*/
|
|
10702
10725
|
id: string;
|
|
10703
10726
|
event: 'message.deleted';
|
|
10704
10727
|
message: InboxWebhookMessage;
|
|
@@ -10728,6 +10751,9 @@ export type event16 = 'message.deleted';
|
|
|
10728
10751
|
*
|
|
10729
10752
|
*/
|
|
10730
10753
|
export type WebhookPayloadMessageDeliveryStatus = {
|
|
10754
|
+
/**
|
|
10755
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10756
|
+
*/
|
|
10731
10757
|
id: string;
|
|
10732
10758
|
event: 'message.delivered' | 'message.read' | 'message.failed';
|
|
10733
10759
|
message: InboxWebhookMessage;
|
|
@@ -10780,6 +10806,9 @@ export type event17 = 'message.delivered' | 'message.read' | 'message.failed';
|
|
|
10780
10806
|
*
|
|
10781
10807
|
*/
|
|
10782
10808
|
export type WebhookPayloadMessageEdited = {
|
|
10809
|
+
/**
|
|
10810
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10811
|
+
*/
|
|
10783
10812
|
id: string;
|
|
10784
10813
|
event: 'message.edited';
|
|
10785
10814
|
message: InboxWebhookMessage;
|
|
@@ -10810,7 +10839,7 @@ export type event18 = 'message.edited';
|
|
|
10810
10839
|
*/
|
|
10811
10840
|
export type WebhookPayloadMessageSent = {
|
|
10812
10841
|
/**
|
|
10813
|
-
* Stable webhook event ID
|
|
10842
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
10814
10843
|
*/
|
|
10815
10844
|
id: string;
|
|
10816
10845
|
event: 'message.sent';
|
|
@@ -11036,7 +11065,7 @@ export type source3 = 'whatsapp_business_app' | 'cloud_api' | 'meta_business_age
|
|
|
11036
11065
|
*/
|
|
11037
11066
|
export type WebhookPayloadPhoneNumberStockAvailable = {
|
|
11038
11067
|
/**
|
|
11039
|
-
* Stable webhook event ID
|
|
11068
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11040
11069
|
*/
|
|
11041
11070
|
id: string;
|
|
11042
11071
|
event: 'phone_number.stock_available';
|
|
@@ -11080,7 +11109,7 @@ export type event20 = 'phone_number.stock_available';
|
|
|
11080
11109
|
*/
|
|
11081
11110
|
export type WebhookPayloadPost = {
|
|
11082
11111
|
/**
|
|
11083
|
-
* Stable webhook event ID
|
|
11112
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11084
11113
|
*/
|
|
11085
11114
|
id: string;
|
|
11086
11115
|
event: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
|
|
@@ -11147,7 +11176,7 @@ export type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'pos
|
|
|
11147
11176
|
*/
|
|
11148
11177
|
export type WebhookPayloadPostPlatform = {
|
|
11149
11178
|
/**
|
|
11150
|
-
* Stable webhook event ID.
|
|
11179
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11151
11180
|
*/
|
|
11152
11181
|
id: string;
|
|
11153
11182
|
event: 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
|
|
@@ -11254,7 +11283,7 @@ export type status20 = 'published' | 'failed' | 'deleted';
|
|
|
11254
11283
|
*/
|
|
11255
11284
|
export type WebhookPayloadReaction = {
|
|
11256
11285
|
/**
|
|
11257
|
-
* Stable webhook event ID
|
|
11286
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11258
11287
|
*/
|
|
11259
11288
|
id: string;
|
|
11260
11289
|
event: 'reaction.received';
|
|
@@ -11311,7 +11340,7 @@ export type action = 'added' | 'removed';
|
|
|
11311
11340
|
*/
|
|
11312
11341
|
export type WebhookPayloadReferral = {
|
|
11313
11342
|
/**
|
|
11314
|
-
* Stable webhook event ID
|
|
11343
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11315
11344
|
*/
|
|
11316
11345
|
id: string;
|
|
11317
11346
|
event: 'referral.received';
|
|
@@ -11383,7 +11412,7 @@ export type event24 = 'referral.received';
|
|
|
11383
11412
|
*/
|
|
11384
11413
|
export type WebhookPayloadReviewNew = {
|
|
11385
11414
|
/**
|
|
11386
|
-
* Stable webhook event ID
|
|
11415
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11387
11416
|
*/
|
|
11388
11417
|
id: string;
|
|
11389
11418
|
event: 'review.new';
|
|
@@ -11416,7 +11445,7 @@ export type event25 = 'review.new';
|
|
|
11416
11445
|
*/
|
|
11417
11446
|
export type WebhookPayloadReviewUpdated = {
|
|
11418
11447
|
/**
|
|
11419
|
-
* Stable webhook event ID
|
|
11448
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11420
11449
|
*/
|
|
11421
11450
|
id: string;
|
|
11422
11451
|
event: 'review.updated';
|
|
@@ -11443,7 +11472,7 @@ export type event26 = 'review.updated';
|
|
|
11443
11472
|
*/
|
|
11444
11473
|
export type WebhookPayloadTest = {
|
|
11445
11474
|
/**
|
|
11446
|
-
* Stable webhook event ID
|
|
11475
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11447
11476
|
*/
|
|
11448
11477
|
id: string;
|
|
11449
11478
|
event: 'webhook.test';
|
|
@@ -11471,7 +11500,7 @@ export type event27 = 'webhook.test';
|
|
|
11471
11500
|
*/
|
|
11472
11501
|
export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
|
|
11473
11502
|
/**
|
|
11474
|
-
* Stable webhook event ID
|
|
11503
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11475
11504
|
*/
|
|
11476
11505
|
id: string;
|
|
11477
11506
|
event: 'whatsapp.account.name_status_updated';
|
|
@@ -11524,7 +11553,7 @@ export type status21 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
|
11524
11553
|
*/
|
|
11525
11554
|
export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
|
|
11526
11555
|
/**
|
|
11527
|
-
* Stable webhook event ID
|
|
11556
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11528
11557
|
*/
|
|
11529
11558
|
id: string;
|
|
11530
11559
|
event: 'whatsapp.template.category_updated';
|
|
@@ -11610,7 +11639,7 @@ export type scheduledCategory = 'UTILITY' | 'MARKETING' | 'AUTHENTICATION';
|
|
|
11610
11639
|
*/
|
|
11611
11640
|
export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
11612
11641
|
/**
|
|
11613
|
-
* Stable webhook event ID
|
|
11642
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
11614
11643
|
*/
|
|
11615
11644
|
id: string;
|
|
11616
11645
|
event: 'whatsapp.template.status_updated';
|
|
@@ -35433,7 +35462,7 @@ export type UpdateAdKeywordData = {
|
|
|
35433
35462
|
};
|
|
35434
35463
|
path: {
|
|
35435
35464
|
/**
|
|
35436
|
-
* Zernio keyword ID (
|
|
35465
|
+
* Zernio keyword ID (`id`), or Google's native `{adSetId}~{platformCriterionId}` (the tail of `resourceName`, e.g. 1234567890~987654321). A bare criterion id is rejected because it is only unique within its ad group.
|
|
35437
35466
|
*/
|
|
35438
35467
|
keywordId: string;
|
|
35439
35468
|
};
|
|
@@ -35450,7 +35479,7 @@ export type UpdateAdKeywordError = (ErrorResponse | {
|
|
|
35450
35479
|
export type RemoveAdKeywordData = {
|
|
35451
35480
|
path: {
|
|
35452
35481
|
/**
|
|
35453
|
-
* Zernio keyword ID (
|
|
35482
|
+
* Zernio keyword ID (`id`), or Google's native `{adSetId}~{platformCriterionId}` (the tail of `resourceName`, e.g. 1234567890~987654321). A bare criterion id is rejected because it is only unique within its ad group.
|
|
35454
35483
|
*/
|
|
35455
35484
|
keywordId: string;
|
|
35456
35485
|
};
|
|
@@ -35461,7 +35490,26 @@ export type RemoveAdKeywordResponse = ({
|
|
|
35461
35490
|
* Always true on success
|
|
35462
35491
|
*/
|
|
35463
35492
|
removed?: boolean;
|
|
35493
|
+
/**
|
|
35494
|
+
* Zernio keyword ID
|
|
35495
|
+
*/
|
|
35464
35496
|
keywordId?: string;
|
|
35497
|
+
/**
|
|
35498
|
+
* Google ad_group_criterion.criterion_id
|
|
35499
|
+
*/
|
|
35500
|
+
platformCriterionId?: string;
|
|
35501
|
+
/**
|
|
35502
|
+
* Google resource name of the removed criterion
|
|
35503
|
+
*/
|
|
35504
|
+
resourceName?: string;
|
|
35505
|
+
/**
|
|
35506
|
+
* Google campaign ID
|
|
35507
|
+
*/
|
|
35508
|
+
campaignId?: string;
|
|
35509
|
+
/**
|
|
35510
|
+
* Google ad group ID
|
|
35511
|
+
*/
|
|
35512
|
+
adSetId?: string;
|
|
35465
35513
|
});
|
|
35466
35514
|
|
|
35467
35515
|
export type RemoveAdKeywordError = (ErrorResponse | {
|