@zinn-digital/sdk 0.1.1893 → 0.1.1894

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.
@@ -61646,10 +61646,10 @@ export interface paths {
61646
61646
  get?: never;
61647
61647
  put?: never;
61648
61648
  /**
61649
- * Collect a named handful of sites in one call.
61650
- * @description Collects up to 25 sites' WordPress posture from their platforms. ⛔ Capped because each site is a real vendor conversation, and a customer with four hundred sites pressing *"refresh everything"* must not be able to turn their own screen into a rate-limit incident.
61649
+ * Collect a named handful of sites in the background.
61650
+ * @description Starts collecting up to 25 sites' WordPress posture from their platforms and answers **202** at once with the `job_id`. ⛔ The collection runs in the background (P3-080: it used to run inside the request, ~10 s a site, and three sites were a 503): every site of the job is collected in parallel, bounded per box, and each site's row in `listWordPressSites` updates (`snapshot.collected_at`, `snapshot.collect_error_code`) as its collection finishes, so a client polls the list. A second call for the same set while the job is still running joins it rather than starting another. Capped at one page so one press cannot turn a screen into a rate-limit incident.
61651
61651
  *
61652
- * ⛔ **One site's failure never fails the call.** The response reports per site, because the interesting answer on an estate is usually *"eleven collected and one refused, here is which"* — and a 4xx for the whole batch would hide it. A site outside the caller's scope comes back `skipped`, never `404`, so this can never confirm whether a foreign site id exists.
61652
+ * ⛔ **One site never fails the call.** A site outside the caller's scope comes back `skipped`, never `404`, so this can never confirm whether a foreign site id exists; every other site is `queued`. `503` when the background job could not be started (nothing was queued; try again shortly).
61653
61653
  *
61654
61654
  * Requires `sites.view` **and** `sites.panel_access`.
61655
61655
  */
@@ -121017,10 +121017,10 @@ export interface components {
121017
121017
  /** Format: uuid */
121018
121018
  site_id: string;
121019
121019
  /**
121020
- * @description ⛔ A site outside the caller's scope is `skipped`, never a 404 for the whole batch — which would both fail eleven good collections and confirm that a foreign site id exists.
121020
+ * @description `queued`: handed to the background job, whose result lands on the site's row in the list. ⛔ A site outside the caller's scope is `skipped`, never a 404 for the whole batch — which would confirm that a foreign site id exists.
121021
121021
  * @enum {string}
121022
121022
  */
121023
- status: "collected" | "failed" | "skipped";
121023
+ status: "queued" | "skipped";
121024
121024
  };
121025
121025
  /** @description ⛔⛔ **Shown once, stored nowhere** — not in the snapshot, not in the audit record's metadata, not in a log line. The audit record says a rotation happened and never what to. */
121026
121026
  WordPressRotatedPassword: {
@@ -224199,14 +224199,16 @@ export interface operations {
224199
224199
  };
224200
224200
  };
224201
224201
  responses: {
224202
- /** @description One result per requested site. */
224203
- 200: {
224202
+ /** @description The job was started (or joined); one result per requested site. */
224203
+ 202: {
224204
224204
  headers: {
224205
224205
  [name: string]: unknown;
224206
224206
  };
224207
224207
  content: {
224208
224208
  "application/json": {
224209
224209
  data: components["schemas"]["WordPressRefreshResult"][];
224210
+ /** @description The background job's id; empty when no requested site was in scope (nothing to collect). */
224211
+ job_id: string;
224210
224212
  };
224211
224213
  };
224212
224214
  };
@@ -224214,6 +224216,7 @@ export interface operations {
224214
224216
  403: components["responses"]["Forbidden"];
224215
224217
  422: components["responses"]["UnprocessableEntity"];
224216
224218
  429: components["responses"]["TooManyRequests"];
224219
+ 503: components["responses"]["ServiceUnavailable"];
224217
224220
  };
224218
224221
  };
224219
224222
  listWordPressSets: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1893",
3
+ "version": "0.1.1894",
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>",