@zinn-digital/sdk 0.1.1965 → 0.1.1966

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.
@@ -31380,10 +31380,10 @@ export interface paths {
31380
31380
  get?: never;
31381
31381
  put?: never;
31382
31382
  /**
31383
- * Extend a server's term.
31384
- * @description Buys more months on an existing machine and returns the server with `term_months` grown by what was asked. ⛔ **This charges immediately**, and — unlike a resize — there is deliberately **no quote operation to read first**. That asymmetry is real rather than an omission: a resize is priced by the provider, whereas a renewal is priced by the plan the customer is already on, and no figure on this surface carries it (a machine size has no price by design, and a server carries only a `plan_code`). A client says out loud that it cannot show a figure rather than inventing one (§2.8). The engine attaches an idempotency key derived from the server and the term, so a retry cannot buy the extension twice.
31383
+ * Extend a server's term (refused until paid through checkout).
31384
+ * @description ⛔ **Refused with `409` (`refusal.compute.renewViaCheckout`) and changes nothing.** This used to buy more months at the provider and grow `term_months` with no order, payment, invoice or tax, and the rebill then found the period already covered and never charged for it (RENEWCHARGE-r1, 2026-11-21). A customer renews through checkout instead: `/billing/renew/{subscriptionId}` in the dashboard, which takes the one unpaid renewal order (`POST /v1/subscriptions/{subscriptionId}/renew-now`) to payment; nothing is bought at a provider before that payment settles.
31385
31385
  *
31386
- * `404` for a server that is not the caller's; `422` for a term outside 1…36 months, or a machine that is not `active`. Requires `sites.view` **and** `billing.payment.manage` — ⛔ **not** `sites.create`, which is what this was until #1682.
31386
+ * `404` for a server that is not the caller's; `422` for a term outside 1…36 months, a pay-by-the-hour machine, or a machine that is not `active`; `409` otherwise. Requires `sites.view` **and** `billing.payment.manage`.
31387
31387
  */
31388
31388
  post: operations["renewComputeServer"];
31389
31389
  delete?: never;
@@ -175851,7 +175851,7 @@ export interface operations {
175851
175851
  };
175852
175852
  };
175853
175853
  responses: {
175854
- /** @description The server after the term was extended. */
175854
+ /** @description Reserved for a paid renewal; this endpoint currently always refuses with 409. */
175855
175855
  200: {
175856
175856
  headers: {
175857
175857
  "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
@@ -175864,6 +175864,7 @@ export interface operations {
175864
175864
  401: components["responses"]["Unauthorized"];
175865
175865
  403: components["responses"]["Forbidden"];
175866
175866
  404: components["responses"]["NotFound"];
175867
+ 409: components["responses"]["Conflict"];
175867
175868
  422: components["responses"]["UnprocessableEntity"];
175868
175869
  429: components["responses"]["TooManyRequests"];
175869
175870
  503: components["responses"]["ServiceUnavailable"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1965",
3
+ "version": "0.1.1966",
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>",