@zinn-digital/sdk 0.1.1823 → 0.1.1827
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 +15 -4
- package/package.json +1 -1
|
@@ -57398,9 +57398,11 @@ export interface paths {
|
|
|
57398
57398
|
* Rewrite a string throughout a site's WordPress database.
|
|
57399
57399
|
* @description ⛔ **Destructive and irreversible from this platform.** It rewrites every occurrence in the site's database, including inside serialised values, and this platform holds no copy of what was there before. the platform returns no body, so a refusal cannot be detected after the fact — every protection is in **front** of the call: the package must carry `wp_search_replace`, WordPress must be installed, and `search` must not be blank (an empty search rewrites every row in the database, and it is refused twice — at the field and again before the vendor call).
|
|
57400
57400
|
*
|
|
57401
|
-
* The client is required to take a typed confirmation naming the site.
|
|
57401
|
+
* The client is required to take a typed confirmation naming the site.
|
|
57402
57402
|
*
|
|
57403
|
-
* `
|
|
57403
|
+
* **Asynchronous.** Only the cheap refusals (capability, WordPress installed, blank search) run in the request; the safety backup and the rewrite run in the `SiteWordPressSearchReplaceWorkflow` (one per site, `hosting-provisioning` queue). In the request, a real site's backup outlived the request budget (BACKUPACCUM1114-SR). The two terms are held in a short-lived tenant-scoped row, never in workflow history (`search` can be a secret), and deleted when the rewrite ends. The `wordpress.search-replace` activity row (the search LENGTH only, never either term) is written when the rewrite HAS happened, `wordpress.search_replace_failed` (with a redacted reason) when it did not.
|
|
57404
|
+
*
|
|
57405
|
+
* `202` and no body. `404` for a site with no vendor hosting package. `409` (`refusal.hosting.wordpressSearchReplaceInFlight`) while a rewrite of this site is already running. `503` (`refusal.hosting.wordpressSearchReplaceUnavailable`) when the workflow engine cannot be reached; nothing was started and nothing was stored. The workflow starts once the request has committed; a start that fails after that writes `wordpress.search_replace_failed` (`reason` `in_flight` or `unavailable`) and deletes the terms. Requires `sites.view` and `sites.panel_access`.
|
|
57404
57406
|
*/
|
|
57405
57407
|
post: operations["runSiteWordPressSearchReplace"];
|
|
57406
57408
|
delete?: never;
|
|
@@ -83152,8 +83154,17 @@ export interface components {
|
|
|
83152
83154
|
* @enum {string}
|
|
83153
83155
|
*/
|
|
83154
83156
|
management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
83155
|
-
/** @description Why the order failed,
|
|
83157
|
+
/** @description Why the order failed, as an English sentence for staff, support and SDK readers. Blank unless `failed`. A client renders `message_code` instead when it is set. */
|
|
83156
83158
|
message: string;
|
|
83159
|
+
/**
|
|
83160
|
+
* @description NIGHTFIX1114 FAILEDSRV: the half of `message` a client renders, as a stable code it translates (the platform ships in 58 languages; `message` is English). `build_failed_ticket` (we opened support ticket `message_params.ticket_id`), `build_failed_no_ticket` (the ticket could not be opened), `build_retry_held` (a retried rebuild failed again and we are on it). Null when `message` is blank or not one of these; the client then shows `message`.
|
|
83161
|
+
* @enum {string|null}
|
|
83162
|
+
*/
|
|
83163
|
+
message_code?: "build_retry_held" | "build_failed_no_ticket" | "build_failed_ticket" | null;
|
|
83164
|
+
/** @description The values `message_code` interpolates; `ticket_id` for `build_failed_ticket`, otherwise empty. */
|
|
83165
|
+
message_params?: {
|
|
83166
|
+
[key: string]: string;
|
|
83167
|
+
};
|
|
83157
83168
|
/** @description What the customer called it. ⛔ At the provider a machine's name is its row id; confusing the two is a cross-tenant defect, so this is the customer's string and nothing else. */
|
|
83158
83169
|
name: string;
|
|
83159
83170
|
/** @description Whether the customer may act on this machine — power, resize, renew, rebuild. ⛔ Read rather than re-derived from `status`: the engine refuses every one of those on anything but `active`, **and on anything suspended**, so a screen computing its own answer would eventually offer a control the engine refuses. */
|
|
@@ -216675,7 +216686,7 @@ export interface operations {
|
|
|
216675
216686
|
};
|
|
216676
216687
|
};
|
|
216677
216688
|
responses: {
|
|
216678
|
-
/** @description The rewrite was accepted and
|
|
216689
|
+
/** @description The rewrite was accepted and runs in the background, after its safety backup. */
|
|
216679
216690
|
202: {
|
|
216680
216691
|
headers: {
|
|
216681
216692
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1827",
|
|
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>",
|