@zinn-digital/sdk 0.1.1584 → 0.1.1585

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.
@@ -51696,7 +51696,7 @@ export interface paths {
51696
51696
  * Sign in to the old host and show what is there.
51697
51697
  * @description The migration form's preview: authenticates against the source and enumerates the estate **without creating a job**. Run while the customer is still on the screen, which is the whole design — a wrong password becomes a form error instead of a job that fails an hour later, and the customer confirms what is about to move before anything is committed. It is also where the mail precondition is discovered early enough to be fixable.
51698
51698
  *
51699
- * Read `unavailable` before believing an empty list: it names what we could not look at, and "there is no mail here" and "this login cannot see mail" are opposite answers. Refusals arrive as 422 with a machine `code` per detail row (`source_credentials_rejected`, `source_unreachable`, `source_port_unreachable`, `source_host_not_public`, `plesk_needs_admin_credentials`, `credential_required`), so the dashboard localises them rather than showing engine English. `source_port_unreachable` is returned within ~8 s when nothing accepts a TCP connection on the source's port, and carries two more rows with the same code: `field: port` and `field: addresses` (our outbound IPv4 addresses, read live from the cluster, for the customer's host to allow). `source_admin_login_needs_subscription_login` (a Plesk administrator login: the copy needs the subscription's own FTP/SSH login, named in `field: logins`) and `source_login_attempts_paused` (after 2 refused logins to one host inside 10 minutes no further login is tried, so the source's brute-force guard never bans us; `field: minutes`) are refusals too. `source_file_access_refused`: the control panel accepted the login but SSH and FTP both refused it (the password is right; SSH or FTP access is off for the account). When only SSH refuses, files move over FTP and databases are listed in `unavailable` as `ftp_login_cannot_reach_mysql`.
51699
+ * Read `unavailable` before believing an empty list: it names what we could not look at, and "there is no mail here" and "this login cannot see mail" are opposite answers. Refusals arrive as 422 with a machine `code` per detail row (`source_credentials_rejected`, `source_unreachable`, `source_port_unreachable`, `source_host_not_public`, `plesk_needs_admin_credentials`, `credential_required`), so the dashboard localises them rather than showing engine English. `source_port_unreachable` is returned within ~8 s when nothing accepts a TCP connection on the source's port, and carries two more rows with the same code: `field: port` and `field: addresses` (our outbound IPv4 addresses, read live from the cluster, for the customer's host to allow). `source_admin_login_needs_subscription_login` (a Plesk administrator login: the copy needs the subscription's own FTP/SSH login, named in `field: logins`) and `source_login_attempts_paused` (after 2 refused logins to one host inside 10 minutes no further login is tried, so the source's brute-force guard never bans us; `field: minutes`) are refusals too. `source_file_access_refused`: the control panel accepted the login but SSH and FTP both refused it (the password is right; SSH or FTP access is off for the account). When only SSH refuses, files move over FTP and databases are listed in `unavailable` as `ftp_login_cannot_reach_mysql`. An `ftp` source itself reads the database through a one-time PHP helper (docs/1296), deleted straight after and verified gone over FTP.
51700
51700
  *
51701
51701
  * ⛔ `POST` although it creates nothing: the body carries a live credential for somebody else's server, and a `GET` would put it in a query string — browser history, proxy logs, access logs. Requires `hosting.import.manage`.
51702
51702
  */
@@ -90949,7 +90949,7 @@ export interface components {
90949
90949
  */
90950
90950
  database_port: number;
90951
90951
  /**
90952
- * @description Optional. The source site's own database login. An `ssh` source otherwise uses the account's `~/.my.cnf` or the site's `wp-config.php`; a login sent here wins over both. Stored in the secret store with the rest, never returned.
90952
+ * @description Optional. The source site's own database login. An `ssh` source otherwise uses the account's `~/.my.cnf` or the site's `wp-config.php`; a login sent here wins over both. An `ftp` source hands it to its one-time helper, and only over a verified https address. Stored in the secret store with the rest, never returned.
90953
90953
  * @default
90954
90954
  */
90955
90955
  database_username: string;
@@ -91213,7 +91213,7 @@ export interface components {
91213
91213
  total_bytes: number;
91214
91214
  /** @description True when the source stopped short of a complete listing. Reported, never swallowed. */
91215
91215
  truncated: boolean;
91216
- /** @description ⭐ **The most important field here**: `capability -> machine code`, naming what we could not look at. An empty object means "we looked and there is nothing else", which is a different claim from "we could not look" — and a client that renders the two the same tells a customer they have no mail when in fact we simply could not read it. */
91216
+ /** @description ⭐ **The most important field here**: `capability -> machine code`, naming what we could not look at. An empty object means "we looked and there is nothing else", which is a different claim from "we could not look" — and a client that renders the two the same tells a customer they have no mail when in fact we simply could not read it. An `ftp` source reads its database through a one-time PHP helper (docs/1296); when it cannot, `site_migration:databases` carries one of `bridge_php_not_run`, `bridge_blocked`, `bridge_site_password`, `bridge_site_unreachable`, `bridge_site_not_on_source`, `bridge_upload_refused`, `bridge_no_site_domain`, `bridge_no_mysql_in_php`, `bridge_config_not_found`, `bridge_database_login_refused` (both fixable with the `database_*` login), `bridge_database_not_mysql`, `bridge_query_failed`, or `ftp_login_cannot_reach_mysql` (no site address or no database config to look for). */
91217
91217
  unavailable: {
91218
91218
  [key: string]: string;
91219
91219
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1584",
3
+ "version": "0.1.1585",
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>",