@zinn-digital/sdk 0.1.1989 → 0.1.1991

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.
@@ -31730,6 +31730,33 @@ export interface paths {
31730
31730
  patch?: never;
31731
31731
  trace?: never;
31732
31732
  };
31733
+ "/v1/compute/servers/{serverId}/panel": {
31734
+ parameters: {
31735
+ query?: never;
31736
+ header?: never;
31737
+ path: {
31738
+ /** @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. */
31739
+ serverId: components["parameters"]["ComputeServerId"];
31740
+ };
31741
+ cookie?: never;
31742
+ };
31743
+ /**
31744
+ * Whether the Zinn® panel can be added to this server now, and why not.
31745
+ * @description P3-008 (cloud panel lane D). `available` is true when the panel can go on this machine now. Otherwise `reason` names why, one of `not_active`, `suspended`, `cluster`, `already` (the panel is on it or being added), `failed` (an earlier attempt failed: a support case, not offered again here), `standing` (the account is not in good standing), `not_offered`, `windows`, `range`, `small` (under 2 GB of memory), `starter` (a Docker or Kubernetes starter), `other_panel` (a Plesk licence), `cloudlinux` or `image` (an operating system the panel is not proven on yet). `panel_state` and `panel_message` are the server's own (`ComputeServer`). Requires `sites.view`.
31746
+ */
31747
+ get: operations["getComputeServerAddPanel"];
31748
+ put?: never;
31749
+ /**
31750
+ * Add the Zinn® panel to a bare server.
31751
+ * @description Installs our panel stack (web server, PHP, database) on a server the customer already has, through the same enrol workflow an order with the panel starts; the answer is the server with `panel_state: enrolling`, which becomes `managed` (or `failed` with `panel_message`). The panel has no price, so nothing is charged. ⛔ It takes over the machine's web ports, so `confirm` must equal the server's `name` exactly (checked server-side) and the caller needs `sites.view` and `sites.delete`, like a rebuild. The request is audit-logged before anything starts. `422` when the panel cannot be added (the `GET` says why) or the name does not match; `503` when the start could not be made (nothing changed; try again).
31752
+ */
31753
+ post: operations["addComputeServerPanel"];
31754
+ delete?: never;
31755
+ options?: never;
31756
+ head?: never;
31757
+ patch?: never;
31758
+ trace?: never;
31759
+ };
31733
31760
  "/v1/compute/servers/{serverId}/plan": {
31734
31761
  parameters: {
31735
31762
  query?: never;
@@ -84157,6 +84184,18 @@ export interface components {
84157
84184
  /** @description The offer to buy, from `getComputeServerPlan`'s `available` or `getVpsAddonOptions`. ⛔ There is deliberately no price field: a price sent by a client is not read, and the charge is always the catalogue's. */
84158
84185
  offer_id: components["schemas"]["Uuid"];
84159
84186
  };
84187
+ /** @description P3-008. `confirm` must be the server's exact name (checked server-side). */
84188
+ ComputeAddPanelRequest: {
84189
+ confirm: string;
84190
+ };
84191
+ ComputeAddPanelStatus: {
84192
+ available: boolean;
84193
+ panel_message: string;
84194
+ /** @enum {string} */
84195
+ panel_state: "" | "enrolling" | "managed" | "failed";
84196
+ /** @enum {string|null} */
84197
+ reason: "not_active" | "suspended" | "cluster" | "already" | "failed" | "standing" | "not_offered" | "windows" | "range" | "small" | "starter" | "other_panel" | "cloudlinux" | "image" | null;
84198
+ };
84160
84199
  /**
84161
84200
  * @description Take an existing provider machine into an organisation.
84162
84201
  *
@@ -177486,6 +177525,64 @@ export interface operations {
177486
177525
  429: components["responses"]["TooManyRequests"];
177487
177526
  };
177488
177527
  };
177528
+ getComputeServerAddPanel: {
177529
+ parameters: {
177530
+ query?: never;
177531
+ header?: never;
177532
+ path: {
177533
+ /** @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. */
177534
+ serverId: components["parameters"]["ComputeServerId"];
177535
+ };
177536
+ cookie?: never;
177537
+ };
177538
+ requestBody?: never;
177539
+ responses: {
177540
+ /** @description The answer for this server. */
177541
+ 200: {
177542
+ headers: {
177543
+ [name: string]: unknown;
177544
+ };
177545
+ content: {
177546
+ "application/json": components["schemas"]["ComputeAddPanelStatus"];
177547
+ };
177548
+ };
177549
+ 401: components["responses"]["Unauthorized"];
177550
+ 403: components["responses"]["Forbidden"];
177551
+ 404: components["responses"]["NotFound"];
177552
+ };
177553
+ };
177554
+ addComputeServerPanel: {
177555
+ parameters: {
177556
+ query?: never;
177557
+ header?: never;
177558
+ path: {
177559
+ /** @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. */
177560
+ serverId: components["parameters"]["ComputeServerId"];
177561
+ };
177562
+ cookie?: never;
177563
+ };
177564
+ requestBody: {
177565
+ content: {
177566
+ "application/json": components["schemas"]["ComputeAddPanelRequest"];
177567
+ };
177568
+ };
177569
+ responses: {
177570
+ /** @description The server, with the panel being added. */
177571
+ 200: {
177572
+ headers: {
177573
+ [name: string]: unknown;
177574
+ };
177575
+ content: {
177576
+ "application/json": components["schemas"]["ComputeServer"];
177577
+ };
177578
+ };
177579
+ 401: components["responses"]["Unauthorized"];
177580
+ 403: components["responses"]["Forbidden"];
177581
+ 404: components["responses"]["NotFound"];
177582
+ 422: components["responses"]["UnprocessableEntity"];
177583
+ 503: components["responses"]["ServiceUnavailable"];
177584
+ };
177585
+ };
177489
177586
  getComputeServerPlan: {
177490
177587
  parameters: {
177491
177588
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1989",
3
+ "version": "0.1.1991",
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>",