@zinn-digital/sdk 0.1.2008 → 0.1.2009
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 +111 -0
- package/package.json +1 -1
|
@@ -32226,6 +32226,33 @@ export interface paths {
|
|
|
32226
32226
|
patch?: never;
|
|
32227
32227
|
trace?: never;
|
|
32228
32228
|
};
|
|
32229
|
+
"/v1/compute/servers/{serverId}/site-moves": {
|
|
32230
|
+
parameters: {
|
|
32231
|
+
query?: never;
|
|
32232
|
+
header?: never;
|
|
32233
|
+
path: {
|
|
32234
|
+
/** @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. */
|
|
32235
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
32236
|
+
};
|
|
32237
|
+
cookie?: never;
|
|
32238
|
+
};
|
|
32239
|
+
/**
|
|
32240
|
+
* The websites you can move onto this server of yours.
|
|
32241
|
+
* @description Cloud panel P3-002 slice 2: the organisation's live Managed WordPress sites that sit on our shared servers, are not moving, and so can move onto this server, plus whether the server can take one now. `can_move` is false with a machine `refusal` code (`not_offered`, `not_managed`, `not_operable`, `disk_full`, `low_memory`, `capacity_unknown`, `not_in_good_standing`) the dashboard turns into words per locale. No money moves: the server is already the customer's. Requires `sites.view`; `404` for a server that is not the caller's.
|
|
32242
|
+
*/
|
|
32243
|
+
get: operations["listComputeServerSiteMoveCandidates"];
|
|
32244
|
+
put?: never;
|
|
32245
|
+
/**
|
|
32246
|
+
* Move one of your websites onto this server of yours.
|
|
32247
|
+
* @description Starts the same parity-gated move a paid own-server move runs (reason `own_vps`): the site is copied onto this server, checked, cut over, and the old copy is kept for seven days, during which `rollbackSiteOwnVps` moves it back. Nothing is bought and the server is never removed by a move back. Refusals are `422` with a machine code in `details[0].code`: the candidate list's refusal codes plus `site_not_live`, `site_not_managed_wordpress`, `site_already_own_server`, `site_moving`. Audit-logged as `compute.server.site_move_started`. Requires `sites.create`; `404` for a server or a site that is not the caller's.
|
|
32248
|
+
*/
|
|
32249
|
+
post: operations["moveSiteToComputeServer"];
|
|
32250
|
+
delete?: never;
|
|
32251
|
+
options?: never;
|
|
32252
|
+
head?: never;
|
|
32253
|
+
patch?: never;
|
|
32254
|
+
trace?: never;
|
|
32255
|
+
};
|
|
32229
32256
|
"/v1/compute/servers/{serverId}/sites": {
|
|
32230
32257
|
parameters: {
|
|
32231
32258
|
query?: never;
|
|
@@ -85606,6 +85633,32 @@ export interface components {
|
|
|
85606
85633
|
php_version?: string;
|
|
85607
85634
|
primary_domain: string;
|
|
85608
85635
|
};
|
|
85636
|
+
/** @description The sites that can move onto one server, and whether it can take one now. */
|
|
85637
|
+
ComputeServerSiteMoveCandidates: {
|
|
85638
|
+
can_move: boolean;
|
|
85639
|
+
data: {
|
|
85640
|
+
/** Format: uuid */
|
|
85641
|
+
id: string;
|
|
85642
|
+
name: string;
|
|
85643
|
+
primary_domain: string;
|
|
85644
|
+
stack_type: string;
|
|
85645
|
+
}[];
|
|
85646
|
+
refusal: string | null;
|
|
85647
|
+
/** Format: uuid */
|
|
85648
|
+
server_id: string;
|
|
85649
|
+
};
|
|
85650
|
+
ComputeServerSiteMoveRequest: {
|
|
85651
|
+
/** Format: uuid */
|
|
85652
|
+
site_id: string;
|
|
85653
|
+
};
|
|
85654
|
+
ComputeServerSiteMoveStarted: {
|
|
85655
|
+
/** Format: uuid */
|
|
85656
|
+
server_id: string;
|
|
85657
|
+
/** Format: uuid */
|
|
85658
|
+
site_id: string;
|
|
85659
|
+
/** @description The move's run; the site's own-server card (`getSiteOwnVps`) shows its progress. */
|
|
85660
|
+
workflow_id: string;
|
|
85661
|
+
};
|
|
85609
85662
|
/** @description The sites on one server plus whether a new one can be deployed there. */
|
|
85610
85663
|
ComputeServerSites: {
|
|
85611
85664
|
applications: string[];
|
|
@@ -178796,6 +178849,64 @@ export interface operations {
|
|
|
178796
178849
|
503: components["responses"]["ServiceUnavailable"];
|
|
178797
178850
|
};
|
|
178798
178851
|
};
|
|
178852
|
+
listComputeServerSiteMoveCandidates: {
|
|
178853
|
+
parameters: {
|
|
178854
|
+
query?: never;
|
|
178855
|
+
header?: never;
|
|
178856
|
+
path: {
|
|
178857
|
+
/** @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. */
|
|
178858
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
178859
|
+
};
|
|
178860
|
+
cookie?: never;
|
|
178861
|
+
};
|
|
178862
|
+
requestBody?: never;
|
|
178863
|
+
responses: {
|
|
178864
|
+
/** @description The sites that can move here, and whether the server can take one. */
|
|
178865
|
+
200: {
|
|
178866
|
+
headers: {
|
|
178867
|
+
[name: string]: unknown;
|
|
178868
|
+
};
|
|
178869
|
+
content: {
|
|
178870
|
+
"application/json": components["schemas"]["ComputeServerSiteMoveCandidates"];
|
|
178871
|
+
};
|
|
178872
|
+
};
|
|
178873
|
+
401: components["responses"]["Unauthorized"];
|
|
178874
|
+
403: components["responses"]["Forbidden"];
|
|
178875
|
+
404: components["responses"]["NotFound"];
|
|
178876
|
+
};
|
|
178877
|
+
};
|
|
178878
|
+
moveSiteToComputeServer: {
|
|
178879
|
+
parameters: {
|
|
178880
|
+
query?: never;
|
|
178881
|
+
header?: never;
|
|
178882
|
+
path: {
|
|
178883
|
+
/** @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. */
|
|
178884
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
178885
|
+
};
|
|
178886
|
+
cookie?: never;
|
|
178887
|
+
};
|
|
178888
|
+
requestBody: {
|
|
178889
|
+
content: {
|
|
178890
|
+
"application/json": components["schemas"]["ComputeServerSiteMoveRequest"];
|
|
178891
|
+
};
|
|
178892
|
+
};
|
|
178893
|
+
responses: {
|
|
178894
|
+
/** @description The move has started; the site's own-server card follows it. */
|
|
178895
|
+
202: {
|
|
178896
|
+
headers: {
|
|
178897
|
+
[name: string]: unknown;
|
|
178898
|
+
};
|
|
178899
|
+
content: {
|
|
178900
|
+
"application/json": components["schemas"]["ComputeServerSiteMoveStarted"];
|
|
178901
|
+
};
|
|
178902
|
+
};
|
|
178903
|
+
401: components["responses"]["Unauthorized"];
|
|
178904
|
+
403: components["responses"]["Forbidden"];
|
|
178905
|
+
404: components["responses"]["NotFound"];
|
|
178906
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
178907
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
178908
|
+
};
|
|
178909
|
+
};
|
|
178799
178910
|
listComputeServerSites: {
|
|
178800
178911
|
parameters: {
|
|
178801
178912
|
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.2009",
|
|
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>",
|