@zinn-digital/sdk 0.1.1448 → 0.1.1450

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;
@@ -65798,6 +65850,8 @@ export interface components {
65798
65850
  content_label: string;
65799
65851
  /** Format: int64 */
65800
65852
  current_mrr_usd_minor: number;
65853
+ /** @description Whether this source and medium is an advert (a configured advert source, or a paid channel by the sign-up classifier). False for our own links, product sites, e-mail, organic and referrals. */
65854
+ is_paid_ad: boolean;
65801
65855
  medium: string;
65802
65856
  /** Format: int64 */
65803
65857
  new_mrr_usd_minor: number;
@@ -105450,6 +105504,21 @@ export interface components {
105450
105504
  /** @description Whether the install can reach its database. */
105451
105505
  ok: boolean;
105452
105506
  };
105507
+ /** @description A site's hardening checklist as the site reports it. `checks` is empty where the platform hosting the site has no checklist. */
105508
+ SiteWordPressHardening: {
105509
+ checks: components["schemas"]["SiteWordPressHardeningCheck"][];
105510
+ };
105511
+ SiteWordPressHardeningCheck: {
105512
+ /** @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). */
105513
+ fixable: boolean;
105514
+ /**
105515
+ * @description Which check.
105516
+ * @enum {string}
105517
+ */
105518
+ key: "file_editor_disabled" | "debug_off" | "force_ssl_admin" | "salts_unique" | "https_site_url" | "no_admin_username" | "xmlrpc_blocked";
105519
+ /** @description True when the site already meets it. */
105520
+ passed: boolean;
105521
+ };
105453
105522
  /** @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
105523
  SiteWordPressMaintenance: {
105455
105524
  /** @description True when visitors are seeing the maintenance page. */
@@ -198534,6 +198603,67 @@ export interface operations {
198534
198603
  503: components["responses"]["ProviderNotConfigured"];
198535
198604
  };
198536
198605
  };
198606
+ getSiteWordPressHardening: {
198607
+ parameters: {
198608
+ query?: never;
198609
+ header?: never;
198610
+ path: {
198611
+ /** @description Site ID (UUIDv7). */
198612
+ siteId: components["parameters"]["SiteId"];
198613
+ };
198614
+ cookie?: never;
198615
+ };
198616
+ requestBody?: never;
198617
+ responses: {
198618
+ /** @description The checklist as the site reports it. */
198619
+ 200: {
198620
+ headers: {
198621
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
198622
+ [name: string]: unknown;
198623
+ };
198624
+ content: {
198625
+ "application/json": components["schemas"]["SiteWordPressHardening"];
198626
+ };
198627
+ };
198628
+ 401: components["responses"]["Unauthorized"];
198629
+ 403: components["responses"]["Forbidden"];
198630
+ 404: components["responses"]["NotFound"];
198631
+ 429: components["responses"]["TooManyRequests"];
198632
+ 503: components["responses"]["ProviderNotConfigured"];
198633
+ };
198634
+ };
198635
+ fixSiteWordPressHardening: {
198636
+ parameters: {
198637
+ query?: never;
198638
+ header?: never;
198639
+ path: {
198640
+ /** @description The check to fix — one whose `fixable` is true. */
198641
+ check: "file_editor_disabled" | "debug_off" | "force_ssl_admin" | "salts_unique";
198642
+ /** @description Site ID (UUIDv7). */
198643
+ siteId: components["parameters"]["SiteId"];
198644
+ };
198645
+ cookie?: never;
198646
+ };
198647
+ requestBody?: never;
198648
+ responses: {
198649
+ /** @description The checklist after the fix, re-read from the site. */
198650
+ 200: {
198651
+ headers: {
198652
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
198653
+ [name: string]: unknown;
198654
+ };
198655
+ content: {
198656
+ "application/json": components["schemas"]["SiteWordPressHardening"];
198657
+ };
198658
+ };
198659
+ 401: components["responses"]["Unauthorized"];
198660
+ 403: components["responses"]["Forbidden"];
198661
+ 404: components["responses"]["NotFound"];
198662
+ 422: components["responses"]["UnprocessableEntity"];
198663
+ 429: components["responses"]["TooManyRequests"];
198664
+ 503: components["responses"]["ProviderNotConfigured"];
198665
+ };
198666
+ };
198537
198667
  getSiteWordPressMaintenance: {
198538
198668
  parameters: {
198539
198669
  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.1450",
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>",