@zinn-digital/sdk 0.1.2122 → 0.1.2124

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.
@@ -53958,7 +53958,7 @@ export interface paths {
53958
53958
  get: operations["getSiteCdn"];
53959
53959
  /**
53960
53960
  * Choose a site's CDN tier.
53961
- * @description Mainstream lines only — a managed (footprint-free) site returns `FOOTPRINT_MANAGED`. Selecting `byo` requires an already-connected Cloudflare account, else `NO_CLOUDFLARE_CONNECTION`. The zone is created or torn down asynchronously; the response reflects the requested desired state. Requires `hosting.cdn.manage`.
53961
+ * @description Mainstream lines only — a managed (footprint-free) site returns `FOOTPRINT_MANAGED`. Selecting `byo` requires an already-connected Cloudflare account, else `NO_CLOUDFLARE_CONNECTION`. Selecting `premium` requires a live `cdn_premium` add-on purchase for THIS site (a purchase for another site, an unpaid, failed, refunded or lapsed one does not count), else 422 `PURCHASE_REQUIRED` with the refusal key `refusal.apiDefault.cdnPremiumPurchaseRequired`; the tier switch never charges. `enterprise` is not selectable on this path. The zone is created or torn down asynchronously; the response reflects the requested desired state. Requires `hosting.cdn.manage`.
53962
53962
  */
53963
53963
  put: operations["setSiteCdn"];
53964
53964
  post?: never;
@@ -83493,7 +83493,25 @@ export interface components {
83493
83493
  plan_version: number;
83494
83494
  /** @description The **purchasable identifier**: the id of the plan's current sellable version, which is what a `hosting_plan` cart line pins in `plan_version_id`. This is NOT `id` — `id` is the plan's stable identity, while a price change mints a new version rather than mutating the sold one, so this value changes and `id` does not. Use it to buy: `POST /v1/carts` → `POST /v1/carts/{cartId}/lines` with `{kind: hosting_plan, plan_version_id}` → `POST /v1/carts/{cartId}/checkout`. */
83495
83495
  plan_version_id: components["schemas"]["Uuid"];
83496
- /** @description The plan's list prices, one per (interval, currency). */
83496
+ /**
83497
+ * @description Present only with `?price_format=map`: the same prices as `prices` would carry, keyed `interval -> ISO currency -> amount_minor` (integer minor units, CLAUDE.md §2.8). Lossless: one (interval, currency) pair is one entry.
83498
+ * @example {
83499
+ * "monthly": {
83500
+ * "USD": 3000,
83501
+ * "EUR": 2799
83502
+ * },
83503
+ * "annual": {
83504
+ * "USD": 30000,
83505
+ * "EUR": 27990
83506
+ * }
83507
+ * }
83508
+ */
83509
+ price_map?: {
83510
+ [key: string]: {
83511
+ [key: string]: number;
83512
+ };
83513
+ };
83514
+ /** @description The plan's list prices, one per (interval, currency). Empty when the caller asked for `price_format=map`; the same figures are then in `price_map`. */
83497
83515
  prices: components["schemas"]["CatalogPrice"][];
83498
83516
  /**
83499
83517
  * @description The `code` of the owning product line.
@@ -176020,6 +176038,12 @@ export interface operations {
176020
176038
  * An unknown or malformed code yields an **empty** `prices` array per plan rather than a `404` or a silent fall back to every currency — empty is the honest answer to "what does this cost in XYZ", and falling back would return the 900 KB the caller asked to avoid.
176021
176039
  */
176022
176040
  currency?: string;
176041
+ /**
176042
+ * @description `map` carries each plan's prices as `price_map` (`interval -> currency -> amount_minor`) and leaves `prices` empty. **Optional and additive**: absent, `rows` or any other value is the `prices` array exactly as before. Composes with `currency`.
176043
+ *
176044
+ * **Why it exists.** Measured on production 2026-11-26: 308 plans, 2,398,646 bytes, of which 2,175,599 are `prices` rows, over the public site's 2 MB render-cache item limit; a site whose visitor picks the currency needs every one of them. The map is ~710 KB for the same figures.
176045
+ */
176046
+ price_format?: "rows" | "map";
176023
176047
  /** @description Restrict to one product line by its code (e.g. `footprint_free`). Unknown code → empty list. */
176024
176048
  product_line?: string;
176025
176049
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2122",
3
+ "version": "0.1.2124",
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>",