@zinn-digital/sdk 0.1.1822 → 0.1.1825

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.
@@ -44662,7 +44662,7 @@ export interface paths {
44662
44662
  *
44663
44663
  * ⛔ **This is not a browsing VPN.** A device reaches the customer's own estate and nothing else — the issued configuration carries no default route — so no third-party traffic ever leaves a Zinn® address. The product exists so a team can add ONE stable address to their SSH/SFTP allow-lists (`/v1/ip-allow`) instead of chasing changing home and mobile addresses.
44664
44664
  *
44665
- * 404 when the organisation has not bought the product. Deliberately not an empty network: a shell would make the screen look like something they own that does nothing.
44665
+ * 200 with `network: null` when the organisation has not bought the product, or when `org_id` names an organisation outside the caller's subtree (the two read the same, never a 403). Deliberately null rather than an empty network: a shell would make the screen look like something they own that does nothing. (It was a 404 until NIGHTFIX1114 PNEMPTY; a normal "not bought" answer logged a console error on every load.)
44666
44666
  */
44667
44667
  get: operations["getPrivateNetwork"];
44668
44668
  put?: never;
@@ -83152,8 +83152,17 @@ export interface components {
83152
83152
  * @enum {string}
83153
83153
  */
83154
83154
  management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
83155
- /** @description Why the order failed, in a sentence the customer reads. Blank unless `failed`. */
83155
+ /** @description Why the order failed, as an English sentence for staff, support and SDK readers. Blank unless `failed`. A client renders `message_code` instead when it is set. */
83156
83156
  message: string;
83157
+ /**
83158
+ * @description NIGHTFIX1114 FAILEDSRV: the half of `message` a client renders, as a stable code it translates (the platform ships in 58 languages; `message` is English). `build_failed_ticket` (we opened support ticket `message_params.ticket_id`), `build_failed_no_ticket` (the ticket could not be opened), `build_retry_held` (a retried rebuild failed again and we are on it). Null when `message` is blank or not one of these; the client then shows `message`.
83159
+ * @enum {string|null}
83160
+ */
83161
+ message_code?: "build_retry_held" | "build_failed_no_ticket" | "build_failed_ticket" | null;
83162
+ /** @description The values `message_code` interpolates; `ticket_id` for `build_failed_ticket`, otherwise empty. */
83163
+ message_params?: {
83164
+ [key: string]: string;
83165
+ };
83157
83166
  /** @description What the customer called it. ⛔ At the provider a machine's name is its row id; confusing the two is a cross-tenant defect, so this is the customer's string and nothing else. */
83158
83167
  name: string;
83159
83168
  /** @description Whether the customer may act on this machine — power, resize, renew, rebuild. ⛔ Read rather than re-derived from `status`: the engine refuses every one of those on anything but `active`, **and on anything suspended**, so a screen computing its own answer would eventually offer a control the engine refuses. */
@@ -101737,6 +101746,10 @@ export interface components {
101737
101746
  config: string;
101738
101747
  seat: components["schemas"]["PrivateNetworkDevice"];
101739
101748
  };
101749
+ /** @description `GET /v1/private-network`. `network` is null when the organisation has not bought the product (NIGHTFIX1114 PNEMPTY: a normal answer, so a 200, not a 404). */
101750
+ PrivateNetworkRead: {
101751
+ network: components["schemas"]["PrivateNetwork"] | null;
101752
+ };
101740
101753
  /** @description One personal, single-use code. The code itself is a credential worth one purchase. */
101741
101754
  ProDiscountCode: {
101742
101755
  /**
@@ -196639,18 +196652,17 @@ export interface operations {
196639
196652
  };
196640
196653
  requestBody?: never;
196641
196654
  responses: {
196642
- /** @description The network and its devices. */
196655
+ /** @description The network and its devices, or `network` null when there is none. */
196643
196656
  200: {
196644
196657
  headers: {
196645
196658
  [name: string]: unknown;
196646
196659
  };
196647
196660
  content: {
196648
- "application/json": components["schemas"]["PrivateNetwork"];
196661
+ "application/json": components["schemas"]["PrivateNetworkRead"];
196649
196662
  };
196650
196663
  };
196651
196664
  401: components["responses"]["Unauthorized"];
196652
196665
  403: components["responses"]["Forbidden"];
196653
- 404: components["responses"]["NotFound"];
196654
196666
  };
196655
196667
  };
196656
196668
  enrolPrivateNetworkDevice: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1822",
3
+ "version": "0.1.1825",
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>",