@zinn-digital/sdk 0.1.1683 → 0.1.1688

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.
@@ -6415,7 +6415,7 @@ export interface paths {
6415
6415
  put?: never;
6416
6416
  /**
6417
6417
  * Do what an audit finding proposes in the Google Ads account (audited).
6418
- * @description A wasteful search term is added as an exact negative to its shared list (or, for a search served by two campaigns — `detail.why = "cannibal"` — to the one campaign it does not belong in); a poor keyword is paused; a converting or growing search term (`good_term`, `new_keyword`) is added as a PHRASE keyword to the ad group it was searched in. Every change is first replayed against 30 days of search terms and every keyword (the collision simulator). One write to the account, then the finding is closed as `applied`. 422 for a finding that is closed or has nothing to apply (including a keyword proposal that failed a safety check, `detail.one_click = false`), `refusal.googleAds.wouldBlockKeyword` for a negative that is one of our own keywords (owner decision 133: never) and `refusal.googleAds.wouldCollide` when the change would stop a main, converting or growing search or take one from another ad group (the reasons are saved on `detail.collision`); 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses it (nothing is sent; ZA332); 503 `refusal.googleAds.googleRefused` only when Google refuses (the finding stays open). za-260 (WAVEBUILD): approving a wave's budget twice at once builds it once (the budget and plan rows are locked and re-read); the enable of a wave whose read-back set is no longer what was built is refused with `refusal.googleAds.waveEnableRefused`, the row stays open with the reasons on `detail.enable_refused` (each `market`, `campaign`, `code` — `not_paused`, `bidding`, `target_cpa`, `budget`, `country`, `negatives` with the missing `negatives`, or `set` — and `detail.enable_refused_at`) and the error's `details` carry the same reasons (`field` `campaigns.<market>`, `code`, English `message`). Audit action `google_ads.finding_applied`. Requires `campaigns.manage`. BUDGETMV1 (za-186): a budget-limited finding's body may name `option` — `move` (default, total unchanged) or `increase` (the campaign alone raised, refused with 422 when the monthly ceiling no longer has that room today).
6418
+ * @description A wasteful search term is added as an exact negative to its shared list (or, for a search served by two campaigns — `detail.why = "cannibal"` — to the one campaign it does not belong in); a poor keyword is paused; a converting or growing search term (`good_term`, `new_keyword`) is added as a PHRASE keyword to the ad group it was searched in. Every change is first replayed against 30 days of search terms and every keyword (the collision simulator). One write to the account, then the finding is closed as `applied`. 422 for a finding that is closed or has nothing to apply (including a keyword proposal that failed a safety check, `detail.one_click = false`), `refusal.googleAds.wouldBlockKeyword` for a negative that is one of our own keywords (owner decision 133: never) and `refusal.googleAds.wouldCollide` when the change would stop a main, converting or growing search or take one from another ad group (the reasons are saved on `detail.collision`); 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses it (nothing is sent; ZA332). HOUSE-OWNER-CLICK (owner answer 2026-11-08): the platform owner's own interactive click is his approval for exactly ONE change on the house account (one request of one operation; the house modes stay `off`); a second change, the same change again or a batch in it is refused, and anyone else's click (staff, an API key, an MCP token, an impersonation session) is refused as before. FIX r3: the finding must be ONE request, decided before anything is sent (a two-request budget `move` is refused whole, never half-applied); the owner's token must be issued to the admin console client (`azp` `zinn-admin`) and come from a sign-in within 5 minutes WITH a second factor (`auth_time` and `amr`), otherwise 403 `STEP_UP_REQUIRED` (the console signs him in again with `prompt=login`, `max_age=0`) and nothing is sent; a change a hold would queue is refused, never left waiting in an `off` class. Every attempt is audited with its MFA state (`google_ads.house_owner_click_sent` only once Google accepted the change, `google_ads.house_owner_click_refused` otherwise); 503 `refusal.googleAds.googleRefused` only when Google refuses (the finding stays open). FIX r4: when the owner's request left and Google's reply was lost (a read timeout), it is audited `google_ads.house_owner_click_outcome_unknown` (never refused) and the answer is 503 `refusal.googleAds.outcomeUnknown` ("Google did not confirm; we are checking"); nothing is sent again on its own, a later read of the account (the house audit run, or his next click) writes the final `sent` or `refused` row (`metadata.settles`). His next click on it is 409 `refusal.googleAds.outcomeChecking` while it is unsettled (first minute) or 409 `refusal.googleAds.alreadyApplied` once the account shows it made. A 200 carrying `partialFailureError` is audited refused, never sent. FIX r5/r6: a second owner click on the same finding while one is in flight is 409 `refusal.googleAds.clickInProgress`; a click whose finding was closed by another click meanwhile (re-read inside the lock) is 409 `refusal.googleAds.findingClosed`; neither sends anything. za-260 (WAVEBUILD): approving a wave's budget twice at once builds it once (the budget and plan rows are locked and re-read); the enable of a wave whose read-back set is no longer what was built is refused with `refusal.googleAds.waveEnableRefused`, the row stays open with the reasons on `detail.enable_refused` (each `market`, `campaign`, `code` — `not_paused`, `bidding`, `target_cpa`, `budget`, `country`, `negatives` with the missing `negatives`, or `set` — and `detail.enable_refused_at`) and the error's `details` carry the same reasons (`field` `campaigns.<market>`, `code`, English `message`). Audit action `google_ads.finding_applied`. Requires `campaigns.manage`. BUDGETMV1 (za-186): a budget-limited finding's body may name `option` — `move` (default, total unchanged) or `increase` (the campaign alone raised, refused with 422 when the monthly ceiling no longer has that room today).
6419
6419
  */
6420
6420
  post: operations["applyAdminGoogleAdsFinding"];
6421
6421
  delete?: never;
@@ -6437,7 +6437,7 @@ export interface paths {
6437
6437
  put?: never;
6438
6438
  /**
6439
6439
  * Close an audit finding without acting on it (audited).
6440
- * @description A dismissed finding stays dismissed: the daily audit does not raise it again. A Google recommendation is dismissed at Google too: 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses that (nothing is sent, the finding stays open; ZA332), 503 `refusal.googleAds.googleRefused` when Google refuses it. Audit action `google_ads.finding_dismissed`. Requires `campaigns.manage`.
6440
+ * @description A dismissed finding stays dismissed: the daily audit does not raise it again. A Google recommendation is dismissed at Google too: 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses that (nothing is sent, the finding stays open; ZA332; only the platform owner's own click sends that one dismissal, HOUSE-OWNER-CLICK as on apply), 503 `refusal.googleAds.googleRefused` when Google refuses it. Audit action `google_ads.finding_dismissed`. Requires `campaigns.manage`. FIX r4: a lost reply is 503 `refusal.googleAds.outcomeUnknown` and the next click 409 as on apply.
6441
6441
  */
6442
6442
  post: operations["dismissAdminGoogleAdsFinding"];
6443
6443
  delete?: never;
@@ -17021,7 +17021,7 @@ export interface paths {
17021
17021
  put?: never;
17022
17022
  /**
17023
17023
  * Approve, reject, undo, withdraw, or allow a rejected change again.
17024
- * @description Gated on `ads.manage`; audit action `ads.change_<action>`. `approve` sends exactly the proposed request to Google in the background (202); a kill switch, the spend ceiling or the organisation's standing can still refuse it (`refused`). When the send meets Google's daily operation allowance the change stays `approved` with `summary.deferred_to` (when it is sent — automatically, by the same workflow), never refused. za-326 r3: an approval does not override a network's learning phase — an automatic change approved while the network says its unit is learning stays `approved` with `summary.learning` (`rule`, `network`) and `summary.deferred_to` (when learning is read again), and is sent once learning ends. ZA326-FU: the wait stops — the change is `refused` with `error` `learningUnread` after 4 re-checks in a row that could not read the learning state, or `learningNoEnd` 14 days after the wait began — and `withdraw` (200) takes the person's approval back while it waits (`rejected`, `summary.withdrawn` `{by, at}`, audit action `ads.change_withdraw`; else `notWaitingForLearning`). `undo` sends the change's inverse (202) — allowed with the kill switch on; an Undo that meets the same allowance leaves the change `applied` with `summary.undo_deferred_to` and is sent after the reset by the same Undo workflow (never recorded as failed), even when that is past the Undo window. A rejection binds the item on Google, Microsoft Ads and X alike. `reject` answers 200. A rejected negative keyword or keyword (same account, text, match type and level) is never proposed or sent again by any producer — the gate refuses it `rejectedBefore`, whether or not it still collides — until `allow_again` (200, a rejected change only, else `notRejected`; leaves `summary.allowed_again` `{by, at}`); `undo_allow_again` (200, else `notAllowedAgain`) puts the rejection back.
17024
+ * @description Gated on `ads.manage`; audit action `ads.change_<action>`. `approve` sends exactly the proposed request to Google in the background (202); a kill switch, the spend ceiling or the organisation's standing can still refuse it (`refused`). When the send meets Google's daily operation allowance the change stays `approved` with `summary.deferred_to` (when it is sent — automatically, by the same workflow), never refused. za-326 r3: an approval does not override a network's learning phase — an automatic change approved while the network says its unit is learning stays `approved` with `summary.learning` (`rule`, `network`) and `summary.deferred_to` (when learning is read again), and is sent once learning ends. ZA326-FU: the wait stops — the change is `refused` with `error` `learningUnread` after 4 re-checks in a row that could not read the learning state, or `learningNoEnd` 14 days after the wait began. ZA326-FU5: an approved change whose earlier send was interrupted before its answer was recorded is sent again automatically only when it is an absolute set (a pause, a budget, a bid); any other change (a create) is `refused` with `error` `sendUnconfirmed` and is never sent again blind — the person checks the account — and `withdraw` (200) takes the person's approval back while it waits (`rejected`, `summary.withdrawn` `{by, at}`, audit action `ads.change_withdraw`; else `notWaitingForLearning`). `undo` sends the change's inverse (202) — allowed with the kill switch on; an Undo that meets the same allowance leaves the change `applied` with `summary.undo_deferred_to` and is sent after the reset by the same Undo workflow (never recorded as failed), even when that is past the Undo window. A rejection binds the item on Google, Microsoft Ads and X alike. `reject` answers 200. A rejected negative keyword or keyword (same account, text, match type and level) is never proposed or sent again by any producer — the gate refuses it `rejectedBefore`, whether or not it still collides — until `allow_again` (200, a rejected change only, else `notRejected`; leaves `summary.allowed_again` `{by, at}`); `undo_allow_again` (200, else `notAllowedAgain`) puts the rejection back.
17025
17025
  */
17026
17026
  post: operations["decideAdsChange"];
17027
17027
  delete?: never;
@@ -62232,6 +62232,10 @@ export interface components {
62232
62232
  keywords: components["schemas"]["AdminGoogleAdsFiguresPage"];
62233
62233
  /** @description The only things the owner decides (at most 50). */
62234
62234
  needs_you: components["schemas"]["AdminGoogleAdsFinding"][];
62235
+ /** @description HOUSE-OWNER-CLICK (owner answer 2026-11-08): true only when the caller is the platform owner (`ZINN_PLATFORM_OWNER_USER_ID`) signed in interactively on the admin console client (not an API key, an MCP token, an impersonation session or another client's token). Only his own Apply / Dismiss sends a change to the house account, exactly one change per click; the console shows the Approve button to him alone. True even when his sign-in is not fresh: the click then answers 403 `STEP_UP_REQUIRED` and he signs in again with his second factor. */
62236
+ owner_can_approve: boolean;
62237
+ /** @description HOUSE-OWNER-CLICK FIX r5: ids of the findings whose owner click got no reply from Google (outcome unknown) and is not yet settled by a read of the account. The console shows staff a "still checking" note on each; the owner's click on one answers 409 `refusal.googleAds.outcomeChecking` and sends nothing, with no time limit, until a read (his next click or the house audit) settles it. Never re-sent on its own. */
62238
+ owner_click_checking?: string[];
62235
62239
  /** @description The owner's own budgets (L72, docs/1003 §9.4d), newest first, at most 20. While one is `active` or `awaiting` no autopilot step changes that campaign's budget (ceiling trim, auto-scale, shift, re-balances, a push test's steering or end-of-test revert). A dated `test` does not drop by itself; on its end date it becomes `awaiting` with a verdict and stays until the owner answers. */
62236
62240
  owner_decisions?: {
62237
62241
  /**
@@ -127777,6 +127781,7 @@ export interface operations {
127777
127781
  401: components["responses"]["Unauthorized"];
127778
127782
  403: components["responses"]["Forbidden"];
127779
127783
  404: components["responses"]["NotFound"];
127784
+ 409: components["responses"]["Conflict"];
127780
127785
  422: components["responses"]["UnprocessableEntity"];
127781
127786
  429: components["responses"]["TooManyRequests"];
127782
127787
  503: components["responses"]["ServiceUnavailable"];
@@ -127807,6 +127812,7 @@ export interface operations {
127807
127812
  401: components["responses"]["Unauthorized"];
127808
127813
  403: components["responses"]["Forbidden"];
127809
127814
  404: components["responses"]["NotFound"];
127815
+ 409: components["responses"]["Conflict"];
127810
127816
  422: components["responses"]["UnprocessableEntity"];
127811
127817
  429: components["responses"]["TooManyRequests"];
127812
127818
  503: components["responses"]["ServiceUnavailable"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1683",
3
+ "version": "0.1.1688",
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>",