@zinn-digital/sdk 0.1.2002 → 0.1.2005

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.
@@ -31757,6 +31757,29 @@ export interface paths {
31757
31757
  patch?: never;
31758
31758
  trace?: never;
31759
31759
  };
31760
+ "/v1/compute/servers/{serverId}/panel/retry": {
31761
+ parameters: {
31762
+ query?: never;
31763
+ header?: never;
31764
+ path: {
31765
+ /** @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. */
31766
+ serverId: components["parameters"]["ComputeServerId"];
31767
+ };
31768
+ cookie?: never;
31769
+ };
31770
+ get?: never;
31771
+ put?: never;
31772
+ /**
31773
+ * Retry the Zinn panel's setup on a server.
31774
+ * @description Start the Zinn® panel's setup again on a server ordered with the panel whose setup failed (`panel_state` is `failed`). Each retry is a fresh setup run; a second request while one is running is refused, so a double click starts one setup. A server whose setup is running or done, a bare server, or one whose operating system the panel cannot be installed on returns 422 and changes nothing. Costs nothing. Requires `sites.restart`.
31775
+ */
31776
+ post: operations["retryComputeServerPanel"];
31777
+ delete?: never;
31778
+ options?: never;
31779
+ head?: never;
31780
+ patch?: never;
31781
+ trace?: never;
31782
+ };
31760
31783
  "/v1/compute/servers/{serverId}/plan": {
31761
31784
  parameters: {
31762
31785
  query?: never;
@@ -84470,8 +84493,10 @@ export interface components {
84470
84493
  /** @description The tiers we sell on this range. */
84471
84494
  tiers: components["schemas"]["ComputeTier"][];
84472
84495
  };
84473
- /** @description CLOUD-U2 (P3-007): whether "With the Zinn® panel" can be ordered on this range. The machine half — a Linux image and at least `min_ram_mb` of memory — is judged per size with these numbers by the screen and again by the order, which refuses `422`. */
84496
+ /** @description CLOUD-U2 (P3-007): whether "With the Zinn® panel" can be ordered on this range. The machine half — an image in `images` and at least `min_ram_mb` of memory — is judged per size with these numbers by the screen and again by the order, which refuses `422`. */
84474
84497
  ComputeCataloguePanel: {
84498
+ /** @description The operating-system images the panel can be installed on, as normalised keys (`alma-9`); empty when the panel is not offered. An order with the panel on any other image is refused `422` (`refusal.compute.panelImageNotSupported`). */
84499
+ images: string[];
84475
84500
  min_ram_mb: number;
84476
84501
  offered: boolean;
84477
84502
  /** @description The refusal key naming why this range cannot have the panel, or null. */
@@ -99807,10 +99832,23 @@ export interface components {
99807
99832
  * @enum {string}
99808
99833
  */
99809
99834
  OrgType: "reseller" | "customer" | "staff";
99835
+ /** @description Why guest pages are not cached: the site's guest responses set cookies, so the page cache stores nothing and every visitor waits for PHP. Read from one cookieless guest GET of the home page, at most once an hour, and only for a site the origin-load signal already flags (watching or slow) - never a sweep of every site (docs/1110 §4a, §6). */
99836
+ OriginLoadCacheBypass: {
99837
+ /** @enum {string} */
99838
+ cause: "guest_cookies";
99839
+ /** @description Cookie NAMES the guest response set (never values; edge cookies dropped). */
99840
+ cookies: string[];
99841
+ /** Format: date-time */
99842
+ probed_at: string;
99843
+ /** @description Generic kind of plugin behind each name, derived only from the names seen. */
99844
+ sources: ("geolocation" | "currency" | "download_manager" | "session" | "other")[];
99845
+ };
99810
99846
  /** @description One site's origin-load state (s1014 ORIGINGUARD, docs/1110). */
99811
99847
  OriginLoadState: {
99812
99848
  /** Format: date-time */
99813
99849
  alerted_at?: string | null;
99850
+ /** @description Set while the site is flagged (watching or slow) AND its guest pages miss the page cache AND a guest request to its home page was answered with cookies (ORIGINSLOW, docs/1110 §4a). null = no such evidence (not measured, or the pages are cached). */
99851
+ cache_bypass?: components["schemas"]["OriginLoadCacheBypass"] | null;
99814
99852
  /** Format: date-time */
99815
99853
  cleared_at?: string | null;
99816
99854
  edge_hit_ratio?: number | null;
@@ -177822,6 +177860,36 @@ export interface operations {
177822
177860
  503: components["responses"]["ServiceUnavailable"];
177823
177861
  };
177824
177862
  };
177863
+ retryComputeServerPanel: {
177864
+ parameters: {
177865
+ query?: never;
177866
+ header?: never;
177867
+ path: {
177868
+ /** @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. */
177869
+ serverId: components["parameters"]["ComputeServerId"];
177870
+ };
177871
+ cookie?: never;
177872
+ };
177873
+ requestBody?: never;
177874
+ responses: {
177875
+ /** @description The machine, with `panel_state` now `enrolling`. */
177876
+ 200: {
177877
+ headers: {
177878
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
177879
+ [name: string]: unknown;
177880
+ };
177881
+ content: {
177882
+ "application/json": components["schemas"]["ComputeServer"];
177883
+ };
177884
+ };
177885
+ 401: components["responses"]["Unauthorized"];
177886
+ 403: components["responses"]["Forbidden"];
177887
+ 404: components["responses"]["NotFound"];
177888
+ 422: components["responses"]["UnprocessableEntity"];
177889
+ 429: components["responses"]["TooManyRequests"];
177890
+ 503: components["responses"]["ServiceUnavailable"];
177891
+ };
177892
+ };
177825
177893
  getComputeServerPlan: {
177826
177894
  parameters: {
177827
177895
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2002",
3
+ "version": "0.1.2005",
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>",