@zinn-digital/sdk 0.1.1584 → 0.1.1586

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.
@@ -33730,8 +33730,8 @@ export interface paths {
33730
33730
  get: operations["listEmailMarketingSenders"];
33731
33731
  put?: never;
33732
33732
  /**
33733
- * Connect the customer's own SMTP server for campaigns.
33734
- * @description Gated on `email_marketing.manage`. `kind` is `smtp` today (Amazon SES works through its SMTP interface); other kinds are refused until their adapter ships. The password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
33733
+ * Connect a campaign sender (Zinn® sending, or the customer's own SMTP server).
33734
+ * @description Gated on `email_marketing.manage`. `kind` is `pool` (Zinn® sending through our marketing pool: send `name` and `from_address` only; the response carries `dkim_record`, the TXT record the From domain publishes, and verifying checks that it is live) or `smtp` (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. An SMTP password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
33735
33735
  */
33736
33736
  post: operations["createEmailMarketingSender"];
33737
33737
  delete?: never;
@@ -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
  */
@@ -82671,6 +82671,13 @@ export interface components {
82671
82671
  EmailMarketingSender: {
82672
82672
  /** Format: date-time */
82673
82673
  created_at: string;
82674
+ /** @description Pool senders only (kind pool, docs/1052 §10b): the TXT record the From domain publishes so Zinn® sending can DKIM-sign as that domain. The selector is per organisation. Null for your own SMTP, or when the key could not be read. */
82675
+ dkim_record: {
82676
+ name: string;
82677
+ /** @enum {string} */
82678
+ type: "TXT";
82679
+ value: string;
82680
+ } | null;
82674
82681
  from_address: string;
82675
82682
  host: string;
82676
82683
  /** Format: uuid */
@@ -82687,13 +82694,14 @@ export interface components {
82687
82694
  /** Format: date-time */
82688
82695
  verified_at: string | null;
82689
82696
  };
82697
+ /** @description `host`, `username` and `password` are required for `smtp` and ignored for `pool`. */
82690
82698
  EmailMarketingSenderCreate: {
82691
82699
  from_address: string;
82692
- host: string;
82700
+ host?: string;
82693
82701
  /** @enum {string} */
82694
- kind: "smtp";
82702
+ kind: "pool" | "smtp";
82695
82703
  name: string;
82696
- password: string;
82704
+ password?: string;
82697
82705
  /**
82698
82706
  * @default 587
82699
82707
  * @enum {integer}
@@ -82701,7 +82709,7 @@ export interface components {
82701
82709
  port: 25 | 465 | 587 | 2525;
82702
82710
  /** @enum {string} */
82703
82711
  tls?: "starttls" | "implicit";
82704
- username: string;
82712
+ username?: string;
82705
82713
  };
82706
82714
  EmailMarketingSenderList: {
82707
82715
  data: components["schemas"]["EmailMarketingSender"][];
@@ -90949,7 +90957,7 @@ export interface components {
90949
90957
  */
90950
90958
  database_port: number;
90951
90959
  /**
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.
90960
+ * @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
90961
  * @default
90954
90962
  */
90955
90963
  database_username: string;
@@ -91213,7 +91221,7 @@ export interface components {
91213
91221
  total_bytes: number;
91214
91222
  /** @description True when the source stopped short of a complete listing. Reported, never swallowed. */
91215
91223
  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. */
91224
+ /** @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
91225
  unavailable: {
91218
91226
  [key: string]: string;
91219
91227
  };
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.1586",
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>",