@zinn-digital/sdk 0.1.2002 → 0.1.2006
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.
- package/dist/generated/schema.d.ts +82 -2
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -84408,7 +84431,9 @@ export interface components {
|
|
|
84408
84431
|
};
|
|
84409
84432
|
ComputeAddPanelStatus: {
|
|
84410
84433
|
available: boolean;
|
|
84434
|
+
/** @description A registered `refusal.enrol.*` sentence, or blank — never a raw error (an SSH error with an address reached a customer before PANEL-C r10). */
|
|
84411
84435
|
panel_message: string;
|
|
84436
|
+
panel_message_refusal?: components["schemas"]["ComputePanelMessageRefusal"];
|
|
84412
84437
|
/** @enum {string} */
|
|
84413
84438
|
panel_state: "" | "enrolling" | "managed" | "failed";
|
|
84414
84439
|
/** @enum {string|null} */
|
|
@@ -84470,8 +84495,10 @@ export interface components {
|
|
|
84470
84495
|
/** @description The tiers we sell on this range. */
|
|
84471
84496
|
tiers: components["schemas"]["ComputeTier"][];
|
|
84472
84497
|
};
|
|
84473
|
-
/** @description CLOUD-U2 (P3-007): whether "With the Zinn® panel" can be ordered on this range. The machine half —
|
|
84498
|
+
/** @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
84499
|
ComputeCataloguePanel: {
|
|
84500
|
+
/** @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`). */
|
|
84501
|
+
images: string[];
|
|
84475
84502
|
min_ram_mb: number;
|
|
84476
84503
|
offered: boolean;
|
|
84477
84504
|
/** @description The refusal key naming why this range cannot have the panel, or null. */
|
|
@@ -84807,6 +84834,15 @@ export interface components {
|
|
|
84807
84834
|
/** @description How long a basket holds an offer's quoted figure. */
|
|
84808
84835
|
lock_seconds: number;
|
|
84809
84836
|
};
|
|
84837
|
+
/** @description The catalogue form of `panel_message`: its `refusal.enrol.*` `key` plus `params`, so the dashboard renders the sentence in the reader's language. Null when `panel_message` is blank. */
|
|
84838
|
+
ComputePanelMessageRefusal: {
|
|
84839
|
+
/** @example refusal.enrol.couldNotCheck */
|
|
84840
|
+
key: string;
|
|
84841
|
+
/** @example {} */
|
|
84842
|
+
params: {
|
|
84843
|
+
[key: string]: string;
|
|
84844
|
+
};
|
|
84845
|
+
} | null;
|
|
84810
84846
|
/** @description What to do to the machine. */
|
|
84811
84847
|
ComputePowerRequest: {
|
|
84812
84848
|
/**
|
|
@@ -85042,8 +85078,9 @@ export interface components {
|
|
|
85042
85078
|
operable: boolean;
|
|
85043
85079
|
/** @description The stack optimisation profile it was built with, or `""` for none. */
|
|
85044
85080
|
optimisation: string;
|
|
85045
|
-
/** @description Customer-facing reason a panel enrolment failed; blank otherwise. */
|
|
85081
|
+
/** @description Customer-facing reason a panel enrolment failed, in English; blank otherwise. ⛔ Only ever a registered `refusal.enrol.*` sentence — a failure no refusal names (an SSH or vendor error) is withheld as blank, never shown raw. Render `panel_message_refusal` in the reader's language when present. */
|
|
85046
85082
|
panel_message: string;
|
|
85083
|
+
panel_message_refusal?: components["schemas"]["ComputePanelMessageRefusal"];
|
|
85047
85084
|
/**
|
|
85048
85085
|
* @description CLOUD-U2 (P3-003): what is REALLY on the machine — blank (nothing of ours), `enrolling`, `managed` or `failed`. The server page shows the panel from this, never from `management`.
|
|
85049
85086
|
* @enum {string}
|
|
@@ -99807,10 +99844,23 @@ export interface components {
|
|
|
99807
99844
|
* @enum {string}
|
|
99808
99845
|
*/
|
|
99809
99846
|
OrgType: "reseller" | "customer" | "staff";
|
|
99847
|
+
/** @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). */
|
|
99848
|
+
OriginLoadCacheBypass: {
|
|
99849
|
+
/** @enum {string} */
|
|
99850
|
+
cause: "guest_cookies";
|
|
99851
|
+
/** @description Cookie NAMES the guest response set (never values; edge cookies dropped). */
|
|
99852
|
+
cookies: string[];
|
|
99853
|
+
/** Format: date-time */
|
|
99854
|
+
probed_at: string;
|
|
99855
|
+
/** @description Generic kind of plugin behind each name, derived only from the names seen. */
|
|
99856
|
+
sources: ("geolocation" | "currency" | "download_manager" | "session" | "other")[];
|
|
99857
|
+
};
|
|
99810
99858
|
/** @description One site's origin-load state (s1014 ORIGINGUARD, docs/1110). */
|
|
99811
99859
|
OriginLoadState: {
|
|
99812
99860
|
/** Format: date-time */
|
|
99813
99861
|
alerted_at?: string | null;
|
|
99862
|
+
/** @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). */
|
|
99863
|
+
cache_bypass?: components["schemas"]["OriginLoadCacheBypass"] | null;
|
|
99814
99864
|
/** Format: date-time */
|
|
99815
99865
|
cleared_at?: string | null;
|
|
99816
99866
|
edge_hit_ratio?: number | null;
|
|
@@ -177822,6 +177872,36 @@ export interface operations {
|
|
|
177822
177872
|
503: components["responses"]["ServiceUnavailable"];
|
|
177823
177873
|
};
|
|
177824
177874
|
};
|
|
177875
|
+
retryComputeServerPanel: {
|
|
177876
|
+
parameters: {
|
|
177877
|
+
query?: never;
|
|
177878
|
+
header?: never;
|
|
177879
|
+
path: {
|
|
177880
|
+
/** @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. */
|
|
177881
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
177882
|
+
};
|
|
177883
|
+
cookie?: never;
|
|
177884
|
+
};
|
|
177885
|
+
requestBody?: never;
|
|
177886
|
+
responses: {
|
|
177887
|
+
/** @description The machine, with `panel_state` now `enrolling`. */
|
|
177888
|
+
200: {
|
|
177889
|
+
headers: {
|
|
177890
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
177891
|
+
[name: string]: unknown;
|
|
177892
|
+
};
|
|
177893
|
+
content: {
|
|
177894
|
+
"application/json": components["schemas"]["ComputeServer"];
|
|
177895
|
+
};
|
|
177896
|
+
};
|
|
177897
|
+
401: components["responses"]["Unauthorized"];
|
|
177898
|
+
403: components["responses"]["Forbidden"];
|
|
177899
|
+
404: components["responses"]["NotFound"];
|
|
177900
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
177901
|
+
429: components["responses"]["TooManyRequests"];
|
|
177902
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
177903
|
+
};
|
|
177904
|
+
};
|
|
177825
177905
|
getComputeServerPlan: {
|
|
177826
177906
|
parameters: {
|
|
177827
177907
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2006",
|
|
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>",
|