@zinn-digital/sdk 0.1.1542 → 0.1.1545

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.
@@ -18316,6 +18316,28 @@ export interface paths {
18316
18316
  patch: operations["updateAdsCopyWinners"];
18317
18317
  trace?: never;
18318
18318
  };
18319
+ "/v1/ads/connections/{connection_id}/country-campaigns": {
18320
+ parameters: {
18321
+ query?: never;
18322
+ header?: never;
18323
+ path: {
18324
+ connection_id: string;
18325
+ };
18326
+ cookie?: never;
18327
+ };
18328
+ /**
18329
+ * A customer's country campaigns, and the converting countries without one (za-75).
18330
+ * @description Gated on `ads.view`. Read from the reading the connection's daily job keeps (docs/1006 COUNTRYCAMP), never a network call in the request; READ ONLY — the build (za-105), the split (za-179) and the budget raise (za-144) keep their own gates. `campaigns`: every enabled campaign whose only location is one country, with its 7-day budget, share of impressions lost to budget, spend, conversions and cost per conversion, who built it (`autopilot` — an applied new-country or country-split change, `change_id` — or `you`), and what happened about its budget (`budget_flag`, za-142: `raised`, `suggested`, `ceiling`, `recent`, `flagged`); `held_by_budget` from 50% lost to budget. `countries`: every country that converted in the last 30 days inside campaigns that are not its own, against the customer's trigger (`trigger`, set with `PATCH /v1/ads/connections/{id}`): `standing` is `proposed` (a change waits for approval), `ready` (meets the trigger; the next audit proposes it), `watching` (not yet), `monthly_limit`, `excluded` (the account excludes the country) or `off` (new-country campaigns or the Campaigns mode are off). `state` is `held`, `ready`, `ok` or `none` (no reading yet, or nothing to watch). Money in micros of the account currency. The house account answers `state: none`.
18331
+ */
18332
+ get: operations["getAdsCountryCampaigns"];
18333
+ put?: never;
18334
+ post?: never;
18335
+ delete?: never;
18336
+ options?: never;
18337
+ head?: never;
18338
+ patch?: never;
18339
+ trace?: never;
18340
+ };
18319
18341
  "/v1/ads/connections/{connection_id}/crm-sources": {
18320
18342
  parameters: {
18321
18343
  query?: never;
@@ -48375,7 +48397,7 @@ export interface paths {
48375
48397
  };
48376
48398
  /**
48377
48399
  * Read a site's automatic app updates add-on and its window.
48378
- * @description The paid automatic-updates add-on for the app the site runs (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `strapi_auto_updates` or `payload_auto_updates`, USD 29 a year per site; `nextcloud_auto_updates`, `owncloud_auto_updates`, `prestashop_auto_updates` or `magento_auto_updates`, USD 50 a year per site; s1014 row 41): whether it is on sale and on, its price in the caller's currency, the renewal, the quiet window and the last run. Each run takes a safety backup first and rolls back to it when the homepage breaks. WordPress: core, plugins and themes (a held plugin version is never applied). Joomla!: the core only, through Joomla's own console; extensions and templates are not updated. Nextcloud: the server through its own updater, then every app with an update. Drupal: the core only (the newest release of the installed major version, then its database updates); contributed modules and themes are not updated. MediaWiki: the newest stable release with its bundled extensions and skins, then its own update script; extensions the customer added are not updated. phpBB: the newest release of the installed branch with its bundled style, language and extension, then its own `db:migrate`; styles, language packs and extensions the customer added are not updated. ownCloud: the newest release of the installed major version (the complete build, with its bundled apps), then its own `occ upgrade`; apps from the ownCloud marketplace are not updated. PrestaShop: the newest stable release of the installed major version through PrestaShop's own Update Assistant (files, database and native modules); modules the customer added are kept, never uninstalled, and are not updated. Magento: the newest security patch of the installed 2.x.y line (the source release's code, its Composer lock and `setup:upgrade`); modules and themes the customer added are kept and not updated, and a store that added Composer packages is refused with nothing changed. Strapi and Payload: the newest release of the installed major from npm (every package of the app's own family on the core's version moves together), then the app's own build (`strapi build`; for Payload a schema migration when the release needs one, `payload migrate` and `next build`) and a process restart; other npm packages the customer added are kept and not updated. Buy it through `purchaseExtra` with `site_id`. Requires `sites.view`.
48400
+ * @description The paid automatic-updates add-on for the app the site runs (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `strapi_auto_updates` or `payload_auto_updates`, USD 29 a year per site; `nextcloud_auto_updates`, `owncloud_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates` or `oscommerce_auto_updates`, USD 50 a year per site; s1014 row 41): whether it is on sale and on, its price in the caller's currency, the renewal, the quiet window and the last run. Each run takes a safety backup first and rolls back to it when the homepage breaks. WordPress: core, plugins and themes (a held plugin version is never applied). Joomla!: the core only, through Joomla's own console; extensions and templates are not updated. Nextcloud: the server through its own updater, then every app with an update. Drupal: the core only (the newest release of the installed major version, then its database updates); contributed modules and themes are not updated. MediaWiki: the newest stable release with its bundled extensions and skins, then its own update script; extensions the customer added are not updated. phpBB: the newest release of the installed branch with its bundled style, language and extension, then its own `db:migrate`; styles, language packs and extensions the customer added are not updated. ownCloud: the newest release of the installed major version (the complete build, with its bundled apps), then its own `occ upgrade`; apps from the ownCloud marketplace are not updated. PrestaShop: the newest stable release of the installed major version through PrestaShop's own Update Assistant (files, database and native modules); modules the customer added are kept, never uninstalled, and are not updated. Magento: the newest security patch of the installed 2.x.y line (the source release's code, its Composer lock and `setup:upgrade`); modules and themes the customer added are kept and not updated, and a store that added Composer packages is refused with nothing changed. Strapi and Payload: the newest release of the installed major from npm (every package of the app's own family on the core's version moves together), then the app's own build (`strapi build`; for Payload a schema migration when the release needs one, `payload migrate` and `next build`) and a process restart; other npm packages the customer added are kept and not updated. osCommerce: the vendor's newest osCommerce 4 build (its code over the store's, then its own database migrations and cache rebuild); the store's configuration, images and uploads are kept, and extensions and themes the customer added are kept and not updated. Buy it through `purchaseExtra` with `site_id`. Requires `sites.view`.
48379
48401
  */
48380
48402
  get: operations["getSiteAppAutoUpdate"];
48381
48403
  /**
@@ -65080,7 +65102,7 @@ export interface components {
65080
65102
  * @description za-72 `compare_page`: a competitor ad moved onto the customer's own comparison page for its rival, under the `ads` mode.
65081
65103
  * @enum {string}
65082
65104
  */
65083
- step: "negatives" | "pauses" | "keywords" | "budgets" | "bids" | "assets" | "compare_page" | "goals" | "reach";
65105
+ step: "negatives" | "pauses" | "keywords" | "budgets" | "bids" | "assets" | "compare_page" | "goals" | "reach" | "country_campaigns";
65084
65106
  }[];
65085
65107
  };
65086
65108
  /** @description The organisation's autopilot decisions (za-166, docs/1006 §77). */
@@ -66241,6 +66263,52 @@ export interface components {
66241
66263
  winner_list: components["schemas"]["AdsCopyWinner"][];
66242
66264
  winners: number;
66243
66265
  };
66266
+ /** @description One campaign whose only location is one country (za-75). Money in micros of the account currency; 7 days. */
66267
+ AdsCountryCampaign: {
66268
+ budget_flag: {
66269
+ /** Format: int64 */
66270
+ raise_to_micros: number;
66271
+ /** @enum {string} */
66272
+ state: "raised" | "suggested" | "ceiling" | "recent" | "flagged";
66273
+ } | null;
66274
+ /** Format: int64 */
66275
+ budget_micros: number;
66276
+ /** Format: date-time */
66277
+ built_at: string | null;
66278
+ /** @enum {string} */
66279
+ built_by: "autopilot" | "you";
66280
+ campaign: string;
66281
+ campaign_id: string;
66282
+ /** Format: uuid */
66283
+ change_id: string | null;
66284
+ conversions: number;
66285
+ /** Format: int64 */
66286
+ cost_micros: number;
66287
+ /** Format: int64 */
66288
+ cost_per_conversion_micros: number | null;
66289
+ /** @description ISO 3166-1 alpha-2 code. */
66290
+ country: string;
66291
+ held_by_budget: boolean;
66292
+ /** @description Share of impressions lost to budget, 0-1. */
66293
+ lost_budget: number | null;
66294
+ /** @enum {string} */
66295
+ state: "held" | "not_showing" | "limited" | "new" | "showing";
66296
+ /** @description The diagnosis's plain English sentence (za-76). */
66297
+ why: string;
66298
+ };
66299
+ /** @description A country that converted in 30 days inside campaigns that are not its own (za-75). */
66300
+ AdsCountryCandidate: {
66301
+ clicks: number;
66302
+ conversions: number;
66303
+ /** Format: int64 */
66304
+ cost_micros: number;
66305
+ /** Format: int64 */
66306
+ cost_per_conversion_micros: number | null;
66307
+ /** @description ISO 3166-1 alpha-2 code. */
66308
+ country: string;
66309
+ /** @enum {string} */
66310
+ standing: "proposed" | "ready" | "watching" | "monthly_limit" | "excluded" | "off";
66311
+ };
66244
66312
  /** @description COUNTRYCUT — our recommended values, in the connection's currency. */
66245
66313
  AdsCountryCutRecommended: {
66246
66314
  currency: string;
@@ -96590,7 +96658,7 @@ export interface components {
96590
96658
  * @description The application a trial is started for (owner, 2026-11-02 — an application card's "Start a free trial" starts the matching hosting trial with that application). One of the app-trial picker's values (`APP_TRIAL_CHOICES`); honoured only on a `trial` line whose plan is that application's own trial plan, and refused (422) otherwise. Recorded on the trial as its app choice, so the first run opens the site form on that application's stack with the application chosen. Ignored on a purchase.
96591
96659
  * @enum {string}
96592
96660
  */
96593
- trial_app?: "" | "node" | "python" | "php" | "abantecart" | "cakephp" | "concretecms" | "craft" | "dolibarr" | "dotnet" | "drupal" | "joomla" | "laravel" | "matomo" | "magento" | "mautic" | "mediawiki" | "modx" | "moodle" | "nextcloud" | "opencart" | "osticket" | "owncloud" | "payload" | "phpbb" | "piwigo" | "prestashop" | "silverstripe" | "strapi" | "suitecrm" | "typo3" | "whmcs" | "woocommerce" | "wordpress" | "zenphoto";
96661
+ trial_app?: "" | "node" | "python" | "php" | "abantecart" | "cakephp" | "concretecms" | "craft" | "dolibarr" | "dotnet" | "drupal" | "joomla" | "laravel" | "matomo" | "magento" | "mautic" | "mediawiki" | "modx" | "moodle" | "nextcloud" | "opencart" | "oscommerce" | "osticket" | "owncloud" | "payload" | "phpbb" | "piwigo" | "prestashop" | "silverstripe" | "strapi" | "suitecrm" | "typo3" | "whmcs" | "woocommerce" | "wordpress" | "zenphoto";
96594
96662
  /** @description The campaign a trial is started from (owner, 2026-10-21 — the "Move from Zeabur" page's 30-day trial, docs/1006). Sent only by that campaign's landing page. A campaign-only trial template is invisible to every public surface and is granted only when this names it and it is offered on the plan; any other value is ignored (the plan's public trial, if any, still applies). Meaningless without `trial`. */
96595
96663
  trial_campaign?: string;
96596
96664
  };
@@ -101325,7 +101393,7 @@ export interface components {
101325
101393
  total_ms: number;
101326
101394
  transaction: string;
101327
101395
  };
101328
- /** @description The paid automatic app updates add-on for one site (s1014 row 41): the code that applies (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `nextcloud_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `owncloud_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates`, `strapi_auto_updates` or `payload_auto_updates`), the window and the last run's outcome. */
101396
+ /** @description The paid automatic app updates add-on for one site (s1014 row 41): the code that applies (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `nextcloud_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `owncloud_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates`, `strapi_auto_updates`, `payload_auto_updates` or `oscommerce_auto_updates`), the window and the last run's outcome. */
101329
101397
  SiteAppAutoUpdate: {
101330
101398
  /** @description Whether the add-on is on and in good standing now. */
101331
101399
  active: boolean;
@@ -101333,7 +101401,7 @@ export interface components {
101333
101401
  * @description The app the add-on serves on this site, or null when none is sold for it.
101334
101402
  * @enum {string|null}
101335
101403
  */
101336
- app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | "strapi" | "payload" | null;
101404
+ app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | "strapi" | "payload" | "oscommerce" | null;
101337
101405
  can_buy: boolean;
101338
101406
  /** @description The catalogue code to buy (`<app_key>_auto_updates`). */
101339
101407
  code: string | null;
@@ -111709,7 +111777,7 @@ export interface components {
111709
111777
  * @default
111710
111778
  * @enum {string}
111711
111779
  */
111712
- app: "" | "node" | "python" | "php" | "abantecart" | "cakephp" | "concretecms" | "craft" | "dolibarr" | "dotnet" | "drupal" | "joomla" | "laravel" | "matomo" | "mautic" | "mediawiki" | "modx" | "moodle" | "nextcloud" | "opencart" | "osticket" | "owncloud" | "payload" | "phpbb" | "piwigo" | "prestashop" | "silverstripe" | "strapi" | "suitecrm" | "typo3" | "whmcs" | "woocommerce" | "wordpress" | "zenphoto";
111780
+ app: "" | "node" | "python" | "php" | "abantecart" | "cakephp" | "concretecms" | "craft" | "dolibarr" | "dotnet" | "drupal" | "joomla" | "laravel" | "matomo" | "mautic" | "mediawiki" | "modx" | "moodle" | "nextcloud" | "opencart" | "oscommerce" | "osticket" | "owncloud" | "payload" | "phpbb" | "piwigo" | "prestashop" | "silverstripe" | "strapi" | "suitecrm" | "typo3" | "whmcs" | "woocommerce" | "wordpress" | "zenphoto";
111713
111781
  /**
111714
111782
  * @description ⛔ Defaults to false — the direction that cannot take money nobody agreed to.
111715
111783
  * @default false
@@ -144746,6 +144814,50 @@ export interface operations {
144746
144814
  429: components["responses"]["TooManyRequests"];
144747
144815
  };
144748
144816
  };
144817
+ getAdsCountryCampaigns: {
144818
+ parameters: {
144819
+ query?: never;
144820
+ header?: never;
144821
+ path: {
144822
+ connection_id: string;
144823
+ };
144824
+ cookie?: never;
144825
+ };
144826
+ requestBody?: never;
144827
+ responses: {
144828
+ /** @description The country campaigns and the countries without one. */
144829
+ 200: {
144830
+ headers: {
144831
+ [name: string]: unknown;
144832
+ };
144833
+ content: {
144834
+ "application/json": {
144835
+ /** Format: int64 */
144836
+ account_cost_per_conversion_micros: number | null;
144837
+ campaigns: components["schemas"]["AdsCountryCampaign"][];
144838
+ countries: components["schemas"]["AdsCountryCandidate"][];
144839
+ /** @description ISO 4217 code of the account. */
144840
+ currency: string;
144841
+ /** Format: date-time */
144842
+ read_at: string | null;
144843
+ /** @enum {string} */
144844
+ state: "held" | "ready" | "ok" | "none";
144845
+ trigger: {
144846
+ left_this_month: number;
144847
+ max_per_month: number;
144848
+ min_clicks: number;
144849
+ min_conversions: number;
144850
+ on: boolean;
144851
+ } | null;
144852
+ };
144853
+ };
144854
+ };
144855
+ 401: components["responses"]["Unauthorized"];
144856
+ 403: components["responses"]["Forbidden"];
144857
+ 404: components["responses"]["NotFound"];
144858
+ 429: components["responses"]["TooManyRequests"];
144859
+ };
144860
+ };
144749
144861
  listAdsCrmSources: {
144750
144862
  parameters: {
144751
144863
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1542",
3
+ "version": "0.1.1545",
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>",