@zinn-digital/sdk 0.1.1825 → 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.
@@ -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. `202` and no body, because the rewrite continues at the vendor after the acknowledgement.
57401
+ * The client is required to take a typed confirmation naming the site.
57402
57402
  *
57403
- * `404` for a site with no vendor hosting package. Requires `sites.view` and `sites.panel_access`.
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;
@@ -216684,7 +216686,7 @@ export interface operations {
216684
216686
  };
216685
216687
  };
216686
216688
  responses: {
216687
- /** @description The rewrite was accepted and continues at the vendor. */
216689
+ /** @description The rewrite was accepted and runs in the background, after its safety backup. */
216688
216690
  202: {
216689
216691
  headers: {
216690
216692
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1825",
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>",