@zinn-digital/sdk 0.1.1583 → 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
  */
@@ -77512,6 +77512,12 @@ export interface components {
77512
77512
  * @example paypal
77513
77513
  */
77514
77514
  gateway?: string | null;
77515
+ /**
77516
+ * Format: uuid
77517
+ * @description Which of the organisation's **own saved cards** pays (row 1107#10, owner 2026-11-07: *"they can save more than one card right so if so can they select it"*). An `id` from `listPaymentMethods` that is active, confirmed, unexpired and on the chosen `gateway`. The charge is pinned to that card for this order only; the account's primary and backup roles are not changed. Omit it (or send `null`) and the primary is tried first, then the backup, as before. Any other id (another organisation's, a revoked or expired card, a card on another rail) is refused `422` with `details[0].field = payment_method_id` before any order is placed.
77518
+ * @example 0190f1a2-7c3e-7b1a-9a55-2f7c4e1d0b3a
77519
+ */
77520
+ payment_method_id?: string | null;
77515
77521
  /** @description The owner of any domain this basket registers or transfers. Optional when the organization already has a complete default registrant (`getDefaultRegistrant`); when sent, it **becomes** that default, in the same transaction as the placement. Without either, a basket holding a `domain_register` or `domain_transfer` line is refused `422 REGISTRANT_REQUIRED` before anything is placed or charged. Ignored on an idempotent replay. */
77516
77522
  registrant?: components["schemas"]["Registrant"] | null;
77517
77523
  /** @description Q10 — `domain_name` → the fields that domain's registry demands beyond the registrant (`getTldRequirements` lists them per extension: ID / tax / company numbers, `.us` nexus, `.ca` legal type, registry acceptances …). Every `domain_register` / `domain_transfer` line is checked against its extension BEFORE anything is placed; a missing or invalid value is `422 REGISTRY_DATA_REQUIRED` with one `details[]` entry per problem (`domain`, `field`, `code`). Keys an extension does not declare are dropped. Write-only: never echoed on an order. */
@@ -90943,7 +90949,7 @@ export interface components {
90943
90949
  */
90944
90950
  database_port: number;
90945
90951
  /**
90946
- * @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.
90947
90953
  * @default
90948
90954
  */
90949
90955
  database_username: string;
@@ -91207,7 +91213,7 @@ export interface components {
91207
91213
  total_bytes: number;
91208
91214
  /** @description True when the source stopped short of a complete listing. Reported, never swallowed. */
91209
91215
  truncated: boolean;
91210
- /** @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). */
91211
91217
  unavailable: {
91212
91218
  [key: string]: string;
91213
91219
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1583",
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>",