@zinn-digital/sdk 0.1.1893 → 0.1.1895
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.
- package/dist/generated/schema.d.ts +13 -10
- package/package.json +1 -1
|
@@ -55987,7 +55987,7 @@ export interface paths {
|
|
|
55987
55987
|
put?: never;
|
|
55988
55988
|
/**
|
|
55989
55989
|
* Change a site's primary domain (asynchronous).
|
|
55990
|
-
* @description Starts the durable **rename-domain** saga for a site (new-side setup → flip → old-side teardown, register #91). Returns `202 Accepted` immediately — the work runs as a Temporal workflow; poll the site or subscribe to `site.*` events for completion. Requires `sites.create` (the same authority that provisions a site). Idempotent on the site: a repeat call while the saga is running is accepted and does not start a second run. ONE STEP for any site (whatever its current name): when the new name does not reach the site yet the reply is `status: waiting_for_dns` with the `dns_record` to add, and the saga waits (checking every minute, then every ten, for at most seven days) before switching, so the working address never breaks. A name on our preview domain starts at once; a name more than one label under a domain we own (`www.<name>.<preview domain>`) is refused with `422` and `refusal.rename.nameTooDeepForFreeAddress`, because no certificate on the estate can serve it. A different name while it waits retargets that run (its prepared zones are undone); `in_progress` means a run already past its DNS wait finishes first. A name in a zone the SAME org holds on our DNS, delegated to us, whose target carries only the holder page needs no record: the saga points it itself (apex and `www`) through that domain's own DNS placement, and its undo puts the holder page back (s1014 F10).
|
|
55990
|
+
* @description Starts the durable **rename-domain** saga for a site (new-side setup → flip → old-side teardown, register #91). Returns `202 Accepted` immediately — the work runs as a Temporal workflow; poll the site or subscribe to `site.*` events for completion. Requires `sites.create` (the same authority that provisions a site). Idempotent on the site: a repeat call while the saga is running is accepted and does not start a second run. ONE STEP for any site (whatever its current name): when the new name does not reach the site yet the reply is `status: waiting_for_dns` with the `dns_record` to add, and the saga waits (checking every minute, then every ten, for at most seven days) before switching, so the working address never breaks. A name on our preview domain starts at once; a name more than one label under a domain we own (`www.<name>.<preview domain>`) is refused with `422` and `refusal.rename.nameTooDeepForFreeAddress`, because no certificate on the estate can serve it. A name another site already holds (another account's, or one of the caller's own other sites) is refused with `409` `DOMAIN_IN_USE` and `refusal.rename.domainInUse` before any run starts; the answer is identical either way and never says who holds it. A different name while it waits retargets that run (its prepared zones are undone); `in_progress` means a run already past its DNS wait finishes first. A name in a zone the SAME org holds on our DNS, delegated to us, whose target carries only the holder page needs no record: the saga points it itself (apex and `www`) through that domain's own DNS placement, and its undo puts the holder page back (s1014 F10).
|
|
55991
55991
|
*/
|
|
55992
55992
|
post: operations["renameSiteDomain"];
|
|
55993
55993
|
/**
|
|
@@ -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
|
|
61650
|
-
* @description
|
|
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
|
|
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
|
*/
|
|
@@ -112922,13 +112922,13 @@ export interface components {
|
|
|
112922
112922
|
/** @description The domain the failed change was moving to, or null when unknown. */
|
|
112923
112923
|
domain: components["schemas"]["Hostname"] | null;
|
|
112924
112924
|
/** @enum {string} */
|
|
112925
|
-
reason: "dns_never_pointed" | "certificate_not_issued" | "domain_in_other_dns_account" | "our_side";
|
|
112925
|
+
reason: "dns_never_pointed" | "certificate_not_issued" | "domain_in_other_dns_account" | "domain_in_use" | "our_side";
|
|
112926
112926
|
};
|
|
112927
112927
|
SiteRenameStatus: {
|
|
112928
112928
|
dns_record: components["schemas"]["RenameDnsRecord"] | null;
|
|
112929
112929
|
/** @description The live state of the domain the change is attaching (`waiting_for` or `waiting_for_certificate`), read from public DNS (cached 60 s); null when no change is in progress. `nameservers_elsewhere` and `no_address_record` name the customer's next step; `not_attached` never appears here (the change is the attach). */
|
|
112930
112930
|
domain_state?: components["schemas"]["DomainAttachState"] | null;
|
|
112931
|
-
/** @description Set when the site's latest domain change ended without moving the site (its primary domain is still the current one; the saga's undo is best effort); null otherwise. `reason` is a machine key the client explains: `dns_never_pointed` (the new name was not pointed at the site within the waiting period: the customer can fix their DNS and try again), `certificate_not_issued` (no certificate for the new name could be issued, so the site never switched: the customer can check the name's DNS and try again), `domain_in_other_dns_account` (the domain is held in a DNS account that is not ours and its nameservers do not point at us: the customer keeps their own DNS, adds `failed.dns_record` there and tries again; not a platform fault) or `our_side` (any other failure: contact support). */
|
|
112931
|
+
/** @description Set when the site's latest domain change ended without moving the site (its primary domain is still the current one; the saga's undo is best effort); null otherwise. `reason` is a machine key the client explains: `dns_never_pointed` (the new name was not pointed at the site within the waiting period: the customer can fix their DNS and try again), `certificate_not_issued` (no certificate for the new name could be issued, so the site never switched: the customer can check the name's DNS and try again), `domain_in_other_dns_account` (the domain is held in a DNS account that is not ours and its nameservers do not point at us: the customer keeps their own DNS, adds `failed.dns_record` there and tries again; not a platform fault), `domain_in_use` (another site took the name while the change ran; never says whose) or `our_side` (any other failure: contact support). */
|
|
112932
112932
|
failed: components["schemas"]["SiteRenameFailure"] | null;
|
|
112933
112933
|
/** @description True when the platform writes `dns_record` itself once the domain's delegation is live: the domain is registered with us, we hold its DNS zone, its DNS is not managed externally, and it is delegated to that zone (or its registrar nameservers are already our expected pair while the delegation goes live). False for a name whose DNS is hosted elsewhere (for example its own Cloudflare account) even when it is registered with us: the customer adds the record there. Always false when nothing is waiting. */
|
|
112934
112934
|
pointed_by_us?: boolean;
|
|
@@ -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
|
|
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: "
|
|
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
|
|
224203
|
-
|
|
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.
|
|
3
|
+
"version": "0.1.1895",
|
|
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>",
|