@zinn-digital/sdk 0.1.1964 → 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;
@@ -82819,6 +82819,8 @@ export interface components {
82819
82819
  action_url?: string;
82820
82820
  amount_minor: number;
82821
82821
  captured_at?: string | null;
82822
+ /** @description 3DSFIX-B (DAY-0755). Zinn® card top-ups only, and only on the response that started a Stripe charge the bank wants to check (`requires_action`). The dashboard hands it, with `publishable_key`, to Stripe.js so the 3-D Secure check opens IN THE PAGE, never a popup. Never stored and never in a list. Absent on a reseller client's top-up (that Stripe account's key is not served, D52152). */
82823
+ client_secret?: string;
82822
82824
  /** Format: date-time */
82823
82825
  created_at: string;
82824
82826
  /** @description What went into the balance — `settled_minor - fee_minor`. */
@@ -82835,6 +82837,8 @@ export interface components {
82835
82837
  id: components["schemas"]["Uuid"];
82836
82838
  /** @description Whether a standing instruction created this, rather than a person. */
82837
82839
  is_auto?: boolean;
82840
+ /** @description The Zinn® Stripe publishable key (`pk_…`, public by design) that loads Stripe.js for `client_secret`. Present exactly when `client_secret` is. */
82841
+ publishable_key?: string;
82838
82842
  /** @enum {string} */
82839
82843
  purpose?: "general" | "ai";
82840
82844
  /** @description What the customer asked to add, and what the screen promised them. */
@@ -175847,7 +175851,7 @@ export interface operations {
175847
175851
  };
175848
175852
  };
175849
175853
  responses: {
175850
- /** @description The server after the term was extended. */
175854
+ /** @description Reserved for a paid renewal; this endpoint currently always refuses with 409. */
175851
175855
  200: {
175852
175856
  headers: {
175853
175857
  "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
@@ -175860,6 +175864,7 @@ export interface operations {
175860
175864
  401: components["responses"]["Unauthorized"];
175861
175865
  403: components["responses"]["Forbidden"];
175862
175866
  404: components["responses"]["NotFound"];
175867
+ 409: components["responses"]["Conflict"];
175863
175868
  422: components["responses"]["UnprocessableEntity"];
175864
175869
  429: components["responses"]["TooManyRequests"];
175865
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.1964",
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>",