@zinn-digital/sdk 0.1.1778 → 0.1.1780

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"];
@@ -176572,7 +176586,10 @@ export interface operations {
176572
176586
  };
176573
176587
  getDomainDelegation: {
176574
176588
  parameters: {
176575
- query?: never;
176589
+ query?: {
176590
+ /** @description `no_content` answers a domain whose DNS we do not host with a `204` instead of the `DNS_NOT_HOSTED` 404. A domain outside the caller's scope is still a 404. */
176591
+ not_hosted?: "no_content";
176592
+ };
176576
176593
  header?: never;
176577
176594
  path: {
176578
176595
  /** @description The domain's id. */
@@ -176591,6 +176608,13 @@ export interface operations {
176591
176608
  "application/json": components["schemas"]["Delegation"];
176592
176609
  };
176593
176610
  };
176611
+ /** @description Only with `not_hosted=no_content`: we do not host this domain's DNS, so there is no delegation to report. */
176612
+ 204: {
176613
+ headers: {
176614
+ [name: string]: unknown;
176615
+ };
176616
+ content?: never;
176617
+ };
176594
176618
  401: components["responses"]["Unauthorized"];
176595
176619
  403: components["responses"]["Forbidden"];
176596
176620
  404: components["responses"]["NotFound"];
@@ -207711,7 +207735,10 @@ export interface operations {
207711
207735
  };
207712
207736
  getSiteChatAgent: {
207713
207737
  parameters: {
207714
- query?: never;
207738
+ query?: {
207739
+ /** @description `no_content` answers a site with no agent yet with a `204` instead of the 404. A site outside the caller's scope is still a 404. */
207740
+ absent?: "no_content";
207741
+ };
207715
207742
  header?: never;
207716
207743
  path: {
207717
207744
  /** @description Site ID (UUIDv7). */
@@ -207730,6 +207757,13 @@ export interface operations {
207730
207757
  "application/json": components["schemas"]["ChatAgent"];
207731
207758
  };
207732
207759
  };
207760
+ /** @description Only with `absent=no_content`: this site has no agent yet. */
207761
+ 204: {
207762
+ headers: {
207763
+ [name: string]: unknown;
207764
+ };
207765
+ content?: never;
207766
+ };
207733
207767
  401: components["responses"]["Unauthorized"];
207734
207768
  403: components["responses"]["Forbidden"];
207735
207769
  404: components["responses"]["NotFound"];
@@ -212602,6 +212636,35 @@ export interface operations {
212602
212636
  503: components["responses"]["ServiceUnavailable"];
212603
212637
  };
212604
212638
  };
212639
+ cancelSiteRename: {
212640
+ parameters: {
212641
+ query?: never;
212642
+ header?: never;
212643
+ path: {
212644
+ /** @description Site ID (UUIDv7). */
212645
+ siteId: components["parameters"]["SiteId"];
212646
+ };
212647
+ cookie?: never;
212648
+ };
212649
+ requestBody?: never;
212650
+ responses: {
212651
+ /** @description The cancel was sent to the waiting change. */
212652
+ 202: {
212653
+ headers: {
212654
+ [name: string]: unknown;
212655
+ };
212656
+ content: {
212657
+ "application/json": components["schemas"]["RenameCancelAccepted"];
212658
+ };
212659
+ };
212660
+ 401: components["responses"]["Unauthorized"];
212661
+ 403: components["responses"]["Forbidden"];
212662
+ 404: components["responses"]["NotFound"];
212663
+ 409: components["responses"]["Conflict"];
212664
+ 429: components["responses"]["TooManyRequests"];
212665
+ 503: components["responses"]["ServiceUnavailable"];
212666
+ };
212667
+ };
212605
212668
  getSiteRepo: {
212606
212669
  parameters: {
212607
212670
  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.1780",
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>",