@zinn-digital/sdk 0.1.1645 → 0.1.1648

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.
@@ -44649,6 +44649,26 @@ export interface paths {
44649
44649
  patch?: never;
44650
44650
  trace?: never;
44651
44651
  };
44652
+ "/v1/public/house-tags": {
44653
+ parameters: {
44654
+ query?: never;
44655
+ header?: never;
44656
+ path?: never;
44657
+ cookie?: never;
44658
+ };
44659
+ /**
44660
+ * The ad networks our own public sites load (public, cached).
44661
+ * @description TRACK-ALWAYS (owner 2026-11-08): our own public sites load only the advertising tags of networks we use. `networks` lists every platform with an ACTIVE house ad connection (sorted); `tags` is the platform tracking hub's public tag id per hub network (`ga4`, `google_ads`, `microsoft_uet`, `meta_pixel`, `pinterest_tag`, …). A network in `networks` with no id in `tags` loads only where the site carries its own id. Every value is public by nature (page source). Answered from a one-minute cache; the public site reads it server-side every five minutes, never per page view.
44662
+ */
44663
+ get: operations["getPublicHouseTags"];
44664
+ put?: never;
44665
+ post?: never;
44666
+ delete?: never;
44667
+ options?: never;
44668
+ head?: never;
44669
+ patch?: never;
44670
+ trace?: never;
44671
+ };
44652
44672
  "/v1/public/kb": {
44653
44673
  parameters: {
44654
44674
  query?: never;
@@ -51309,6 +51329,29 @@ export interface paths {
51309
51329
  patch?: never;
51310
51330
  trace?: never;
51311
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
+ };
51312
51355
  "/v1/sites/{siteId}/edge-domains": {
51313
51356
  parameters: {
51314
51357
  query?: never;
@@ -105238,6 +105281,7 @@ export interface components {
105238
105281
  };
105239
105282
  /** @description Where a site's domain actually sends traffic, as measured (docs/823). */
105240
105283
  SiteDomainPointing: {
105284
+ diagnosis?: components["schemas"]["SiteOwnDomainDiagnosis"];
105241
105285
  /** @example example.com */
105242
105286
  hostname: string;
105243
105287
  /**
@@ -105277,6 +105321,7 @@ export interface components {
105277
105321
  nameservers: string[];
105278
105322
  www_addresses: string[] | null;
105279
105323
  };
105324
+ progress?: components["schemas"]["SiteOwnDomainProgress"];
105280
105325
  /**
105281
105326
  * @description A stable machine code for the leg that decided the state.
105282
105327
  * @example answers_elsewhere_site_unreachable
@@ -107004,6 +107049,52 @@ export interface components {
107004
107049
  checked_at: string | null;
107005
107050
  site_id: components["schemas"]["Uuid"];
107006
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
+ };
107007
107098
  /** @description A website's move onto the customer's own server (docs/88 §11): the offer, and the latest move. See `getSiteOwnVps`. */
107008
107099
  SiteOwnVps: {
107009
107100
  /** @description Whether a paid basket would be enrolled today. While false, checkout refuses it. */
@@ -113816,8 +113907,11 @@ export interface components {
113816
113907
  /** @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. */
113817
113908
  upgrade?: components["schemas"]["TrialUpgradeOffer"] | null;
113818
113909
  };
113819
- /** @enum {string} */
113820
- TrialActivityState: "not_started" | "signed_in" | "site_added" | "activated";
113910
+ /**
113911
+ * @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).
113912
+ * @enum {string}
113913
+ */
113914
+ TrialActivityState: "not_started" | "signed_in" | "site_added" | "site_built" | "activated";
113821
113915
  TrialEligibility: {
113822
113916
  /** @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. */
113823
113917
  card_on_file?: boolean;
@@ -113855,11 +113949,18 @@ export interface components {
113855
113949
  data: components["schemas"]["Trial"] | null;
113856
113950
  };
113857
113951
  TrialMilestone: {
113952
+ /** @description The address it happened at (`site_live` and `site_live_own_domain` only). */
113953
+ address?: string;
113858
113954
  /** Format: date-time */
113859
113955
  at: string;
113860
113956
  count: number;
113861
- /** @enum {string} */
113862
- 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";
113957
+ /**
113958
+ * @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).
113959
+ * @enum {string}
113960
+ */
113961
+ 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";
113962
+ /** @description True when `address` is one of our preview addresses, not the customer's domain. */
113963
+ preview?: boolean;
113863
113964
  };
113864
113965
  TrialStart: {
113865
113966
  /**
@@ -190979,6 +191080,33 @@ export interface operations {
190979
191080
  429: components["responses"]["TooManyRequests"];
190980
191081
  };
190981
191082
  };
191083
+ getPublicHouseTags: {
191084
+ parameters: {
191085
+ query?: never;
191086
+ header?: never;
191087
+ path?: never;
191088
+ cookie?: never;
191089
+ };
191090
+ requestBody?: never;
191091
+ responses: {
191092
+ /** @description The networks in use and their public tag ids. */
191093
+ 200: {
191094
+ headers: {
191095
+ /** @description public, max-age=60, s-maxage=300 */
191096
+ "Cache-Control"?: string;
191097
+ [name: string]: unknown;
191098
+ };
191099
+ content: {
191100
+ "application/json": {
191101
+ networks: string[];
191102
+ tags: {
191103
+ [key: string]: string;
191104
+ };
191105
+ };
191106
+ };
191107
+ };
191108
+ };
191109
+ };
190982
191110
  listPublicKbArticles: {
190983
191111
  parameters: {
190984
191112
  query?: {
@@ -201830,6 +201958,33 @@ export interface operations {
201830
201958
  429: components["responses"]["TooManyRequests"];
201831
201959
  };
201832
201960
  };
201961
+ checkSiteDomainPointing: {
201962
+ parameters: {
201963
+ query?: never;
201964
+ header?: never;
201965
+ path: {
201966
+ /** @description Site ID (UUIDv7). */
201967
+ siteId: components["parameters"]["SiteId"];
201968
+ };
201969
+ cookie?: never;
201970
+ };
201971
+ requestBody?: never;
201972
+ responses: {
201973
+ /** @description The pointing state, progress and diagnosis after the check. */
201974
+ 200: {
201975
+ headers: {
201976
+ [name: string]: unknown;
201977
+ };
201978
+ content: {
201979
+ "application/json": components["schemas"]["SiteDomainPointing"];
201980
+ };
201981
+ };
201982
+ 401: components["responses"]["Unauthorized"];
201983
+ 403: components["responses"]["Forbidden"];
201984
+ 404: components["responses"]["NotFound"];
201985
+ 429: components["responses"]["TooManyRequests"];
201986
+ };
201987
+ };
201833
201988
  listSiteEdgeDomains: {
201834
201989
  parameters: {
201835
201990
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1645",
3
+ "version": "0.1.1648",
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>",