@zinn-digital/sdk 0.1.1512 → 0.1.1515
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 +17 -10
- package/package.json +1 -1
|
@@ -37708,7 +37708,7 @@ export interface paths {
|
|
|
37708
37708
|
* Record where the signed-in customer came from (the app's landing capture).
|
|
37709
37709
|
* @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.
|
|
37710
37710
|
*
|
|
37711
|
-
* 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.
|
|
37711
|
+
* 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".
|
|
37712
37712
|
*/
|
|
37713
37713
|
post: operations["recordAcquisitionTouch"];
|
|
37714
37714
|
delete?: never;
|
|
@@ -54004,15 +54004,17 @@ export interface paths {
|
|
|
54004
54004
|
cookie?: never;
|
|
54005
54005
|
};
|
|
54006
54006
|
/**
|
|
54007
|
-
* Get a site's
|
|
54007
|
+
* Get a site's staging copies (any stageable hosting type).
|
|
54008
54008
|
* @description The staging copies of the site, and whether staging may be used at all. `permitted` travels beside `data` because they are different sentences to a customer: *"your plan does not include staging"* and *"you have not made a staging copy yet"* need different copy and different buttons, and collapsing them into an empty list produces wording that is wrong for one of the two cases in 58 languages.
|
|
54009
54009
|
*
|
|
54010
|
-
* `404` for a site whose platform has no
|
|
54010
|
+
* `404` for a site whose platform has no staging to manage. Requires `sites.view`.
|
|
54011
|
+
*
|
|
54012
|
+
* ⭐ **Every stageable hosting type, not only WordPress** (owner 2026-11-05). Despite the `wordpress` segment, which is kept so existing SDKs and integrations keep working, this path serves WordPress, WooCommerce, plain PHP, static (PBN included), Node, headless CMS, Joomla and the other one-click PHP applications, Nextcloud, ownCloud, Python, Ruby and .NET. WordPress and WooCommerce (and a PHP site with a WordPress inside it) are copied with WordPress's own tools; every other stack is copied as a whole application (files, its own database and database user, and its stored address moved to the staging address). A stack that cannot have a staging copy is refused `422` with a sentence that names the reason, and a non-WordPress stack is refused `422` when the site is not on the Zinn® fleet.
|
|
54011
54013
|
*/
|
|
54012
54014
|
get: operations["getSiteWordPressStaging"];
|
|
54013
54015
|
put?: never;
|
|
54014
54016
|
/**
|
|
54015
|
-
* Copy a
|
|
54017
|
+
* Copy a live site onto its staging copy (any stageable hosting type).
|
|
54016
54018
|
* @description ⛔ **This copies live onto staging and can do nothing else.** It takes **no body**, so there is no field a caller could set to make it publish over the live site — that is `publishSiteWordPressStaging`, a different path with its own refusal. the platform itself distinguishes the two directions with one string in one field, which is precisely why they must not share an endpoint.
|
|
54017
54019
|
*
|
|
54018
54020
|
* An existing staging copy is overwritten by the live site: that is what "refresh my staging" means, and it is the safe direction.
|
|
@@ -54021,7 +54023,9 @@ export interface paths {
|
|
|
54021
54023
|
*
|
|
54022
54024
|
* ⭐ Refusals still arrive here, immediately: a site whose platform cannot stage is a `422` from this call, not a failed operation a minute later.
|
|
54023
54025
|
*
|
|
54024
|
-
* `404` for a site whose platform has no
|
|
54026
|
+
* `404` for a site whose platform has no staging to manage. `409` when another staging operation is already running for the site. Requires `sites.view` and `sites.panel_access`.
|
|
54027
|
+
*
|
|
54028
|
+
* ⭐ **Every stageable hosting type, not only WordPress** (owner 2026-11-05). Despite the `wordpress` segment, which is kept so existing SDKs and integrations keep working, this path serves WordPress, WooCommerce, plain PHP, static (PBN included), Node, headless CMS, Joomla and the other one-click PHP applications, Nextcloud, ownCloud, Python, Ruby and .NET. WordPress and WooCommerce (and a PHP site with a WordPress inside it) are copied with WordPress's own tools; every other stack is copied as a whole application (files, its own database and database user, and its stored address moved to the staging address). A stack that cannot have a staging copy is refused `422` with a sentence that names the reason, and a non-WordPress stack is refused `422` when the site is not on the Zinn® fleet.
|
|
54025
54029
|
*/
|
|
54026
54030
|
post: operations["createSiteWordPressStaging"];
|
|
54027
54031
|
delete?: never;
|
|
@@ -54046,7 +54050,7 @@ export interface paths {
|
|
|
54046
54050
|
put?: never;
|
|
54047
54051
|
post?: never;
|
|
54048
54052
|
/**
|
|
54049
|
-
* Delete a site's
|
|
54053
|
+
* Delete a site's staging copy (any stageable hosting type).
|
|
54050
54054
|
* @description Removes one staging copy. The **live** site is untouched — this path is declared after the literal `publish` and `reinstall` segments precisely so a request to one of those can never resolve here.
|
|
54051
54055
|
*
|
|
54052
54056
|
* `202` and the whole staging state, because the removal continues at the vendor. `404` for a site whose platform has no WordPress to manage, and for an id that is not on it. Requires `sites.view` and `sites.panel_access`.
|
|
@@ -54070,13 +54074,15 @@ export interface paths {
|
|
|
54070
54074
|
get?: never;
|
|
54071
54075
|
put?: never;
|
|
54072
54076
|
/**
|
|
54073
|
-
*
|
|
54077
|
+
* Push a site's staging copy back over the live site (any stageable hosting type).
|
|
54074
54078
|
* @description ⛔ **The most destructive operation on the managed hosting line**: the live site's files and database are replaced by the staging clone's. Its own path, so no request aimed at any other staging operation can reach it.
|
|
54075
54079
|
*
|
|
54076
54080
|
* ⛔⛤ **The one optional field, `mode`, selects SCOPE and never DIRECTION.** This path exists separately from `createSiteWordPressStaging` precisely so that no field can flip which way the copy runs — on managed shared hosting both directions are driven from a single value, and one passthrough endpoint would let a request reading as *"refresh my staging copy"* publish a stale clone over a live shop. Every value of `mode` copies staging onto live; it says only how much travels. A field that could change the direction must never be added here.
|
|
54077
54081
|
*
|
|
54078
54082
|
* ⛔ **A scope the site's platform cannot honour is refused `422`.** Read `publish_modes` on `SiteWordPressStaging` first and offer only what it lists: the Zinn® autoscaling platform performs `files`, `db` and `both`, and managed shared hosting performs `both` only, because its staging operation takes no scope at all. That is a property of the platform, not of the customer's plan — a larger package does not add a database-only publish.
|
|
54079
54083
|
*
|
|
54084
|
+
* ⭐ **Every stageable hosting type, not only WordPress** (owner 2026-11-05): the same path pushes back a staging copy of WordPress, WooCommerce, PHP, static (PBN included), Node, headless CMS, Joomla and the other one-click PHP applications, Nextcloud, ownCloud, Python, Ruby and .NET. A safety backup of the live site is taken first. On a non-WordPress stack the live site keeps its own configuration files, every `.env` and its `robots.txt`, so it keeps its own database credentials (and its own runtime environment and .NET variables); the application's stored address is moved back to the live domain and the application is restarted on the new files. A stack that cannot have a staging copy is refused `422` with the reason.
|
|
54085
|
+
*
|
|
54080
54086
|
* Refused `422` when the site has **no staging clone** — the platform does not check, and would happily publish an empty staging environment over a live shop. The client is required to take a typed confirmation naming the site.
|
|
54081
54087
|
*
|
|
54082
54088
|
* `202` because the publish continues at the vendor after the acknowledgement. `404` for a site whose platform has no WordPress to manage. Requires `sites.view` and `sites.panel_access`.
|
|
@@ -54101,10 +54107,10 @@ export interface paths {
|
|
|
54101
54107
|
get?: never;
|
|
54102
54108
|
put?: never;
|
|
54103
54109
|
/**
|
|
54104
|
-
* Reinstall the WordPress on a site's staging copy.
|
|
54110
|
+
* Reinstall the WordPress on a site's staging copy (WordPress copies only).
|
|
54105
54111
|
* @description Replaces WordPress on the **staging** copy only. Refused `422` when there is no staging copy, so it can never be a live reinstall by another name — that is `reinstallSiteWordPress`, on its own path.
|
|
54106
54112
|
*
|
|
54107
|
-
* `202` and the whole staging state, including the queued operation in `operations` — the reinstall runs on the platform's queue, so the status means *accepted* and the operation row is what says whether it finished. `404` for a site whose platform has no WordPress to manage. Requires `sites.view` and `sites.panel_access`.
|
|
54113
|
+
* `202` and the whole staging state, including the queued operation in `operations` — the reinstall runs on the platform's queue, so the status means *accepted* and the operation row is what says whether it finished. `404` for a site whose platform has no WordPress to manage. A staging copy of a non-WordPress stack has no WordPress to reinstall: `reinstallable` is `false` on its state and this call is refused `422`. Requires `sites.view` and `sites.panel_access`.
|
|
54108
54114
|
*/
|
|
54109
54115
|
post: operations["reinstallSiteWordPressStaging"];
|
|
54110
54116
|
delete?: never;
|
|
@@ -58202,7 +58208,7 @@ export interface components {
|
|
|
58202
58208
|
/** Format: uuid */
|
|
58203
58209
|
org_id?: string;
|
|
58204
58210
|
/** @enum {string} */
|
|
58205
|
-
reason: "" | "empty" | "impersonation";
|
|
58211
|
+
reason: "" | "empty" | "impersonation" | "late";
|
|
58206
58212
|
recorded: boolean;
|
|
58207
58213
|
};
|
|
58208
58214
|
/** @description One firing alert, carrying the SENTENCES rather than the label soup. `summary`, `description`, `upgrade` and `runbook` are Alertmanager ANNOTATIONS - they do not exist in PromQL, which is why this reads Alertmanager and not Prometheus. */
|
|
@@ -202510,6 +202516,7 @@ export interface operations {
|
|
|
202510
202516
|
401: components["responses"]["Unauthorized"];
|
|
202511
202517
|
403: components["responses"]["Forbidden"];
|
|
202512
202518
|
404: components["responses"]["NotFound"];
|
|
202519
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
202513
202520
|
429: components["responses"]["TooManyRequests"];
|
|
202514
202521
|
503: components["responses"]["ProviderNotConfigured"];
|
|
202515
202522
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1515",
|
|
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>",
|