@zinn-digital/sdk 0.1.1646 → 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.
- package/dist/generated/schema.d.ts +112 -4
- package/package.json +1 -1
|
@@ -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. */
|
|
@@ -113836,8 +113907,11 @@ export interface components {
|
|
|
113836
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. */
|
|
113837
113908
|
upgrade?: components["schemas"]["TrialUpgradeOffer"] | null;
|
|
113838
113909
|
};
|
|
113839
|
-
/**
|
|
113840
|
-
|
|
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";
|
|
113841
113915
|
TrialEligibility: {
|
|
113842
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. */
|
|
113843
113917
|
card_on_file?: boolean;
|
|
@@ -113875,11 +113949,18 @@ export interface components {
|
|
|
113875
113949
|
data: components["schemas"]["Trial"] | null;
|
|
113876
113950
|
};
|
|
113877
113951
|
TrialMilestone: {
|
|
113952
|
+
/** @description The address it happened at (`site_live` and `site_live_own_domain` only). */
|
|
113953
|
+
address?: string;
|
|
113878
113954
|
/** Format: date-time */
|
|
113879
113955
|
at: string;
|
|
113880
113956
|
count: number;
|
|
113881
|
-
/**
|
|
113882
|
-
|
|
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;
|
|
113883
113964
|
};
|
|
113884
113965
|
TrialStart: {
|
|
113885
113966
|
/**
|
|
@@ -201877,6 +201958,33 @@ export interface operations {
|
|
|
201877
201958
|
429: components["responses"]["TooManyRequests"];
|
|
201878
201959
|
};
|
|
201879
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
|
+
};
|
|
201880
201988
|
listSiteEdgeDomains: {
|
|
201881
201989
|
parameters: {
|
|
201882
201990
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
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>",
|