@zinn-digital/sdk 0.1.1479 → 0.1.1481

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.
@@ -12860,7 +12860,7 @@ export interface paths {
12860
12860
  };
12861
12861
  /**
12862
12862
  * A ready-to-paste dev-session brief for the gaps rivals opened (staff).
12863
- * @description Plain text (no tables), grouped by our product: every capability a rival release found in the last `days` added that none of our feature records covers, with the rival, version and changelog link. Empty text when there are no gaps. Requires staff + `ops.deploys.read`.
12863
+ * @description Plain text (no tables), grouped by our product: every capability a rival release found in the last `days` added that none of our feature records covers and no ruling in `docs/plugins-overhaul/rival-gap-rulings.json` closes, with the rival, version and changelog link (a `planned` ruling stays listed, marked "on the backlog"). `open=1` lists every open gap however old, ignoring `days` (docs/989 §3a). Empty text when there are no gaps. Requires staff + `ops.deploys.read`.
12864
12864
  */
12865
12865
  get: operations["getRivalGapBrief"];
12866
12866
  put?: never;
@@ -14390,6 +14390,52 @@ export interface paths {
14390
14390
  patch?: never;
14391
14391
  trace?: never;
14392
14392
  };
14393
+ "/v1/admin/sites/{siteId}/secrets": {
14394
+ parameters: {
14395
+ query?: never;
14396
+ header?: never;
14397
+ path: {
14398
+ /** @description Site ID (UUIDv7). */
14399
+ siteId: components["parameters"]["SiteId"];
14400
+ };
14401
+ cookie?: never;
14402
+ };
14403
+ /**
14404
+ * Staff view of a site's database-password and event-secret epoch.
14405
+ * @description **Staff only** (`sites.restart`), any tenant. The site's secret epoch and where its last rotation is (docs/1235). Never carries a password or a secret.
14406
+ */
14407
+ get: operations["adminGetSiteSecrets"];
14408
+ put?: never;
14409
+ post?: never;
14410
+ delete?: never;
14411
+ options?: never;
14412
+ head?: never;
14413
+ patch?: never;
14414
+ trace?: never;
14415
+ };
14416
+ "/v1/admin/sites/{siteId}/secrets/rotate": {
14417
+ parameters: {
14418
+ query?: never;
14419
+ header?: never;
14420
+ path: {
14421
+ /** @description Site ID (UUIDv7). */
14422
+ siteId: components["parameters"]["SiteId"];
14423
+ };
14424
+ cookie?: never;
14425
+ };
14426
+ get?: never;
14427
+ put?: never;
14428
+ /**
14429
+ * Staff rotation of ONE site's database password and event secret, with a reason.
14430
+ * @description **Staff only** (`sites.restart`), audit-logged with the stated `reason` (docs/1235). Starts a background job that changes this site only: the database user's password and `DB_PASSWORD` in `wp-config.php`, then `ZINN_CACHE_PANEL_SECRET`, proven by a real database login, then moves the site's secret epoch. About one second in which the site cannot reach its database. On failure the site is put back on its current values. WordPress and WooCommerce sites on our own servers only (`422` otherwise); `409` while a rotation is already running.
14431
+ */
14432
+ post: operations["adminRotateSiteSecrets"];
14433
+ delete?: never;
14434
+ options?: never;
14435
+ head?: never;
14436
+ patch?: never;
14437
+ trace?: never;
14438
+ };
14393
14439
  "/v1/admin/sites/{siteId}/security/warn": {
14394
14440
  parameters: {
14395
14441
  query?: never;
@@ -97763,6 +97809,13 @@ export interface components {
97763
97809
  feature_title: string;
97764
97810
  /** @description Our product it competes with. */
97765
97811
  product: string;
97812
+ /**
97813
+ * @description OUR ruling on a "we lack it" item (docs/989 §3a), absent when there is none. built / have_it / not_applicable close the gap; planned keeps it open.
97814
+ * @enum {string}
97815
+ */
97816
+ ruling?: "built" | "have_it" | "not_applicable" | "planned";
97817
+ /** @description Why */
97818
+ ruling_reason?: string;
97766
97819
  /** @description The new capability */
97767
97820
  text: string;
97768
97821
  };
@@ -97795,7 +97848,7 @@ export interface components {
97795
97848
  emailed: boolean;
97796
97849
  /** Format: date-time */
97797
97850
  found_at: string;
97798
- /** @description New capabilities we lack. */
97851
+ /** @description Open gaps: capabilities we lack that no ruling has closed. */
97799
97852
  gap_count: number;
97800
97853
  /** Format: uuid */
97801
97854
  id: string;
@@ -104843,6 +104896,27 @@ export interface components {
104843
104896
  */
104844
104897
  target?: string;
104845
104898
  };
104899
+ /** @description Where one site's database-password and event-secret rotation is (docs/1235). Never carries a password or a secret. */
104900
+ SiteSecrets: {
104901
+ /** @description How many rotations have finished. 0 is the values the site was created with. */
104902
+ epoch: number;
104903
+ /** @description Why the last rotation stopped, or empty. */
104904
+ last_error: string;
104905
+ /**
104906
+ * Format: date-time
104907
+ * @description When the site last moved to new values.
104908
+ */
104909
+ rotated_at: string | null;
104910
+ /** @description True while `state` is `running`. */
104911
+ rotating: boolean;
104912
+ /** Format: uuid */
104913
+ site_id: string;
104914
+ /**
104915
+ * @description `running` - the background job is changing the site; `failed` - the last rotation stopped (see `last_error`) and the site is on its current values.
104916
+ * @enum {string}
104917
+ */
104918
+ state: "idle" | "running" | "failed";
104919
+ };
104846
104920
  /** @description A site's malware state as its owner sees it (see `getSiteSecurity`) — the stored projection a scan writes, never a live vendor call. */
104847
104921
  SiteSecurity: {
104848
104922
  /**
@@ -133759,6 +133833,8 @@ export interface operations {
133759
133833
  parameters: {
133760
133834
  query?: {
133761
133835
  days?: number;
133836
+ /** @description `1` = every gap still open, however old (`days` is ignored). */
133837
+ open?: "0" | "1";
133762
133838
  product?: string;
133763
133839
  };
133764
133840
  header?: never;
@@ -133776,7 +133852,9 @@ export interface operations {
133776
133852
  "application/json": {
133777
133853
  data: {
133778
133854
  days: number;
133779
- /** @description Releases with gaps it covers. */
133855
+ /** @description True when `open=1` (every open gap, any age). */
133856
+ open: boolean;
133857
+ /** @description Releases with open gaps it covers. */
133780
133858
  releases: number;
133781
133859
  text: string;
133782
133860
  };
@@ -136101,6 +136179,66 @@ export interface operations {
136101
136179
  503: components["responses"]["ServiceUnavailable"];
136102
136180
  };
136103
136181
  };
136182
+ adminGetSiteSecrets: {
136183
+ parameters: {
136184
+ query?: never;
136185
+ header?: never;
136186
+ path: {
136187
+ /** @description Site ID (UUIDv7). */
136188
+ siteId: components["parameters"]["SiteId"];
136189
+ };
136190
+ cookie?: never;
136191
+ };
136192
+ requestBody?: never;
136193
+ responses: {
136194
+ /** @description The site's secret epoch and rotation state. */
136195
+ 200: {
136196
+ headers: {
136197
+ [name: string]: unknown;
136198
+ };
136199
+ content: {
136200
+ "application/json": components["schemas"]["SiteSecrets"];
136201
+ };
136202
+ };
136203
+ 401: components["responses"]["Unauthorized"];
136204
+ 403: components["responses"]["Forbidden"];
136205
+ 404: components["responses"]["NotFound"];
136206
+ 429: components["responses"]["TooManyRequests"];
136207
+ };
136208
+ };
136209
+ adminRotateSiteSecrets: {
136210
+ parameters: {
136211
+ query?: never;
136212
+ header?: never;
136213
+ path: {
136214
+ /** @description Site ID (UUIDv7). */
136215
+ siteId: components["parameters"]["SiteId"];
136216
+ };
136217
+ cookie?: never;
136218
+ };
136219
+ requestBody: {
136220
+ content: {
136221
+ "application/json": components["schemas"]["StaffRecoveryReason"];
136222
+ };
136223
+ };
136224
+ responses: {
136225
+ /** @description Rotation started. */
136226
+ 202: {
136227
+ headers: {
136228
+ [name: string]: unknown;
136229
+ };
136230
+ content: {
136231
+ "application/json": components["schemas"]["SiteSecrets"];
136232
+ };
136233
+ };
136234
+ 401: components["responses"]["Unauthorized"];
136235
+ 403: components["responses"]["Forbidden"];
136236
+ 404: components["responses"]["NotFound"];
136237
+ 409: components["responses"]["Conflict"];
136238
+ 422: components["responses"]["UnprocessableEntity"];
136239
+ 429: components["responses"]["TooManyRequests"];
136240
+ };
136241
+ };
136104
136242
  warnSiteMalware: {
136105
136243
  parameters: {
136106
136244
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1479",
3
+ "version": "0.1.1481",
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>",