@zinn-digital/sdk 0.1.1589 → 0.1.1591

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.
@@ -38338,6 +38338,8 @@ export interface paths {
38338
38338
  * ⛔ Not idempotent, and it does not pretend to be — a retry is refused by the hostname uniqueness constraint, which is a clean conflict rather than a second site.
38339
38339
  *
38340
38340
  * Requires **both** `sites.create` and `hosting.import.manage`: it spends a site slot *and* connects to a third party's production server, and a principal holding one of those powers must not acquire the other by coming through this door.
38341
+ *
38342
+ * ⚖️ **A full plan does not refuse a migration** (row 1107#13, owner 2026-11-07: *"better that than refusing the migration in"*). With no free site slot the site is still created and migrated, then **frozen** (served, but read-only, no cron, no mail) with the `site_slots_frozen` notice; an upgrade or a deleted site unfreezes it within about ten minutes. The oldest such sites get any free room first. The slot refusal stands only past the hard cap of `max(10 × the plan's sites, sites + 9)`, and an organization with no plan on the line is still refused.
38341
38343
  */
38342
38344
  post: operations["createMigrationWithSite"];
38343
38345
  delete?: never;
@@ -40776,7 +40778,7 @@ export interface paths {
40776
40778
  *
40777
40779
  * **The site.** It is created in the customer's organization on the plan named by `subscription_id`, on `domain`, with `app` (a key from `getPartnerCapabilities` `site_moves.plans[].apps`). Or pass `replace_site_id` — one of `listPartnerHostingSlots` `replaceable_sites` — to import into that empty site and move it onto `domain` instead of taking a new slot. `domain` may be the replaced site's own name (an `empty_starter` is built on the customer's real domain); that is not `domain_in_use`. A replaced `empty_starter` that has content on it when the move starts fails with `replace_site_not_empty`, and nothing on it is touched. The domain's DNS is never touched: it keeps pointing where it points until you repoint it, and it may stay in your (or your customer's) Cloudflare for good. A subdomain whose apex is somebody else's live site is fine.
40778
40780
  *
40779
- * **Refusals** (`422`, `details[0].code`): `no_free_slot`, `subscription_not_found`, `app_not_supported_by_plan`, `plan_cannot_import`, `domain_invalid`, `domain_in_use`, `archive_url_invalid`, `archive_checksum_invalid`, `replace_site_not_replaceable`, `move_already_running`, `idempotency_key_required`, `moves_not_open`, `no_capacity`, `dns_invalid`, `not_linked`. There is **no size limit** (D28455): room is made for a large archive, and the move is slower, never refused.
40781
+ * **Refusals** (`422`, `details[0].code`): `no_free_slot`, `subscription_not_found`, `app_not_supported_by_plan`, `plan_cannot_import`, `domain_invalid`, `domain_in_use`, `archive_url_invalid`, `archive_checksum_invalid`, `replace_site_not_replaceable`, `move_already_running`, `idempotency_key_required`, `moves_not_open`, `no_capacity`, `dns_invalid`, `not_linked`. There is **no size limit** (D28455): room is made for a large archive, and the move is slower, never refused. ⚖️ **A full plan does not refuse a move** (row 1107#13, owner 2026-11-07): the site lands past the plan's site limit and is **frozen** (served, but read-only, no cron, no mail) until the customer upgrades or frees a slot, when it unfreezes by itself within about ten minutes (the quota sweep). `no_free_slot` is returned only past the hard cap of `max(10 × the plan's sites, sites + 9)`.
40780
40782
  *
40781
40783
  * **DNS (contract v2).** `dns` says where the zone is held and who changes it: with `auto_switch: true` YOU repoint the record when the move reaches `step: ready_to_switch` (then call go-live); otherwise the customer is shown and e-mailed the exact records, the change is detected automatically, and the move goes live on its own. A retry with the same `Idempotency-Key` returns the same move. Requires `partner.domains`.
40782
40784
  */
@@ -82489,6 +82491,24 @@ export interface components {
82489
82491
  rate_limit_per_min: number;
82490
82492
  route_through_proxy: boolean;
82491
82493
  };
82494
+ EmailMarketingAbResult: {
82495
+ a: components["schemas"]["EmailMarketingAbVariant"];
82496
+ b: components["schemas"]["EmailMarketingAbVariant"];
82497
+ /** Format: date-time */
82498
+ decided_at: string | null;
82499
+ /** @enum {string} */
82500
+ metric: "opens" | "clicks";
82501
+ /** @enum {string|null} */
82502
+ winner: "a" | "b" | null;
82503
+ };
82504
+ EmailMarketingAbVariant: {
82505
+ /** @description Unique clicks. */
82506
+ clicked: number;
82507
+ /** @description Unique opens. */
82508
+ opened: number;
82509
+ sent: number;
82510
+ subject: string;
82511
+ };
82492
82512
  EmailMarketingAiDraft: {
82493
82513
  /** @description The body */
82494
82514
  html: string;
@@ -82510,6 +82530,14 @@ export interface components {
82510
82530
  tone: "friendly" | "professional" | "playful" | "urgent" | "calm";
82511
82531
  };
82512
82532
  EmailMarketingCampaign: {
82533
+ /** Format: date-time */
82534
+ ab_decided_at: string | null;
82535
+ /** @enum {string} */
82536
+ ab_metric: "opens" | "clicks";
82537
+ ab_test_pct: number;
82538
+ ab_wait_minutes: number;
82539
+ /** @enum {string|null} */
82540
+ ab_winner: "a" | "b" | null;
82513
82541
  /** Format: date-time */
82514
82542
  created_at: string;
82515
82543
  /** Format: date-time */
@@ -82528,6 +82556,8 @@ export interface components {
82528
82556
  refusal_code: "not_open" | "account_on_hold" | "not_included" | "incomplete" | "pool_warming" | "sender_unverified" | "domain_auth" | "paused" | "quota" | "review" | "empty" | null;
82529
82557
  refusal_message: string | null;
82530
82558
  reply_to: string;
82559
+ /** @enum {string} */
82560
+ send_time_mode: "now" | "optimised";
82531
82561
  /** Format: uuid */
82532
82562
  sender_id: string | null;
82533
82563
  /** Format: date-time */
@@ -82535,6 +82565,7 @@ export interface components {
82535
82565
  /** @enum {string} */
82536
82566
  status: "draft" | "sending" | "paused" | "sent" | "refused";
82537
82567
  subject: string;
82568
+ subject_b: string;
82538
82569
  /** @enum {string} */
82539
82570
  template: "basic" | "raw";
82540
82571
  text: string;
@@ -82547,6 +82578,8 @@ export interface components {
82547
82578
  next_after: string | null;
82548
82579
  };
82549
82580
  EmailMarketingCampaignReport: {
82581
+ /** @description The A/B subject test, or null when the campaign is not a test. */
82582
+ ab?: components["schemas"]["EmailMarketingAbResult"] | null;
82550
82583
  bounce_rate_bps: number;
82551
82584
  bounced: number;
82552
82585
  by_status: {
@@ -82568,6 +82601,15 @@ export interface components {
82568
82601
  unsubscribed: number;
82569
82602
  };
82570
82603
  EmailMarketingCampaignWrite: {
82604
+ /**
82605
+ * @description A/B test: what the winner is measured on (unique opens or unique clicks per sent).
82606
+ * @enum {string}
82607
+ */
82608
+ ab_metric?: "opens" | "clicks";
82609
+ /** @description A/B test: the share of the audience (%) split between A and B; the rest gets the winner. 0 = no test. Clamped to 0-50. */
82610
+ ab_test_pct?: number;
82611
+ /** @description A/B test: minutes from the start before the winner is chosen. Clamped to 30-2880. */
82612
+ ab_wait_minutes?: number;
82571
82613
  from_name?: string;
82572
82614
  html?: string;
82573
82615
  /** Format: uuid */
@@ -82576,9 +82618,16 @@ export interface components {
82576
82618
  postal_address?: string;
82577
82619
  preheader?: string;
82578
82620
  reply_to?: string;
82621
+ /**
82622
+ * @description `optimised` holds each recipient until their own best hour (from past opens and clicks, Apple proxy opens discounted), within 24 hours of the start.
82623
+ * @enum {string}
82624
+ */
82625
+ send_time_mode?: "now" | "optimised";
82579
82626
  /** Format: uuid */
82580
82627
  sender_id?: string | null;
82581
82628
  subject?: string;
82629
+ /** @description A/B test: the second subject line. Blank = no test. */
82630
+ subject_b?: string;
82582
82631
  /** @enum {string} */
82583
82632
  template?: "basic" | "raw";
82584
82633
  text?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1589",
3
+ "version": "0.1.1591",
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>",