@zinn-digital/sdk 0.1.1670 → 0.1.1671

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.
@@ -54530,7 +54530,9 @@ export interface paths {
54530
54530
  };
54531
54531
  /**
54532
54532
  * Get this site's most recent transfer offer.
54533
- * @description The latest offer for this site, in any state, so the site page can show either a pending handover or the outcome of the last one. `404` when the site has never been offered. Requires `sites.view`.
54533
+ * @description The latest offer for this site, in any state, so the site page can show either a pending handover or the outcome of the last one. A site that has never been offered answers `200` with `offer: null` — an empty state, not an error.
54534
+ *
54535
+ * `404` only when the caller cannot see the site: another tenant's id and an id that does not exist give the same body, so this is never an existence oracle. A caller who can see the site already knows it exists, so telling them it has no offer discloses nothing. Requires `sites.view`.
54534
54536
  */
54535
54537
  get: operations["getSiteTransfer"];
54536
54538
  put?: never;
@@ -109775,6 +109777,10 @@ export interface components {
109775
109777
  */
109776
109778
  target_org_id: components["schemas"]["Uuid"];
109777
109779
  };
109780
+ /** @description A site's transfer state as its owner sees it: the most recent offer in any state, or `null` when the site has never been offered. */
109781
+ SiteTransferState: {
109782
+ offer: components["schemas"]["SiteTransfer"] | null;
109783
+ };
109778
109784
  /** @description One site's translation state. A site that has not bought this is still a `200`, with `state: disabled` and `tier: null` — the screen renders the offer from it. */
109779
109785
  SiteTranslation: {
109780
109786
  /** @description The ladder, so the screen never hardcodes a price. */
@@ -207323,14 +207329,14 @@ export interface operations {
207323
207329
  };
207324
207330
  requestBody?: never;
207325
207331
  responses: {
207326
- /** @description The site's most recent transfer offer. */
207332
+ /** @description The site's most recent transfer offer, or `null` when it has never been offered. */
207327
207333
  200: {
207328
207334
  headers: {
207329
207335
  "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
207330
207336
  [name: string]: unknown;
207331
207337
  };
207332
207338
  content: {
207333
- "application/json": components["schemas"]["SiteTransfer"];
207339
+ "application/json": components["schemas"]["SiteTransferState"];
207334
207340
  };
207335
207341
  };
207336
207342
  401: components["responses"]["Unauthorized"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1670",
3
+ "version": "0.1.1671",
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>",