@zinn-digital/sdk 0.1.1821 → 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.
@@ -13193,6 +13193,30 @@ export interface paths {
13193
13193
  patch: operations["updateAdminReviewInvites"];
13194
13194
  trace?: never;
13195
13195
  };
13196
+ "/v1/admin/review-invites/reviewed": {
13197
+ parameters: {
13198
+ query?: never;
13199
+ header?: never;
13200
+ path?: never;
13201
+ cookie?: never;
13202
+ };
13203
+ /**
13204
+ * The customers staff ticked as having already reviewed us (they get no more review asks).
13205
+ * @description V1's staff "reviewed" tick. Newest tick first; `total` counts every ticked customer. Requires staff + `campaigns.view`.
13206
+ */
13207
+ get: operations["listAdminReviewInvitesReviewed"];
13208
+ put?: never;
13209
+ /**
13210
+ * Tick (or clear) "already reviewed us" for one customer.
13211
+ * @description `reviewed: true` stops the review ask for that customer for good (its enrollment closes with exit reason `reviewed`; one is created closed when the customer was never asked). `reviewed: false` clears the tick: asks that already started resume at the next paid renewal, and a customer never asked is treated as new again. Audit-logged (`review_invites.reviewed`) whenever something changed. Requires staff + `campaigns.manage`.
13212
+ */
13213
+ post: operations["setAdminReviewInvitesReviewed"];
13214
+ delete?: never;
13215
+ options?: never;
13216
+ head?: never;
13217
+ patch?: never;
13218
+ trace?: never;
13219
+ };
13196
13220
  "/v1/admin/review-invites/test-send": {
13197
13221
  parameters: {
13198
13222
  query?: never;
@@ -44638,7 +44662,7 @@ export interface paths {
44638
44662
  *
44639
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.
44640
44664
  *
44641
- * 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.)
44642
44666
  */
44643
44667
  get: operations["getPrivateNetwork"];
44644
44668
  put?: never;
@@ -66145,6 +66169,34 @@ export interface components {
66145
66169
  [key: string]: string;
66146
66170
  };
66147
66171
  };
66172
+ AdminReviewInvitesReviewedPage: {
66173
+ data: components["schemas"]["AdminReviewInvitesReviewedRow"][];
66174
+ limit: number;
66175
+ offset: number;
66176
+ total: number;
66177
+ };
66178
+ AdminReviewInvitesReviewedRequest: {
66179
+ /** Format: uuid */
66180
+ org_id: string;
66181
+ /** @default true */
66182
+ reviewed: boolean;
66183
+ };
66184
+ AdminReviewInvitesReviewedResult: {
66185
+ /** @enum {string} */
66186
+ change: "ticked" | "cleared" | "unchanged";
66187
+ /** Format: uuid */
66188
+ org_id: string;
66189
+ reviewed: boolean;
66190
+ };
66191
+ AdminReviewInvitesReviewedRow: {
66192
+ /** @description Review asks sent before the tick (0-3). */
66193
+ invites_sent: number;
66194
+ /** Format: uuid */
66195
+ org_id: string;
66196
+ org_name: string;
66197
+ /** Format: date-time */
66198
+ reviewed_at: string | null;
66199
+ };
66148
66200
  AdminReviewInviteTest: {
66149
66201
  locale: string;
66150
66202
  provider_message_id: string;
@@ -101685,6 +101737,10 @@ export interface components {
101685
101737
  config: string;
101686
101738
  seat: components["schemas"]["PrivateNetworkDevice"];
101687
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
+ };
101688
101744
  /** @description One personal, single-use code. The code itself is a credential worth one purchase. */
101689
101745
  ProDiscountCode: {
101690
101746
  /**
@@ -142811,6 +142867,60 @@ export interface operations {
142811
142867
  422: components["responses"]["UnprocessableEntity"];
142812
142868
  };
142813
142869
  };
142870
+ listAdminReviewInvitesReviewed: {
142871
+ parameters: {
142872
+ query?: {
142873
+ limit?: number;
142874
+ offset?: number;
142875
+ };
142876
+ header?: never;
142877
+ path?: never;
142878
+ cookie?: never;
142879
+ };
142880
+ requestBody?: never;
142881
+ responses: {
142882
+ /** @description One page of ticked customers. */
142883
+ 200: {
142884
+ headers: {
142885
+ [name: string]: unknown;
142886
+ };
142887
+ content: {
142888
+ "application/json": components["schemas"]["AdminReviewInvitesReviewedPage"];
142889
+ };
142890
+ };
142891
+ 401: components["responses"]["Unauthorized"];
142892
+ 403: components["responses"]["Forbidden"];
142893
+ 422: components["responses"]["UnprocessableEntity"];
142894
+ };
142895
+ };
142896
+ setAdminReviewInvitesReviewed: {
142897
+ parameters: {
142898
+ query?: never;
142899
+ header?: never;
142900
+ path?: never;
142901
+ cookie?: never;
142902
+ };
142903
+ requestBody: {
142904
+ content: {
142905
+ "application/json": components["schemas"]["AdminReviewInvitesReviewedRequest"];
142906
+ };
142907
+ };
142908
+ responses: {
142909
+ /** @description What changed. */
142910
+ 200: {
142911
+ headers: {
142912
+ [name: string]: unknown;
142913
+ };
142914
+ content: {
142915
+ "application/json": components["schemas"]["AdminReviewInvitesReviewedResult"];
142916
+ };
142917
+ };
142918
+ 401: components["responses"]["Unauthorized"];
142919
+ 403: components["responses"]["Forbidden"];
142920
+ 404: components["responses"]["NotFound"];
142921
+ 422: components["responses"]["UnprocessableEntity"];
142922
+ };
142923
+ };
142814
142924
  sendAdminReviewInviteTest: {
142815
142925
  parameters: {
142816
142926
  query?: never;
@@ -196533,18 +196643,17 @@ export interface operations {
196533
196643
  };
196534
196644
  requestBody?: never;
196535
196645
  responses: {
196536
- /** @description The network and its devices. */
196646
+ /** @description The network and its devices, or `network` null when there is none. */
196537
196647
  200: {
196538
196648
  headers: {
196539
196649
  [name: string]: unknown;
196540
196650
  };
196541
196651
  content: {
196542
- "application/json": components["schemas"]["PrivateNetwork"];
196652
+ "application/json": components["schemas"]["PrivateNetworkRead"];
196543
196653
  };
196544
196654
  };
196545
196655
  401: components["responses"]["Unauthorized"];
196546
196656
  403: components["responses"]["Forbidden"];
196547
- 404: components["responses"]["NotFound"];
196548
196657
  };
196549
196658
  };
196550
196659
  enrolPrivateNetworkDevice: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1821",
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>",