@zinn-digital/sdk 0.1.1822 → 0.1.1823

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;
@@ -101737,6 +101737,10 @@ export interface components {
101737
101737
  config: string;
101738
101738
  seat: components["schemas"]["PrivateNetworkDevice"];
101739
101739
  };
101740
+ /** @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). */
101741
+ PrivateNetworkRead: {
101742
+ network: components["schemas"]["PrivateNetwork"] | null;
101743
+ };
101740
101744
  /** @description One personal, single-use code. The code itself is a credential worth one purchase. */
101741
101745
  ProDiscountCode: {
101742
101746
  /**
@@ -196639,18 +196643,17 @@ export interface operations {
196639
196643
  };
196640
196644
  requestBody?: never;
196641
196645
  responses: {
196642
- /** @description The network and its devices. */
196646
+ /** @description The network and its devices, or `network` null when there is none. */
196643
196647
  200: {
196644
196648
  headers: {
196645
196649
  [name: string]: unknown;
196646
196650
  };
196647
196651
  content: {
196648
- "application/json": components["schemas"]["PrivateNetwork"];
196652
+ "application/json": components["schemas"]["PrivateNetworkRead"];
196649
196653
  };
196650
196654
  };
196651
196655
  401: components["responses"]["Unauthorized"];
196652
196656
  403: components["responses"]["Forbidden"];
196653
- 404: components["responses"]["NotFound"];
196654
196657
  };
196655
196658
  };
196656
196659
  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.1823",
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>",