@zinn-digital/sdk 0.1.1986 → 0.1.1988

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.
@@ -30556,7 +30556,7 @@ export interface paths {
30556
30556
  *
30557
30557
  * ⭐ These are the decisions `docs/127` §2 took on 2026-08-15 (D1–D5), expressed as rows a customer can buy. They are **orthogonal to the machine size**: a customer picks a size *and* an add-on, and the two multiply rather than choosing between each other. What the API calls a `ComputeTier` elsewhere is the SIZE; this is the software.
30558
30558
  *
30559
- * ⛔ **An empty list is the correct answer on the resold range**, not an error. There the supplier installs its own managed image and exposes no `user_data` seam, so there is no add-on question to answer — and rendering a picker with one disabled option would imply the others are coming.
30559
+ * ⛔ **An empty list is the correct answer on the resold range**, not an error. There the supplier installs its own managed image and exposes no `user_data` seam, so there is no add-on question to answer — and rendering a picker with one disabled option would imply the others are coming. On a range we build that is not Zinn® Cloud (`aws_cloud`, `gcp_cloud`) the list holds only the `managed` row (Server Care, owner 2026-11-22): care is delivered over SSH by our care agent and needs no supplier seam.
30560
30560
  *
30561
30561
  * ⛔ **A row absent from this list in one currency is not sold in that currency**, never converted at today's rate: a machine and the add-on beside it must not be quoted from two different sources, or the same basket costs two different amounts on two days. Requires `sites.view`.
30562
30562
  */
@@ -31374,6 +31374,52 @@ export interface paths {
31374
31374
  patch?: never;
31375
31375
  trace?: never;
31376
31376
  };
31377
+ "/v1/compute/servers/{serverId}/gate-login": {
31378
+ parameters: {
31379
+ query?: never;
31380
+ header?: never;
31381
+ path: {
31382
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
31383
+ serverId: components["parameters"]["ComputeServerId"];
31384
+ };
31385
+ cookie?: never;
31386
+ };
31387
+ /**
31388
+ * The state of a managed server's monitoring login.
31389
+ * @description A server running the Zinn panel sends its metrics, logs and security events with a login of its own (docs/88 §12). `current`: one login in use. `rotating`: a rotate is in progress and both logins work. `reenrol_required`: the server never used its new login within 24 hours, its old one is retired and our team has been alerted to re-enrol it. No password is ever returned. `409` when the panel is not on the machine.
31390
+ */
31391
+ get: operations["getComputeServerGateLogin"];
31392
+ put?: never;
31393
+ post?: never;
31394
+ delete?: never;
31395
+ options?: never;
31396
+ head?: never;
31397
+ patch?: never;
31398
+ trace?: never;
31399
+ };
31400
+ "/v1/compute/servers/{serverId}/gate-login/rotate": {
31401
+ parameters: {
31402
+ query?: never;
31403
+ header?: never;
31404
+ path: {
31405
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
31406
+ serverId: components["parameters"]["ComputeServerId"];
31407
+ };
31408
+ cookie?: never;
31409
+ };
31410
+ get?: never;
31411
+ put?: never;
31412
+ /**
31413
+ * Rotate a managed server's monitoring login.
31414
+ * @description Gives the server a new monitoring login, keeps the old one working beside it and asks the server to pick the new one up. The old login is retired as soon as the server has sent data with the new one, or after 24 hours (then the server needs a re-enrol and our team is alerted). Idempotent while a rotate is in progress. Requires `sites.restart`; nothing restarts. Audited as `compute.server.gate_login_rotated`, without any password.
31415
+ */
31416
+ post: operations["rotateComputeServerGateLogin"];
31417
+ delete?: never;
31418
+ options?: never;
31419
+ head?: never;
31420
+ patch?: never;
31421
+ trace?: never;
31422
+ };
31377
31423
  "/v1/compute/servers/{serverId}/health": {
31378
31424
  parameters: {
31379
31425
  query?: never;
@@ -84866,6 +84912,21 @@ export interface components {
84866
84912
  name: string;
84867
84913
  rules: components["schemas"]["ComputeFirewallRule"][];
84868
84914
  };
84915
+ /** @description A managed server's monitoring login (P3-004). Never carries a password. */
84916
+ ComputeServerGateLogin: {
84917
+ /**
84918
+ * Format: date-time
84919
+ * @description When the rotate expired and the server was marked for a re-enrol.
84920
+ */
84921
+ reenrol_required_since: string | null;
84922
+ /**
84923
+ * Format: date-time
84924
+ * @description When the rotate in progress started; null when none is.
84925
+ */
84926
+ rotating_since: string | null;
84927
+ /** @enum {string} */
84928
+ state: "current" | "rotating" | "reenrol_required";
84929
+ };
84869
84930
  /**
84870
84931
  * @description What the machine is made of and how hard it is working, read live from the provider.
84871
84932
  *
@@ -99141,6 +99202,11 @@ export interface components {
99141
99202
  * ⛔ Required — `422` — on any range that publishes images, and meaningless on one that does not. It is not marked required here because which ranges publish them is a live provider fact a schema cannot know. ⛔⛔ Check the image's `architecture` against the chosen size: ARM and x86 images are separate entries with the **same name**, and a mismatch is refused *after* the customer has paid.
99142
99203
  */
99143
99204
  image?: string;
99205
+ /**
99206
+ * @description Server Care on a pay-by-the-hour machine (`orderMeteredComputeServer`; a monthly machine takes it on its cart line). The care's monthly price joins the meter's hourly rate (`ceil((plan + care) / 730)` an hour, never above the month) from the machine's first care report; nothing is charged for care before it connects. Refused `422` when care is not sold in the organisation's billing currency, and then no machine is recorded.
99207
+ * @default false
99208
+ */
99209
+ managed_care: boolean;
99144
99210
  /**
99145
99211
  * @description CLOUD-U2 (P3-007). How the server is run: `panel` = With the Zinn® panel (our free web stack converged on it and managed from the dashboard), `bare` = Bare server, I manage it. Omitted or blank = `bare` (R2: the panel is only ever given when the order names it; the dashboard's order form always sends the choice). An explicit `panel` that cannot run (Windows, under 2 GB or an unknown size, a range we do not hold the account for, or with a Docker or Kubernetes `blueprint`) is refused `422` (`refusal.compute.panel*`) and nothing is charged.
99146
99212
  * @enum {string}
@@ -176872,6 +176938,64 @@ export interface operations {
176872
176938
  503: components["responses"]["ServiceUnavailable"];
176873
176939
  };
176874
176940
  };
176941
+ getComputeServerGateLogin: {
176942
+ parameters: {
176943
+ query?: never;
176944
+ header?: never;
176945
+ path: {
176946
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
176947
+ serverId: components["parameters"]["ComputeServerId"];
176948
+ };
176949
+ cookie?: never;
176950
+ };
176951
+ requestBody?: never;
176952
+ responses: {
176953
+ /** @description The login's state. */
176954
+ 200: {
176955
+ headers: {
176956
+ [name: string]: unknown;
176957
+ };
176958
+ content: {
176959
+ "application/json": components["schemas"]["ComputeServerGateLogin"];
176960
+ };
176961
+ };
176962
+ 401: components["responses"]["Unauthorized"];
176963
+ 403: components["responses"]["Forbidden"];
176964
+ 404: components["responses"]["NotFound"];
176965
+ 409: components["responses"]["Conflict"];
176966
+ 429: components["responses"]["TooManyRequests"];
176967
+ 503: components["responses"]["ServiceUnavailable"];
176968
+ };
176969
+ };
176970
+ rotateComputeServerGateLogin: {
176971
+ parameters: {
176972
+ query?: never;
176973
+ header?: never;
176974
+ path: {
176975
+ /** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
176976
+ serverId: components["parameters"]["ComputeServerId"];
176977
+ };
176978
+ cookie?: never;
176979
+ };
176980
+ requestBody?: never;
176981
+ responses: {
176982
+ /** @description The rotate is under way; the login's state. */
176983
+ 202: {
176984
+ headers: {
176985
+ [name: string]: unknown;
176986
+ };
176987
+ content: {
176988
+ "application/json": components["schemas"]["ComputeServerGateLogin"];
176989
+ };
176990
+ };
176991
+ 401: components["responses"]["Unauthorized"];
176992
+ 403: components["responses"]["Forbidden"];
176993
+ 404: components["responses"]["NotFound"];
176994
+ 409: components["responses"]["Conflict"];
176995
+ 429: components["responses"]["TooManyRequests"];
176996
+ 503: components["responses"]["ServiceUnavailable"];
176997
+ };
176998
+ };
176875
176999
  getComputeServerHealth: {
176876
177000
  parameters: {
176877
177001
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1986",
3
+ "version": "0.1.1988",
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>",