@zinn-digital/sdk 0.1.1522 → 0.1.1525
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 +20 -2
- package/package.json +1 -1
|
@@ -37832,7 +37832,7 @@ export interface paths {
|
|
|
37832
37832
|
* Record where the signed-in customer came from (the app's landing capture).
|
|
37833
37833
|
* @description The dashboard captures `utm_*`, `ref`, `zd_vid` (the product sites' visit id), the referring host and the landing page BEFORE the sign-in hop, and sends them here on the first signed-in page load. This is the only way an app sign-up can be attributed: self-registration provisions the organization inside authentication, which never sees the landing URL (docs/750). Unknown keys are dropped, values are capped, and the landing page is host and path only.
|
|
37834
37834
|
*
|
|
37835
|
-
* Recorded only against an organization the caller OWNS — a member of someone else's account did not bring it to us — and never under impersonation. The first touch is written once and never overwritten; the last touch is overwritten each time. A capture with nothing attributable (no campaign, affiliate code, visit id or foreign referrer) records nothing and answers `recorded: false, reason: empty` — except the app's DIRECT first visit (`entry: direct`), which is recorded as a first touch only, when the org has none, so the owner's alert reads "Direct" instead of "Unknown"; it never overwrites a source. The app sends that marker once per organization when it has nothing pending (a browser that already reported another account's landing). On an organization more than a day old it records nothing and answers `reason: late`, so an old "Unknown" sign-up is never relabelled "Direct".
|
|
37835
|
+
* Recorded only against an organization the caller OWNS — a member of someone else's account did not bring it to us — and never under impersonation. The first touch is written once and never overwritten; the last touch is overwritten each time. A capture with nothing attributable (no campaign, affiliate code, visit id or foreign referrer) records nothing and answers `recorded: false, reason: empty` — except the app's DIRECT first visit (`entry: direct`), which is recorded as a first touch only, when the org has none, so the owner's alert reads "Direct" instead of "Unknown"; it never overwrites a source. The app sends that marker once per organization when it has nothing pending (a browser that already reported another account's landing). On an organization more than a day old it records nothing and answers `reason: late`, so an old "Unknown" sign-up is never relabelled "Direct". Before recording a direct marker on an org with no first touch, the engine asks Keycloak for the caller's REGISTER event: the app's register redirect URI carries the campaign (`zd_acq`), so a sign-up finished in another browser (the verify-email link) keeps its source, which is then recorded instead of "Direct".
|
|
37836
37836
|
*/
|
|
37837
37837
|
post: operations["recordAcquisitionTouch"];
|
|
37838
37838
|
delete?: never;
|
|
@@ -53142,7 +53142,9 @@ export interface paths {
|
|
|
53142
53142
|
* List a site's subdomains.
|
|
53143
53143
|
* @description The subdomains served by the site's hosting package and the document root each one points at. ⛔ Subdomains are the only surface here with a real **quantity** ceiling: `limit` is the lower of what the package template permits and what the customer bought, so `can_create` is arithmetic and not merely `permitted`.
|
|
53144
53144
|
*
|
|
53145
|
-
* ⚖️ **On
|
|
53145
|
+
* ⚖️ **On the Footprint-Free / PBN line the ceiling is the plan's `max_sites`, because a subdomain spends one of them** (owner ruling 2026-09-01). `limit` is then the site cap and `used` carries how much of it is already spent — by the customer's **sites as well as their subdomains** — so a client must render the caption from `used` and not from `data.length`.
|
|
53146
|
+
*
|
|
53147
|
+
* ⚖️ **On every other line (mainstream, app hosting) the ceiling is the plan's `subdomains` allowance plus every live `subdomains_10` pack (10 more each, USD 2.00 a month)** (owner ruling 2026-11-05). `used` counts the org's subdomains on those lines, `limit` is `null` when the plan states no cap, and a create at the cap is refused with `422 ALLOWANCE_EXCEEDED` (`details.limit`, `details.used`), whose message names the pack.
|
|
53146
53148
|
*
|
|
53147
53149
|
* Requires `sites.view`. `404` for a site with no managed hosting package and no own-fleet placement.
|
|
53148
53150
|
*/
|
|
@@ -100873,6 +100875,11 @@ export interface components {
|
|
|
100873
100875
|
* ⛔ It is an id, not a co-tenancy leak: it names a panel the caller's own organization already connected and can already list. It never names one of our fleet boxes — `worker_id` stays unexposed for the reason the schema comment above gives.
|
|
100874
100876
|
*/
|
|
100875
100877
|
panel_connection_id?: components["schemas"]["Uuid"] | null;
|
|
100878
|
+
/**
|
|
100879
|
+
* Format: uuid
|
|
100880
|
+
* @description The site this one is a standalone subdomain of (1105#32 C), or null. Site lists group a child under its parent from this field. Cleared when either site moves to another organisation or the parent is removed.
|
|
100881
|
+
*/
|
|
100882
|
+
readonly parent_site_id?: string | null;
|
|
100876
100883
|
/**
|
|
100877
100884
|
* @description The PHP version this site is pinned to, or `""` when it follows the product line's current default. Echoed so a caller can confirm the choice it just made on create — without it, `POST /v1/sites` accepted a `php_version` that no response ever mentioned again. It is the **desired** state, not proof the box has switched; `GET /v1/sites/{siteId}/php-version` resolves the effective version (this value, or the line default) and lists what it may change to.
|
|
100878
100885
|
* @example 8.4
|
|
@@ -102492,6 +102499,11 @@ export interface components {
|
|
|
102492
102499
|
* ⭐ `null` is accepted and means exactly what omitting it means — *no panel* — so a client that always sends the field can leave it empty for a fleet site without tripping the not-applicable refusal. Only a **present, non-null** id counts as asking for a panel.
|
|
102493
102500
|
*/
|
|
102494
102501
|
panel_connection_id?: components["schemas"]["Uuid"] | null;
|
|
102502
|
+
/**
|
|
102503
|
+
* Format: uuid
|
|
102504
|
+
* @description Create this site as a STANDALONE SUBDOMAIN of one of the organisation's own sites (master 1105#32 C, the V1 model). `primary_domain` must end in `.<parent primary_domain>`; the parent must be a live site in the same organisation and must not itself be a subdomain site (one level deep). It is a full site and uses one site slot; its DNS goes into the parent's zone. A subdomain added UNDER a site instead is `POST /v1/sites/{site_id}/subdomains`. A refusal is `422` naming `parent_site_id` or `primary_domain`.
|
|
102505
|
+
*/
|
|
102506
|
+
parent_site_id?: string | null;
|
|
102495
102507
|
/**
|
|
102496
102508
|
* @description The PHP version the site starts on, as a minor-version family. Must be a version offered on this product line (`GET /v1/catalog/php-versions`); anything else is a `422` naming what is available, never a silent fallback. Omit for the line's default. A `422` too on a stack that does not run PHP — a static site has no PHP handler to pin. Changeable afterwards via `PUT /v1/sites/{siteId}/php-version`.
|
|
102497
102509
|
* @example 8.3
|
|
@@ -106822,6 +106834,12 @@ export interface components {
|
|
|
106822
106834
|
SiteSubdomainList: {
|
|
106823
106835
|
/** @description `permitted`, **and** the effective ceiling has room. */
|
|
106824
106836
|
can_create: boolean;
|
|
106837
|
+
/**
|
|
106838
|
+
* @description What `used` counts, sent with it. `site_slots` on Footprint-Free and PBN (a subdomain uses one of the plan's site slots); `subdomains` on mainstream, where the ceiling is the package's subdomain allowance plus any bought `subdomains_10` packs (owner ruling 2026-11-05, 1105#32 B).
|
|
106839
|
+
* @example subdomains
|
|
106840
|
+
* @enum {string}
|
|
106841
|
+
*/
|
|
106842
|
+
counts?: "site_slots" | "subdomains";
|
|
106825
106843
|
/** @description The subdomains on the package. */
|
|
106826
106844
|
data: components["schemas"]["SiteSubdomain"][];
|
|
106827
106845
|
/** @description The effective ceiling on subdomains for this site. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1525",
|
|
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>",
|