@zinn-digital/sdk 0.1.1437 → 0.1.1439

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.
@@ -18429,6 +18429,190 @@ export interface paths {
18429
18429
  patch?: never;
18430
18430
  trace?: never;
18431
18431
  };
18432
+ "/v1/ads/connections/{connection_id}/matching-pages": {
18433
+ parameters: {
18434
+ query?: never;
18435
+ header?: never;
18436
+ path: {
18437
+ connection_id: string;
18438
+ };
18439
+ cookie?: never;
18440
+ };
18441
+ /**
18442
+ * Matching landing pages — the connection's pages and candidate ad groups (za-N6).
18443
+ * @description Gated on `ads.view`. Every open page of the connection (a `candidate` ad group found by the scan, a page being written, ready to preview, publishing, live or being unpublished) and the 20 most recent closed ones. Read from our own rows — never a network call (docs/1006 §94).
18444
+ */
18445
+ get: operations["listAdsMatchingPages"];
18446
+ put?: never;
18447
+ post?: never;
18448
+ delete?: never;
18449
+ options?: never;
18450
+ head?: never;
18451
+ patch?: never;
18452
+ trace?: never;
18453
+ };
18454
+ "/v1/ads/connections/{connection_id}/matching-pages/{page_id}": {
18455
+ parameters: {
18456
+ query?: never;
18457
+ header?: never;
18458
+ path: {
18459
+ connection_id: string;
18460
+ page_id: string;
18461
+ };
18462
+ cookie?: never;
18463
+ };
18464
+ /**
18465
+ * One matching landing page (za-N6).
18466
+ * @description Gated on `ads.view`. Read from our own rows.
18467
+ */
18468
+ get: operations["getAdsMatchingPage"];
18469
+ put?: never;
18470
+ post?: never;
18471
+ delete?: never;
18472
+ options?: never;
18473
+ head?: never;
18474
+ patch?: never;
18475
+ trace?: never;
18476
+ };
18477
+ "/v1/ads/connections/{connection_id}/matching-pages/{page_id}/approve": {
18478
+ parameters: {
18479
+ query?: never;
18480
+ header?: never;
18481
+ path: {
18482
+ connection_id: string;
18483
+ page_id: string;
18484
+ };
18485
+ cookie?: never;
18486
+ };
18487
+ get?: never;
18488
+ put?: never;
18489
+ /**
18490
+ * Approve and publish the page, then switch the ad group's final URL (za-N6).
18491
+ * @description Gated on `ads.manage`, audit-logged. Approve-first: nothing is published before this. A Temporal workflow writes the page into the site's document root, waits until it answers 200, and only then switches the ad group's final URL through the metered gate, as an Undo-able change. `422 landingNotInGoodStanding` when the organisation is not in good standing.
18492
+ */
18493
+ post: operations["approveAdsMatchingPage"];
18494
+ delete?: never;
18495
+ options?: never;
18496
+ head?: never;
18497
+ patch?: never;
18498
+ trace?: never;
18499
+ };
18500
+ "/v1/ads/connections/{connection_id}/matching-pages/{page_id}/discard": {
18501
+ parameters: {
18502
+ query?: never;
18503
+ header?: never;
18504
+ path: {
18505
+ connection_id: string;
18506
+ page_id: string;
18507
+ };
18508
+ cookie?: never;
18509
+ };
18510
+ get?: never;
18511
+ put?: never;
18512
+ /**
18513
+ * Throw away a written page that was never published (za-N6).
18514
+ * @description Gated on `ads.manage`, audit-logged. `422 landingPageState` for a page that is not a never-published `ready` page.
18515
+ */
18516
+ post: operations["discardAdsMatchingPage"];
18517
+ delete?: never;
18518
+ options?: never;
18519
+ head?: never;
18520
+ patch?: never;
18521
+ trace?: never;
18522
+ };
18523
+ "/v1/ads/connections/{connection_id}/matching-pages/{page_id}/preview": {
18524
+ parameters: {
18525
+ query?: {
18526
+ locale?: string;
18527
+ };
18528
+ header?: never;
18529
+ path: {
18530
+ connection_id: string;
18531
+ page_id: string;
18532
+ };
18533
+ cookie?: never;
18534
+ };
18535
+ /**
18536
+ * The server-rendered page, exactly as it will be published (za-N6).
18537
+ * @description Gated on `ads.view`. The full HTML document (title, description, canonical, hreflang alternates, JSON-LD, the language's own direction) in the site's own language or, with `locale`, one of its translations. `422 landingPageState` before the page is written.
18538
+ */
18539
+ get: operations["previewAdsMatchingPage"];
18540
+ put?: never;
18541
+ post?: never;
18542
+ delete?: never;
18543
+ options?: never;
18544
+ head?: never;
18545
+ patch?: never;
18546
+ trace?: never;
18547
+ };
18548
+ "/v1/ads/connections/{connection_id}/matching-pages/{page_id}/unpublish": {
18549
+ parameters: {
18550
+ query?: never;
18551
+ header?: never;
18552
+ path: {
18553
+ connection_id: string;
18554
+ page_id: string;
18555
+ };
18556
+ cookie?: never;
18557
+ };
18558
+ get?: never;
18559
+ put?: never;
18560
+ /**
18561
+ * Undo — put the old final URL back, then remove the page (za-N6).
18562
+ * @description Gated on `ads.manage`, audit-logged. The final-URL change is undone first (or a waiting one rejected); only then is the page's folder removed, so no ad points at a missing page.
18563
+ */
18564
+ post: operations["unpublishAdsMatchingPage"];
18565
+ delete?: never;
18566
+ options?: never;
18567
+ head?: never;
18568
+ patch?: never;
18569
+ trace?: never;
18570
+ };
18571
+ "/v1/ads/connections/{connection_id}/matching-pages/{page_id}/write": {
18572
+ parameters: {
18573
+ query?: never;
18574
+ header?: never;
18575
+ path: {
18576
+ connection_id: string;
18577
+ page_id: string;
18578
+ };
18579
+ cookie?: never;
18580
+ };
18581
+ get?: never;
18582
+ put?: never;
18583
+ /**
18584
+ * Write (or rewrite) the page with the AI writer (za-N6).
18585
+ * @description Gated on `ads.manage`, audit-logged. A Temporal workflow reads the site's own pages and writes the headline, intro, points and button, every line citing the sentence it restates (no invented price or claim), then translates it into the site's other languages in one batched call. Spends AI credit on the organisation's own meter; an organisation not in good standing is refused before any spend (`422 landingNotInGoodStanding`), and a run already started stops before the writer.
18586
+ */
18587
+ post: operations["writeAdsMatchingPage"];
18588
+ delete?: never;
18589
+ options?: never;
18590
+ head?: never;
18591
+ patch?: never;
18592
+ trace?: never;
18593
+ };
18594
+ "/v1/ads/connections/{connection_id}/matching-pages/scan": {
18595
+ parameters: {
18596
+ query?: never;
18597
+ header?: never;
18598
+ path: {
18599
+ connection_id: string;
18600
+ };
18601
+ cookie?: never;
18602
+ };
18603
+ get?: never;
18604
+ put?: never;
18605
+ /**
18606
+ * Find the ad groups whose ads land on a site hosted with us (za-N6).
18607
+ * @description Gated on `ads.manage`, audit-logged. Starts a Temporal workflow that reads the enabled responsive search ads and keeps one `candidate` per ad group landing on a site this organisation hosts with us; a group that no longer qualifies is retired. Google Ads only (`422 landingGoogleOnly`).
18608
+ */
18609
+ post: operations["scanAdsMatchingPages"];
18610
+ delete?: never;
18611
+ options?: never;
18612
+ head?: never;
18613
+ patch?: never;
18614
+ trace?: never;
18615
+ };
18432
18616
  "/v1/ads/connections/{connection_id}/measurement-health": {
18433
18617
  parameters: {
18434
18618
  query?: never;
@@ -18894,6 +19078,147 @@ export interface paths {
18894
19078
  patch?: never;
18895
19079
  trace?: never;
18896
19080
  };
19081
+ "/v1/ads/connections/{connection_id}/page-fixes": {
19082
+ parameters: {
19083
+ query?: never;
19084
+ header?: never;
19085
+ path: {
19086
+ connection_id: string;
19087
+ };
19088
+ cookie?: never;
19089
+ };
19090
+ /**
19091
+ * Landing-page fixes applied on sites hosted with us (za-210).
19092
+ * @description Gated on `ads.view`. Every open fix of the connection (being written, ready to preview, being applied, applied and still undoable, being undone) and the 20 most recent closed ones. Read from our own rows — never a network call (docs/1006 §111).
19093
+ */
19094
+ get: operations["listAdsPageFixes"];
19095
+ put?: never;
19096
+ /**
19097
+ * Write the fix for one landing-page finding on a page hosted with us (za-210).
19098
+ * @description Gated on `ads.manage`, audit-logged. For a landing-page finding whose page title, H1, meta description or button misses the ad group's words (`lp_intent`, `lp_competitor`, `lp_cta_wrong`) on a page FILE of a site this organisation hosts with us, a Temporal workflow reads the whole file (kept byte-exact as the Undo snapshot) and the AI writer proposes the text edits — charged on the one AI meter (BYO key, else AI credits) now, on this request. Nothing is written to the site until `approve`. Twice is once (the open fix for the same page is returned). 422 `pageFixNotHosted`, `pageFixNotEditable`, `pageFixNotAFile`, `pageFixNoWords`, `pageFixNotInGoodStanding`, `landingGoogleOnly`.
19099
+ */
19100
+ post: operations["createAdsPageFix"];
19101
+ delete?: never;
19102
+ options?: never;
19103
+ head?: never;
19104
+ patch?: never;
19105
+ trace?: never;
19106
+ };
19107
+ "/v1/ads/connections/{connection_id}/page-fixes/{fix_id}": {
19108
+ parameters: {
19109
+ query?: never;
19110
+ header?: never;
19111
+ path: {
19112
+ connection_id: string;
19113
+ fix_id: string;
19114
+ };
19115
+ cookie?: never;
19116
+ };
19117
+ /**
19118
+ * One landing-page fix (za-210).
19119
+ * @description Gated on `ads.view`. Read from our own rows.
19120
+ */
19121
+ get: operations["getAdsPageFix"];
19122
+ put?: never;
19123
+ post?: never;
19124
+ delete?: never;
19125
+ options?: never;
19126
+ head?: never;
19127
+ patch?: never;
19128
+ trace?: never;
19129
+ };
19130
+ "/v1/ads/connections/{connection_id}/page-fixes/{fix_id}/approve": {
19131
+ parameters: {
19132
+ query?: never;
19133
+ header?: never;
19134
+ path: {
19135
+ connection_id: string;
19136
+ fix_id: string;
19137
+ };
19138
+ cookie?: never;
19139
+ };
19140
+ get?: never;
19141
+ put?: never;
19142
+ /**
19143
+ * Apply the fix to the page on the site (za-210).
19144
+ * @description Gated on `ads.manage`, audit-logged. Writes the edited page through a compare-and-swap on the box: only over the exact bytes snapshotted when the fix was written (a page changed since fails with `pageFixChangedSince` and keeps the customer's edit). Twice is once. 422 `pageFixState`, `pageFixNotInGoodStanding`.
19145
+ */
19146
+ post: operations["approveAdsPageFix"];
19147
+ delete?: never;
19148
+ options?: never;
19149
+ head?: never;
19150
+ patch?: never;
19151
+ trace?: never;
19152
+ };
19153
+ "/v1/ads/connections/{connection_id}/page-fixes/{fix_id}/discard": {
19154
+ parameters: {
19155
+ query?: never;
19156
+ header?: never;
19157
+ path: {
19158
+ connection_id: string;
19159
+ fix_id: string;
19160
+ };
19161
+ cookie?: never;
19162
+ };
19163
+ get?: never;
19164
+ put?: never;
19165
+ /**
19166
+ * Drop a fix never applied (za-210).
19167
+ * @description Gated on `ads.manage`, audit-logged. Nothing was written to the site. 422 `pageFixState`.
19168
+ */
19169
+ post: operations["discardAdsPageFix"];
19170
+ delete?: never;
19171
+ options?: never;
19172
+ head?: never;
19173
+ patch?: never;
19174
+ trace?: never;
19175
+ };
19176
+ "/v1/ads/connections/{connection_id}/page-fixes/{fix_id}/preview": {
19177
+ parameters: {
19178
+ query?: never;
19179
+ header?: never;
19180
+ path: {
19181
+ connection_id: string;
19182
+ fix_id: string;
19183
+ };
19184
+ cookie?: never;
19185
+ };
19186
+ /**
19187
+ * The page as it is and as it will be after the fix (za-210).
19188
+ * @description Gated on `ads.view`. `before` and `after` are the whole page HTML with a `<base>` for its own assets; the dashboard shows them in a sandboxed iframe (nothing on the page runs). 422 `pageFixState` before the fix is written.
19189
+ */
19190
+ get: operations["previewAdsPageFix"];
19191
+ put?: never;
19192
+ post?: never;
19193
+ delete?: never;
19194
+ options?: never;
19195
+ head?: never;
19196
+ patch?: never;
19197
+ trace?: never;
19198
+ };
19199
+ "/v1/ads/connections/{connection_id}/page-fixes/{fix_id}/undo": {
19200
+ parameters: {
19201
+ query?: never;
19202
+ header?: never;
19203
+ path: {
19204
+ connection_id: string;
19205
+ fix_id: string;
19206
+ };
19207
+ cookie?: never;
19208
+ };
19209
+ get?: never;
19210
+ put?: never;
19211
+ /**
19212
+ * Put the snapshot back (za-210, one click, 30 days).
19213
+ * @description Gated on `ads.manage`, audit-logged. Writes the whole original page back, byte-exact, only over the file exactly as the fix wrote it — a later edit is kept (`pageFixChangedSince`). 422 `pageFixCannotUndo` after 30 days or when not applied.
19214
+ */
19215
+ post: operations["undoAdsPageFix"];
19216
+ delete?: never;
19217
+ options?: never;
19218
+ head?: never;
19219
+ patch?: never;
19220
+ trace?: never;
19221
+ };
18897
19222
  "/v1/ads/connections/{connection_id}/paid-geo": {
18898
19223
  parameters: {
18899
19224
  query?: never;
@@ -62721,8 +63046,8 @@ export interface components {
62721
63046
  };
62722
63047
  AdsAnalyticsImpact: components["schemas"]["AdsAnalyticsFrame"] & {
62723
63048
  before_after: {
62724
- after: components["schemas"]["AdsAnalyticsImpactPeriod"];
62725
- before: components["schemas"]["AdsAnalyticsImpactPeriod"];
63049
+ after: components["schemas"]["AdsAnalyticsImpactPeriod"] | null;
63050
+ before: components["schemas"]["AdsAnalyticsImpactPeriod"] | null;
62726
63051
  /** Format: date */
62727
63052
  started_on: string | null;
62728
63053
  };
@@ -62824,12 +63149,12 @@ export interface components {
62824
63149
  }[];
62825
63150
  };
62826
63151
  };
62827
- AdsAnalyticsImpactPeriod: (components["schemas"]["AdsAnalyticsFigures"] & {
63152
+ AdsAnalyticsImpactPeriod: components["schemas"]["AdsAnalyticsFigures"] & {
62828
63153
  /** Format: date */
62829
63154
  first_day: string;
62830
63155
  /** Format: date */
62831
63156
  last_day: string;
62832
- }) | null;
63157
+ };
62833
63158
  AdsAnalyticsPoint: components["schemas"]["AdsAnalyticsFigures"] & {
62834
63159
  /** Format: date */
62835
63160
  bucket: string;
@@ -63695,7 +64020,7 @@ export interface components {
63695
64020
  /** @description The bid-strategy ladder step it is on (§39). */
63696
64021
  step: string;
63697
64022
  };
63698
- /** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. */
64023
+ /** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. za-213 (site-to-ad sync for a site hosted with us, `proposed_by: site-sync`): `auto_action: site_sync` is an ad text edit writing a hosted page's new price (`url`, `old_price_minor`, `new_price_minor`, `currency`, integer minor units); `auto_action: site_sync_pause` pauses the ads of a page whose offer ended (`url`). */
63699
64024
  AdsChange: {
63700
64025
  action_class: string;
63701
64026
  /** Format: date-time */
@@ -64456,7 +64781,7 @@ export interface components {
64456
64781
  status: "open" | "applied";
64457
64782
  /** @description The change a step would have made with automatic changes on. */
64458
64783
  suggested: boolean;
64459
- /** @description The reason in one code (`budget_limited`, `rank_limited`, `landing_below_average`, `suggest_asset_unlink`, …; the registry in `engine/engine/adsreport/registry.py` lists every one). SERVEWATCH: `serve_dropped`, `serve_never` (hourly: a campaign that stopped serving or never served, the change named, its revert waiting), and the daily `serve_rank_lost`, `bid_floor`, `tis_cap_low`, `tis_target_high`, `phrase_wrong_intent`, `results_zero`, `rebuild_drop`, `shared_negatives_missing`, `qs_systemic`, `bid_above_estimate`. Empty when the finding has no code of its own: the `kind` says it. */
64784
+ /** @description The reason in one code (`budget_limited`, `rank_limited`, `landing_below_average`, `suggest_asset_unlink`, …; the registry in `engine/engine/adsreport/registry.py` lists every one). SERVEWATCH: `serve_dropped`, `serve_never` (hourly: a campaign that stopped serving or never served, the change named, its revert waiting), and the daily `serve_rank_lost`, `bid_floor`, `tis_cap_low`, `tis_target_high`, `phrase_wrong_intent`, `results_zero`, `rebuild_drop`, `shared_negatives_missing`, `qs_systemic`, `bid_above_estimate`. Empty when the finding has no code of its own: the `kind` says it. za-212: `lp_seen_geo_block`, `lp_seen_cookie_wall`, `lp_seen_language` and `lp_seen_price` are the page as the searcher in a targeted market sees it, with `figures.named_markets` (`country/device/language`), `market_count`, `ad_price`, `page_price` and `wall_says`. */
64460
64785
  why: string;
64461
64786
  };
64462
64787
  /** @description BUDGETMV1 (za-186) — which option of a budget-move proposal to apply. */
@@ -64973,6 +65298,49 @@ export interface components {
64973
65298
  /** @description Where this market's ads land (its language's page). */
64974
65299
  url: string;
64975
65300
  };
65301
+ /** @description One matching landing page for one ad group on a site hosted with us (za-N6, docs/1006 §94). */
65302
+ AdsMatchingPage: {
65303
+ /** @description customers/<cid>/adGroups/<id> */
65304
+ ad_group: string;
65305
+ ad_group_name: string;
65306
+ /**
65307
+ * Format: date-time
65308
+ * @description When the page was last approved. Once set, its files may be on the site (a switch that was refused, a write that failed half-way), so it is unpublished, never discarded.
65309
+ */
65310
+ approved_at: string | null;
65311
+ /** @description Empty until written. Every line restates the site's own page. */
65312
+ content: {
65313
+ cta_label?: string;
65314
+ headline?: string;
65315
+ intro?: string;
65316
+ points?: string[];
65317
+ source_url?: string;
65318
+ };
65319
+ domain: string;
65320
+ /** @description Lines the writer offered that the site's own pages did not back. */
65321
+ dropped: number;
65322
+ /** @description The last problem's code, e.g. landingNotBacked, landingNoText, landingNotServing. */
65323
+ error: string;
65324
+ /** Format: uuid */
65325
+ id: string;
65326
+ keywords: string[];
65327
+ /** @description The site's own language; the page is written in it. */
65328
+ language: string;
65329
+ /** @description The other languages it is translated into. */
65330
+ languages: string[];
65331
+ page_url: string;
65332
+ /** Format: date-time */
65333
+ published_at: string | null;
65334
+ /** Format: uuid */
65335
+ site_id: string;
65336
+ slug: string;
65337
+ /** @enum {string} */
65338
+ state: "candidate" | "generating" | "ready" | "publishing" | "live" | "unpublishing" | "unpublished" | "discarded";
65339
+ /** Format: date-time */
65340
+ updated_at: string;
65341
+ /** Format: uuid */
65342
+ url_change_id: string | null;
65343
+ };
64976
65344
  /** @description ADSOPT (za-253, docs/1006 §ADSOPT) — what the audit's measurement-health step stored. */
64977
65345
  AdsMeasurementHealth: {
64978
65346
  automation: {
@@ -65522,6 +65890,58 @@ export interface components {
65522
65890
  * @enum {string}
65523
65891
  */
65524
65892
  AdsPacingStrategy: "even" | "day_of_week" | "front_loaded";
65893
+ /** @description za-210 (docs/1006 §111): a landing-page fix applied on a page hosted with us — the text edits, the page file, its state, and the before/after measurement (landing-page Quality Score part and first-party outcomes, 14 days each side). */
65894
+ AdsPageFix: {
65895
+ ad_group?: string;
65896
+ after: {
65897
+ [key: string]: unknown;
65898
+ };
65899
+ /** Format: date-time */
65900
+ applied_at?: string | null;
65901
+ /** Format: date-time */
65902
+ approved_at?: string | null;
65903
+ before: {
65904
+ [key: string]: unknown;
65905
+ };
65906
+ can_undo: boolean;
65907
+ domain: string;
65908
+ edits: components["schemas"]["AdsPageFixEdit"][];
65909
+ /** @description The refusal code of a failed step (`pageFix*`); `pageFixGaveUp` when the hourly reconcile re-started a lost run six times without it finishing. */
65910
+ error: string;
65911
+ /** @description §2.57: when the AI writer failed, what kind of failure it was (provider outage with its status page, the customer's own key, a refusal, or ours) — rendered by the dashboard's VendorFailureNotice. Null otherwise. */
65912
+ failure?: components["schemas"]["VendorFailure"] | null;
65913
+ /** Format: uuid */
65914
+ finding_id: string;
65915
+ /** Format: uuid */
65916
+ id: string;
65917
+ /** @description The page file inside the served docroot. */
65918
+ path: string;
65919
+ /** @enum {string} */
65920
+ state: "generating" | "ready" | "applying" | "applied" | "undoing" | "undone" | "failed" | "discarded" | "expired";
65921
+ /** Format: date-time */
65922
+ undo_until?: string | null;
65923
+ /** Format: date-time */
65924
+ undone_at?: string | null;
65925
+ url: string;
65926
+ /** @enum {string} */
65927
+ why: "lp_intent" | "lp_competitor" | "lp_cta_wrong";
65928
+ words: string[];
65929
+ };
65930
+ AdsPageFixable: {
65931
+ ad_group: string;
65932
+ /** Format: uuid */
65933
+ finding_id: string;
65934
+ url: string;
65935
+ /** @enum {string} */
65936
+ why: "lp_intent" | "lp_competitor" | "lp_cta_wrong";
65937
+ words: string[];
65938
+ };
65939
+ AdsPageFixEdit: {
65940
+ after: string;
65941
+ before: string;
65942
+ /** @enum {string} */
65943
+ field: "title" | "h1" | "description" | "cta";
65944
+ };
65525
65945
  /** @description za-168 (docs/1006 §PAIDGEO) — paid revenue by country and device. */
65526
65946
  AdsPaidGeo: {
65527
65947
  min_account_sales: number;
@@ -141664,6 +142084,254 @@ export interface operations {
141664
142084
  429: components["responses"]["TooManyRequests"];
141665
142085
  };
141666
142086
  };
142087
+ listAdsMatchingPages: {
142088
+ parameters: {
142089
+ query?: never;
142090
+ header?: never;
142091
+ path: {
142092
+ connection_id: string;
142093
+ };
142094
+ cookie?: never;
142095
+ };
142096
+ requestBody?: never;
142097
+ responses: {
142098
+ /** @description The pages. */
142099
+ 200: {
142100
+ headers: {
142101
+ [name: string]: unknown;
142102
+ };
142103
+ content: {
142104
+ "application/json": {
142105
+ data: {
142106
+ history: components["schemas"]["AdsMatchingPage"][];
142107
+ pages: components["schemas"]["AdsMatchingPage"][];
142108
+ };
142109
+ };
142110
+ };
142111
+ };
142112
+ 401: components["responses"]["Unauthorized"];
142113
+ 403: components["responses"]["Forbidden"];
142114
+ 404: components["responses"]["NotFound"];
142115
+ 429: components["responses"]["TooManyRequests"];
142116
+ };
142117
+ };
142118
+ getAdsMatchingPage: {
142119
+ parameters: {
142120
+ query?: never;
142121
+ header?: never;
142122
+ path: {
142123
+ connection_id: string;
142124
+ page_id: string;
142125
+ };
142126
+ cookie?: never;
142127
+ };
142128
+ requestBody?: never;
142129
+ responses: {
142130
+ /** @description The page. */
142131
+ 200: {
142132
+ headers: {
142133
+ [name: string]: unknown;
142134
+ };
142135
+ content: {
142136
+ "application/json": {
142137
+ data: components["schemas"]["AdsMatchingPage"];
142138
+ };
142139
+ };
142140
+ };
142141
+ 401: components["responses"]["Unauthorized"];
142142
+ 403: components["responses"]["Forbidden"];
142143
+ 404: components["responses"]["NotFound"];
142144
+ 429: components["responses"]["TooManyRequests"];
142145
+ };
142146
+ };
142147
+ approveAdsMatchingPage: {
142148
+ parameters: {
142149
+ query?: never;
142150
+ header?: never;
142151
+ path: {
142152
+ connection_id: string;
142153
+ page_id: string;
142154
+ };
142155
+ cookie?: never;
142156
+ };
142157
+ requestBody?: never;
142158
+ responses: {
142159
+ /** @description The page, as it now stands. */
142160
+ 202: {
142161
+ headers: {
142162
+ [name: string]: unknown;
142163
+ };
142164
+ content: {
142165
+ "application/json": {
142166
+ data: components["schemas"]["AdsMatchingPage"];
142167
+ };
142168
+ };
142169
+ };
142170
+ 401: components["responses"]["Unauthorized"];
142171
+ 403: components["responses"]["Forbidden"];
142172
+ 404: components["responses"]["NotFound"];
142173
+ 422: components["responses"]["UnprocessableEntity"];
142174
+ 429: components["responses"]["TooManyRequests"];
142175
+ };
142176
+ };
142177
+ discardAdsMatchingPage: {
142178
+ parameters: {
142179
+ query?: never;
142180
+ header?: never;
142181
+ path: {
142182
+ connection_id: string;
142183
+ page_id: string;
142184
+ };
142185
+ cookie?: never;
142186
+ };
142187
+ requestBody?: never;
142188
+ responses: {
142189
+ /** @description The page, as it now stands. */
142190
+ 200: {
142191
+ headers: {
142192
+ [name: string]: unknown;
142193
+ };
142194
+ content: {
142195
+ "application/json": {
142196
+ data: components["schemas"]["AdsMatchingPage"];
142197
+ };
142198
+ };
142199
+ };
142200
+ 401: components["responses"]["Unauthorized"];
142201
+ 403: components["responses"]["Forbidden"];
142202
+ 404: components["responses"]["NotFound"];
142203
+ 422: components["responses"]["UnprocessableEntity"];
142204
+ 429: components["responses"]["TooManyRequests"];
142205
+ };
142206
+ };
142207
+ previewAdsMatchingPage: {
142208
+ parameters: {
142209
+ query?: {
142210
+ locale?: string;
142211
+ };
142212
+ header?: never;
142213
+ path: {
142214
+ connection_id: string;
142215
+ page_id: string;
142216
+ };
142217
+ cookie?: never;
142218
+ };
142219
+ requestBody?: never;
142220
+ responses: {
142221
+ /** @description The page. */
142222
+ 200: {
142223
+ headers: {
142224
+ [name: string]: unknown;
142225
+ };
142226
+ content: {
142227
+ "application/json": {
142228
+ data: {
142229
+ html: string;
142230
+ locale: string;
142231
+ /** Format: uri */
142232
+ url: string;
142233
+ };
142234
+ };
142235
+ };
142236
+ };
142237
+ 401: components["responses"]["Unauthorized"];
142238
+ 403: components["responses"]["Forbidden"];
142239
+ 404: components["responses"]["NotFound"];
142240
+ 422: components["responses"]["UnprocessableEntity"];
142241
+ 429: components["responses"]["TooManyRequests"];
142242
+ };
142243
+ };
142244
+ unpublishAdsMatchingPage: {
142245
+ parameters: {
142246
+ query?: never;
142247
+ header?: never;
142248
+ path: {
142249
+ connection_id: string;
142250
+ page_id: string;
142251
+ };
142252
+ cookie?: never;
142253
+ };
142254
+ requestBody?: never;
142255
+ responses: {
142256
+ /** @description The page, as it now stands. */
142257
+ 202: {
142258
+ headers: {
142259
+ [name: string]: unknown;
142260
+ };
142261
+ content: {
142262
+ "application/json": {
142263
+ data: components["schemas"]["AdsMatchingPage"];
142264
+ };
142265
+ };
142266
+ };
142267
+ 401: components["responses"]["Unauthorized"];
142268
+ 403: components["responses"]["Forbidden"];
142269
+ 404: components["responses"]["NotFound"];
142270
+ 422: components["responses"]["UnprocessableEntity"];
142271
+ 429: components["responses"]["TooManyRequests"];
142272
+ };
142273
+ };
142274
+ writeAdsMatchingPage: {
142275
+ parameters: {
142276
+ query?: never;
142277
+ header?: never;
142278
+ path: {
142279
+ connection_id: string;
142280
+ page_id: string;
142281
+ };
142282
+ cookie?: never;
142283
+ };
142284
+ requestBody?: never;
142285
+ responses: {
142286
+ /** @description The page, as it now stands. */
142287
+ 202: {
142288
+ headers: {
142289
+ [name: string]: unknown;
142290
+ };
142291
+ content: {
142292
+ "application/json": {
142293
+ data: components["schemas"]["AdsMatchingPage"];
142294
+ };
142295
+ };
142296
+ };
142297
+ 401: components["responses"]["Unauthorized"];
142298
+ 403: components["responses"]["Forbidden"];
142299
+ 404: components["responses"]["NotFound"];
142300
+ 422: components["responses"]["UnprocessableEntity"];
142301
+ 429: components["responses"]["TooManyRequests"];
142302
+ };
142303
+ };
142304
+ scanAdsMatchingPages: {
142305
+ parameters: {
142306
+ query?: never;
142307
+ header?: never;
142308
+ path: {
142309
+ connection_id: string;
142310
+ };
142311
+ cookie?: never;
142312
+ };
142313
+ requestBody?: never;
142314
+ responses: {
142315
+ /** @description The scan has started. */
142316
+ 202: {
142317
+ headers: {
142318
+ [name: string]: unknown;
142319
+ };
142320
+ content: {
142321
+ "application/json": {
142322
+ data: {
142323
+ scanning: boolean;
142324
+ };
142325
+ };
142326
+ };
142327
+ };
142328
+ 401: components["responses"]["Unauthorized"];
142329
+ 403: components["responses"]["Forbidden"];
142330
+ 404: components["responses"]["NotFound"];
142331
+ 422: components["responses"]["UnprocessableEntity"];
142332
+ 429: components["responses"]["TooManyRequests"];
142333
+ };
142334
+ };
141667
142335
  getAdsMeasurementHealth: {
141668
142336
  parameters: {
141669
142337
  query?: never;
@@ -142569,6 +143237,229 @@ export interface operations {
142569
143237
  429: components["responses"]["TooManyRequests"];
142570
143238
  };
142571
143239
  };
143240
+ listAdsPageFixes: {
143241
+ parameters: {
143242
+ query?: never;
143243
+ header?: never;
143244
+ path: {
143245
+ connection_id: string;
143246
+ };
143247
+ cookie?: never;
143248
+ };
143249
+ requestBody?: never;
143250
+ responses: {
143251
+ /** @description The fixes. */
143252
+ 200: {
143253
+ headers: {
143254
+ [name: string]: unknown;
143255
+ };
143256
+ content: {
143257
+ "application/json": {
143258
+ data: {
143259
+ /** @description Open landing-page findings a fix can be written for now (editable reason, a page file on a site hosted with us, no open fix). */
143260
+ fixable: components["schemas"]["AdsPageFixable"][];
143261
+ fixes: components["schemas"]["AdsPageFix"][];
143262
+ history: components["schemas"]["AdsPageFix"][];
143263
+ };
143264
+ };
143265
+ };
143266
+ };
143267
+ 401: components["responses"]["Unauthorized"];
143268
+ 403: components["responses"]["Forbidden"];
143269
+ 404: components["responses"]["NotFound"];
143270
+ 429: components["responses"]["TooManyRequests"];
143271
+ };
143272
+ };
143273
+ createAdsPageFix: {
143274
+ parameters: {
143275
+ query?: never;
143276
+ header?: never;
143277
+ path: {
143278
+ connection_id: string;
143279
+ };
143280
+ cookie?: never;
143281
+ };
143282
+ requestBody: {
143283
+ content: {
143284
+ "application/json": {
143285
+ /** Format: uuid */
143286
+ finding_id: string;
143287
+ };
143288
+ };
143289
+ };
143290
+ responses: {
143291
+ /** @description The fix is being written. */
143292
+ 202: {
143293
+ headers: {
143294
+ [name: string]: unknown;
143295
+ };
143296
+ content: {
143297
+ "application/json": {
143298
+ data: components["schemas"]["AdsPageFix"];
143299
+ };
143300
+ };
143301
+ };
143302
+ 401: components["responses"]["Unauthorized"];
143303
+ 403: components["responses"]["Forbidden"];
143304
+ 404: components["responses"]["NotFound"];
143305
+ 422: components["responses"]["UnprocessableEntity"];
143306
+ 429: components["responses"]["TooManyRequests"];
143307
+ };
143308
+ };
143309
+ getAdsPageFix: {
143310
+ parameters: {
143311
+ query?: never;
143312
+ header?: never;
143313
+ path: {
143314
+ connection_id: string;
143315
+ fix_id: string;
143316
+ };
143317
+ cookie?: never;
143318
+ };
143319
+ requestBody?: never;
143320
+ responses: {
143321
+ /** @description The fix. */
143322
+ 200: {
143323
+ headers: {
143324
+ [name: string]: unknown;
143325
+ };
143326
+ content: {
143327
+ "application/json": {
143328
+ data: components["schemas"]["AdsPageFix"];
143329
+ };
143330
+ };
143331
+ };
143332
+ 401: components["responses"]["Unauthorized"];
143333
+ 403: components["responses"]["Forbidden"];
143334
+ 404: components["responses"]["NotFound"];
143335
+ 429: components["responses"]["TooManyRequests"];
143336
+ };
143337
+ };
143338
+ approveAdsPageFix: {
143339
+ parameters: {
143340
+ query?: never;
143341
+ header?: never;
143342
+ path: {
143343
+ connection_id: string;
143344
+ fix_id: string;
143345
+ };
143346
+ cookie?: never;
143347
+ };
143348
+ requestBody?: never;
143349
+ responses: {
143350
+ /** @description The fix. */
143351
+ 202: {
143352
+ headers: {
143353
+ [name: string]: unknown;
143354
+ };
143355
+ content: {
143356
+ "application/json": {
143357
+ data: components["schemas"]["AdsPageFix"];
143358
+ };
143359
+ };
143360
+ };
143361
+ 401: components["responses"]["Unauthorized"];
143362
+ 403: components["responses"]["Forbidden"];
143363
+ 404: components["responses"]["NotFound"];
143364
+ 422: components["responses"]["UnprocessableEntity"];
143365
+ 429: components["responses"]["TooManyRequests"];
143366
+ };
143367
+ };
143368
+ discardAdsPageFix: {
143369
+ parameters: {
143370
+ query?: never;
143371
+ header?: never;
143372
+ path: {
143373
+ connection_id: string;
143374
+ fix_id: string;
143375
+ };
143376
+ cookie?: never;
143377
+ };
143378
+ requestBody?: never;
143379
+ responses: {
143380
+ /** @description The fix. */
143381
+ 200: {
143382
+ headers: {
143383
+ [name: string]: unknown;
143384
+ };
143385
+ content: {
143386
+ "application/json": {
143387
+ data: components["schemas"]["AdsPageFix"];
143388
+ };
143389
+ };
143390
+ };
143391
+ 401: components["responses"]["Unauthorized"];
143392
+ 403: components["responses"]["Forbidden"];
143393
+ 404: components["responses"]["NotFound"];
143394
+ 422: components["responses"]["UnprocessableEntity"];
143395
+ 429: components["responses"]["TooManyRequests"];
143396
+ };
143397
+ };
143398
+ previewAdsPageFix: {
143399
+ parameters: {
143400
+ query?: never;
143401
+ header?: never;
143402
+ path: {
143403
+ connection_id: string;
143404
+ fix_id: string;
143405
+ };
143406
+ cookie?: never;
143407
+ };
143408
+ requestBody?: never;
143409
+ responses: {
143410
+ /** @description The two versions. */
143411
+ 200: {
143412
+ headers: {
143413
+ [name: string]: unknown;
143414
+ };
143415
+ content: {
143416
+ "application/json": {
143417
+ data: {
143418
+ after: string;
143419
+ before: string;
143420
+ edits: components["schemas"]["AdsPageFixEdit"][];
143421
+ url: string;
143422
+ };
143423
+ };
143424
+ };
143425
+ };
143426
+ 401: components["responses"]["Unauthorized"];
143427
+ 403: components["responses"]["Forbidden"];
143428
+ 404: components["responses"]["NotFound"];
143429
+ 422: components["responses"]["UnprocessableEntity"];
143430
+ 429: components["responses"]["TooManyRequests"];
143431
+ };
143432
+ };
143433
+ undoAdsPageFix: {
143434
+ parameters: {
143435
+ query?: never;
143436
+ header?: never;
143437
+ path: {
143438
+ connection_id: string;
143439
+ fix_id: string;
143440
+ };
143441
+ cookie?: never;
143442
+ };
143443
+ requestBody?: never;
143444
+ responses: {
143445
+ /** @description The fix. */
143446
+ 202: {
143447
+ headers: {
143448
+ [name: string]: unknown;
143449
+ };
143450
+ content: {
143451
+ "application/json": {
143452
+ data: components["schemas"]["AdsPageFix"];
143453
+ };
143454
+ };
143455
+ };
143456
+ 401: components["responses"]["Unauthorized"];
143457
+ 403: components["responses"]["Forbidden"];
143458
+ 404: components["responses"]["NotFound"];
143459
+ 422: components["responses"]["UnprocessableEntity"];
143460
+ 429: components["responses"]["TooManyRequests"];
143461
+ };
143462
+ };
142572
143463
  getAdsPaidGeo: {
142573
143464
  parameters: {
142574
143465
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1437",
3
+ "version": "0.1.1439",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",