@zinn-digital/sdk 0.1.1618 → 0.1.1619
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 +64 -2
- package/package.json +1 -1
|
@@ -48403,6 +48403,29 @@ export interface paths {
|
|
|
48403
48403
|
patch?: never;
|
|
48404
48404
|
trace?: never;
|
|
48405
48405
|
};
|
|
48406
|
+
"/v1/site-blueprints/{siteBlueprintId}/title-suggestion": {
|
|
48407
|
+
parameters: {
|
|
48408
|
+
query?: never;
|
|
48409
|
+
header?: never;
|
|
48410
|
+
path: {
|
|
48411
|
+
/** @description A SITE blueprint's id (UUIDv7) — one of the customer's own captured sites. ⛔ Not a `blueprintId`: that names a published stack recipe, and the two are different resources that unfortunately share a word. */
|
|
48412
|
+
siteBlueprintId: components["parameters"]["SiteBlueprintId"];
|
|
48413
|
+
};
|
|
48414
|
+
cookie?: never;
|
|
48415
|
+
};
|
|
48416
|
+
/**
|
|
48417
|
+
* A fresh site title and tagline for a copy of this blueprint.
|
|
48418
|
+
* @description ⛔⛔ A copy never keeps the original site's title or tagline: on a footprint-free network one title across many sites links them. The deploy form and the create-site wizard pre-fill from this, and the customer can change both before deploying. The title is one no copy in the blueprint's account already has. A read; nothing is reserved, so send the values back in the deploy (`site_title`, `tagline`). Leaving them out of the deploy has the same effect: the copy is given a fresh pair. Requires `sites.view`.
|
|
48419
|
+
*/
|
|
48420
|
+
get: operations["getSiteBlueprintTitleSuggestion"];
|
|
48421
|
+
put?: never;
|
|
48422
|
+
post?: never;
|
|
48423
|
+
delete?: never;
|
|
48424
|
+
options?: never;
|
|
48425
|
+
head?: never;
|
|
48426
|
+
patch?: never;
|
|
48427
|
+
trace?: never;
|
|
48428
|
+
};
|
|
48406
48429
|
"/v1/site-cache-health/ingest": {
|
|
48407
48430
|
parameters: {
|
|
48408
48431
|
query?: never;
|
|
@@ -102988,13 +103011,21 @@ export interface components {
|
|
|
102988
103011
|
/** @description Why it failed, or — after a successful restore whose URL rewrite did not take — what still needs attention. Rendered to the customer verbatim. */
|
|
102989
103012
|
message?: string;
|
|
102990
103013
|
site_id: components["schemas"]["Uuid"];
|
|
103014
|
+
/** @description The copy's WordPress site title: the one typed at deploy, or the fresh one it was given. Empty until the copy step has run, and on a redeploy onto the original site. */
|
|
103015
|
+
site_title?: string;
|
|
102991
103016
|
/** Format: date-time */
|
|
102992
103017
|
started_at?: string | null;
|
|
102993
103018
|
status: components["schemas"]["SiteBlueprintDeployStatus"];
|
|
103019
|
+
/** @description The copy's WordPress tagline, as for `site_title`. */
|
|
103020
|
+
tagline?: string;
|
|
102994
103021
|
};
|
|
102995
103022
|
SiteBlueprintDeployRequest: {
|
|
102996
103023
|
/** @description The SITE blueprint to deploy. ⛔ Always named explicitly — never "the latest". This overwrites a live site. */
|
|
102997
103024
|
blueprint_id: components["schemas"]["Uuid"];
|
|
103025
|
+
/** @description The copy's WordPress site title, one line. Blank or omitted means a fresh one is chosen (`getSiteBlueprintTitleSuggestion`). ⛔ A copy never keeps the original site's title or tagline, which would link the sites. */
|
|
103026
|
+
site_title?: string;
|
|
103027
|
+
/** @description The copy's WordPress tagline, one line. Blank or omitted means a fresh one is chosen. */
|
|
103028
|
+
tagline?: string;
|
|
102998
103029
|
};
|
|
102999
103030
|
/**
|
|
103000
103031
|
* @description ⭐ `waiting` is a real state and not a synonym for `pending`. A deploy started from the create form cannot restore anything until the new site has finished provisioning, which takes minutes — so the screen has to be able to say "waiting for the new site to be built" rather than showing a restore that looks stuck.
|
|
@@ -103019,6 +103050,10 @@ export interface components {
|
|
|
103019
103050
|
* @enum {string}
|
|
103020
103051
|
*/
|
|
103021
103052
|
SiteBlueprintStatus: "capturing" | "ready" | "failed";
|
|
103053
|
+
SiteBlueprintTitleSuggestion: {
|
|
103054
|
+
site_title: string;
|
|
103055
|
+
tagline: string;
|
|
103056
|
+
};
|
|
103022
103057
|
/** @description ⛔ Omitted is not the same as empty. Omitting a field leaves it alone; sending `""` for `notes` clears it. Collapsing the two would make it impossible to clear a note, or would wipe one on every rename. */
|
|
103023
103058
|
SiteBlueprintUpdate: {
|
|
103024
103059
|
name?: string;
|
|
@@ -104176,9 +104211,9 @@ export interface components {
|
|
|
104176
104211
|
runtime?: components["schemas"]["Runtime"];
|
|
104177
104212
|
/** @description One of **your own** captured sites (`GET /v1/site-blueprints`) to build this one from. The new site is provisioned on that blueprint's stack and its archive is then restored onto it, so it comes up with the same content, plugins, theme and settings as the site it was captured from — and its stored web addresses are rewritten to this site's domain. ⛔ **Not the same field as `blueprint_id`**: that one names a stack recipe Zinn® publishes, this one names a template you made from a site you already built. Sending both is a `422`. When given, `source`, `stack_type` and `runtime` are all derived and must not be sent. A blueprint whose capture has not finished, or whose backup is no longer available, is a `422` at create time rather than a site that comes up empty an hour later. */
|
|
104178
104213
|
site_blueprint_id?: components["schemas"]["Uuid"] | null;
|
|
104179
|
-
/** @description The WordPress **Tagline** (`blogdescription`). Read for a WordPress stack only. Omitted or blank leaves WordPress's own tagline. */
|
|
104214
|
+
/** @description The WordPress **Tagline** (`blogdescription`). Read for a WordPress stack only. Omitted or blank leaves WordPress's own tagline. With `site_blueprint_id` it is the COPY's tagline, one line: omitted or blank means a fresh one is chosen. */
|
|
104180
104215
|
site_tagline?: string;
|
|
104181
|
-
/** @description The WordPress **Site Title** (V1 parity). Read for a WordPress stack only. Omitted or blank means the primary domain, as before. */
|
|
104216
|
+
/** @description The WordPress **Site Title** (V1 parity). Read for a WordPress stack only. Omitted or blank means the primary domain, as before. With `site_blueprint_id` it is the COPY's title instead, one line: omitted or blank means a fresh one is chosen, and ⛔ a copy never keeps the original site's title. */
|
|
104182
104217
|
site_title?: string;
|
|
104183
104218
|
source?: components["schemas"]["SiteSource"];
|
|
104184
104219
|
stack_type?: components["schemas"]["StackType"];
|
|
@@ -196442,6 +196477,33 @@ export interface operations {
|
|
|
196442
196477
|
429: components["responses"]["TooManyRequests"];
|
|
196443
196478
|
};
|
|
196444
196479
|
};
|
|
196480
|
+
getSiteBlueprintTitleSuggestion: {
|
|
196481
|
+
parameters: {
|
|
196482
|
+
query?: never;
|
|
196483
|
+
header?: never;
|
|
196484
|
+
path: {
|
|
196485
|
+
/** @description A SITE blueprint's id (UUIDv7) — one of the customer's own captured sites. ⛔ Not a `blueprintId`: that names a published stack recipe, and the two are different resources that unfortunately share a word. */
|
|
196486
|
+
siteBlueprintId: components["parameters"]["SiteBlueprintId"];
|
|
196487
|
+
};
|
|
196488
|
+
cookie?: never;
|
|
196489
|
+
};
|
|
196490
|
+
requestBody?: never;
|
|
196491
|
+
responses: {
|
|
196492
|
+
/** @description A suggested title and tagline. */
|
|
196493
|
+
200: {
|
|
196494
|
+
headers: {
|
|
196495
|
+
[name: string]: unknown;
|
|
196496
|
+
};
|
|
196497
|
+
content: {
|
|
196498
|
+
"application/json": components["schemas"]["SiteBlueprintTitleSuggestion"];
|
|
196499
|
+
};
|
|
196500
|
+
};
|
|
196501
|
+
401: components["responses"]["Unauthorized"];
|
|
196502
|
+
403: components["responses"]["Forbidden"];
|
|
196503
|
+
404: components["responses"]["NotFound"];
|
|
196504
|
+
429: components["responses"]["TooManyRequests"];
|
|
196505
|
+
};
|
|
196506
|
+
};
|
|
196445
196507
|
ingestSiteCacheHealth: {
|
|
196446
196508
|
parameters: {
|
|
196447
196509
|
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.1619",
|
|
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>",
|