@zinn-digital/sdk 0.1.1618 → 0.1.1621

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.
@@ -18164,7 +18164,7 @@ export interface paths {
18164
18164
  put?: never;
18165
18165
  /**
18166
18166
  * Record the customer's own budget for one campaign (za-84).
18167
- * @description Gated on `ads.manage`; audit action `ads.own_budget_record`. The campaign is read from Google Ads now: it must exist and have a budget of its own. `kind` `budget` stays until the customer changes it (no `ends_on`); `test` runs 7 to 90 days and on `ends_on` becomes ONE question (keep, or go back) — the amount stays until answered. Starting today (default), an earlier decision on the campaign ends and, when Google does not already hold the amount, the budget change is proposed and approved together (recording it is the approval) and sent by the apply workflow through the account's gate (kill switches, good standing, spend ceilings); `change` is that change. Dated up to 90 days ahead (`starts_on`), nothing is written until its day. While in force no automatic budget change moves the campaign. Refusals (`422`): `ownBudgetGoogleOnly`, `ownBudgetBadRequest`, `ownBudgetNoSuchCampaign`, `ownBudgetShared`, `ownBudgetReadFailed`.
18167
+ * @description Gated on `ads.manage`; audit action `ads.own_budget_record`. The campaign is read from Google Ads now: it must exist and have a budget of its own. `kind` `budget` stays until the customer changes it (no `ends_on`); `test` runs 7 to 90 days and on `ends_on` becomes ONE question (keep, or go back) — the amount stays until answered. Starting today (default), an earlier decision on the campaign ends and, when Google does not already hold the amount, the budget change is proposed and approved together (recording it is the approval) and sent by the apply workflow through the account's gate (kill switches, good standing, spend ceilings); `change` is that change. Dated up to 90 days ahead (`starts_on`), nothing is written until its day. While in force no automatic budget change moves the campaign. Refusals (`422`): `ownBudgetGoogleOnly`, `ownBudgetBadRequest`, `ownBudgetNoSuchCampaign`, `ownBudgetShared`, `ownBudgetReadFailed`; `decisionPinned` / `decisionHeld` when the campaign is pinned or held and the caller is not a person (an API key or an MCP connection): only a signed-in person's decision moves such a campaign, and nothing is recorded (GATE-PERSON).
18168
18168
  */
18169
18169
  post: operations["recordAdsBudgetDecision"];
18170
18170
  delete?: never;
@@ -48403,6 +48403,29 @@ export interface paths {
48403
48403
  patch?: never;
48404
48404
  trace?: never;
48405
48405
  };
48406
+ "/v1/site-blueprints/{siteBlueprintId}/title-suggestion": {
48407
+ parameters: {
48408
+ query?: never;
48409
+ header?: never;
48410
+ path: {
48411
+ /** @description A SITE blueprint's id (UUIDv7) — one of the customer's own captured sites. ⛔ Not a `blueprintId`: that names a published stack recipe, and the two are different resources that unfortunately share a word. */
48412
+ siteBlueprintId: components["parameters"]["SiteBlueprintId"];
48413
+ };
48414
+ cookie?: never;
48415
+ };
48416
+ /**
48417
+ * A fresh site title and tagline for a copy of this blueprint.
48418
+ * @description ⛔⛔ A copy never keeps the original site's title or tagline: on a footprint-free network one title across many sites links them. The deploy form and the create-site wizard pre-fill from this, and the customer can change both before deploying. The title is one no copy in the blueprint's account already has. A read; nothing is reserved, so send the values back in the deploy (`site_title`, `tagline`). Leaving them out of the deploy has the same effect: the copy is given a fresh pair. Requires `sites.view`.
48419
+ */
48420
+ get: operations["getSiteBlueprintTitleSuggestion"];
48421
+ put?: never;
48422
+ post?: never;
48423
+ delete?: never;
48424
+ options?: never;
48425
+ head?: never;
48426
+ patch?: never;
48427
+ trace?: never;
48428
+ };
48406
48429
  "/v1/site-cache-health/ingest": {
48407
48430
  parameters: {
48408
48431
  query?: never;
@@ -66508,7 +66531,7 @@ export interface components {
66508
66531
  decided_by: string;
66509
66532
  /** @description za-104: the reason given with the decision. An agency's client must give one to reject on the approval portal; `decided_by` then reads `client-portal:<link id>:<the name they typed>`. Empty otherwise. */
66510
66533
  decision_reason?: string;
66511
- /** @description Why the change was not sent, its CODE leading (`ceiling`, `killed`, `paused`, `disconnected`, `standing: …`, `needsReconnect`, `adBelowGood`, `xWritesOff`, za-70 `collides` — the collision simulator found what `summary.collision` names — or `collisionUnread` — the account could not be read for the replay — and za-10 `convertingSearch: …` — a negative keyword that would block a search with a conversion in the last 30 days, refused at the send even when a person approved it; SERVEWATCH `strategyStarves` — a bid-strategy switch whose ceiling or bids cannot win most of the campaign's searches against Google's own top-of-page estimates, refused whoever asked, its figures in `summary.serving_check`; za-327 `ceilingAboveLine` — a CPC ceiling above max(2x the 30-day average CPC, the top-of-page estimate) or above the break-even CPC, refused whoever asked, its figures in `summary.ceiling_check`; UNDOSTRAT, on an APPLIED change whose Undo puts a bid strategy back: `killed` · `paused` · `standing` · `strategyStarves` followed by `: undo refused` — the restore passes the kill switch, good standing and the same simulation — and `undoReadBackDiffers: <campaigns>`, the strategy Google read back after the Undo is not `summary.bidding_before`, so the change stays applied and its Undo can be sent again); otherwise the network's own sentence. Empty when nothing went wrong. */
66534
+ /** @description Why the change was not sent, its CODE leading (`ceiling`, `killed`, `paused`, `holdReleased` — GATE-PERSON r10: kept for a person while its campaign was held, and the hold was released, so the automatic path makes it instead — `disconnected`, `standing: …`, `needsReconnect`, `adBelowGood`, `xWritesOff`, za-70 `collides` — the collision simulator found what `summary.collision` names — or `collisionUnread` — the account could not be read for the replay — and za-10 `convertingSearch: …` — a negative keyword that would block a search with a conversion in the last 30 days, refused at the send even when a person approved it; SERVEWATCH `strategyStarves` — a bid-strategy switch whose ceiling or bids cannot win most of the campaign's searches against Google's own top-of-page estimates, refused whoever asked, its figures in `summary.serving_check`; za-327 `ceilingAboveLine` — a CPC ceiling above max(2x the 30-day average CPC, the top-of-page estimate) or above the break-even CPC, refused whoever asked, its figures in `summary.ceiling_check`; UNDOSTRAT, on an APPLIED change whose Undo puts a bid strategy back: `killed` · `paused` · `standing` · `strategyStarves` followed by `: undo refused` — the restore passes the kill switch, good standing and the same simulation — and `undoReadBackDiffers: <campaigns>`, the strategy Google read back after the Undo is not `summary.bidding_before`, so the change stays applied and its Undo can be sent again); otherwise the network's own sentence. Empty when nothing went wrong. */
66512
66535
  error: string;
66513
66536
  /** Format: uuid */
66514
66537
  id: string;
@@ -66519,7 +66542,7 @@ export interface components {
66519
66542
  /** @description Who proposed the change: who stored it (`user:<id>`, `autopilot`, `mcp:<id>`, `apikey:<id>`, …) — except a member of our staff, who reads `support` and never their id (VERIFY-ADSACTOR: an impersonated write is recorded as the staff member); a reseller's sign-in into this account (`apikey:<reseller key>` or the reseller's own `user:<id>`) reads the reseller's display name — `support` when that actor's sign-ins reach the clients of more than one parent, or its org is gone (ACTORS7, VERIFY-ACTORS7). */
66520
66543
  proposed_by: string;
66521
66544
  status: components["schemas"]["AdsChangeStatus"];
66522
- /** @description What the change does, for the card. SERVEWATCH adds `serving_check` (a bid-strategy switch simulated before the send: `verdict` ok · unknown · starves, `strategy`, `reason`, `ceiling_micros`, `need_micros`, `reach_pct` of the searches the ceiling can win, `raise_to_micros`, `fix`), `restores_served` (a serving-watch revert of the change that stopped a campaign) and `converting_removal` (a removal of campaigns that produced `share_pct`% of the account's results in 30 days: `campaigns`, `share_pct`, `conversions` — an automatic one waits for a person). za-327 adds `ceiling_check` (a CPC ceiling judged before the send against the campaign's measured 30-day average CPC, the top-of-page estimate and the break-even CPC, target CPA x conversion rate: `verdict` ok · refuse · notJudged, `kind` maxClicks · targetImpressionShare · manualCpc · microsoftMaxCpc · microsoftKeywordBid, `ceiling_micros`, `avg_cpc_micros`, `top_micros`, `break_even_micros`, `line_micros` the owner row's line max(2x average CPC, top-of-page high) rounded down to the currency's billable unit, `suggest_micros` the priced fix (0 when no ceiling of one billable unit passes), `cut_micros` what it takes off the most a click costs, `no_fix` true when no ceiling passes (pause the campaign or raise its target), `strategy_id` the portfolio bid strategy whose ceiling it is, `reasons` aboveAverage · aboveTopOfPage · aboveBreakEven · noData · unreadable, `notes` accountFigures (a Microsoft keyword judged on the whole account: its campaign could not be read) · placementUnreadable (a Target impression share ceiling held to break-even: its placement could not be read) — refused above the line or above break-even; also kept on a change that was SENT (an automatic one, or one a person approved) when it was not judged or carries a note; an Undo or serving-watch revert that raises a ceiling is judged too). UNDOSTRAT adds `bidding_before` on a change that alters a campaign's bidding: one entry per campaign (`resource`, `type` the bidding strategy type, `portfolio` a portfolio strategy's resource or `settings` the strategy's own values — `location`, `locationFractionMicros`, `cpcBidCeilingMicros`, `cpcBidFloorMicros`, `targetCpaMicros`, `targetRoas`, `enhancedCpcEnabled`), read before the send. Its Undo restores exactly that, and is marked undone only when Google reads it back. za-323 adds `keywordSanity`: the keywords the keyword sanity gate took out of the request, each `{text, code}` with `code` keywordFragment (only stopwords, comparison or generic words) · keywordOneWord (a phrase or broad keyword with fewer than two meaningful words and no name the account knows) · keywordRivalNotName (a keyword about a rival with no rival named). A refused change's `error` leads with the same code. */
66545
+ /** @description What the change does, for the card. SERVEWATCH adds `serving_check` (a bid-strategy switch simulated before the send: `verdict` ok · unknown · starves, `strategy`, `reason`, `ceiling_micros`, `need_micros`, `reach_pct` of the searches the ceiling can win, `raise_to_micros`, `fix`), `restores_served` (a serving-watch revert of the change that stopped a campaign) and `converting_removal` (a removal of campaigns that produced `share_pct`% of the account's results in 30 days: `campaigns`, `share_pct`, `conversions` — an automatic one waits for a person). za-327 adds `ceiling_check` (a CPC ceiling judged before the send against the campaign's measured 30-day average CPC, the top-of-page estimate and the break-even CPC, target CPA x conversion rate: `verdict` ok · refuse · notJudged, `kind` maxClicks · targetImpressionShare · manualCpc · microsoftMaxCpc · microsoftKeywordBid, `ceiling_micros`, `avg_cpc_micros`, `top_micros`, `break_even_micros`, `line_micros` the owner row's line max(2x average CPC, top-of-page high) rounded down to the currency's billable unit, `suggest_micros` the priced fix (0 when no ceiling of one billable unit passes), `cut_micros` what it takes off the most a click costs, `no_fix` true when no ceiling passes (pause the campaign or raise its target), `strategy_id` the portfolio bid strategy whose ceiling it is, `reasons` aboveAverage · aboveTopOfPage · aboveBreakEven · noData · unreadable, `notes` accountFigures (a Microsoft keyword judged on the whole account: its campaign could not be read) · placementUnreadable (a Target impression share ceiling held to break-even: its placement could not be read) — refused above the line or above break-even; also kept on a change that was SENT (an automatic one, or one a person approved) when it was not judged or carries a note; an Undo or serving-watch revert that raises a ceiling is judged too). UNDOSTRAT adds `bidding_before` on a change that alters a campaign's bidding: one entry per campaign (`resource`, `type` the bidding strategy type, `portfolio` a portfolio strategy's resource or `settings` the strategy's own values — `location`, `locationFractionMicros`, `cpcBidCeilingMicros`, `cpcBidFloorMicros`, `targetCpaMicros`, `targetRoas`, `enhancedCpcEnabled`), read before the send. Its Undo restores exactly that, and is marked undone only when Google reads it back. za-323 adds `keywordSanity`: the keywords the keyword sanity gate took out of the request, each `{text, code}` with `code` keywordFragment (only stopwords, comparison or generic words) · keywordOneWord (a phrase or broad keyword with fewer than two meaningful words and no name the account knows) · keywordRivalNotName (a keyword about a rival with no rival named). A refused change's `error` leads with the same code. GATE-PERSON r4 adds `about` `{campaign, keyword}`: the campaign or keyword the change was proposed about (a budget or keyword criterion does not name it), so an approval by an API key or MCP is still bound by a pin or hold set after it was queued (`error` `decisionPinned` / `decisionHeld`, or `decisionUnread` when the campaigns a budget serves could not be read). GATE-PERSON r5: a Microsoft, X, Meta or ChatGPT budget or bid change that names no campaign the pins and holds can see, approved by an API key or MCP while anything is pinned or held, is refused `decisionUnread` too. GATE-PERSON r6: a Google bid change that names an ad group, an ad group criterion or bid modifier, or a portfolio bid strategy is judged on the campaigns read as serving it (`decisionPinned` / `decisionHeld`); unreadable, or naming no campaign at all, is refused `decisionUnread`. GATE-PERSON r7: while anything is held, a change of any other kind (keyword, negative, ad, asset, pause) that names only an ad group or something in one is judged on that ad group's campaign the same way (`decisionHeld` / `decisionUnread`). GATE-PERSON r8: while anything is held, a change naming a shared set (a shared negative list entry, the set, the account-level list's link), automatic or approved by an API key or MCP, is judged on every campaign the set reaches (`decisionHeld` / `decisionUnread`). GATE-PERSON r9: every resource resolves to its campaign first — a Performance Max asset group and anything in one, a budget, a strategy; a kind with no campaign (an account-level asset, conversion goal, negative list unlink, experiment promote) reaches every held campaign. A Microsoft shared negative list associated with a held campaign takes no item. Only a person's approval or Apply passes. An AUTOMATIC change to a shared list that reaches a held campaign (the za-333 sync) is kept `pending` for a person instead of refused, with `summary.heldForPerson` `{code: decisionHeld, campaign_id}`. GATE-PERSON r10: an ad (`ads/<id>`) is read to its campaign; an AUTOMATIC ad change (final URL, display path, status) reaching a held campaign is kept `pending` the same way, and one elsewhere is sent. An existing asset's update reaches every held campaign. When the customer releases the hold, a change still kept for a person on that campaign is closed `refused` with `error` `holdReleased` (the next audit makes the change itself). */
66523
66546
  summary: {
66524
66547
  [key: string]: unknown;
66525
66548
  };
@@ -70887,6 +70910,8 @@ export interface components {
70887
70910
  copies_removed?: number;
70888
70911
  /** @description Entries on the list as read */
70889
70912
  entries?: number;
70913
+ /** @description The held campaign a `decisionHeld` step waits on a person for (empty otherwise). */
70914
+ held_campaign?: string;
70890
70915
  /** @description Linked to the account (Google) or every campaign (Microsoft). */
70891
70916
  linked?: boolean;
70892
70917
  list_name?: string;
@@ -70894,7 +70919,7 @@ export interface components {
70894
70919
  /** @enum {string} */
70895
70920
  network: "google" | "microsoft";
70896
70921
  present?: string[];
70897
- /** @description Why a step did not go out — `accountListFull`, a refusal code such as `notInGoodStanding`, `killed` or `notAutomatic`, `unreadBack`, or `vendor`. */
70922
+ /** @description Why a step did not go out — `accountListFull`, a refusal code such as `notInGoodStanding`, `killed` or `notAutomatic`, `unreadBack`, or `vendor`. With `waiting_approval`, `decisionHeld` means the step waits for a PERSON because the list covers a campaign the customer holds (`held_campaign`); a person's approve of `change_ids[0]` sends it, an API key's or MCP's approval is refused (GATE-PERSON r9). */
70898
70923
  reason?: string;
70899
70924
  /** @description Terms left off because they would block a keyword (or a search that converted). */
70900
70925
  skipped?: {
@@ -102988,13 +103013,21 @@ export interface components {
102988
103013
  /** @description Why it failed, or — after a successful restore whose URL rewrite did not take — what still needs attention. Rendered to the customer verbatim. */
102989
103014
  message?: string;
102990
103015
  site_id: components["schemas"]["Uuid"];
103016
+ /** @description The copy's WordPress site title: the one typed at deploy, or the fresh one it was given. Empty until the copy step has run, and on a redeploy onto the original site. */
103017
+ site_title?: string;
102991
103018
  /** Format: date-time */
102992
103019
  started_at?: string | null;
102993
103020
  status: components["schemas"]["SiteBlueprintDeployStatus"];
103021
+ /** @description The copy's WordPress tagline, as for `site_title`. */
103022
+ tagline?: string;
102994
103023
  };
102995
103024
  SiteBlueprintDeployRequest: {
102996
103025
  /** @description The SITE blueprint to deploy. ⛔ Always named explicitly — never "the latest". This overwrites a live site. */
102997
103026
  blueprint_id: components["schemas"]["Uuid"];
103027
+ /** @description The copy's WordPress site title, one line. Blank or omitted means a fresh one is chosen (`getSiteBlueprintTitleSuggestion`). ⛔ A copy never keeps the original site's title or tagline, which would link the sites. */
103028
+ site_title?: string;
103029
+ /** @description The copy's WordPress tagline, one line. Blank or omitted means a fresh one is chosen. */
103030
+ tagline?: string;
102998
103031
  };
102999
103032
  /**
103000
103033
  * @description ⭐ `waiting` is a real state and not a synonym for `pending`. A deploy started from the create form cannot restore anything until the new site has finished provisioning, which takes minutes — so the screen has to be able to say "waiting for the new site to be built" rather than showing a restore that looks stuck.
@@ -103019,6 +103052,10 @@ export interface components {
103019
103052
  * @enum {string}
103020
103053
  */
103021
103054
  SiteBlueprintStatus: "capturing" | "ready" | "failed";
103055
+ SiteBlueprintTitleSuggestion: {
103056
+ site_title: string;
103057
+ tagline: string;
103058
+ };
103022
103059
  /** @description ⛔ Omitted is not the same as empty. Omitting a field leaves it alone; sending `""` for `notes` clears it. Collapsing the two would make it impossible to clear a note, or would wipe one on every rename. */
103023
103060
  SiteBlueprintUpdate: {
103024
103061
  name?: string;
@@ -104176,9 +104213,9 @@ export interface components {
104176
104213
  runtime?: components["schemas"]["Runtime"];
104177
104214
  /** @description One of **your own** captured sites (`GET /v1/site-blueprints`) to build this one from. The new site is provisioned on that blueprint's stack and its archive is then restored onto it, so it comes up with the same content, plugins, theme and settings as the site it was captured from — and its stored web addresses are rewritten to this site's domain. ⛔ **Not the same field as `blueprint_id`**: that one names a stack recipe Zinn® publishes, this one names a template you made from a site you already built. Sending both is a `422`. When given, `source`, `stack_type` and `runtime` are all derived and must not be sent. A blueprint whose capture has not finished, or whose backup is no longer available, is a `422` at create time rather than a site that comes up empty an hour later. */
104178
104215
  site_blueprint_id?: components["schemas"]["Uuid"] | null;
104179
- /** @description The WordPress **Tagline** (`blogdescription`). Read for a WordPress stack only. Omitted or blank leaves WordPress's own tagline. */
104216
+ /** @description The WordPress **Tagline** (`blogdescription`). Read for a WordPress stack only. Omitted or blank leaves WordPress's own tagline. With `site_blueprint_id` it is the COPY's tagline, one line: omitted or blank means a fresh one is chosen. */
104180
104217
  site_tagline?: string;
104181
- /** @description The WordPress **Site Title** (V1 parity). Read for a WordPress stack only. Omitted or blank means the primary domain, as before. */
104218
+ /** @description The WordPress **Site Title** (V1 parity). Read for a WordPress stack only. Omitted or blank means the primary domain, as before. With `site_blueprint_id` it is the COPY's title instead, one line: omitted or blank means a fresh one is chosen, and ⛔ a copy never keeps the original site's title. */
104182
104219
  site_title?: string;
104183
104220
  source?: components["schemas"]["SiteSource"];
104184
104221
  stack_type?: components["schemas"]["StackType"];
@@ -196442,6 +196479,33 @@ export interface operations {
196442
196479
  429: components["responses"]["TooManyRequests"];
196443
196480
  };
196444
196481
  };
196482
+ getSiteBlueprintTitleSuggestion: {
196483
+ parameters: {
196484
+ query?: never;
196485
+ header?: never;
196486
+ path: {
196487
+ /** @description A SITE blueprint's id (UUIDv7) — one of the customer's own captured sites. ⛔ Not a `blueprintId`: that names a published stack recipe, and the two are different resources that unfortunately share a word. */
196488
+ siteBlueprintId: components["parameters"]["SiteBlueprintId"];
196489
+ };
196490
+ cookie?: never;
196491
+ };
196492
+ requestBody?: never;
196493
+ responses: {
196494
+ /** @description A suggested title and tagline. */
196495
+ 200: {
196496
+ headers: {
196497
+ [name: string]: unknown;
196498
+ };
196499
+ content: {
196500
+ "application/json": components["schemas"]["SiteBlueprintTitleSuggestion"];
196501
+ };
196502
+ };
196503
+ 401: components["responses"]["Unauthorized"];
196504
+ 403: components["responses"]["Forbidden"];
196505
+ 404: components["responses"]["NotFound"];
196506
+ 429: components["responses"]["TooManyRequests"];
196507
+ };
196508
+ };
196445
196509
  ingestSiteCacheHealth: {
196446
196510
  parameters: {
196447
196511
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1618",
3
+ "version": "0.1.1621",
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>",