@zinn-digital/sdk 0.1.1892 → 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
  */
@@ -65514,6 +65514,8 @@ export interface components {
65514
65514
  AdminOrderPayment: components["schemas"]["Payment"] & {
65515
65515
  /** @description The payments driver that took the attempt. */
65516
65516
  provider: string;
65517
+ /** @description Staff only (P1-024): WHO refused a failed attempt. `bank:<code>` (the card's bank or PayPal's funding source), `payer:<code>` (crypto), `our_rule:postcode` / `our_rule` (one of OUR risk rules stopped it before the bank saw it), `our_error` (our request, account or the gateway) or `unknown`. Empty when it did not fail or predates the field. Never on the customer's `Payment`. */
65518
+ refused_by?: string;
65517
65519
  };
65518
65520
  /** @description One order as the staff order list shows it (#7255). */
65519
65521
  AdminOrderSummary: {
@@ -121015,10 +121017,10 @@ export interface components {
121015
121017
  /** Format: uuid */
121016
121018
  site_id: string;
121017
121019
  /**
121018
- * @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.
121019
121021
  * @enum {string}
121020
121022
  */
121021
- status: "collected" | "failed" | "skipped";
121023
+ status: "queued" | "skipped";
121022
121024
  };
121023
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. */
121024
121026
  WordPressRotatedPassword: {
@@ -224197,14 +224199,16 @@ export interface operations {
224197
224199
  };
224198
224200
  };
224199
224201
  responses: {
224200
- /** @description One result per requested site. */
224201
- 200: {
224202
+ /** @description The job was started (or joined); one result per requested site. */
224203
+ 202: {
224202
224204
  headers: {
224203
224205
  [name: string]: unknown;
224204
224206
  };
224205
224207
  content: {
224206
224208
  "application/json": {
224207
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;
224208
224212
  };
224209
224213
  };
224210
224214
  };
@@ -224212,6 +224216,7 @@ export interface operations {
224212
224216
  403: components["responses"]["Forbidden"];
224213
224217
  422: components["responses"]["UnprocessableEntity"];
224214
224218
  429: components["responses"]["TooManyRequests"];
224219
+ 503: components["responses"]["ServiceUnavailable"];
224215
224220
  };
224216
224221
  };
224217
224222
  listWordPressSets: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1892",
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>",