@zinn-digital/sdk 0.1.1827 → 0.1.1828

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.
@@ -11819,7 +11819,7 @@ export interface paths {
11819
11819
  query?: never;
11820
11820
  header?: never;
11821
11821
  path: {
11822
- action: "repair" | "dismiss" | "undo";
11822
+ action: "repair" | "dismiss" | "undo" | "restore_backup";
11823
11823
  findingId: string;
11824
11824
  };
11825
11825
  cookie?: never;
@@ -11827,8 +11827,8 @@ export interface paths {
11827
11827
  get?: never;
11828
11828
  put?: never;
11829
11829
  /**
11830
- * Repair a site integrity finding now (202), dismiss it, or undo its deep clean (202; staff, audit-logged).
11831
- * @description `undo` puts back the files and database backup the finding's deep clean took (`detail.deep_clean.backup_dir`); a finding without one answers 409.
11830
+ * Repair a site integrity finding now (202), dismiss it, undo its deep clean or restore its pre-repair backup (202; staff, audit-logged).
11831
+ * @description `undo` puts back the files and database backup the finding's deep clean took (`detail.deep_clean.backup_dir`); a finding without one answers 409. `restore_backup` puts back the backup taken before the finding's automatic repair (`detail.pre_repair_backup.backup_dir`: the core files, or the database); the live copy it replaces is kept beside the backup, and the outcome is recorded as `detail.pre_repair_restore`. A finding without one answers 409 (`refusal.pluginGuard.noPreRepairBackup`).
11832
11832
  */
11833
11833
  post: operations["actOnSiteIntegrityFinding"];
11834
11834
  delete?: never;
@@ -110384,6 +110384,22 @@ export interface components {
110384
110384
  last_seen_at: string;
110385
110385
  /** @description Staff only. */
110386
110386
  org_id?: string;
110387
+ /** @description Staff only. The backup taken on the box BEFORE this finding's automatic repair (`core`: wp-admin, wp-includes and the root PHP files; `db`: the database), and staff's restore of it (`POST .../restore_backup`). Null when no repair took one. */
110388
+ pre_repair_backup?: {
110389
+ /** Format: date-time */
110390
+ at?: string;
110391
+ backup_dir?: string;
110392
+ restore?: {
110393
+ /** Format: date-time */
110394
+ at?: string;
110395
+ error?: string;
110396
+ ok?: boolean;
110397
+ /** @description Where the live copy it replaced was kept. */
110398
+ replaced_kept_at?: string;
110399
+ } | null;
110400
+ /** @enum {string} */
110401
+ scope?: "core" | "db";
110402
+ } | null;
110387
110403
  /** @description Staff's free-text note in English; customer surfaces show repair_reason instead. */
110388
110404
  repair_note?: string;
110389
110405
  /**
@@ -140617,7 +140633,7 @@ export interface operations {
140617
140633
  query?: never;
140618
140634
  header?: never;
140619
140635
  path: {
140620
- action: "repair" | "dismiss" | "undo";
140636
+ action: "repair" | "dismiss" | "undo" | "restore_backup";
140621
140637
  findingId: string;
140622
140638
  };
140623
140639
  cookie?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1827",
3
+ "version": "0.1.1828",
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>",