@zinn-digital/sdk 0.1.1536 → 0.1.1540

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.
@@ -17625,7 +17625,7 @@ export interface paths {
17625
17625
  head?: never;
17626
17626
  /**
17627
17627
  * Set the customer's own AI Max guard rules; a rule sent as null is Reset to recommended (za-204).
17628
- * @description Gated on `ads.manage` and written to the organisation's activity log. `rules` is merged over the stored rules; a key sent as `null` returns to its Recommended value and `"rules": null` resets every rule. A number outside `bounds` refuses with `badLimit` naming the field.
17628
+ * @description Gated on `ads.manage` and written to the organisation's activity log. `rules` is merged over the stored rules; a key sent as `null` returns to its Recommended value and `"rules": null` resets every rule. A number outside `bounds` refuses with `badAiMaxRule` naming the field.
17629
17629
  */
17630
17630
  patch: operations["updateAdsAiMaxRules"];
17631
17631
  trace?: never;
@@ -19096,7 +19096,7 @@ export interface paths {
19096
19096
  head?: never;
19097
19097
  /**
19098
19098
  * Change the feed audit's settings (za-188).
19099
- * @description Gated on `ads.manage`; audit action `ads.merchant_feed_update`. `mode` `off` stops the audit; `waste_threshold_micros` `null` resets the waste threshold to Recommended; `store_id` is the Microsoft Merchant Center store (digits). Refusals: `badState` (an unknown field, mode or store id), `badLimit` (a threshold that is not a positive whole number of micros), `platformNotSupported` (a network with no Shopping feed).
19099
+ * @description Gated on `ads.manage`; audit action `ads.merchant_feed_update`. `mode` `off` stops the audit; `waste_threshold_micros` `null` resets the waste threshold to Recommended; `store_id` is the Microsoft Merchant Center store (digits). Refusals: `badState` (an unknown field, mode or store id), `badFeedSetting` (a threshold that is not a positive whole number of micros), `platformNotSupported` (a network with no Shopping feed).
19100
19100
  */
19101
19101
  patch: operations["updateAdsMerchantFeed"];
19102
19102
  trace?: never;
@@ -20001,7 +20001,7 @@ export interface paths {
20001
20001
  head?: never;
20002
20002
  /**
20003
20003
  * The account's own Quality Score fixer values (QSFIX, za-N11).
20004
- * @description Gated on `ads.manage`; audit action `ads.qs_fix_settings`. Each value is the customer's to set; `null` puts it back to the recommended value. `422 badLimit` (naming the field) outside the bounds shown on `GET`, for a value that is not a whole number, or for an unknown field.
20004
+ * @description Gated on `ads.manage`; audit action `ads.qs_fix_settings`. Each value is the customer's to set; `null` puts it back to the recommended value. `422 badQsFixSetting` (naming the field) outside the bounds shown on `GET`, for a value that is not a whole number, or for an unknown field.
20005
20005
  */
20006
20006
  patch: operations["updateAdsQualityScoreSettings"];
20007
20007
  trace?: never;
@@ -20331,7 +20331,7 @@ export interface paths {
20331
20331
  get: operations["getAdsSeasonalPlanner"];
20332
20332
  /**
20333
20333
  * Edit the seasonal planner's thresholds or mode, or reset them to Recommended.
20334
- * @description Gated on `ads.manage`; audit action `ads.seasonal_settings`. `settings` keys: `peak_pct`, `quiet_pct`, `lead_days`, `budget_max_pct`, `min_history_months`, `min_clicks`, `bid_days`, `bid_min_change_pct`, `bid_min_conversions`; `null` sets one back to Recommended. `mode` `suggest` or `off`. `reset: true` sets every one back to Recommended. A value outside its bounds is refused `refusal.adsconnect.badLimit`.
20334
+ * @description Gated on `ads.manage`; audit action `ads.seasonal_settings`. `settings` keys: `peak_pct`, `quiet_pct`, `lead_days`, `budget_max_pct`, `min_history_months`, `min_clicks`, `bid_days`, `bid_min_change_pct`, `bid_min_conversions`; `null` sets one back to Recommended. `mode` `suggest` or `off`. `reset: true` sets every one back to Recommended. A value outside its bounds is refused `refusal.adsconnect.badSeasonalSetting`.
20335
20335
  */
20336
20336
  put: operations["setAdsSeasonalPlanner"];
20337
20337
  post?: never;
@@ -48571,7 +48571,7 @@ export interface paths {
48571
48571
  put?: never;
48572
48572
  /**
48573
48573
  * One-click sign-in to the application installed on a site.
48574
- * @description Mints a single-use, ~2-minute sign-in link for the site's application administrator (AbanteCart, Concrete CMS, Craft, Dolibarr, Drupal, Joomla, Matomo, Mautic, MediaWiki, MODX, Moodle, Nextcloud, OpenCart, osTicket, ownCloud, phpBB, Piwigo, Silverstripe, SuiteCRM and Zenphoto; `can_sign_in` on `getSiteApplicationAccess` says which, and docs/139 §6a says why the others have none — PrestaShop and TYPO3 are withheld until re-proven). The token is signed with a key derived for this site alone and is checked, spent and exchanged for the application's own session by `zinn-login.php` on the site (docs/139 §"One-click sign-in"). Before minting, the platform makes sure that file and the site's key are on the server (idempotent). Requires `sites.view` and `sites.panel_access` in the site's organisation, like the password reveal. Each link is audit-logged as `site.application_sign_in` with the real actor, before it is returned. Refusals carry a `code` in `details[].code` (field `site`): `APP_SSO_UNSUPPORTED` (409, no sign-in for this application), `SITE_NOT_SERVING` (409), `PLATFORM_CANNOT_SSO` (422, the hosting platform has no shell), `REPAIR_FAILED` (503, the sign-in could not be prepared on the server); none of them writes an audit row.
48574
+ * @description Mints a single-use, ~2-minute sign-in link for the site's application administrator (AbanteCart, Concrete CMS, Craft, Dolibarr, Drupal, Joomla, Matomo, Mautic, MediaWiki, MODX, Moodle, Nextcloud, OpenCart, osTicket, ownCloud, Payload, phpBB, Piwigo, PrestaShop, Silverstripe, Strapi, SuiteCRM, TYPO3 and Zenphoto; `can_sign_in` on `getSiteApplicationAccess` says which, and docs/139 §6a says why the others have none). The token is signed with a key derived for this site alone and is checked, spent and exchanged for the application's own session by `zinn-login.php` on the site (docs/139 §"One-click sign-in"). For a Node application (Strapi, Payload) the URL is `https://<domain>/zinn-login#t=<token>`: the token is in the fragment, which the browser never sends to a server, and the page at `/zinn-login` posts it. A Node site deployed before that page existed has its managed startup file brought up to date and its application restarted by this call (only when the file changed; never by the hourly converge), so the first click on such a site can take a little longer. Before minting, the platform makes sure that file and the site's key are on the server (idempotent). Requires `sites.view` and `sites.panel_access` in the site's organisation, like the password reveal. Each link is audit-logged as `site.application_sign_in` with the real actor, before it is returned. Refusals carry a `code` in `details[].code` (field `site`): `APP_SSO_UNSUPPORTED` (409, no sign-in for this application), `SITE_NOT_SERVING` (409), `PLATFORM_CANNOT_SSO` (422, the hosting platform has no shell), `REPAIR_FAILED` (503, the sign-in could not be prepared on the server); none of them writes an audit row.
48575
48575
  */
48576
48576
  post: operations["signInSiteApplication"];
48577
48577
  delete?: never;
@@ -58904,6 +58904,7 @@ export interface components {
58904
58904
  /** Format: date-time */
58905
58905
  updated_at: string | null;
58906
58906
  };
58907
+ /** @description A refused setting is named in its own words (VERIFY-OFFERFIT): each field's `422` code is the one whose copy names that setting (`badOfferProfile`, `badPacingSetting`, `badCtaWords`, …); only the new-country fields keep `badLimit`. */
58907
58908
  AdminAdsConnectionUpdate: {
58908
58909
  ceiling_currency?: string;
58909
58910
  /** Format: int64 */
@@ -64085,6 +64086,14 @@ export interface components {
64085
64086
  new_country_min_clicks: number;
64086
64087
  /** @description The trigger — conversions the country brought in 30 days. */
64087
64088
  new_country_min_conversions: number;
64089
+ /** @description OFFERFIT (docs/1006.d/features/za-261-offerfit.md): per Google campaign id, what the campaign sells. `auto` is the profile the daily audit read from its ads, keywords and landing pages (null until the first audit); `edit` is the customer's own words, which win when present. Every search and own keyword is judged against the profile in force: a search judged off it is blocked EXACT from its first click, an off-offer keyword, a tighter match type and a PHRASE negative are one-click proposals. */
64090
+ offer_profiles: {
64091
+ [key: string]: {
64092
+ auto: null | components["schemas"]["AdsOfferProfile"];
64093
+ edit: null | components["schemas"]["AdsOfferProfileEdit"];
64094
+ edited: boolean;
64095
+ };
64096
+ };
64088
64097
  /** Format: uuid */
64089
64098
  org_id: string;
64090
64099
  /** @description za-199 — the most one pacing run changes a budget, percent (default 30). */
@@ -65656,7 +65665,7 @@ export interface components {
65656
65665
  /** @description The plain English sentence the daily e-mail carries. */
65657
65666
  why: string;
65658
65667
  };
65659
- /** @description BUILDL3 (gap a) — one account can sell two kinds of thing (hosting judged on a real domain going live, plugins on installs), so a campaign can carry its own `business_type` and/or `signals` (the `AdsLadderSignals` shape); the account's choice fills whatever it does not set, and a campaign not listed follows the account. Keyed by the network's campaign id (digits), at most 500; an empty entry is dropped. `422 badLimit` otherwise. */
65668
+ /** @description BUILDL3 (gap a) — one account can sell two kinds of thing (hosting judged on a real domain going live, plugins on installs), so a campaign can carry its own `business_type` and/or `signals` (the `AdsLadderSignals` shape); the account's choice fills whatever it does not set, and a campaign not listed follows the account. Keyed by the network's campaign id (digits), at most 500; an empty entry is dropped. `422 badLadderSetting` otherwise. */
65660
65669
  AdsCampaignLadder: {
65661
65670
  [key: string]: {
65662
65671
  business_type?: components["schemas"]["AdsBusinessType"];
@@ -66001,13 +66010,13 @@ export interface components {
66001
66010
  business_type?: components["schemas"]["AdsBusinessType"];
66002
66011
  campaign_ladder?: components["schemas"]["AdsCampaignLadder"];
66003
66012
  ceiling_currency?: string;
66004
- /** @description WASTEFIX r3 — the customer's own cluster size; null = back to the recommended 5. Out of range is `422 badLimit`. */
66013
+ /** @description WASTEFIX r3 — the customer's own cluster size; null = back to the recommended 5. Out of range is `422 badWasteSetting`. */
66005
66014
  cluster_min_terms?: number | null;
66006
66015
  /** @enum {string} */
66007
66016
  collision_mode?: "approve" | "refuse";
66008
66017
  competitor_automation?: boolean;
66009
66018
  conversion_lag_days?: number | null;
66010
- /** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422 badLimit`. */
66019
+ /** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422 badCountryCutSetting`. */
66011
66020
  country_cut_keep?: string[];
66012
66021
  country_cut_on?: boolean;
66013
66022
  country_cut_rate_pct?: number;
@@ -66017,15 +66026,15 @@ export interface components {
66017
66026
  country_cut_window_days?: number;
66018
66027
  /** @enum {string} */
66019
66028
  country_waste_mode?: "auto" | "suggest" | "off";
66020
- /** @description Trimmed and de-duplicated; more than 10 or one over 60 characters is `422 badLimit`. */
66029
+ /** @description Trimmed and de-duplicated; more than 10 or one over 60 characters is `422 badCtaWords`. */
66021
66030
  cta_words?: string[];
66022
66031
  /** Format: int64 */
66023
66032
  daily_ceiling_minor?: number | null;
66024
- /** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422 badLimit`. */
66033
+ /** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422 badExcludedCountries`. */
66025
66034
  excluded_countries?: string[];
66026
66035
  /** @description ADSFOCUS-GUARD (za-258) — the customer's own floor of account conversions for the campaign-focus switch; null = back to the recommended 15. Out of range is `422 badLimit`. */
66027
66036
  focus_min_conversions?: number | null;
66028
- /** @description za-251: Google campaign ids whose product has a free plan / free listing (replaces the list; digits only, de-duplicated). Anything else is `422 badLimit`. */
66037
+ /** @description za-251: Google campaign ids whose product has a free plan / free listing (replaces the list; digits only, de-duplicated). Anything else is `422 badFreePlanCampaigns`. */
66029
66038
  free_plan_campaigns?: string[];
66030
66039
  hold_until_sale?: boolean;
66031
66040
  label?: string;
@@ -66041,6 +66050,10 @@ export interface components {
66041
66050
  new_country_max_per_month?: number;
66042
66051
  new_country_min_clicks?: number;
66043
66052
  new_country_min_conversions?: number;
66053
+ /** @description OFFERFIT: `{campaign_id: profile | null}` — the customer's own words for what a campaign sells (`sells` required, up to 20 items of 120 characters each); `null` resets it to the automatic profile. Campaigns not named are unchanged. No `sells` is `422 badOfferProfile` (field `offer_profile.sells`). */
66054
+ offer_profiles?: {
66055
+ [key: string]: null | components["schemas"]["AdsOfferProfileEdit"];
66056
+ };
66044
66057
  pacing_change_cap_pct?: number;
66045
66058
  pacing_deviation_pct?: number;
66046
66059
  pacing_minimums?: {
@@ -66064,7 +66077,7 @@ export interface components {
66064
66077
  rsa_test_min_days?: number;
66065
66078
  rsa_test_min_impressions?: number;
66066
66079
  rsa_tests?: boolean;
66067
- /** @description IPROTATE (za-59). null = recommended. `422 badLimit` outside the bounds. */
66080
+ /** @description IPROTATE (za-59). null = recommended. `422 badShieldSetting` outside the bounds. */
66068
66081
  shield_min_clicks?: number | null;
66069
66082
  shield_stale_days?: number | null;
66070
66083
  shield_waste_min_clicks?: number | null;
@@ -66078,7 +66091,7 @@ export interface components {
66078
66091
  tidy_paused_mode?: "auto" | "suggest";
66079
66092
  /**
66080
66093
  * Format: int64
66081
- * @description WASTEFIX r3 — the customer's own waste threshold (minor units of the account currency); null = back to the recommended value. Out of range is `422 badLimit`.
66094
+ * @description WASTEFIX r3 — the customer's own waste threshold (minor units of the account currency); null = back to the recommended value. Out of range is `422 badWasteSetting`.
66082
66095
  */
66083
66096
  waste_threshold_minor?: number | null;
66084
66097
  };
@@ -66957,7 +66970,7 @@ export interface components {
66957
66970
  share?: components["schemas"]["AdsInsightReading"] | null;
66958
66971
  tracking: components["schemas"]["AdsInsightReading"];
66959
66972
  };
66960
- /** @description BUILDL2 (za-153) — the customer's own choice of signal per stage: `"1"` (sign-up / lead), `"2"` (activation / qualified), `"3"` (paid) → conversion action resource names (`customers/<id>/conversionActions/<id>`), at most 50 each, an action on one stage only; a stage left out follows the business type. `422 badLimit` otherwise. */
66973
+ /** @description BUILDL2 (za-153) — the customer's own choice of signal per stage: `"1"` (sign-up / lead), `"2"` (activation / qualified), `"3"` (paid) → conversion action resource names (`customers/<id>/conversionActions/<id>`), at most 50 each, an action on one stage only; a stage left out follows the business type. `422 badLadderSetting` otherwise. */
66961
66974
  AdsLadderSignals: {
66962
66975
  [key: string]: string[];
66963
66976
  };
@@ -67405,6 +67418,21 @@ export interface components {
67405
67418
  };
67406
67419
  /** @enum {string} */
67407
67420
  AdsOfferingKind: "website" | "product" | "service" | "app" | "location" | "event" | "lead_form" | "affiliate_offer" | "other";
67421
+ /** @description OFFERFIT — the automatic profile the audit read for one campaign. */
67422
+ AdsOfferProfile: {
67423
+ edited: boolean;
67424
+ not_sells: string[];
67425
+ rivals: string[];
67426
+ sells: string[];
67427
+ summary: string;
67428
+ };
67429
+ /** @description OFFERFIT — a customer's own profile of what one campaign sells. */
67430
+ AdsOfferProfileEdit: {
67431
+ not_sells?: string[];
67432
+ rivals?: string[];
67433
+ sells: string[];
67434
+ summary?: string;
67435
+ };
67408
67436
  /** @description za-191 / za-N3 (docs/1006 §78): paid beside organic for one Google Ads account, and the saver's thresholds. */
67409
67437
  AdsOrganic: {
67410
67438
  /** @description `[min, max]` per numeric threshold. */
@@ -73627,6 +73655,7 @@ export interface components {
73627
73655
  expires_at: string;
73628
73656
  /**
73629
73657
  * Format: uri
73658
+ * @description `https://<domain>/zinn-login.php?t=<token>` for a PHP application; `https://<domain>/zinn-login#t=<token>` (fragment) for Strapi and Payload.
73630
73659
  * @example https://cloud.example.com/zinn-login.php?t=eyJ2IjoxfQ.c2ln
73631
73660
  */
73632
73661
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1536",
3
+ "version": "0.1.1540",
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>",