@zinn-digital/sdk 0.1.1516 → 0.1.1518
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 +79 -2
- 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
|
*/
|
|
@@ -51254,6 +51254,29 @@ export interface paths {
|
|
|
51254
51254
|
patch?: never;
|
|
51255
51255
|
trace?: never;
|
|
51256
51256
|
};
|
|
51257
|
+
"/v1/sites/{siteId}/moodle-upgrade/branch-pin": {
|
|
51258
|
+
parameters: {
|
|
51259
|
+
query?: never;
|
|
51260
|
+
header?: never;
|
|
51261
|
+
path: {
|
|
51262
|
+
/** @description Site ID (UUIDv7). */
|
|
51263
|
+
siteId: components["parameters"]["SiteId"];
|
|
51264
|
+
};
|
|
51265
|
+
cookie?: never;
|
|
51266
|
+
};
|
|
51267
|
+
get?: never;
|
|
51268
|
+
/**
|
|
51269
|
+
* Keep a Moodle site on its installed branch, or let it follow new major versions.
|
|
51270
|
+
* @description `stay_on_branch` true offers only the installed branch's own weekly builds (security and bug fixes); a newer major is listed in `blocked` as `BRANCH_PINNED`. False follows new major versions again (plugins that do not support a release still hold it). The choice is the customer's and a later check never overwrites it; with no choice made, a site is kept on its branch automatically while a plugin would break on the newest major. `409 MOODLE_UPGRADE_REFUSED` for a site that is not on our servers or not live. Requires `sites.view` and `hosting.applications.manage`.
|
|
51271
|
+
*/
|
|
51272
|
+
put: operations["setSiteMoodleBranchPin"];
|
|
51273
|
+
post?: never;
|
|
51274
|
+
delete?: never;
|
|
51275
|
+
options?: never;
|
|
51276
|
+
head?: never;
|
|
51277
|
+
patch?: never;
|
|
51278
|
+
trace?: never;
|
|
51279
|
+
};
|
|
51257
51280
|
"/v1/sites/{siteId}/moodle-upgrade/check": {
|
|
51258
51281
|
parameters: {
|
|
51259
51282
|
query?: never;
|
|
@@ -90164,10 +90187,26 @@ export interface components {
|
|
|
90164
90187
|
refusal: components["schemas"]["MoodleRefusal"];
|
|
90165
90188
|
release: string;
|
|
90166
90189
|
};
|
|
90190
|
+
/** @description Whether the site stays on its installed Moodle branch (docs/1160 §10). Following new major versions is the default; a site is kept on its branch automatically while a plugin would break on the newest major (`source` `plugins`, `held_by` names them) or when the customer chose so. A pinned site still gets its branch's own weekly builds. */
|
|
90191
|
+
MoodleBranchPin: {
|
|
90192
|
+
/** @description `4.5`; null before the first check. */
|
|
90193
|
+
branch: string | null;
|
|
90194
|
+
/** @description Plugins that would break on the newest release on another branch. */
|
|
90195
|
+
held_by: string[];
|
|
90196
|
+
pinned: boolean;
|
|
90197
|
+
/** @enum {string} */
|
|
90198
|
+
source: "follow" | "plugins" | "customer_pin" | "customer_follow";
|
|
90199
|
+
};
|
|
90200
|
+
MoodlePluginWarning: {
|
|
90201
|
+
component: string;
|
|
90202
|
+
/** @enum {string} */
|
|
90203
|
+
key: "formatTilesModalFactory" | "unsupportedBranch";
|
|
90204
|
+
reason: string;
|
|
90205
|
+
};
|
|
90167
90206
|
/** @description Why a Moodle upgrade cannot run. `key` is `refusal.moodleUpgrade.<camel>`; `params` fill it; `message` is the English fallback. */
|
|
90168
90207
|
MoodleRefusal: {
|
|
90169
90208
|
/** @enum {string} */
|
|
90170
|
-
code: "NOT_MOODLE" | "NOT_OWN_FLEET" | "NOT_ACTIVE" | "NOT_CHECKED" | "UP_TO_DATE" | "UPGRADE_RUNNING" | "TARGET_NOT_OFFERED" | "DB_TOO_OLD" | "PHP_TOO_OLD" | "PLUGIN_INCOMPATIBLE" | "REQUIREMENTS_UNKNOWN";
|
|
90209
|
+
code: "NOT_MOODLE" | "NOT_OWN_FLEET" | "NOT_ACTIVE" | "NOT_CHECKED" | "UP_TO_DATE" | "UPGRADE_RUNNING" | "TARGET_NOT_OFFERED" | "DB_TOO_OLD" | "PHP_TOO_OLD" | "PLUGIN_INCOMPATIBLE" | "REQUIREMENTS_UNKNOWN" | "BRANCH_PINNED";
|
|
90171
90210
|
key: string;
|
|
90172
90211
|
message: string;
|
|
90173
90212
|
params: {
|
|
@@ -104053,6 +104092,7 @@ export interface components {
|
|
|
104053
104092
|
/** @description The highest release this server can run that is newer than installed. */
|
|
104054
104093
|
available: components["schemas"]["MoodleRelease"] | null;
|
|
104055
104094
|
blocked: components["schemas"]["MoodleBlockedRelease"][];
|
|
104095
|
+
branch_pin: components["schemas"]["MoodleBranchPin"];
|
|
104056
104096
|
can_upgrade: boolean;
|
|
104057
104097
|
check_pending: boolean;
|
|
104058
104098
|
/** Format: date-time */
|
|
@@ -104060,6 +104100,8 @@ export interface components {
|
|
|
104060
104100
|
current_run: components["schemas"]["MoodleUpgradeRun"] | null;
|
|
104061
104101
|
installed: components["schemas"]["MoodleRelease"] | null;
|
|
104062
104102
|
is_moodle: boolean;
|
|
104103
|
+
/** @description Installed plugins that may not work on the INSTALLED release (a warning, never a hold). `key` is the dashboard's `moodleUpgrade.pluginWarning.<key>`; `reason` is the English fallback. */
|
|
104104
|
+
plugin_warnings: components["schemas"]["MoodlePluginWarning"][];
|
|
104063
104105
|
refusal: components["schemas"]["MoodleRefusal"] | null;
|
|
104064
104106
|
/** @description Newest first, at most ten. */
|
|
104065
104107
|
runs: components["schemas"]["MoodleUpgradeRun"][];
|
|
@@ -198410,6 +198452,41 @@ export interface operations {
|
|
|
198410
198452
|
503: components["responses"]["ServiceUnavailable"];
|
|
198411
198453
|
};
|
|
198412
198454
|
};
|
|
198455
|
+
setSiteMoodleBranchPin: {
|
|
198456
|
+
parameters: {
|
|
198457
|
+
query?: never;
|
|
198458
|
+
header?: never;
|
|
198459
|
+
path: {
|
|
198460
|
+
/** @description Site ID (UUIDv7). */
|
|
198461
|
+
siteId: components["parameters"]["SiteId"];
|
|
198462
|
+
};
|
|
198463
|
+
cookie?: never;
|
|
198464
|
+
};
|
|
198465
|
+
requestBody: {
|
|
198466
|
+
content: {
|
|
198467
|
+
"application/json": {
|
|
198468
|
+
stay_on_branch: boolean;
|
|
198469
|
+
};
|
|
198470
|
+
};
|
|
198471
|
+
};
|
|
198472
|
+
responses: {
|
|
198473
|
+
/** @description The site's upgrade state with the new pin. */
|
|
198474
|
+
200: {
|
|
198475
|
+
headers: {
|
|
198476
|
+
[name: string]: unknown;
|
|
198477
|
+
};
|
|
198478
|
+
content: {
|
|
198479
|
+
"application/json": components["schemas"]["SiteMoodleUpgrade"];
|
|
198480
|
+
};
|
|
198481
|
+
};
|
|
198482
|
+
401: components["responses"]["Unauthorized"];
|
|
198483
|
+
403: components["responses"]["Forbidden"];
|
|
198484
|
+
404: components["responses"]["NotFound"];
|
|
198485
|
+
409: components["responses"]["Conflict"];
|
|
198486
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
198487
|
+
429: components["responses"]["TooManyRequests"];
|
|
198488
|
+
};
|
|
198489
|
+
};
|
|
198413
198490
|
checkSiteMoodleUpgrade: {
|
|
198414
198491
|
parameters: {
|
|
198415
198492
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1518",
|
|
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>",
|