@zinn-digital/sdk 0.1.1778 → 0.1.1779

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.
@@ -55411,7 +55411,11 @@ export interface paths {
55411
55411
  * @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).
55412
55412
  */
55413
55413
  post: operations["renameSiteDomain"];
55414
- delete?: never;
55414
+ /**
55415
+ * Cancel a domain change that is still waiting.
55416
+ * @description Cancels the site's rename saga while it is still WAITING — for the new name to be pointed at the site (`waiting_for`) or for its certificate (`waiting_for_certificate`). The saga undoes the zones it prepared for the new name and ends; the site stays on its current address, which never stopped working. Returns `202 Accepted` with `status: cancelling` — the undo runs in the saga, so read `getSiteRenameStatus` until nothing is waiting. `409` with `refusal.rename.nothingToCancel` when no change is waiting (none running, or one already past its wait and finishing — it cannot be stopped half-way). Writes the `site.domain.rename_cancelled` audit row. Requires `sites.create` (the same authority that starts a change).
55417
+ */
55418
+ delete: operations["cancelSiteRename"];
55415
55419
  options?: never;
55416
55420
  head?: never;
55417
55421
  patch?: never;
@@ -103261,6 +103265,16 @@ export interface components {
103261
103265
  target: string;
103262
103266
  what: string;
103263
103267
  };
103268
+ RenameCancelAccepted: {
103269
+ /** @description The new domain the cancelled change was waiting for. */
103270
+ domain: components["schemas"]["Hostname"];
103271
+ site_id: components["schemas"]["Uuid"];
103272
+ /**
103273
+ * @description `cancelling` — the waiting change is undoing the new name's zones and will end; the site stays on its current address.
103274
+ * @enum {string}
103275
+ */
103276
+ status: "cancelling";
103277
+ };
103264
103278
  /** @description The DNS record that makes the new name reach the site. */
103265
103279
  RenameDnsRecord: {
103266
103280
  name: components["schemas"]["Hostname"];
@@ -212602,6 +212616,35 @@ export interface operations {
212602
212616
  503: components["responses"]["ServiceUnavailable"];
212603
212617
  };
212604
212618
  };
212619
+ cancelSiteRename: {
212620
+ parameters: {
212621
+ query?: never;
212622
+ header?: never;
212623
+ path: {
212624
+ /** @description Site ID (UUIDv7). */
212625
+ siteId: components["parameters"]["SiteId"];
212626
+ };
212627
+ cookie?: never;
212628
+ };
212629
+ requestBody?: never;
212630
+ responses: {
212631
+ /** @description The cancel was sent to the waiting change. */
212632
+ 202: {
212633
+ headers: {
212634
+ [name: string]: unknown;
212635
+ };
212636
+ content: {
212637
+ "application/json": components["schemas"]["RenameCancelAccepted"];
212638
+ };
212639
+ };
212640
+ 401: components["responses"]["Unauthorized"];
212641
+ 403: components["responses"]["Forbidden"];
212642
+ 404: components["responses"]["NotFound"];
212643
+ 409: components["responses"]["Conflict"];
212644
+ 429: components["responses"]["TooManyRequests"];
212645
+ 503: components["responses"]["ServiceUnavailable"];
212646
+ };
212647
+ };
212605
212648
  getSiteRepo: {
212606
212649
  parameters: {
212607
212650
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1778",
3
+ "version": "0.1.1779",
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>",