@zinn-digital/sdk 0.1.1515 → 0.1.1517
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 +12 -1
- package/package.json +1 -1
|
@@ -51166,7 +51166,7 @@ export interface paths {
|
|
|
51166
51166
|
* Sign in to the old host and show what is there.
|
|
51167
51167
|
* @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.
|
|
51168
51168
|
*
|
|
51169
|
-
* 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.
|
|
51169
|
+
* 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`.
|
|
51170
51170
|
*
|
|
51171
51171
|
* ⛔ `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`.
|
|
51172
51172
|
*/
|
|
@@ -78848,6 +78848,8 @@ export interface components {
|
|
|
78848
78848
|
required_permissions: string[];
|
|
78849
78849
|
/** @description **Alternative** credential forms — render the first and offer the rest. Cloudflare is the live case: a scoped API token, or the account email plus its Global API Key. */
|
|
78850
78850
|
shapes: components["schemas"]["CredentialField"][][];
|
|
78851
|
+
/** @description The connection targets the customer may pick, default first; `[]` when there is nothing to pick. Cloudflare serves `[cdn, pages]`: `pages` connects the account only to host sites on Cloudflare Pages, so it is judged on `pages_edit` alone and no zone is touched. Send the pick as `ConnectTokenRequest.target`. */
|
|
78852
|
+
targets?: ("cdn" | "pages")[];
|
|
78851
78853
|
vendor: string;
|
|
78852
78854
|
};
|
|
78853
78855
|
ConnectionProviderList: {
|
|
@@ -78913,6 +78915,11 @@ export interface components {
|
|
|
78913
78915
|
credentials?: {
|
|
78914
78916
|
[key: string]: string;
|
|
78915
78917
|
};
|
|
78918
|
+
/**
|
|
78919
|
+
* @description What the credential is connected FOR. Only Cloudflare offers a narrower target: `pages` = host sites on Cloudflare Pages only. The credential is then judged on Cloudflare Pages access alone (`pages_edit`), no zone is listed or written, and `credentials.account_id` is required. Omitted (or `cdn`) = the provider's full check. Cannot be combined with `also_dns`. Other providers ignore it.
|
|
78920
|
+
* @enum {string}
|
|
78921
|
+
*/
|
|
78922
|
+
target?: "cdn" | "pages";
|
|
78916
78923
|
/** @description The provider access token, for the providers whose credential is a single string. Written to Vault, never to a database row, a log line, an audit entry or an error message (CLAUDE.md §2.4). */
|
|
78917
78924
|
token?: string;
|
|
78918
78925
|
/** @description Check the credential and return the result without storing anything. */
|
|
@@ -93564,6 +93571,10 @@ export interface components {
|
|
|
93564
93571
|
detail: string;
|
|
93565
93572
|
/** @description Required permissions the provider **proved** are absent. Not the unknowns. */
|
|
93566
93573
|
missing: string[];
|
|
93574
|
+
/** @description The permission keys this target requires, in catalogue order. Every other row is optional for this connection. */
|
|
93575
|
+
required?: string[];
|
|
93576
|
+
/** @description The connection target this report was judged for (`""` = the provider default, `pages` = Cloudflare Pages only). A retest re-judges for the same target. */
|
|
93577
|
+
target?: string;
|
|
93567
93578
|
/** @description Permissions we could not determine either way. The honest amber set. */
|
|
93568
93579
|
unverified: string[];
|
|
93569
93580
|
/** @description Whether we may store and use this credential: alive, with no **proved** absence of anything required. ⛔ Deliberately not "every row passed" — a brand-new account with no zone on it yet has unknowable zone-scoped rows, and blocking on those would make the very first connection impossible. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1517",
|
|
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>",
|