@zernio/node 0.2.1839 → 0.2.1841

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.
@@ -22351,9 +22351,23 @@ export type StagedAdChange = {
22351
22351
  */
22352
22352
  id: string;
22353
22353
  /**
22354
- * Which write was staged: a status route, the update route of a campaign, an ad set or an ad, the campaign targeting route, or one of the create routes (POST /v1/ads/create, POST /v1/ads/campaigns, POST /v1/ads/ad-sets).
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 new 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
+ };
22357
22371
  /**
22358
22372
  * The ad platform of the object, as the write route names it.
22359
22373
  */
@@ -22430,7 +22444,7 @@ export type StagedAdChange = {
22430
22444
  */
22431
22445
  confirmedBy?: (string) | null;
22432
22446
  /**
22433
- * Present and true on a staged change whose last confirm was refused with `change_target_changed`. `error` then says why. Discard it and stage it again from the current values.
22447
+ * 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
22448
  */
22435
22449
  stale?: boolean;
22436
22450
  createdAt: string;
@@ -22463,9 +22477,16 @@ export type StagedAdChange = {
22463
22477
  };
22464
22478
 
22465
22479
  /**
22466
- * Which write was staged: a status route, the update route of a campaign, an ad set or an ad, the campaign targeting route, or one of the create routes (POST /v1/ads/create, POST /v1/ads/campaigns, POST /v1/ads/ad-sets).
22480
+ * 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 new values only.
22467
22481
  */
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';
22482
+ 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';
22483
+
22484
+ /**
22485
+ * 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.
22486
+ */
22487
+ 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';
22488
+
22489
+ export type method5 = 'POST' | 'PUT' | 'PATCH' | 'DELETE';
22469
22490
 
22470
22491
  /**
22471
22492
  * - `staged`: waiting to be confirmed or discarded.
@@ -22477,7 +22498,7 @@ export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campai
22477
22498
  export type status61 = 'staged' | 'confirming' | 'confirmed' | 'failed';
22478
22499
 
22479
22500
  /**
22480
- * A staged ad change as the list returns it: what it targets and who staged it, without the diff.
22501
+ * A staged or failed ad change as the list returns it: what it targets and who staged it, without the diff.
22481
22502
  */
22482
22503
  export type StagedAdChangeSummary = {
22483
22504
  /**
@@ -22485,9 +22506,35 @@ export type StagedAdChangeSummary = {
22485
22506
  */
22486
22507
  id: string;
22487
22508
  /**
22488
- * Which write was staged.
22509
+ * Which write was staged. `operation` is a write staged as its request, named by `request`.
22510
+ */
22511
+ 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';
22512
+ /**
22513
+ * Only with type `operation`: the staged write.
22514
+ */
22515
+ request?: {
22516
+ /**
22517
+ * The operationId of the staged write.
22518
+ */
22519
+ operation: string;
22520
+ method: 'POST' | 'PUT' | 'PATCH' | 'DELETE';
22521
+ path: string;
22522
+ };
22523
+ /**
22524
+ * The status the list was asked for.
22525
+ */
22526
+ status: 'staged' | 'failed';
22527
+ /**
22528
+ * 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}.
22489
22529
  */
22490
- type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update' | 'campaign_targeting' | 'ad_create' | 'campaign_create' | 'ad_set_create';
22530
+ stale?: boolean;
22531
+ /**
22532
+ * Present on a failed change: why it failed.
22533
+ */
22534
+ error?: {
22535
+ code?: string;
22536
+ message?: (string) | null;
22537
+ };
22491
22538
  /**
22492
22539
  * The ad platform of the object, as the write route names it.
22493
22540
  */
@@ -22519,6 +22566,11 @@ export type StagedAdChangeSummary = {
22519
22566
  createdAt: string;
22520
22567
  };
22521
22568
 
22569
+ /**
22570
+ * The status the list was asked for.
22571
+ */
22572
+ export type status62 = 'staged' | 'failed';
22573
+
22522
22574
  export type StoredEvent = {
22523
22575
  eventId?: string;
22524
22576
  /**
@@ -22693,7 +22745,7 @@ export type StorePixelInstall = {
22693
22745
  /**
22694
22746
  * WordPress only.
22695
22747
  */
22696
- export type method5 = 'wordpress_widget';
22748
+ export type method6 = 'wordpress_widget';
22697
22749
 
22698
22750
  export type StripeSettings = {
22699
22751
  /**
@@ -22773,7 +22825,7 @@ export type SupportRun = {
22773
22825
  /**
22774
22826
  * 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
22827
  */
22776
- export type status62 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
22828
+ export type status63 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
22777
22829
 
22778
22830
  /**
22779
22831
  * Why the run stopped. Null while it is in progress.
@@ -23741,12 +23793,12 @@ export type TrackingSite = {
23741
23793
  updatedAt?: string;
23742
23794
  };
23743
23795
 
23744
- export type status63 = 'active' | 'paused' | 'removing';
23796
+ export type status64 = 'active' | 'paused' | 'removing';
23745
23797
 
23746
23798
  /**
23747
23799
  * How the tag is installed. `snippet` means you paste it.
23748
23800
  */
23749
- export type method6 = 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
23801
+ export type method7 = 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
23750
23802
 
23751
23803
  export type type33 = 'CNAME';
23752
23804
 
@@ -24068,7 +24120,7 @@ export type TrackingWindow = {
24068
24120
  } | null;
24069
24121
  };
24070
24122
 
24071
- export type status64 = 'open' | 'completing' | 'completed' | 'cancelled';
24123
+ export type status65 = 'open' | 'completing' | 'completed' | 'cancelled';
24072
24124
 
24073
24125
  /**
24074
24126
  * How the window closed. Null while it is open.
@@ -24152,7 +24204,7 @@ export type TreasuryTopup = {
24152
24204
  bonusCents?: (number) | null;
24153
24205
  };
24154
24206
 
24155
- export type method7 = 'card' | 'bank_transfer';
24207
+ export type method8 = 'card' | 'bank_transfer';
24156
24208
 
24157
24209
  /**
24158
24210
  * `balance` funds your balance; `payout_batch` is the card payment of one payout batch, which pays its creators directly.
@@ -24162,7 +24214,7 @@ export type purpose = 'balance' | 'payout_batch';
24162
24214
  /**
24163
24215
  * `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
24216
  */
24165
- export type status65 = 'pending' | 'succeeded' | 'failed' | 'expired';
24217
+ export type status66 = 'pending' | 'succeeded' | 'failed' | 'expired';
24166
24218
 
24167
24219
  export type TreasuryTransfer = {
24168
24220
  id?: string;
@@ -24203,7 +24255,7 @@ export type TreasuryTransfer = {
24203
24255
 
24204
24256
  export type destinationType = 'creator' | 'ad_account';
24205
24257
 
24206
- export type status66 = 'pending' | 'paid' | 'failed' | 'reversed';
24258
+ export type status67 = 'pending' | 'paid' | 'failed' | 'reversed';
24207
24259
 
24208
24260
  /**
24209
24261
  * 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 +24446,7 @@ export type UploadTokenResponse = {
24394
24446
  status?: 'pending' | 'completed' | 'expired';
24395
24447
  };
24396
24448
 
24397
- export type status67 = 'pending' | 'completed' | 'expired';
24449
+ export type status68 = 'pending' | 'completed' | 'expired';
24398
24450
 
24399
24451
  export type UploadTokenStatusResponse = {
24400
24452
  token?: string;
@@ -24962,7 +25014,7 @@ export type Verification = {
24962
25014
  resend?: boolean;
24963
25015
  };
24964
25016
 
24965
- export type status68 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
25017
+ export type status69 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
24966
25018
 
24967
25019
  export type channel6 = 'sms' | 'whatsapp';
24968
25020
 
@@ -25221,7 +25273,7 @@ export type WebhookLog = {
25221
25273
  /**
25222
25274
  * Delivery outcome
25223
25275
  */
25224
- export type status69 = 'success' | 'failed';
25276
+ export type status70 = 'success' | 'failed';
25225
25277
 
25226
25278
  /**
25227
25279
  * Webhook payload for `account.ads.initial_sync_completed` events.
@@ -25335,7 +25387,7 @@ export type event = 'account.ads.initial_sync_completed';
25335
25387
  /**
25336
25388
  * Overall outcome of the initial sync.
25337
25389
  */
25338
- export type status70 = 'success' | 'failure';
25390
+ export type status71 = 'success' | 'failure';
25339
25391
 
25340
25392
  /**
25341
25393
  * Stable category for UX branching. New values may be added; existing ones are stable.
@@ -26018,7 +26070,7 @@ export type WebhookPayloadAdReview = {
26018
26070
 
26019
26071
  export type event14 = 'ad.review.approved' | 'ad.review.rejected';
26020
26072
 
26021
- export type status71 = 'approved' | 'rejected';
26073
+ export type status72 = 'approved' | 'rejected';
26022
26074
 
26023
26075
  /**
26024
26076
  * Webhook payload for the `ad_rule.triggered` event.
@@ -26589,7 +26641,7 @@ export type event20 = 'ad.video.processed';
26589
26641
  /**
26590
26642
  * `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
26591
26643
  */
26592
- export type status72 = 'ready' | 'error';
26644
+ export type status73 = 'ready' | 'error';
26593
26645
 
26594
26646
  /**
26595
26647
  * 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 +26782,7 @@ export type WebhookPayloadAutomationAction = {
26730
26782
 
26731
26783
  export type event23 = 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown';
26732
26784
 
26733
- export type status73 = 'applied' | 'skipped' | 'failed' | 'unknown';
26785
+ export type status74 = 'applied' | 'skipped' | 'failed' | 'unknown';
26734
26786
 
26735
26787
  /**
26736
26788
  * 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 +30716,7 @@ export type event79 = 'post.platform.published' | 'post.platform.failed' | 'post
30664
30716
  /**
30665
30717
  * Terminal status this event fires on. Matches the event suffix.
30666
30718
  */
30667
- export type status74 = 'published' | 'failed' | 'deleted';
30719
+ export type status75 = 'published' | 'failed' | 'deleted';
30668
30720
 
30669
30721
  /**
30670
30722
  * Webhook payload for `post.tracking_completed`. Fired once when a post's tracking window ends and its final analytics read has run.
@@ -31257,7 +31309,7 @@ export type event92 = 'whatsapp.account.name_status_updated';
31257
31309
  /**
31258
31310
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
31259
31311
  */
31260
- export type status75 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
31312
+ export type status76 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
31261
31313
 
31262
31314
  /**
31263
31315
  * Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
@@ -31391,7 +31443,7 @@ export type event94 = 'whatsapp.account.status_updated';
31391
31443
  /**
31392
31444
  * `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
31393
31445
  */
31394
- export type status76 = 'restricted' | 'active';
31446
+ export type status77 = 'restricted' | 'active';
31395
31447
 
31396
31448
  /**
31397
31449
  * Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
@@ -31607,7 +31659,7 @@ export type event97 = 'whatsapp.template.status_updated';
31607
31659
  * request before the template is actually removed.
31608
31660
  *
31609
31661
  */
31610
- export type status77 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
31662
+ export type status78 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
31611
31663
 
31612
31664
  export type WebhookPayloadWorkflowRun = {
31613
31665
  /**
@@ -31671,7 +31723,7 @@ export type event98 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
31671
31723
  /**
31672
31724
  * 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
31725
  */
31674
- export type status78 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
31726
+ export type status79 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
31675
31727
 
31676
31728
  /**
31677
31729
  * 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 +32127,7 @@ export type WorkflowExecutionEvent = {
32075
32127
 
32076
32128
  export type action3 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
32077
32129
 
32078
- export type status79 = 'success' | 'failed' | 'pending';
32130
+ export type status80 = 'success' | 'failed' | 'pending';
32079
32131
 
32080
32132
  /**
32081
32133
  * A node in a workflow graph. `config` shape depends on `type`.
@@ -69137,6 +69189,14 @@ export type UndoAdRuleActivityError = (ErrorResponse);
69137
69189
 
69138
69190
  export type ListAdChangesData = {
69139
69191
  query?: {
69192
+ /**
69193
+ * Only the changes of this connected account.
69194
+ */
69195
+ accountId?: string;
69196
+ /**
69197
+ * Only the changes this user staged.
69198
+ */
69199
+ createdBy?: string;
69140
69200
  /**
69141
69201
  * The `nextCursor` of the previous page, unchanged.
69142
69202
  */
@@ -69145,6 +69205,18 @@ export type ListAdChangesData = {
69145
69205
  * How many changes to return.
69146
69206
  */
69147
69207
  limit?: number;
69208
+ /**
69209
+ * Only the changes on this ad platform, as the change names it (for example `facebook` or `google`).
69210
+ */
69211
+ platform?: string;
69212
+ /**
69213
+ * Which changes to list.
69214
+ */
69215
+ status?: 'staged' | 'failed';
69216
+ /**
69217
+ * Only the changes of this type.
69218
+ */
69219
+ 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
69220
  };
69149
69221
  };
69150
69222
 
@@ -69175,6 +69247,26 @@ export type GetAdChangeError = (ErrorResponse | {
69175
69247
  error?: string;
69176
69248
  });
69177
69249
 
69250
+ export type UpdateAdChangeData = {
69251
+ body?: {
69252
+ [key: string]: unknown;
69253
+ };
69254
+ path: {
69255
+ /**
69256
+ * The id of the staged change.
69257
+ */
69258
+ changeId: string;
69259
+ };
69260
+ };
69261
+
69262
+ export type UpdateAdChangeResponse = ({
69263
+ change: StagedAdChange;
69264
+ });
69265
+
69266
+ export type UpdateAdChangeError = (ErrorResponse | {
69267
+ error?: string;
69268
+ });
69269
+
69178
69270
  export type DiscardAdChangeData = {
69179
69271
  path: {
69180
69272
  /**
@@ -69190,6 +69282,23 @@ export type DiscardAdChangeError = (ErrorResponse | {
69190
69282
  error?: string;
69191
69283
  });
69192
69284
 
69285
+ export type RestageAdChangeData = {
69286
+ path: {
69287
+ /**
69288
+ * The id of the failed change.
69289
+ */
69290
+ changeId: string;
69291
+ };
69292
+ };
69293
+
69294
+ export type RestageAdChangeResponse = ({
69295
+ change: StagedAdChange;
69296
+ });
69297
+
69298
+ export type RestageAdChangeError = (ErrorResponse | {
69299
+ error?: string;
69300
+ });
69301
+
69193
69302
  export type ConfirmAdChangeData = {
69194
69303
  path: {
69195
69304
  /**
@@ -69892,6 +70001,10 @@ export type UpdateAdCampaignStatusData = {
69892
70001
  body: {
69893
70002
  status: 'active' | 'paused';
69894
70003
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
70004
+ /**
70005
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of a campaign created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the campaign. It echoes the requested status; `stage: true` answers 400.
70006
+ */
70007
+ accountId?: string;
69895
70008
  /**
69896
70009
  * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
69897
70010
  */
@@ -71774,6 +71887,10 @@ export type UpdateAdSetStatusData = {
71774
71887
  body: {
71775
71888
  status: 'active' | 'paused';
71776
71889
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
71890
+ /**
71891
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad set created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad set. It echoes the requested status; `stage: true` answers 400.
71892
+ */
71893
+ accountId?: string;
71777
71894
  /**
71778
71895
  * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
71779
71896
  */
@@ -72501,6 +72618,10 @@ export type DeleteAdError = (ErrorResponse);
72501
72618
  export type UpdateAdStatusData = {
72502
72619
  body: {
72503
72620
  status: 'active' | 'paused';
72621
+ /**
72622
+ * A Zernio Meta Ads or Facebook connection id (also accepted in the query). Changes the status of an ad created in Ads Manager that Zernio has not synced, by numeric Meta id. Ignored when Zernio has the ad. It echoes the requested status; `stage: true` answers 400.
72623
+ */
72624
+ accountId?: string;
72504
72625
  /**
72505
72626
  * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
72506
72627
  */