@zinn-digital/sdk 0.1.1988 → 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.
- package/dist/generated/schema.d.ts +161 -0
- package/package.json +1 -1
|
@@ -31351,6 +31351,31 @@ export interface paths {
|
|
|
31351
31351
|
patch?: never;
|
|
31352
31352
|
trace?: never;
|
|
31353
31353
|
};
|
|
31354
|
+
"/v1/compute/servers/{serverId}/floating-ips/{floatingIpId}/move": {
|
|
31355
|
+
parameters: {
|
|
31356
|
+
query?: never;
|
|
31357
|
+
header?: never;
|
|
31358
|
+
path: {
|
|
31359
|
+
/** @description The floating IP's id, as `listComputeServerFloatingIps` reports it. */
|
|
31360
|
+
floatingIpId: components["schemas"]["Uuid"];
|
|
31361
|
+
/** @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. */
|
|
31362
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
31363
|
+
};
|
|
31364
|
+
cookie?: never;
|
|
31365
|
+
};
|
|
31366
|
+
get?: never;
|
|
31367
|
+
put?: never;
|
|
31368
|
+
/**
|
|
31369
|
+
* Move a floating IP to another server.
|
|
31370
|
+
* @description Routes the address to another of the organisation's pay-by-the-hour servers with the same provider and in the same region group. The address does not change. Its price comes off this server's rate and goes onto the target's from the next hour. Requires `billing.payment.manage`.
|
|
31371
|
+
*/
|
|
31372
|
+
post: operations["moveComputeServerFloatingIp"];
|
|
31373
|
+
delete?: never;
|
|
31374
|
+
options?: never;
|
|
31375
|
+
head?: never;
|
|
31376
|
+
patch?: never;
|
|
31377
|
+
trace?: never;
|
|
31378
|
+
};
|
|
31354
31379
|
"/v1/compute/servers/{serverId}/floating-ips/quote": {
|
|
31355
31380
|
parameters: {
|
|
31356
31381
|
query?: never;
|
|
@@ -31705,6 +31730,33 @@ export interface paths {
|
|
|
31705
31730
|
patch?: never;
|
|
31706
31731
|
trace?: never;
|
|
31707
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
|
+
};
|
|
31708
31760
|
"/v1/compute/servers/{serverId}/plan": {
|
|
31709
31761
|
parameters: {
|
|
31710
31762
|
query?: never;
|
|
@@ -84132,6 +84184,18 @@ export interface components {
|
|
|
84132
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. */
|
|
84133
84185
|
offer_id: components["schemas"]["Uuid"];
|
|
84134
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
|
+
};
|
|
84135
84199
|
/**
|
|
84136
84200
|
* @description Take an existing provider machine into an organisation.
|
|
84137
84201
|
*
|
|
@@ -84494,6 +84558,9 @@ export interface components {
|
|
|
84494
84558
|
/** @description The data centre. ⛔ Zone counts are wildly asymmetric between providers (Zinn® Cloud has 8 where AWS and GCP have dozens), so a picker must read the catalogue rather than imply parity. */
|
|
84495
84559
|
zone: string;
|
|
84496
84560
|
};
|
|
84561
|
+
ComputeMoveFloatingIpRequest: {
|
|
84562
|
+
to_server_id: components["schemas"]["Uuid"];
|
|
84563
|
+
};
|
|
84497
84564
|
ComputeNetworkAttachment: {
|
|
84498
84565
|
ip: string;
|
|
84499
84566
|
network_id: components["schemas"]["Uuid"];
|
|
@@ -176904,6 +176971,42 @@ export interface operations {
|
|
|
176904
176971
|
503: components["responses"]["ServiceUnavailable"];
|
|
176905
176972
|
};
|
|
176906
176973
|
};
|
|
176974
|
+
moveComputeServerFloatingIp: {
|
|
176975
|
+
parameters: {
|
|
176976
|
+
query?: never;
|
|
176977
|
+
header?: never;
|
|
176978
|
+
path: {
|
|
176979
|
+
/** @description The floating IP's id, as `listComputeServerFloatingIps` reports it. */
|
|
176980
|
+
floatingIpId: components["schemas"]["Uuid"];
|
|
176981
|
+
/** @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. */
|
|
176982
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
176983
|
+
};
|
|
176984
|
+
cookie?: never;
|
|
176985
|
+
};
|
|
176986
|
+
requestBody: {
|
|
176987
|
+
content: {
|
|
176988
|
+
"application/json": components["schemas"]["ComputeMoveFloatingIpRequest"];
|
|
176989
|
+
};
|
|
176990
|
+
};
|
|
176991
|
+
responses: {
|
|
176992
|
+
/** @description The address, now on the target server. */
|
|
176993
|
+
200: {
|
|
176994
|
+
headers: {
|
|
176995
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
176996
|
+
[name: string]: unknown;
|
|
176997
|
+
};
|
|
176998
|
+
content: {
|
|
176999
|
+
"application/json": components["schemas"]["ComputeFloatingIp"];
|
|
177000
|
+
};
|
|
177001
|
+
};
|
|
177002
|
+
401: components["responses"]["Unauthorized"];
|
|
177003
|
+
403: components["responses"]["Forbidden"];
|
|
177004
|
+
404: components["responses"]["NotFound"];
|
|
177005
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
177006
|
+
429: components["responses"]["TooManyRequests"];
|
|
177007
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
177008
|
+
};
|
|
177009
|
+
};
|
|
176907
177010
|
quoteComputeServerFloatingIp: {
|
|
176908
177011
|
parameters: {
|
|
176909
177012
|
query?: never;
|
|
@@ -177422,6 +177525,64 @@ export interface operations {
|
|
|
177422
177525
|
429: components["responses"]["TooManyRequests"];
|
|
177423
177526
|
};
|
|
177424
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
|
+
};
|
|
177425
177586
|
getComputeServerPlan: {
|
|
177426
177587
|
parameters: {
|
|
177427
177588
|
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.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>",
|