@zinn-digital/sdk 0.1.1646 → 0.1.1649

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.
@@ -51329,6 +51329,29 @@ export interface paths {
51329
51329
  patch?: never;
51330
51330
  trace?: never;
51331
51331
  };
51332
+ "/v1/sites/{siteId}/domain-pointing/check": {
51333
+ parameters: {
51334
+ query?: never;
51335
+ header?: never;
51336
+ path: {
51337
+ /** @description Site ID (UUIDv7). */
51338
+ siteId: components["parameters"]["SiteId"];
51339
+ };
51340
+ cookie?: never;
51341
+ };
51342
+ get?: never;
51343
+ put?: never;
51344
+ /**
51345
+ * Check the site's own domain now (DNS, nameservers, SSL).
51346
+ * @description The live DNS/nameserver check behind the site page's "Check now", the MCP tool `site_domain_check`, the dashboard assistant and the support-ticket AI — one implementation. Reads the public DNS now (at most one live reading per 30 seconds per domain; inside that window it answers from the last reading), restarts the fast check ladder, marks the site live on its own domain the moment DNS reaches us, and looks up the registrar and the nameservers the registry holds. Changes nothing the customer owns. Requires `sites.view`.
51347
+ */
51348
+ post: operations["checkSiteDomainPointing"];
51349
+ delete?: never;
51350
+ options?: never;
51351
+ head?: never;
51352
+ patch?: never;
51353
+ trace?: never;
51354
+ };
51332
51355
  "/v1/sites/{siteId}/edge-domains": {
51333
51356
  parameters: {
51334
51357
  query?: never;
@@ -105258,6 +105281,7 @@ export interface components {
105258
105281
  };
105259
105282
  /** @description Where a site's domain actually sends traffic, as measured (docs/823). */
105260
105283
  SiteDomainPointing: {
105284
+ diagnosis?: components["schemas"]["SiteOwnDomainDiagnosis"];
105261
105285
  /** @example example.com */
105262
105286
  hostname: string;
105263
105287
  /**
@@ -105297,6 +105321,7 @@ export interface components {
105297
105321
  nameservers: string[];
105298
105322
  www_addresses: string[] | null;
105299
105323
  };
105324
+ progress?: components["schemas"]["SiteOwnDomainProgress"];
105300
105325
  /**
105301
105326
  * @description A stable machine code for the leg that decided the state.
105302
105327
  * @example answers_elsewhere_site_unreachable
@@ -107024,6 +107049,52 @@ export interface components {
107024
107049
  checked_at: string | null;
107025
107050
  site_id: components["schemas"]["Uuid"];
107026
107051
  };
107052
+ /** @description What is set, what is expected, what is wrong and the exact fix, for a person or an AI. `fix` is plain English for the assistant and the support-ticket AI to relay; screens render `problem` through their own catalogue. `registrar` and the registry nameservers are filled only by the live check (POST .../check). */
107053
+ SiteOwnDomainDiagnosis: {
107054
+ /** @description The support AI's DNS case (`dns_truth`); empty on a GET. */
107055
+ dns_case?: string;
107056
+ expected: {
107057
+ nameservers?: string[];
107058
+ records?: {
107059
+ name?: string;
107060
+ type?: string;
107061
+ value?: string;
107062
+ }[];
107063
+ };
107064
+ fix: string;
107065
+ /** @description The support AI's DNS rule, filled by the live check: true only when our zone already serves the site's web and mail records, so naming nameservers cannot take the site or its mail offline. null on a GET. */
107066
+ may_advise_nameservers?: boolean | null;
107067
+ /** @enum {string} */
107068
+ problem: "" | "no_domain" | "nameservers_not_changed" | "record_missing" | "pointed_elsewhere" | "zone_expired" | "propagating" | "ssl_pending";
107069
+ registered_with_us?: boolean;
107070
+ registrar?: string;
107071
+ set: {
107072
+ addresses?: string[] | null;
107073
+ nameservers?: string[];
107074
+ };
107075
+ /** @enum {string} */
107076
+ status: "no_domain" | "waiting" | "found" | "ssl" | "live";
107077
+ };
107078
+ /** @description Where the site is on the "Attach your own domain" ladder (SITEDOMAIN 1108#21): `waiting` (DNS does not reach us yet) -> `found` (it does; confirming) -> `ssl` (reached; certificate being issued) -> `live`. `no_domain` = the site is on its free preview address only. `checked_at` is the last DNS reading, `next_check_at` when the fast ladder looks next (every 30 s for 10 min, every 2 min to an hour, then backing off; null when it is not watching). */
107079
+ SiteOwnDomainProgress: {
107080
+ /** Format: date-time */
107081
+ checked_at: string | null;
107082
+ /** Format: date-time */
107083
+ gave_up_at?: string | null;
107084
+ /** Format: date-time */
107085
+ live_since: string | null;
107086
+ /** Format: date-time */
107087
+ next_check_at: string | null;
107088
+ /** @enum {string} */
107089
+ step: "no_domain" | "waiting" | "found" | "ssl" | "live";
107090
+ steps: {
107091
+ /** @enum {string} */
107092
+ key: "waiting" | "found" | "ssl" | "live";
107093
+ /** @enum {string} */
107094
+ state: "done" | "current" | "todo";
107095
+ }[];
107096
+ watching: boolean;
107097
+ };
107027
107098
  /** @description A website's move onto the customer's own server (docs/88 §11): the offer, and the latest move. See `getSiteOwnVps`. */
107028
107099
  SiteOwnVps: {
107029
107100
  /** @description Whether a paid basket would be enrolled today. While false, checkout refuses it. */
@@ -113537,6 +113608,8 @@ export interface components {
113537
113608
  TranslationBundleEntry: {
113538
113609
  /** @description True when `text` translates the CURRENT source (the row's source hash equals the string's). A `stale` entry that is `current` was re-queued for quality, not because the English changed, so its text is still a correct translation and is servable; a non-current entry translates an older English and is not. */
113539
113610
  current?: boolean;
113611
+ /** @description True when a person or the repository wrote `text` for the CURRENT source (a human author is recorded and `current` holds): no machine translation replaces it until the English changes. False = the machine wrote it. The repo export keeps a committed translation authored after its English over a later MACHINE re-translation, never over a person's edit, and names every such key in an ops alert (GP-WORDING, 2026-11-09). */
113612
+ person_owned?: boolean;
113540
113613
  /**
113541
113614
  * @description SHA-256 (hex, UTF-8) of the English source the engine holds for this field NOW — the hash `current` is judged against. A caller whose own source text hashes differently is looking at translations of another wording (for example a branch whose changed string a register from `main` put back): `scripts/i18n-sync.mjs` re-registers its own English and never exports those rows as finished.
113542
113615
  * @example 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
@@ -113836,8 +113909,11 @@ export interface components {
113836
113909
  /** @description The plan this trial invites the customer to buy, priced in their own currency (`X-Zinn-Currency`, falling back to the org default). ⛔ `null` when the template names no target or when there is no price in that currency — the screen must then offer a plan picker and **never** derive a target of its own (docs/20 §1a). An offer we cannot honour at checkout is worse than no offer. */
113837
113910
  upgrade?: components["schemas"]["TrialUpgradeOffer"] | null;
113838
113911
  };
113839
- /** @enum {string} */
113840
- TrialActivityState: "not_started" | "signed_in" | "site_added" | "activated";
113912
+ /**
113913
+ * @description `site_built` = a site answers but only on a preview address we operate; `activated` = a site is live on the customer's OWN domain (owner ruling 1108#19, 2026-11-08).
113914
+ * @enum {string}
113915
+ */
113916
+ TrialActivityState: "not_started" | "signed_in" | "site_added" | "site_built" | "activated";
113841
113917
  TrialEligibility: {
113842
113918
  /** @description ⚖️ 2026-10-21 (ZEAB2): a verified payment method we can charge off-session later is already on file for this org (a Stripe card, wallet, SEPA, Link, Revolut Pay or Amazon Pay mandate, or a vaulted PayPal account; never charged), so a `requires_card` trial can start without the card step. s1014 row 145: any gateway, not only Stripe. */
113843
113919
  card_on_file?: boolean;
@@ -113875,11 +113951,18 @@ export interface components {
113875
113951
  data: components["schemas"]["Trial"] | null;
113876
113952
  };
113877
113953
  TrialMilestone: {
113954
+ /** @description The address it happened at (`site_live` and `site_live_own_domain` only). */
113955
+ address?: string;
113878
113956
  /** Format: date-time */
113879
113957
  at: string;
113880
113958
  count: number;
113881
- /** @enum {string} */
113882
- kind: "signed_up" | "trial_started" | "signed_in" | "site_added" | "site_live" | "domain_pointed" | "domain_bought" | "plugin_installed" | "team_invited" | "ticket_opened" | "assistant_chat" | "live_chat" | "last_seen";
113959
+ /**
113960
+ * @description `site_live` = the first site was BUILT and answers at its address, which may be the preview address we minted; `site_live_own_domain` = the customer's OWN domain was observed reaching us (owner 1108#19).
113961
+ * @enum {string}
113962
+ */
113963
+ kind: "signed_up" | "trial_started" | "signed_in" | "site_added" | "site_live" | "site_live_own_domain" | "domain_pointed" | "domain_bought" | "plugin_installed" | "team_invited" | "ticket_opened" | "assistant_chat" | "live_chat" | "last_seen";
113964
+ /** @description True when `address` is one of our preview addresses, not the customer's domain. */
113965
+ preview?: boolean;
113883
113966
  };
113884
113967
  TrialStart: {
113885
113968
  /**
@@ -201877,6 +201960,33 @@ export interface operations {
201877
201960
  429: components["responses"]["TooManyRequests"];
201878
201961
  };
201879
201962
  };
201963
+ checkSiteDomainPointing: {
201964
+ parameters: {
201965
+ query?: never;
201966
+ header?: never;
201967
+ path: {
201968
+ /** @description Site ID (UUIDv7). */
201969
+ siteId: components["parameters"]["SiteId"];
201970
+ };
201971
+ cookie?: never;
201972
+ };
201973
+ requestBody?: never;
201974
+ responses: {
201975
+ /** @description The pointing state, progress and diagnosis after the check. */
201976
+ 200: {
201977
+ headers: {
201978
+ [name: string]: unknown;
201979
+ };
201980
+ content: {
201981
+ "application/json": components["schemas"]["SiteDomainPointing"];
201982
+ };
201983
+ };
201984
+ 401: components["responses"]["Unauthorized"];
201985
+ 403: components["responses"]["Forbidden"];
201986
+ 404: components["responses"]["NotFound"];
201987
+ 429: components["responses"]["TooManyRequests"];
201988
+ };
201989
+ };
201880
201990
  listSiteEdgeDomains: {
201881
201991
  parameters: {
201882
201992
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1646",
3
+ "version": "0.1.1649",
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>",