@zinn-digital/sdk 0.1.2026 → 0.1.2027

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.
@@ -82456,6 +82456,7 @@ export interface components {
82456
82456
  listed_currency?: string | null;
82457
82457
  /** @description The marketplace package a `marketplace_package` line buys. Echoed so a basket can link back to the Zinn® it came from — the line's `description` is a snapshot taken at capture, this is the identity. */
82458
82458
  listing_package_id?: components["schemas"]["Uuid"] | null;
82459
+ /** @description The line's configuration. On a `compute_server` line it is the order config, and its `spec` is the opaque `sz-…` size id — never the supplier's machine code (SUPPLYCHK: server suppliers are never shown to customers). */
82459
82460
  metadata?: {
82460
82461
  [key: string]: unknown;
82461
82462
  };
@@ -85123,7 +85124,7 @@ export interface components {
85123
85124
  ram_gb: number | null;
85124
85125
  /** @description The one-off setup fee, passed on at cost, minor units. */
85125
85126
  setup_minor: number;
85126
- /** @description The offer's machine token. */
85127
+ /** @description The offer's machine id, sent back as given to order it. ⛔⛔ An opaque `sz-…` id on a customer response (SUPPLYCHK: a supplier's machine code names the supplier, and server suppliers are never shown to customers). */
85127
85128
  spec: string;
85128
85129
  zone: string;
85129
85130
  };
@@ -85271,7 +85272,7 @@ export interface components {
85271
85272
  plan_code: string;
85272
85273
  /** @description ⛔ D24975 (W43-48). OUR price for the plan, in minor units, in the machine's own data centre at its own cadence. On an own-account range this is the only figure; `amount` and `detail` are blank, because the provider's figure there is our cost. `null` on the resold range. */
85273
85274
  price_minor: number | null;
85274
- /** @description The size the figure is for. */
85275
+ /** @description The size the figure is for. ⛔⛔ An opaque `sz-…` id on a customer response (SUPPLYCHK: a supplier's machine code names the supplier, and server suppliers are never shown to customers). */
85275
85276
  spec: string;
85276
85277
  };
85277
85278
  /** @description The machine size to move to. Send `plan_code` on an own-account range (W43-48): several plans are built on one machine type there, so a type alone is refused when it is ambiguous. At least one of the two is required. */
@@ -85347,6 +85348,16 @@ export interface components {
85347
85348
  id: components["schemas"]["Uuid"];
85348
85349
  /** @description The provider image the machine was built from. Blank on the resold range, which installs one managed image and offers no choice. */
85349
85350
  image: string;
85351
+ /**
85352
+ * @description What kind of machine it is, read server-side from the real size.
85353
+ * @enum {string}
85354
+ */
85355
+ kind?: "vm" | "gpu" | "metal";
85356
+ /**
85357
+ * @description `windows` when the size carries a Windows Server licence, else `""`; read server-side from the real size.
85358
+ * @enum {string}
85359
+ */
85360
+ licence?: "" | "windows";
85350
85361
  /** @description The account to sign in as (W43-49, `docs/689`). `admin` — key-only, passwordless `sudo`, root login refused — on a Zinn® Cloud machine built under the access model; `root` on one built before it. */
85351
85362
  login_user: string;
85352
85363
  /**
@@ -85395,7 +85406,7 @@ export interface components {
85395
85406
  provider: string;
85396
85407
  /** @description ⛔ **Always null today, and honestly so**: the provider publishes no renewal date, and one computed from the order plus the term would be our arithmetic rendered as the provider's fact. */
85397
85408
  renews_at: string | null;
85398
- /** @description The machine size it currently runs. */
85409
+ /** @description The machine size it currently runs. ⛔⛔ An opaque `sz-…` id on a customer response (SUPPLYCHK: a supplier's machine code names the supplier, and server suppliers are never shown to customers). */
85399
85410
  spec: string;
85400
85411
  /**
85401
85412
  * @description How far the order got — **ours**, and a different fact from `power_state`. `pending` is a row with nothing bought and nothing charged; `failed` is the state whose `message` is the only thing on the screen worth reading. ⛔ Deliberately separate from `vendor_status`: rounding the provider's word into this enum would mean an unrecognised state silently became `active`, and `active` is what unlocks every control.
@@ -85945,10 +85956,20 @@ export interface components {
85945
85956
  cores: number | null;
85946
85957
  /** @description Disk in gibibytes, or null when not stated. */
85947
85958
  disk_gb: number | null;
85948
- /** @description The size's id, and what an order names. When the provider published no sizes, our own sold tiers fill the list and this id **is** a plan code. */
85959
+ /** @description The size's id, and what an order names. When the provider published no sizes, our own sold tiers fill the list and this id **is** a plan code. ⛔⛔ On a customer response this is an opaque `sz-…` id (SUPPLYCHK, owner: server suppliers are never shown to customers) — a supplier's machine code names the supplier. An order or resize may send it back as given; the engine maps it to the real size. */
85949
85960
  id: string;
85950
- /** @description The size's display name. */
85961
+ /**
85962
+ * @description What kind of machine the size is, read server-side from the real size (a client can no longer read it from the id, which is opaque). A resize keeps the kind.
85963
+ * @enum {string}
85964
+ */
85965
+ kind?: "vm" | "gpu" | "metal";
85966
+ /** @description The size's display name: on a customer response the Zinn plan name that sells this size, else `""` — never the supplier's product name. */
85951
85967
  label: string;
85968
+ /**
85969
+ * @description `windows` for a licence-included Windows size, else `""`, read server-side from the real size. A resize keeps the licence.
85970
+ * @enum {string}
85971
+ */
85972
+ licence?: "" | "windows";
85952
85973
  /**
85953
85974
  * @description `windows` for a size sold with a Windows Server licence included; `""` for any other. ⛔⛔ A picker MUST match it to `ComputeImage.os_family`: Windows images go on Windows sizes only and Windows sizes take Windows images only (the order is refused otherwise, before anything is charged).
85954
85975
  * @enum {string}
@@ -86071,7 +86092,7 @@ export interface components {
86071
86092
  sold_out: boolean;
86072
86093
  /** @description Availability is per region. The data centres (as in `zone_prices`) this plan is priced in but cannot be supplied in right now. A plan sold out in some regions stays orderable in the others (`zone_prices` lists only those); the order screen shows these as sold out. A region kept off sale by our margin floor is never listed: it is not offered at all. On a `sold_out` plan, every region it is sold out in. */
86073
86094
  sold_out_zones: string[];
86074
- /** @description The provider's own token for this size (the platform's `micro`), or empty when our catalogue names none. A client joins a chosen size to its price on THIS field first, falling back to `plan_code` — the ids in `ComputeProvider.specs` are vendor tokens whenever `spec_source` is `vendor` and plan codes whenever it is `catalogue`, and both states occur. Joining on `plan_code` alone made every Zinn® Cloud size unbuyable when the vendor began publishing its spec list. An empty value must never match an empty spec id. */
86095
+ /** @description ⛔⛔ On a customer response the opaque `sz-…` alias of the provider's token for this size (SUPPLYCHK — suppliers are never shown to customers; staff see the token), or empty when our catalogue names none. A client joins a chosen size to its price on THIS field first, falling back to `plan_code` — the ids in `ComputeProvider.specs` are vendor tokens whenever `spec_source` is `vendor` and plan codes whenever it is `catalogue`, and both states occur. Joining on `plan_code` alone made every Zinn® Cloud size unbuyable when the vendor began publishing its spec list. An empty value must never match an empty spec id. */
86075
86096
  vendor_spec: string;
86076
86097
  /**
86077
86098
  * @description Every data centre this size is sold in, with the figure for each cadence.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2026",
3
+ "version": "0.1.2027",
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>",