@zinn-digital/sdk 0.1.1715 → 0.1.1718

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.
@@ -45629,7 +45629,7 @@ export interface paths {
45629
45629
  put?: never;
45630
45630
  /**
45631
45631
  * A visitor on one of our sites clicked a plugin-store checkout or a free download.
45632
- * @description docs/1002 §4 — the beacon our product sites send (`navigator.sendBeacon`, so the body may arrive as `text/plain`; it is read as JSON either way, at most 8 KiB). The engine records the click so the store's sale, which happens on a checkout we cannot tag, can be joined back to the advert and site that produced it. Kept: the store product and plan named by `href`, the site (from `Origin`), the Google click ids, UTM source/medium/ campaign, the landing page (host + path, never a query) and GA4's own client/session id. ⛔ The visitor's IP is kept ONLY as a keyed hash, and only when the engine can establish the real client address. Always answers `204` with no body, whether or not anything was recorded. Anonymous; throttled per source address (`plugin_click`).
45632
+ * @description docs/1002 §4 — the beacon our product sites send (`navigator.sendBeacon`, so the body may arrive as `text/plain`; it is read as JSON either way, at most 8 KiB). The engine records the click so the store's sale, which happens on a checkout we cannot tag, can be joined back to the advert and site that produced it. Kept: the store product and plan named by `href` (a store checkout, a free download on wordpress.org, GitHub or our own `api.zinndigital.com/v1/plugins/<slug>/download`), the site (from `Origin`), the ad networks' click ids (Google's, `msclkid`, `twclid` and ChatGPT Ads' `oppref`), UTM source/medium/campaign, the landing page (host + path, never a query) and GA4's own client/session id. ⛔ The visitor's IP is kept ONLY as a keyed hash, and only when the engine can establish the real client address. Always answers `204` with no body, whether or not anything was recorded. Anonymous; throttled per source address (`plugin_click`).
45633
45633
  */
45634
45634
  post: operations["recordPublicPluginClick"];
45635
45635
  delete?: never;
@@ -85716,6 +85716,12 @@ export interface components {
85716
85716
  * @example default_currency
85717
85717
  */
85718
85718
  field: string;
85719
+ /**
85720
+ * Format: int64
85721
+ * @description Only on a `TOTAL_CHANGED` refusal from `POST /v1/public/checkout` (docs/1311): the order total (tax included, minor units) the checkout WILL place or resume at. A resumed order is frozen, so after a billing-country or price change the basket's re-quote never equals it; the page shows this figure and sends it back as `expected_total_minor` on the next press. Equality is still required: a stale, lower or higher figure is refused again and never paid.
85722
+ * @example 960
85723
+ */
85724
+ fresh_total_minor?: number;
85719
85725
  /** @example Must be a supported ISO 4217 currency code. */
85720
85726
  message?: string;
85721
85727
  };
@@ -98312,6 +98318,8 @@ export interface components {
98312
98318
  PluginClick: {
98313
98319
  ga_client_id?: string;
98314
98320
  ga_session_id?: string;
98321
+ /** @description VOAIHOUSEWP2 — `true` when the link opens one of our plugins' own download pages (`tranzly.io/download/`, `pagebuildersandwich.com/download/`) from another of our sites: the click is stored as a hand-off (kind `handoff`), not a download, because that page's own button is the download. Ignored on any other link. */
98322
+ handoff?: boolean;
98315
98323
  /** @description The link clicked — a `checkout.freemius.com` checkout, a wordpress.org plugin page or a GitHub zip. */
98316
98324
  href: string;
98317
98325
  /** @description Fallback when the request has no `Origin`. */
@@ -193260,7 +193268,7 @@ export interface operations {
193260
193268
  "application/json": components["schemas"]["Error"];
193261
193269
  };
193262
193270
  };
193263
- /** @description The body failed validation, or (`error.code` `REGISTRY_DATA_REQUIRED`, Q10) a domain's registry demands fields `registry_data` did not carry — checked before any account exists — or (`error.code` `REGISTRANT_REQUIRED`) the basket holds a domain and no `registrant` was sent. The registrant refusal happens before any account, organization or order exists, so the visitor adds the owner and submits again with nothing to unwind. Or (`error.code` `REFUND_TERMS_REQUIRED`) `accept_refund_terms` was not `true`: the visitor ticks "refunds are issued as Zinn® credit" and submits again; nothing was created. */
193271
+ /** @description The body failed validation, or (`error.code` `REGISTRY_DATA_REQUIRED`, Q10) a domain's registry demands fields `registry_data` did not carry — checked before any account exists — or (`error.code` `REGISTRANT_REQUIRED`) the basket holds a domain and no `registrant` was sent. The registrant refusal happens before any account, organization or order exists, so the visitor adds the owner and submits again with nothing to unwind. Or (`error.code` `REFUND_TERMS_REQUIRED`) `accept_refund_terms` was not `true`: the visitor ticks "refunds are issued as Zinn® credit" and submits again; nothing was created. Or (`details[0].code` `TOTAL_CHANGED`) the total the order will be placed or RESUMED at is not `expected_total_minor`: nothing is placed or charged, and `details[0].fresh_total_minor` carries that total, which the page shows and sends back as `expected_total_minor` on the next press (docs/1311). */
193264
193272
  422: {
193265
193273
  headers: {
193266
193274
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1715",
3
+ "version": "0.1.1718",
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>",