@zinn-digital/sdk 0.1.1521 → 0.1.1524

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.
@@ -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 our own fleet 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`. On the resold line `used` is absent and counting the rows is correct; nothing else about the shape differs.
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
  */
@@ -90192,6 +90194,28 @@ export interface components {
90192
90194
  /** @description Where to pull from, and how to sign in. ⛔⛔ **These are live credentials for a third party's production server.** They are written straight to the platform's secret store, referenced from the job by a Vault path, deleted when the job ends, and are never returned by any endpoint, never written to an audit record and never quoted in an error. The job row keeps the **hostname only**. */
90193
90195
  MigrationCredentials: {
90194
90196
  api_token?: string;
90197
+ /**
90198
+ * @description Optional. The source database server as the site itself reaches it (usually `localhost`). Used with the other `database_*` fields.
90199
+ * @default
90200
+ */
90201
+ database_host: string;
90202
+ /**
90203
+ * @description Optional. The site's database. With several sites under one `ssh` login it also tells the driver which folder is this site's.
90204
+ * @default
90205
+ */
90206
+ database_name: string;
90207
+ /** @default */
90208
+ database_password: string;
90209
+ /**
90210
+ * @description Optional. `0` means the database server's default port.
90211
+ * @default 0
90212
+ */
90213
+ database_port: number;
90214
+ /**
90215
+ * @description Optional. The source site's own database login. An `ssh` source otherwise uses the account's `~/.my.cnf` or the site's `wp-config.php`; a login sent here wins over both. Stored in the secret store with the rest, never returned.
90216
+ * @default
90217
+ */
90218
+ database_username: string;
90195
90219
  /** @description The server's public hostname, e.g. `server123.yourhost.com`. Must resolve to a public address — a private or link-local target is refused with `source_host_not_public` at the door as well as in the adapter. */
90196
90220
  host: string;
90197
90221
  /**
@@ -106800,6 +106824,12 @@ export interface components {
106800
106824
  SiteSubdomainList: {
106801
106825
  /** @description `permitted`, **and** the effective ceiling has room. */
106802
106826
  can_create: boolean;
106827
+ /**
106828
+ * @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).
106829
+ * @example subdomains
106830
+ * @enum {string}
106831
+ */
106832
+ counts?: "site_slots" | "subdomains";
106803
106833
  /** @description The subdomains on the package. */
106804
106834
  data: components["schemas"]["SiteSubdomain"][];
106805
106835
  /** @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.1521",
3
+ "version": "0.1.1524",
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>",