@zinn-digital/sdk 0.1.1894 → 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.
|
@@ -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
|
/**
|
|
@@ -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;
|
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>",
|