@zinn-digital/sdk 0.1.1448 → 0.1.1449

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.
@@ -52870,6 +52870,58 @@ export interface paths {
52870
52870
  patch?: never;
52871
52871
  trace?: never;
52872
52872
  };
52873
+ "/v1/sites/{siteId}/wordpress/hardening": {
52874
+ parameters: {
52875
+ query?: never;
52876
+ header?: never;
52877
+ path: {
52878
+ /** @description Site ID (UUIDv7). */
52879
+ siteId: components["parameters"]["SiteId"];
52880
+ };
52881
+ cookie?: never;
52882
+ };
52883
+ /**
52884
+ * The site's security hardening checklist, read from the site.
52885
+ * @description A WordPress manager's hardening checklist (Plesk WP Toolkit "Security" parity): the theme/plugin file editor, debug mode, `FORCE_SSL_ADMIN`, unique secret keys, an HTTPS site address, no account called `admin`, and XML-RPC.
52886
+ *
52887
+ * ⛔ Read from **the site** (`wp-config.php`, options, users), never our memory. Only the named constants are read — never `DB_PASSWORD` — and a salt value never leaves the box, only whether the eight are unique. XML-RPC is the platform firewall's setting for the site. An empty `checks` list means the platform hosting this site has no checklist (a vendor package). Requires `sites.view`.
52888
+ */
52889
+ get: operations["getSiteWordPressHardening"];
52890
+ put?: never;
52891
+ post?: never;
52892
+ delete?: never;
52893
+ options?: never;
52894
+ head?: never;
52895
+ patch?: never;
52896
+ trace?: never;
52897
+ };
52898
+ "/v1/sites/{siteId}/wordpress/hardening/{check}": {
52899
+ parameters: {
52900
+ query?: never;
52901
+ header?: never;
52902
+ path: {
52903
+ /** @description The check to fix — one whose `fixable` is true. */
52904
+ check: "file_editor_disabled" | "debug_off" | "force_ssl_admin" | "salts_unique";
52905
+ /** @description Site ID (UUIDv7). */
52906
+ siteId: components["parameters"]["SiteId"];
52907
+ };
52908
+ cookie?: never;
52909
+ };
52910
+ get?: never;
52911
+ put?: never;
52912
+ /**
52913
+ * Apply the one-click fix for one hardening check.
52914
+ * @description Writes the fix (`DISALLOW_FILE_EDIT`, `WP_DEBUG` off, `FORCE_SSL_ADMIN`, or fresh secret keys with `wp config shuffle-salts`, which signs every user out), then **confirms it by re-reading the site**, and audit-logs `wordpress.hardening.<check>`. `force_ssl_admin` is refused while the site address is not HTTPS (it would lock the admin out). The response is the whole checklist as re-read.
52915
+ *
52916
+ * ⛔ **Fleet only** — refused where `wp_maintenance` is `false`. Requires `sites.view` and `sites.panel_access`.
52917
+ */
52918
+ post: operations["fixSiteWordPressHardening"];
52919
+ delete?: never;
52920
+ options?: never;
52921
+ head?: never;
52922
+ patch?: never;
52923
+ trace?: never;
52924
+ };
52873
52925
  "/v1/sites/{siteId}/wordpress/maintenance": {
52874
52926
  parameters: {
52875
52927
  query?: never;
@@ -105450,6 +105502,21 @@ export interface components {
105450
105502
  /** @description Whether the install can reach its database. */
105451
105503
  ok: boolean;
105452
105504
  };
105505
+ /** @description A site's hardening checklist as the site reports it. `checks` is empty where the platform hosting the site has no checklist. */
105506
+ SiteWordPressHardening: {
105507
+ checks: components["schemas"]["SiteWordPressHardeningCheck"][];
105508
+ };
105509
+ SiteWordPressHardeningCheck: {
105510
+ /** @description True when `POST …/hardening/{key}` can fix it now (false once passed, for checks with no one-click fix, and for `force_ssl_admin` while the address is not HTTPS). */
105511
+ fixable: boolean;
105512
+ /**
105513
+ * @description Which check.
105514
+ * @enum {string}
105515
+ */
105516
+ key: "file_editor_disabled" | "debug_off" | "force_ssl_admin" | "salts_unique" | "https_site_url" | "no_admin_username" | "xmlrpc_blocked";
105517
+ /** @description True when the site already meets it. */
105518
+ passed: boolean;
105519
+ };
105453
105520
  /** @description Whether the site is showing WordPress's maintenance page. ⛔ Always read from the site, never from our record of what we last set — WordPress sets this flag itself during a core update. */
105454
105521
  SiteWordPressMaintenance: {
105455
105522
  /** @description True when visitors are seeing the maintenance page. */
@@ -198534,6 +198601,67 @@ export interface operations {
198534
198601
  503: components["responses"]["ProviderNotConfigured"];
198535
198602
  };
198536
198603
  };
198604
+ getSiteWordPressHardening: {
198605
+ parameters: {
198606
+ query?: never;
198607
+ header?: never;
198608
+ path: {
198609
+ /** @description Site ID (UUIDv7). */
198610
+ siteId: components["parameters"]["SiteId"];
198611
+ };
198612
+ cookie?: never;
198613
+ };
198614
+ requestBody?: never;
198615
+ responses: {
198616
+ /** @description The checklist as the site reports it. */
198617
+ 200: {
198618
+ headers: {
198619
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
198620
+ [name: string]: unknown;
198621
+ };
198622
+ content: {
198623
+ "application/json": components["schemas"]["SiteWordPressHardening"];
198624
+ };
198625
+ };
198626
+ 401: components["responses"]["Unauthorized"];
198627
+ 403: components["responses"]["Forbidden"];
198628
+ 404: components["responses"]["NotFound"];
198629
+ 429: components["responses"]["TooManyRequests"];
198630
+ 503: components["responses"]["ProviderNotConfigured"];
198631
+ };
198632
+ };
198633
+ fixSiteWordPressHardening: {
198634
+ parameters: {
198635
+ query?: never;
198636
+ header?: never;
198637
+ path: {
198638
+ /** @description The check to fix — one whose `fixable` is true. */
198639
+ check: "file_editor_disabled" | "debug_off" | "force_ssl_admin" | "salts_unique";
198640
+ /** @description Site ID (UUIDv7). */
198641
+ siteId: components["parameters"]["SiteId"];
198642
+ };
198643
+ cookie?: never;
198644
+ };
198645
+ requestBody?: never;
198646
+ responses: {
198647
+ /** @description The checklist after the fix, re-read from the site. */
198648
+ 200: {
198649
+ headers: {
198650
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
198651
+ [name: string]: unknown;
198652
+ };
198653
+ content: {
198654
+ "application/json": components["schemas"]["SiteWordPressHardening"];
198655
+ };
198656
+ };
198657
+ 401: components["responses"]["Unauthorized"];
198658
+ 403: components["responses"]["Forbidden"];
198659
+ 404: components["responses"]["NotFound"];
198660
+ 422: components["responses"]["UnprocessableEntity"];
198661
+ 429: components["responses"]["TooManyRequests"];
198662
+ 503: components["responses"]["ProviderNotConfigured"];
198663
+ };
198664
+ };
198537
198665
  getSiteWordPressMaintenance: {
198538
198666
  parameters: {
198539
198667
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1448",
3
+ "version": "0.1.1449",
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>",