@zinn-digital/sdk 0.1.2008 → 0.1.2010

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.
@@ -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;
@@ -84557,6 +84584,10 @@ export interface components {
84557
84584
  };
84558
84585
  ComputeAddPanelStatus: {
84559
84586
  available: boolean;
84587
+ /** @description The Zinn panel's access key, PUBLIC line only (`ssh-ed25519 AAAA… comment`), for a server we did not build with it (bought bare). The customer adds it to `key_path` before pressing Add, because the enrolment signs in with that key; without it the enrolment ends `refusal.enrol.keyNotInstalled`. `""` when no step is needed (a server built with our key, a panel being added or already on) or the key cannot be read right now. Never the private half, never the customer's own key. */
84588
+ key_line: string;
84589
+ /** @description The file `key_line` goes in on the server: the `authorized_keys` of the account the enrolment signs in as, the box's own login user (`/home/admin/.ssh/authorized_keys` on a box built with the access model), never a fixed `/root` path; `""` exactly when `key_line` is. */
84590
+ key_path: string;
84560
84591
  /** @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). */
84561
84592
  panel_message: string;
84562
84593
  panel_message_refusal?: components["schemas"]["ComputePanelMessageRefusal"] | null;
@@ -85606,6 +85637,32 @@ export interface components {
85606
85637
  php_version?: string;
85607
85638
  primary_domain: string;
85608
85639
  };
85640
+ /** @description The sites that can move onto one server, and whether it can take one now. */
85641
+ ComputeServerSiteMoveCandidates: {
85642
+ can_move: boolean;
85643
+ data: {
85644
+ /** Format: uuid */
85645
+ id: string;
85646
+ name: string;
85647
+ primary_domain: string;
85648
+ stack_type: string;
85649
+ }[];
85650
+ refusal: string | null;
85651
+ /** Format: uuid */
85652
+ server_id: string;
85653
+ };
85654
+ ComputeServerSiteMoveRequest: {
85655
+ /** Format: uuid */
85656
+ site_id: string;
85657
+ };
85658
+ ComputeServerSiteMoveStarted: {
85659
+ /** Format: uuid */
85660
+ server_id: string;
85661
+ /** Format: uuid */
85662
+ site_id: string;
85663
+ /** @description The move's run; the site's own-server card (`getSiteOwnVps`) shows its progress. */
85664
+ workflow_id: string;
85665
+ };
85609
85666
  /** @description The sites on one server plus whether a new one can be deployed there. */
85610
85667
  ComputeServerSites: {
85611
85668
  applications: string[];
@@ -178796,6 +178853,64 @@ export interface operations {
178796
178853
  503: components["responses"]["ServiceUnavailable"];
178797
178854
  };
178798
178855
  };
178856
+ listComputeServerSiteMoveCandidates: {
178857
+ parameters: {
178858
+ query?: never;
178859
+ header?: never;
178860
+ path: {
178861
+ /** @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. */
178862
+ serverId: components["parameters"]["ComputeServerId"];
178863
+ };
178864
+ cookie?: never;
178865
+ };
178866
+ requestBody?: never;
178867
+ responses: {
178868
+ /** @description The sites that can move here, and whether the server can take one. */
178869
+ 200: {
178870
+ headers: {
178871
+ [name: string]: unknown;
178872
+ };
178873
+ content: {
178874
+ "application/json": components["schemas"]["ComputeServerSiteMoveCandidates"];
178875
+ };
178876
+ };
178877
+ 401: components["responses"]["Unauthorized"];
178878
+ 403: components["responses"]["Forbidden"];
178879
+ 404: components["responses"]["NotFound"];
178880
+ };
178881
+ };
178882
+ moveSiteToComputeServer: {
178883
+ parameters: {
178884
+ query?: never;
178885
+ header?: never;
178886
+ path: {
178887
+ /** @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. */
178888
+ serverId: components["parameters"]["ComputeServerId"];
178889
+ };
178890
+ cookie?: never;
178891
+ };
178892
+ requestBody: {
178893
+ content: {
178894
+ "application/json": components["schemas"]["ComputeServerSiteMoveRequest"];
178895
+ };
178896
+ };
178897
+ responses: {
178898
+ /** @description The move has started; the site's own-server card follows it. */
178899
+ 202: {
178900
+ headers: {
178901
+ [name: string]: unknown;
178902
+ };
178903
+ content: {
178904
+ "application/json": components["schemas"]["ComputeServerSiteMoveStarted"];
178905
+ };
178906
+ };
178907
+ 401: components["responses"]["Unauthorized"];
178908
+ 403: components["responses"]["Forbidden"];
178909
+ 404: components["responses"]["NotFound"];
178910
+ 422: components["responses"]["UnprocessableEntity"];
178911
+ 503: components["responses"]["ServiceUnavailable"];
178912
+ };
178913
+ };
178799
178914
  listComputeServerSites: {
178800
178915
  parameters: {
178801
178916
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2008",
3
+ "version": "0.1.2010",
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>",