@zinn-digital/sdk 0.1.1670 → 0.1.1673

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.
@@ -20397,7 +20397,7 @@ export interface paths {
20397
20397
  put?: never;
20398
20398
  /**
20399
20399
  * The one-click decision on a due review (AUTOREVIEW1).
20400
- * @description Gated on `ads.manage`; audit action `ads.review_decide`. `keep` records it; `extend` moves the due day 7 days on and schedules it again; `pause` pauses its campaigns (for a funnel review, the campaigns that spent with no result), each through the approve-first queue as a person's approved change with its 30-day Undo; `revert` starts the reviewed change's Undo. Refused when the option is not offered (`reviewOptionNotOffered`) or the review is not due (`reviewNotDue`).
20400
+ * @description Gated on `ads.manage`; audit action `ads.review_decide`. `keep` records it; `extend` moves the due day 7 days on and schedules it again; `pause` pauses its campaigns (for a funnel review, the campaigns that spent with no result), each through the approve-first queue as a person's approved change with its 30-day Undo; `revert` starts the reviewed change's Undo. A dated campaign's `ending` review (MS-WP60, made only by the engine, never through this API) offers `extend30` / `extend60` / `extend90`: the campaign's end date moves that many days later on the ad platform, as the clicker's approved change with its Undo, and the review is due again 7 days before the new end. Refused when the option is not offered (`reviewOptionNotOffered`) or the review is not due (`reviewNotDue`).
20401
20401
  */
20402
20402
  post: operations["decideAdsReview"];
20403
20403
  delete?: never;
@@ -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;
@@ -70321,7 +70323,7 @@ export interface components {
70321
70323
  */
70322
70324
  decided_by_kind: "person" | "support" | "agency" | "former_member" | "assistant" | "automatic" | "integration" | "other" | null;
70323
70325
  /** @enum {string} */
70324
- decision: "" | "keep" | "pause" | "revert" | "extend";
70326
+ decision: "" | "keep" | "pause" | "revert" | "extend" | "extend30" | "extend60" | "extend90";
70325
70327
  /** Format: date */
70326
70328
  due_on: string;
70327
70329
  figures: {
@@ -70333,16 +70335,16 @@ export interface components {
70333
70335
  judged_at: string | null;
70334
70336
  /** Format: date */
70335
70337
  measure_from: string;
70336
- options: ("keep" | "pause" | "revert" | "extend")[];
70338
+ options: ("keep" | "pause" | "revert" | "extend" | "extend30" | "extend60" | "extend90")[];
70337
70339
  question: string;
70338
70340
  /** @enum {string} */
70339
- recommended: "" | "keep" | "pause" | "revert" | "extend";
70341
+ recommended: "" | "keep" | "pause" | "revert" | "extend" | "extend30" | "extend60" | "extend90";
70340
70342
  /** @enum {string} */
70341
70343
  source: "customer" | "autopilot" | "owner";
70342
70344
  /** @enum {string} */
70343
70345
  status: "scheduled" | "due" | "decided" | "cancelled";
70344
70346
  /** @enum {string} */
70345
- subject: "results" | "change" | "experiment" | "quality" | "funnel";
70347
+ subject: "results" | "change" | "experiment" | "quality" | "funnel" | "ending";
70346
70348
  test_key: string;
70347
70349
  title: string;
70348
70350
  /** @enum {string} */
@@ -70350,7 +70352,7 @@ export interface components {
70350
70352
  };
70351
70353
  AdsReviewDecision: {
70352
70354
  /** @enum {string} */
70353
- option: "keep" | "pause" | "revert" | "extend";
70355
+ option: "keep" | "pause" | "revert" | "extend" | "extend30" | "extend60" | "extend90";
70354
70356
  };
70355
70357
  /** @description A scheduled review to create (AUTOREVIEW1, docs/1006 §54). `due_on` or `days`. */
70356
70358
  AdsReviewSpec: {
@@ -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.1673",
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>",