@zernio/node 0.2.1840 → 0.2.1842
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 +2 -0
- package/dist/index.d.mts +145 -31
- package/dist/index.d.ts +145 -31
- package/dist/index.js +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +47 -3
- package/src/generated/types.gen.ts +151 -30
|
@@ -22351,9 +22351,35 @@ export type StagedAdChange = {
|
|
|
22351
22351
|
*/
|
|
22352
22352
|
id: string;
|
|
22353
22353
|
/**
|
|
22354
|
-
* Which write was staged: a status route,
|
|
22354
|
+
* Which write was staged: a status route, an update route (campaign, ad set, ad), the campaign targeting route or a create route. `operation` is any other ads write, staged as its request and named by `request`. It has no live read, so its diff shows the sent values only.
|
|
22355
22355
|
*/
|
|
22356
|
-
type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'campaign_targeting' | 'ad_create' | 'campaign_create' | 'ad_set_create';
|
|
22356
|
+
type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'campaign_targeting' | 'ad_create' | 'campaign_create' | 'ad_set_create' | 'operation';
|
|
22357
|
+
/**
|
|
22358
|
+
* Only with type `operation`: the write that was staged as its request. Confirm sends this request through its own route.
|
|
22359
|
+
*/
|
|
22360
|
+
request?: {
|
|
22361
|
+
/**
|
|
22362
|
+
* The operationId of the staged write. Every write in this list accepts `stage: true` in its body, or `?stage=true` when it has no body.
|
|
22363
|
+
*/
|
|
22364
|
+
operation: 'addAccountCallouts' | 'addAccountSitelinks' | 'addAccountStructuredSnippets' | 'addAdKeywords' | 'applyGoogleRecommendations' | 'archiveLeadForm' | 'assignAdAccountUser' | 'assignPageUser' | 'attachAdGroupAssets' | 'attachAdLabel' | 'attachCampaignAssets' | 'boostPost' | 'bulkUpdateAdCampaignStatus' | 'createAdAudience' | 'createAdCreative' | 'createAdLabel' | 'createAdNegativeKeywordList' | 'createBidStrategy' | 'createCallAd' | 'createConversionAction' | 'createCtwaAd' | 'createCustomConversionGoal' | 'createGoogleAssetGroup' | 'createHighDemandPeriod' | 'createLeadForm' | 'createMessagingAd' | 'createSharedBudget' | 'createValueRuleSet' | 'deleteAd' | 'deleteAdAudience' | 'deleteAdCampaign' | 'deleteAdCreative' | 'deleteAdNegativeKeywordList' | 'deleteAdSet' | 'deleteAdVideo' | 'deleteValueRuleSet' | 'detachAdLabel' | 'dismissGoogleRecommendations' | 'duplicateAd' | 'duplicateAdCampaign' | 'duplicateAdSet' | 'editAdNegativeKeywordListKeywords' | 'editCampaignNegativeKeywordLists' | 'editCampaignNegativeKeywords' | 'editGoogleAssetGroupAssets' | 'inviteAdAccountToManager' | 'inviteAdAccountUser' | 'removeAccountCallout' | 'removeAccountSitelink' | 'removeAccountStructuredSnippet' | 'removeAdAccountUser' | 'removeAdGroupAssets' | 'removeAdKeyword' | 'removeAdLabel' | 'removeCampaignAssets' | 'removeCustomConversionGoal' | 'removeGoogleAssetGroup' | 'removePageUser' | 'replaceAdAudienceCompanies' | 'replaceAdNegativeKeywordListKeywords' | 'replaceCampaignNegativeKeywordLists' | 'replaceCampaignNegativeKeywords' | 'replaceGoogleListingGroupFilters' | 'revokeAdAccountUserInvitation' | 'setPartnershipAdPermission' | 'setUpAdAccountBilling' | 'updateAccountCallouts' | 'updateAccountSitelinks' | 'updateAccountStructuredSnippets' | 'updateAdAccount' | 'updateAdAccountManagerLink' | 'updateAdAudience' | 'updateAdConversionGoals' | 'updateAdCreative' | 'updateAdGroupAssets' | 'updateAdKeyword' | 'updateAdLabel' | 'updateAdNegativeKeywordList' | 'updateAdTrackingTags' | 'updateBidStrategy' | 'updateCampaignAdSchedule' | 'updateCampaignAssets' | 'updateCampaignConversionGoals' | 'updateConversionAction' | 'updateCustomConversionGoal' | 'updateGoogleAssetGroup' | 'updateValueRuleSet' | 'withdrawAdAccountUserInvitationApproval';
|
|
22365
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
22366
|
+
/**
|
|
22367
|
+
* The path of the write, for example /v1/ads/keywords.
|
|
22368
|
+
*/
|
|
22369
|
+
path: string;
|
|
22370
|
+
/**
|
|
22371
|
+
* The path values of the staged request, by the names in `path`.
|
|
22372
|
+
*/
|
|
22373
|
+
params?: {
|
|
22374
|
+
[key: string]: (string);
|
|
22375
|
+
};
|
|
22376
|
+
/**
|
|
22377
|
+
* The query values of the staged request, without `stage`.
|
|
22378
|
+
*/
|
|
22379
|
+
query?: {
|
|
22380
|
+
[key: string]: (string);
|
|
22381
|
+
};
|
|
22382
|
+
};
|
|
22357
22383
|
/**
|
|
22358
22384
|
* The ad platform of the object, as the write route names it.
|
|
22359
22385
|
*/
|
|
@@ -22367,7 +22393,7 @@ export type StagedAdChange = {
|
|
|
22367
22393
|
*/
|
|
22368
22394
|
adAccountId: string;
|
|
22369
22395
|
/**
|
|
22370
|
-
* The object the change applies to: the platform campaign id, the platform ad set id, or the Zernio ad id.
|
|
22396
|
+
* The object the change applies to: the platform campaign id, the platform ad set id, or the Zernio ad id. A write staged as its request with no such object carries the last id of its path. Null when there is none, as for a create.
|
|
22371
22397
|
*/
|
|
22372
22398
|
targetId: (string) | null;
|
|
22373
22399
|
/**
|
|
@@ -22430,7 +22456,7 @@ export type StagedAdChange = {
|
|
|
22430
22456
|
*/
|
|
22431
22457
|
confirmedBy?: (string) | null;
|
|
22432
22458
|
/**
|
|
22433
|
-
* Present and true on a staged change whose last confirm was refused with `change_target_changed`. `error` then says why.
|
|
22459
|
+
* Present and true on a staged change whose last confirm was refused with `change_target_changed`. `error` then says why. Refresh it with PATCH /v1/ads/changes/{changeId} (no body), or discard it and stage it again.
|
|
22434
22460
|
*/
|
|
22435
22461
|
stale?: boolean;
|
|
22436
22462
|
createdAt: string;
|
|
@@ -22463,9 +22489,16 @@ export type StagedAdChange = {
|
|
|
22463
22489
|
};
|
|
22464
22490
|
|
|
22465
22491
|
/**
|
|
22466
|
-
* Which write was staged: a status route,
|
|
22492
|
+
* Which write was staged: a status route, an update route (campaign, ad set, ad), the campaign targeting route or a create route. `operation` is any other ads write, staged as its request and named by `request`. It has no live read, so its diff shows the sent values only.
|
|
22467
22493
|
*/
|
|
22468
|
-
export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'campaign_targeting' | 'ad_create' | 'campaign_create' | 'ad_set_create';
|
|
22494
|
+
export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'campaign_targeting' | 'ad_create' | 'campaign_create' | 'ad_set_create' | 'operation';
|
|
22495
|
+
|
|
22496
|
+
/**
|
|
22497
|
+
* The operationId of the staged write. Every write in this list accepts `stage: true` in its body, or `?stage=true` when it has no body.
|
|
22498
|
+
*/
|
|
22499
|
+
export type operation = 'addAccountCallouts' | 'addAccountSitelinks' | 'addAccountStructuredSnippets' | 'addAdKeywords' | 'applyGoogleRecommendations' | 'archiveLeadForm' | 'assignAdAccountUser' | 'assignPageUser' | 'attachAdGroupAssets' | 'attachAdLabel' | 'attachCampaignAssets' | 'boostPost' | 'bulkUpdateAdCampaignStatus' | 'createAdAudience' | 'createAdCreative' | 'createAdLabel' | 'createAdNegativeKeywordList' | 'createBidStrategy' | 'createCallAd' | 'createConversionAction' | 'createCtwaAd' | 'createCustomConversionGoal' | 'createGoogleAssetGroup' | 'createHighDemandPeriod' | 'createLeadForm' | 'createMessagingAd' | 'createSharedBudget' | 'createValueRuleSet' | 'deleteAd' | 'deleteAdAudience' | 'deleteAdCampaign' | 'deleteAdCreative' | 'deleteAdNegativeKeywordList' | 'deleteAdSet' | 'deleteAdVideo' | 'deleteValueRuleSet' | 'detachAdLabel' | 'dismissGoogleRecommendations' | 'duplicateAd' | 'duplicateAdCampaign' | 'duplicateAdSet' | 'editAdNegativeKeywordListKeywords' | 'editCampaignNegativeKeywordLists' | 'editCampaignNegativeKeywords' | 'editGoogleAssetGroupAssets' | 'inviteAdAccountToManager' | 'inviteAdAccountUser' | 'removeAccountCallout' | 'removeAccountSitelink' | 'removeAccountStructuredSnippet' | 'removeAdAccountUser' | 'removeAdGroupAssets' | 'removeAdKeyword' | 'removeAdLabel' | 'removeCampaignAssets' | 'removeCustomConversionGoal' | 'removeGoogleAssetGroup' | 'removePageUser' | 'replaceAdAudienceCompanies' | 'replaceAdNegativeKeywordListKeywords' | 'replaceCampaignNegativeKeywordLists' | 'replaceCampaignNegativeKeywords' | 'replaceGoogleListingGroupFilters' | 'revokeAdAccountUserInvitation' | 'setPartnershipAdPermission' | 'setUpAdAccountBilling' | 'updateAccountCallouts' | 'updateAccountSitelinks' | 'updateAccountStructuredSnippets' | 'updateAdAccount' | 'updateAdAccountManagerLink' | 'updateAdAudience' | 'updateAdConversionGoals' | 'updateAdCreative' | 'updateAdGroupAssets' | 'updateAdKeyword' | 'updateAdLabel' | 'updateAdNegativeKeywordList' | 'updateAdTrackingTags' | 'updateBidStrategy' | 'updateCampaignAdSchedule' | 'updateCampaignAssets' | 'updateCampaignConversionGoals' | 'updateConversionAction' | 'updateCustomConversionGoal' | 'updateGoogleAssetGroup' | 'updateValueRuleSet' | 'withdrawAdAccountUserInvitationApproval';
|
|
22500
|
+
|
|
22501
|
+
export type method5 = 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
22469
22502
|
|
|
22470
22503
|
/**
|
|
22471
22504
|
* - `staged`: waiting to be confirmed or discarded.
|
|
@@ -22477,7 +22510,7 @@ export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campai
|
|
|
22477
22510
|
export type status61 = 'staged' | 'confirming' | 'confirmed' | 'failed';
|
|
22478
22511
|
|
|
22479
22512
|
/**
|
|
22480
|
-
* A staged ad change as the list returns it: what it targets and who staged it, without the diff.
|
|
22513
|
+
* A staged or failed ad change as the list returns it: what it targets and who staged it, without the diff.
|
|
22481
22514
|
*/
|
|
22482
22515
|
export type StagedAdChangeSummary = {
|
|
22483
22516
|
/**
|
|
@@ -22485,9 +22518,35 @@ export type StagedAdChangeSummary = {
|
|
|
22485
22518
|
*/
|
|
22486
22519
|
id: string;
|
|
22487
22520
|
/**
|
|
22488
|
-
* Which write was staged.
|
|
22521
|
+
* Which write was staged. `operation` is a write staged as its request, named by `request`.
|
|
22522
|
+
*/
|
|
22523
|
+
type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'campaign_targeting' | 'ad_create' | 'campaign_create' | 'ad_set_create' | 'operation';
|
|
22524
|
+
/**
|
|
22525
|
+
* Only with type `operation`: the staged write.
|
|
22489
22526
|
*/
|
|
22490
|
-
|
|
22527
|
+
request?: {
|
|
22528
|
+
/**
|
|
22529
|
+
* The operationId of the staged write.
|
|
22530
|
+
*/
|
|
22531
|
+
operation: string;
|
|
22532
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
22533
|
+
path: string;
|
|
22534
|
+
};
|
|
22535
|
+
/**
|
|
22536
|
+
* The status the list was asked for.
|
|
22537
|
+
*/
|
|
22538
|
+
status: 'staged' | 'failed';
|
|
22539
|
+
/**
|
|
22540
|
+
* Present and true on a staged change whose object was edited on the ad network after staging. Refresh it with PATCH /v1/ads/changes/{changeId}.
|
|
22541
|
+
*/
|
|
22542
|
+
stale?: boolean;
|
|
22543
|
+
/**
|
|
22544
|
+
* Present on a failed change: why it failed.
|
|
22545
|
+
*/
|
|
22546
|
+
error?: {
|
|
22547
|
+
code?: string;
|
|
22548
|
+
message?: (string) | null;
|
|
22549
|
+
};
|
|
22491
22550
|
/**
|
|
22492
22551
|
* The ad platform of the object, as the write route names it.
|
|
22493
22552
|
*/
|
|
@@ -22519,6 +22578,11 @@ export type StagedAdChangeSummary = {
|
|
|
22519
22578
|
createdAt: string;
|
|
22520
22579
|
};
|
|
22521
22580
|
|
|
22581
|
+
/**
|
|
22582
|
+
* The status the list was asked for.
|
|
22583
|
+
*/
|
|
22584
|
+
export type status62 = 'staged' | 'failed';
|
|
22585
|
+
|
|
22522
22586
|
export type StoredEvent = {
|
|
22523
22587
|
eventId?: string;
|
|
22524
22588
|
/**
|
|
@@ -22693,7 +22757,7 @@ export type StorePixelInstall = {
|
|
|
22693
22757
|
/**
|
|
22694
22758
|
* WordPress only.
|
|
22695
22759
|
*/
|
|
22696
|
-
export type
|
|
22760
|
+
export type method6 = 'wordpress_widget';
|
|
22697
22761
|
|
|
22698
22762
|
export type StripeSettings = {
|
|
22699
22763
|
/**
|
|
@@ -22773,7 +22837,7 @@ export type SupportRun = {
|
|
|
22773
22837
|
/**
|
|
22774
22838
|
* queued and running are in progress. needs_human means the assistant handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
22775
22839
|
*/
|
|
22776
|
-
export type
|
|
22840
|
+
export type status63 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
22777
22841
|
|
|
22778
22842
|
/**
|
|
22779
22843
|
* Why the run stopped. Null while it is in progress.
|
|
@@ -23741,12 +23805,12 @@ export type TrackingSite = {
|
|
|
23741
23805
|
updatedAt?: string;
|
|
23742
23806
|
};
|
|
23743
23807
|
|
|
23744
|
-
export type
|
|
23808
|
+
export type status64 = 'active' | 'paused' | 'removing';
|
|
23745
23809
|
|
|
23746
23810
|
/**
|
|
23747
23811
|
* How the tag is installed. `snippet` means you paste it.
|
|
23748
23812
|
*/
|
|
23749
|
-
export type
|
|
23813
|
+
export type method7 = 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
|
|
23750
23814
|
|
|
23751
23815
|
export type type33 = 'CNAME';
|
|
23752
23816
|
|
|
@@ -24068,7 +24132,7 @@ export type TrackingWindow = {
|
|
|
24068
24132
|
} | null;
|
|
24069
24133
|
};
|
|
24070
24134
|
|
|
24071
|
-
export type
|
|
24135
|
+
export type status65 = 'open' | 'completing' | 'completed' | 'cancelled';
|
|
24072
24136
|
|
|
24073
24137
|
/**
|
|
24074
24138
|
* How the window closed. Null while it is open.
|
|
@@ -24152,7 +24216,7 @@ export type TreasuryTopup = {
|
|
|
24152
24216
|
bonusCents?: (number) | null;
|
|
24153
24217
|
};
|
|
24154
24218
|
|
|
24155
|
-
export type
|
|
24219
|
+
export type method8 = 'card' | 'bank_transfer';
|
|
24156
24220
|
|
|
24157
24221
|
/**
|
|
24158
24222
|
* `balance` funds your balance; `payout_batch` is the card payment of one payout batch, which pays its creators directly.
|
|
@@ -24162,7 +24226,7 @@ export type purpose = 'balance' | 'payout_batch';
|
|
|
24162
24226
|
/**
|
|
24163
24227
|
* `pending` until the card is charged (or 3D Secure is finished) and credited. `expired` means it ended unpaid: cancelled, or 3D Secure left unfinished for 30 minutes. Only `pending` counts toward pendingTopupCents.
|
|
24164
24228
|
*/
|
|
24165
|
-
export type
|
|
24229
|
+
export type status66 = 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
24166
24230
|
|
|
24167
24231
|
export type TreasuryTransfer = {
|
|
24168
24232
|
id?: string;
|
|
@@ -24203,7 +24267,7 @@ export type TreasuryTransfer = {
|
|
|
24203
24267
|
|
|
24204
24268
|
export type destinationType = 'creator' | 'ad_account';
|
|
24205
24269
|
|
|
24206
|
-
export type
|
|
24270
|
+
export type status67 = 'pending' | 'paid' | 'failed' | 'reversed';
|
|
24207
24271
|
|
|
24208
24272
|
/**
|
|
24209
24273
|
* X-specific post options. The article field creates a long-form X Article and is mutually exclusive with tweet media and tweet-only options. Geo-restriction applies at the media level: media is hidden outside the specified countries while tweet text remains visible.
|
|
@@ -24394,7 +24458,7 @@ export type UploadTokenResponse = {
|
|
|
24394
24458
|
status?: 'pending' | 'completed' | 'expired';
|
|
24395
24459
|
};
|
|
24396
24460
|
|
|
24397
|
-
export type
|
|
24461
|
+
export type status68 = 'pending' | 'completed' | 'expired';
|
|
24398
24462
|
|
|
24399
24463
|
export type UploadTokenStatusResponse = {
|
|
24400
24464
|
token?: string;
|
|
@@ -24962,7 +25026,7 @@ export type Verification = {
|
|
|
24962
25026
|
resend?: boolean;
|
|
24963
25027
|
};
|
|
24964
25028
|
|
|
24965
|
-
export type
|
|
25029
|
+
export type status69 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
24966
25030
|
|
|
24967
25031
|
export type channel6 = 'sms' | 'whatsapp';
|
|
24968
25032
|
|
|
@@ -25221,7 +25285,7 @@ export type WebhookLog = {
|
|
|
25221
25285
|
/**
|
|
25222
25286
|
* Delivery outcome
|
|
25223
25287
|
*/
|
|
25224
|
-
export type
|
|
25288
|
+
export type status70 = 'success' | 'failed';
|
|
25225
25289
|
|
|
25226
25290
|
/**
|
|
25227
25291
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -25335,7 +25399,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
25335
25399
|
/**
|
|
25336
25400
|
* Overall outcome of the initial sync.
|
|
25337
25401
|
*/
|
|
25338
|
-
export type
|
|
25402
|
+
export type status71 = 'success' | 'failure';
|
|
25339
25403
|
|
|
25340
25404
|
/**
|
|
25341
25405
|
* Stable category for UX branching. New values may be added; existing ones are stable.
|
|
@@ -26018,7 +26082,7 @@ export type WebhookPayloadAdReview = {
|
|
|
26018
26082
|
|
|
26019
26083
|
export type event14 = 'ad.review.approved' | 'ad.review.rejected';
|
|
26020
26084
|
|
|
26021
|
-
export type
|
|
26085
|
+
export type status72 = 'approved' | 'rejected';
|
|
26022
26086
|
|
|
26023
26087
|
/**
|
|
26024
26088
|
* Webhook payload for the `ad_rule.triggered` event.
|
|
@@ -26589,7 +26653,7 @@ export type event20 = 'ad.video.processed';
|
|
|
26589
26653
|
/**
|
|
26590
26654
|
* `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
|
|
26591
26655
|
*/
|
|
26592
|
-
export type
|
|
26656
|
+
export type status73 = 'ready' | 'error';
|
|
26593
26657
|
|
|
26594
26658
|
/**
|
|
26595
26659
|
* Webhook payload for `analytics.synced`. Fired once per connected account each time its analytics sync cycle completes successfully. Poll-driven (roughly hourly per account), not real-time, and never fired for a skipped or failed cycle.
|
|
@@ -26730,7 +26794,7 @@ export type WebhookPayloadAutomationAction = {
|
|
|
26730
26794
|
|
|
26731
26795
|
export type event23 = 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown';
|
|
26732
26796
|
|
|
26733
|
-
export type
|
|
26797
|
+
export type status74 = 'applied' | 'skipped' | 'failed' | 'unknown';
|
|
26734
26798
|
|
|
26735
26799
|
/**
|
|
26736
26800
|
* Webhook payload for `automation.alert.opened`, `automation.alert.escalated` and `automation.alert.resolved`: an alert episode of an automation with a lifecycle (an ad rule's `lifecycle`).
|
|
@@ -30664,7 +30728,7 @@ export type event79 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
30664
30728
|
/**
|
|
30665
30729
|
* Terminal status this event fires on. Matches the event suffix.
|
|
30666
30730
|
*/
|
|
30667
|
-
export type
|
|
30731
|
+
export type status75 = 'published' | 'failed' | 'deleted';
|
|
30668
30732
|
|
|
30669
30733
|
/**
|
|
30670
30734
|
* Webhook payload for `post.tracking_completed`. Fired once when a post's tracking window ends and its final analytics read has run.
|
|
@@ -31257,7 +31321,7 @@ export type event92 = 'whatsapp.account.name_status_updated';
|
|
|
31257
31321
|
/**
|
|
31258
31322
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
31259
31323
|
*/
|
|
31260
|
-
export type
|
|
31324
|
+
export type status76 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
31261
31325
|
|
|
31262
31326
|
/**
|
|
31263
31327
|
* Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
|
|
@@ -31391,7 +31455,7 @@ export type event94 = 'whatsapp.account.status_updated';
|
|
|
31391
31455
|
/**
|
|
31392
31456
|
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
31393
31457
|
*/
|
|
31394
|
-
export type
|
|
31458
|
+
export type status77 = 'restricted' | 'active';
|
|
31395
31459
|
|
|
31396
31460
|
/**
|
|
31397
31461
|
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
@@ -31607,7 +31671,7 @@ export type event97 = 'whatsapp.template.status_updated';
|
|
|
31607
31671
|
* request before the template is actually removed.
|
|
31608
31672
|
*
|
|
31609
31673
|
*/
|
|
31610
|
-
export type
|
|
31674
|
+
export type status78 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
31611
31675
|
|
|
31612
31676
|
export type WebhookPayloadWorkflowRun = {
|
|
31613
31677
|
/**
|
|
@@ -31671,7 +31735,7 @@ export type event98 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
|
|
|
31671
31735
|
/**
|
|
31672
31736
|
* 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.
|
|
31673
31737
|
*/
|
|
31674
|
-
export type
|
|
31738
|
+
export type status79 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
|
|
31675
31739
|
|
|
31676
31740
|
/**
|
|
31677
31741
|
* The profiles this event belongs to, each with the externalId you set on it (null when none is set). Use it to route the event to your tenant without storing Zernio profile ids.
|
|
@@ -32075,7 +32139,7 @@ export type WorkflowExecutionEvent = {
|
|
|
32075
32139
|
|
|
32076
32140
|
export type action3 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
32077
32141
|
|
|
32078
|
-
export type
|
|
32142
|
+
export type status80 = 'success' | 'failed' | 'pending';
|
|
32079
32143
|
|
|
32080
32144
|
/**
|
|
32081
32145
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -69137,6 +69201,14 @@ export type UndoAdRuleActivityError = (ErrorResponse);
|
|
|
69137
69201
|
|
|
69138
69202
|
export type ListAdChangesData = {
|
|
69139
69203
|
query?: {
|
|
69204
|
+
/**
|
|
69205
|
+
* Only the changes of this connected account.
|
|
69206
|
+
*/
|
|
69207
|
+
accountId?: string;
|
|
69208
|
+
/**
|
|
69209
|
+
* Only the changes this user staged.
|
|
69210
|
+
*/
|
|
69211
|
+
createdBy?: string;
|
|
69140
69212
|
/**
|
|
69141
69213
|
* The `nextCursor` of the previous page, unchanged.
|
|
69142
69214
|
*/
|
|
@@ -69145,6 +69217,18 @@ export type ListAdChangesData = {
|
|
|
69145
69217
|
* How many changes to return.
|
|
69146
69218
|
*/
|
|
69147
69219
|
limit?: number;
|
|
69220
|
+
/**
|
|
69221
|
+
* Only the changes on this ad platform, as the change names it (for example `facebook` or `google`).
|
|
69222
|
+
*/
|
|
69223
|
+
platform?: string;
|
|
69224
|
+
/**
|
|
69225
|
+
* Which changes to list.
|
|
69226
|
+
*/
|
|
69227
|
+
status?: 'staged' | 'failed';
|
|
69228
|
+
/**
|
|
69229
|
+
* Only the changes of this type.
|
|
69230
|
+
*/
|
|
69231
|
+
type?: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'campaign_targeting' | 'ad_create' | 'campaign_create' | 'ad_set_create' | 'operation';
|
|
69148
69232
|
};
|
|
69149
69233
|
};
|
|
69150
69234
|
|
|
@@ -69175,6 +69259,26 @@ export type GetAdChangeError = (ErrorResponse | {
|
|
|
69175
69259
|
error?: string;
|
|
69176
69260
|
});
|
|
69177
69261
|
|
|
69262
|
+
export type UpdateAdChangeData = {
|
|
69263
|
+
body?: {
|
|
69264
|
+
[key: string]: unknown;
|
|
69265
|
+
};
|
|
69266
|
+
path: {
|
|
69267
|
+
/**
|
|
69268
|
+
* The id of the staged change.
|
|
69269
|
+
*/
|
|
69270
|
+
changeId: string;
|
|
69271
|
+
};
|
|
69272
|
+
};
|
|
69273
|
+
|
|
69274
|
+
export type UpdateAdChangeResponse = ({
|
|
69275
|
+
change: StagedAdChange;
|
|
69276
|
+
});
|
|
69277
|
+
|
|
69278
|
+
export type UpdateAdChangeError = (ErrorResponse | {
|
|
69279
|
+
error?: string;
|
|
69280
|
+
});
|
|
69281
|
+
|
|
69178
69282
|
export type DiscardAdChangeData = {
|
|
69179
69283
|
path: {
|
|
69180
69284
|
/**
|
|
@@ -69190,6 +69294,23 @@ export type DiscardAdChangeError = (ErrorResponse | {
|
|
|
69190
69294
|
error?: string;
|
|
69191
69295
|
});
|
|
69192
69296
|
|
|
69297
|
+
export type RestageAdChangeData = {
|
|
69298
|
+
path: {
|
|
69299
|
+
/**
|
|
69300
|
+
* The id of the failed change.
|
|
69301
|
+
*/
|
|
69302
|
+
changeId: string;
|
|
69303
|
+
};
|
|
69304
|
+
};
|
|
69305
|
+
|
|
69306
|
+
export type RestageAdChangeResponse = ({
|
|
69307
|
+
change: StagedAdChange;
|
|
69308
|
+
});
|
|
69309
|
+
|
|
69310
|
+
export type RestageAdChangeError = (ErrorResponse | {
|
|
69311
|
+
error?: string;
|
|
69312
|
+
});
|
|
69313
|
+
|
|
69193
69314
|
export type ConfirmAdChangeData = {
|
|
69194
69315
|
path: {
|
|
69195
69316
|
/**
|