@zinn-digital/sdk 0.1.1617 → 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 +80 -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;
|
|
@@ -95022,8 +95045,24 @@ export interface components {
|
|
|
95022
95045
|
};
|
|
95023
95046
|
/** @description The payment rails a purchase may be settled on, most-preferred first. Returned by both `getPaymentOptions` (before an order exists — the checkout picker) and `getOrderPaymentOptions` (an order already placed), which answer with one function so a screen can never offer a rail the charge path then refuses. */
|
|
95024
95047
|
PaymentOptions: {
|
|
95048
|
+
/**
|
|
95049
|
+
* @description The ISO currency each offered rail CHARGES in, keyed by provider code. Equal to the purchase currency for a card rail; `USD` for a rail that cannot present it (PayPal outside its currencies) and always `USD` for crypto (owner ruling 2026-11-08). The price stays in the purchase currency; the screen shows the USD figure with the local amount as "≈".
|
|
95050
|
+
* @example {
|
|
95051
|
+
* "stripe": "UZS",
|
|
95052
|
+
* "paypal": "USD",
|
|
95053
|
+
* "nowpayments": "USD"
|
|
95054
|
+
* }
|
|
95055
|
+
*/
|
|
95056
|
+
charge_currencies?: {
|
|
95057
|
+
[key: string]: string;
|
|
95058
|
+
};
|
|
95025
95059
|
/** @description Provider codes (`stripe`, `paypal`, `nowpayments`). Never empty — `stripe` is always present, because an unreadable provider registry must not be reported as "nothing is enabled". */
|
|
95026
95060
|
gateways: string[];
|
|
95061
|
+
/**
|
|
95062
|
+
* @description Decimal string: one major unit of the purchase currency in USD, at today's stored rate. Present only when some rail charges USD for a non-USD purchase; `null` when none does or no rate is stored (the screen then names the currency without an amount, and the charge refuses before any money moves). The rate actually charged is recorded on the payment and stamped on the invoice.
|
|
95063
|
+
* @example 0.0000785
|
|
95064
|
+
*/
|
|
95065
|
+
usd_rate?: string | null;
|
|
95027
95066
|
};
|
|
95028
95067
|
/** @description How an account intends to pay — the crypto election, the nominated primary/backup, and the two questions a billing screen must not answer for itself. */
|
|
95029
95068
|
PaymentPreferences: {
|
|
@@ -102972,13 +103011,21 @@ export interface components {
|
|
|
102972
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. */
|
|
102973
103012
|
message?: string;
|
|
102974
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;
|
|
102975
103016
|
/** Format: date-time */
|
|
102976
103017
|
started_at?: string | null;
|
|
102977
103018
|
status: components["schemas"]["SiteBlueprintDeployStatus"];
|
|
103019
|
+
/** @description The copy's WordPress tagline, as for `site_title`. */
|
|
103020
|
+
tagline?: string;
|
|
102978
103021
|
};
|
|
102979
103022
|
SiteBlueprintDeployRequest: {
|
|
102980
103023
|
/** @description The SITE blueprint to deploy. ⛔ Always named explicitly — never "the latest". This overwrites a live site. */
|
|
102981
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;
|
|
102982
103029
|
};
|
|
102983
103030
|
/**
|
|
102984
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.
|
|
@@ -103003,6 +103050,10 @@ export interface components {
|
|
|
103003
103050
|
* @enum {string}
|
|
103004
103051
|
*/
|
|
103005
103052
|
SiteBlueprintStatus: "capturing" | "ready" | "failed";
|
|
103053
|
+
SiteBlueprintTitleSuggestion: {
|
|
103054
|
+
site_title: string;
|
|
103055
|
+
tagline: string;
|
|
103056
|
+
};
|
|
103006
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. */
|
|
103007
103058
|
SiteBlueprintUpdate: {
|
|
103008
103059
|
name?: string;
|
|
@@ -104160,9 +104211,9 @@ export interface components {
|
|
|
104160
104211
|
runtime?: components["schemas"]["Runtime"];
|
|
104161
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. */
|
|
104162
104213
|
site_blueprint_id?: components["schemas"]["Uuid"] | null;
|
|
104163
|
-
/** @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. */
|
|
104164
104215
|
site_tagline?: string;
|
|
104165
|
-
/** @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. */
|
|
104166
104217
|
site_title?: string;
|
|
104167
104218
|
source?: components["schemas"]["SiteSource"];
|
|
104168
104219
|
stack_type?: components["schemas"]["StackType"];
|
|
@@ -196426,6 +196477,33 @@ export interface operations {
|
|
|
196426
196477
|
429: components["responses"]["TooManyRequests"];
|
|
196427
196478
|
};
|
|
196428
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
|
+
};
|
|
196429
196507
|
ingestSiteCacheHealth: {
|
|
196430
196508
|
parameters: {
|
|
196431
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>",
|