@zinn-digital/sdk 0.1.2011 → 0.1.2012

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.
@@ -28896,7 +28896,7 @@ export interface paths {
28896
28896
  *
28897
28897
  * **Pay first.** A cart carrying a new plan (`hosting_plan`, `compute_server`, `managed_database` or `boards_plan`) is refused with a `422` and the refusal `refusal.billing.renewalUnpaidNewPlan` while any subscription of the organisation owes an unpaid renewal, before tax is computed and before any order row or charge. Pay the renewal on the billing page, then check out.
28898
28898
  *
28899
- * **Room.** Room for every `hosting_plan` line's whole site allowance is asked again here, before an order exists (P6b-002). A plan whose sites do not all fit today is still sold and its sites queued (`capacity_notice` on the line); only when the platform refuses plans larger than everything it can hold is this a `422` with error code `CAPACITY_UNAVAILABLE`, with nothing placed and nothing charged.
28899
+ * **Room.** Server capacity has no effect before payment (owner ruling 2026-11-22): checkout never refuses, delays or annotates an order for room. Once an order is paid and its sites do not fit, the owner is told once, and a customer who then deploys or adds a site with no room sees only "New capacity is being added shortly. Please try again soon."
28900
28900
  */
28901
28901
  post: operations["checkoutCart"];
28902
28902
  delete?: never;
@@ -28919,7 +28919,7 @@ export interface paths {
28919
28919
  put?: never;
28920
28920
  /**
28921
28921
  * Add a line to a cart.
28922
- * @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. A hosting-plan line whose site allowance does not all fit on the servers today is still added and carries `capacity_notice` (P6b-002); only when the platform refuses plans larger than everything it can hold is it a `422` with error code `CAPACITY_UNAVAILABLE` (`details[0].sites_wanted`; the servers' total is never stated). A `domain_transfer` line that would be free under the transfer offer is also a `422` when a guard on the offer refuses it; `error.code` is one of `EMAIL_NOT_VERIFIED`, `NOT_IN_GOOD_STANDING`, `PREMIUM_NAME`, `CHECK_FAILED` or `FREE_TRANSFER_LIMIT`, and `error.refusal.key` (`refusal.freeTransfer.*`) is the sentence to show in the reader's language. Nothing is added to the cart by a refused call.
28922
+ * @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. Server capacity has no effect on adding a line (owner ruling 2026-11-22): a plan is never refused, delayed or annotated for room before payment. A `domain_transfer` line that would be free under the transfer offer is also a `422` when a guard on the offer refuses it; `error.code` is one of `EMAIL_NOT_VERIFIED`, `NOT_IN_GOOD_STANDING`, `PREMIUM_NAME`, `CHECK_FAILED` or `FREE_TRANSFER_LIMIT`, and `error.refusal.key` (`refusal.freeTransfer.*`) is the sentence to show in the reader's language. Nothing is added to the cart by a refused call.
28923
28923
  */
28924
28924
  post: operations["addCartLine"];
28925
28925
  delete?: never;
@@ -29103,28 +29103,6 @@ export interface paths {
29103
29103
  patch?: never;
29104
29104
  trace?: never;
29105
29105
  };
29106
- "/v1/catalog/app/room": {
29107
- parameters: {
29108
- query?: never;
29109
- header?: never;
29110
- path?: never;
29111
- cookie?: never;
29112
- };
29113
- /**
29114
- * Ask whether every site a plan allows can be built today, before buying it.
29115
- * @description The capacity check before sale (P6b-002). Asks for room for the plan's **whole** site allowance, never for one site, and answers the same `CapacityNotice` a basket line carries: `null` when every site can be built now, otherwise how many are built at once and how many are queued. Queued sites are built automatically, oldest first, as space is made ready; **no time is promised**, and no server or supplier is named.
29116
- *
29117
- * A read: it refuses nothing and changes nothing. Name the plan by `plan_version_id` (the id `listInAppCatalogPlans` publishes) or by `plan_code` (its current version); `region` narrows the answer to one region from `listHostingRegions`, and an unknown region is ignored. A plan that is not built on our own servers always answers `null`. Signed-in, non-tenant data.
29118
- */
29119
- get: operations["getPlanRoom"];
29120
- put?: never;
29121
- post?: never;
29122
- delete?: never;
29123
- options?: never;
29124
- head?: never;
29125
- patch?: never;
29126
- trace?: never;
29127
- };
29128
29106
  "/v1/catalog/app/site-hosting-lines": {
29129
29107
  parameters: {
29130
29108
  query?: never;
@@ -82233,14 +82211,6 @@ export interface components {
82233
82211
  /** @description Where it went. ⛔ Not `format: email` — on a connected channel this is the destination (`#announcements`, a chat id), and declaring it an e-mail address would make a truthful response fail its own contract test. */
82234
82212
  to: string;
82235
82213
  };
82236
- /** @description P6b-002: the plan's sites do not all fit on the servers today. `queued` (the default): `sites_ready_now` are built at once and `sites_queued` are built automatically, oldest first, as space is made ready; no time is promised. `unavailable`: only when the platform setting refuses a plan larger than everything it can hold (the request is then refused with error code `CAPACITY_UNAVAILABLE`). */
82237
- CapacityNotice: {
82238
- sites_queued: number;
82239
- sites_ready_now: number;
82240
- sites_wanted: number;
82241
- /** @enum {string} */
82242
- state: "queued" | "unavailable";
82243
- };
82244
82214
  /**
82245
82215
  * @description A preference between paying once (`once`) and saving the card for automatic renewal (`save_for_renewals`), stored as the account's preference (`card_reuse_default`). An order card payment (`startOrderCardPayment`) resolves the request's `save_card` through the same rule: the card is kept only when the request asks for it and the account's market lets a card renew unattended; otherwise the payment is one-time.
82246
82216
  * @example once
@@ -82329,8 +82299,6 @@ export interface components {
82329
82299
  /** @description One priced line in a cart. `registrar_cost` and a premium line's wholesale quote (both margin audit) are never exposed. */
82330
82300
  CartLine: {
82331
82301
  auto_renew?: boolean;
82332
- /** @description P6b-002: null when every site of the plan's allowance can be built now; otherwise the codes and numbers a client renders in its own language (never a server name). */
82333
- capacity_notice?: components["schemas"]["CapacityNotice"] | null;
82334
82302
  currency: components["schemas"]["CurrencyCode"];
82335
82303
  /** Format: int64 */
82336
82304
  discount_minor?: number;
@@ -102851,14 +102819,6 @@ export interface components {
102851
102819
  starts_at: string;
102852
102820
  title: string;
102853
102821
  };
102854
- /** @description P6b-002: the answer of `getPlanRoom`. */
102855
- PlanRoom: {
102856
- /** @description Null when every site of the plan's allowance can be built now. */
102857
- capacity_notice: components["schemas"]["CapacityNotice"] | null;
102858
- plan_code: string;
102859
- /** Format: uuid */
102860
- plan_version_id: string;
102861
- };
102862
102822
  /** @description What the PLATFORM's own AI work may spend today, and what is left of it. It rides on the capabilities response because the screen showing the ladder is the screen where somebody asks the agent a question — a budget you only discover by being refused is one nobody can plan around. */
102863
102823
  PlatformAiBudget: {
102864
102824
  /**
@@ -121358,8 +121318,6 @@ export interface components {
121358
121318
  app?: string;
121359
121319
  /** @description Whether the customer agreed **at the start** that this may become a paid subscription when the period ends. Captured per trial rather than read from the template at expiry, so consent given today cannot be re-interpreted by a template edited in three months. */
121360
121320
  auto_convert_opt_in?: boolean;
121361
- /** @description P6b-002: null when every site of the plan's allowance can be built now; otherwise the codes and numbers a client renders in its own language (never a server name). */
121362
- capacity_notice?: components["schemas"]["CapacityNotice"] | null;
121363
121321
  /** @description Whole days until `ends_at`, rounded UP and floored at zero. Computed on the server on purpose: a client doing `(ends_at - Date.now())` measures the **device** clock, so a laptop a day out tells the customer their trial ends tomorrow when it ends today — and this is the number that drives an increasingly insistent upgrade prompt. `0` means the trial has ended, never "today", so a screen can branch on it. */
121364
121322
  days_remaining?: number;
121365
121323
  /** Format: date-time */
@@ -173685,40 +173643,6 @@ export interface operations {
173685
173643
  429: components["responses"]["TooManyRequests"];
173686
173644
  };
173687
173645
  };
173688
- getPlanRoom: {
173689
- parameters: {
173690
- query?: {
173691
- /** @description The plan to ask about, by code; its current version is used. */
173692
- plan_code?: string;
173693
- /** @description The plan version to ask about. Wins over `plan_code`. */
173694
- plan_version_id?: string;
173695
- /** @description Only count room in this region (a `code` from `listHostingRegions`). */
173696
- region?: string;
173697
- };
173698
- header?: never;
173699
- path?: never;
173700
- cookie?: never;
173701
- };
173702
- requestBody?: never;
173703
- responses: {
173704
- /** @description The room for the plan today. */
173705
- 200: {
173706
- headers: {
173707
- /** @description Always `private, no-store`. */
173708
- "Cache-Control"?: string;
173709
- [name: string]: unknown;
173710
- };
173711
- content: {
173712
- "application/json": {
173713
- data: components["schemas"]["PlanRoom"];
173714
- };
173715
- };
173716
- };
173717
- 401: components["responses"]["Unauthorized"];
173718
- 404: components["responses"]["NotFound"];
173719
- 429: components["responses"]["TooManyRequests"];
173720
- };
173721
- };
173722
173646
  listSiteHostingLines: {
173723
173647
  parameters: {
173724
173648
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2011",
3
+ "version": "0.1.2012",
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>",