@zinn-digital/sdk 0.1.1485 → 0.1.1486
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 +132 -0
- package/package.json +1 -1
|
@@ -53690,6 +53690,35 @@ export interface paths {
|
|
|
53690
53690
|
patch?: never;
|
|
53691
53691
|
trace?: never;
|
|
53692
53692
|
};
|
|
53693
|
+
"/v1/sites/{siteId}/wordpress/smart-updates": {
|
|
53694
|
+
parameters: {
|
|
53695
|
+
query?: never;
|
|
53696
|
+
header?: never;
|
|
53697
|
+
path: {
|
|
53698
|
+
/** @description Site ID (UUIDv7). */
|
|
53699
|
+
siteId: components["parameters"]["SiteId"];
|
|
53700
|
+
};
|
|
53701
|
+
cookie?: never;
|
|
53702
|
+
};
|
|
53703
|
+
/**
|
|
53704
|
+
* The site's recent smart updates, newest first.
|
|
53705
|
+
* @description Up to five recent smart updates (docs/1135 §8) with their status, what they updated, how much of the page changed on the staging copy, and presigned before/after pictures. Requires `sites.view`.
|
|
53706
|
+
*/
|
|
53707
|
+
get: operations["listSiteWordPressSmartUpdates"];
|
|
53708
|
+
put?: never;
|
|
53709
|
+
/**
|
|
53710
|
+
* Update plugins and themes on a staging copy first, then live only if nothing broke.
|
|
53711
|
+
* @description Queues a smart update (owner #1, docs/1135 §8): a fresh staging copy, a lab screenshot, the updates applied to the copy, a second screenshot, a health check (WordPress loads with its plugins; the copy answers without a 5xx) and a pixel comparison. Live is updated only when the copy is clean and less than `hold_at_permille` of the page changed; otherwise the run is `held` and live is untouched. The copy is removed on every path. Omit `plugins`/`themes` to take everything with an update available.
|
|
53712
|
+
*
|
|
53713
|
+
* Refused `422` when the plan has no staging, the account is not in good standing, the site already has a staging copy (it would be overwritten) or there is nothing to update; `409` while a run is in flight; `503` when the queue is unreachable. Requires `sites.panel_access`.
|
|
53714
|
+
*/
|
|
53715
|
+
post: operations["startSiteWordPressSmartUpdate"];
|
|
53716
|
+
delete?: never;
|
|
53717
|
+
options?: never;
|
|
53718
|
+
head?: never;
|
|
53719
|
+
patch?: never;
|
|
53720
|
+
trace?: never;
|
|
53721
|
+
};
|
|
53693
53722
|
"/v1/sites/{siteId}/wordpress/stack-cache": {
|
|
53694
53723
|
parameters: {
|
|
53695
53724
|
query?: never;
|
|
@@ -105459,6 +105488,40 @@ export interface components {
|
|
|
105459
105488
|
costs: components["schemas"]["SiteRequestCost"][];
|
|
105460
105489
|
request: components["schemas"]["SiteSlowRequest"];
|
|
105461
105490
|
};
|
|
105491
|
+
SiteSmartUpdateList: {
|
|
105492
|
+
data: components["schemas"]["SiteSmartUpdateRun"][];
|
|
105493
|
+
};
|
|
105494
|
+
/** @description One smart update (docs/1135 §8). */
|
|
105495
|
+
SiteSmartUpdateRun: {
|
|
105496
|
+
/** @description Presigned picture of the copy after */
|
|
105497
|
+
after_url: string;
|
|
105498
|
+
/** @description Presigned picture of the copy before */
|
|
105499
|
+
before_url: string;
|
|
105500
|
+
/** Format: date-time */
|
|
105501
|
+
created_at: string;
|
|
105502
|
+
/** @description Thousandths of the page that changed on the staging copy; null when not compared. */
|
|
105503
|
+
diff_permille: number | null;
|
|
105504
|
+
/** Format: date-time */
|
|
105505
|
+
finished_at: string | null;
|
|
105506
|
+
/** @description A change above this holds the run. */
|
|
105507
|
+
hold_at_permille: number;
|
|
105508
|
+
/** Format: uuid */
|
|
105509
|
+
id: string;
|
|
105510
|
+
plugins: string[];
|
|
105511
|
+
/**
|
|
105512
|
+
* @description Why the run was held or did not finish, as a code the client words in the customer's language; null when applied or still running.
|
|
105513
|
+
* @enum {string|null}
|
|
105514
|
+
*/
|
|
105515
|
+
reason: "wp_broken" | "http_error" | "no_pictures" | "changed_too_much" | "could_not_finish" | null;
|
|
105516
|
+
/** Format: date-time */
|
|
105517
|
+
started_at: string | null;
|
|
105518
|
+
/**
|
|
105519
|
+
* @description `applied` = the copy was clean and live was updated; `held` = the copy broke or changed too much, live untouched; `failed` = the run could not finish, live untouched.
|
|
105520
|
+
* @enum {string}
|
|
105521
|
+
*/
|
|
105522
|
+
status: "queued" | "running" | "applied" | "held" | "failed";
|
|
105523
|
+
themes: string[];
|
|
105524
|
+
};
|
|
105462
105525
|
/**
|
|
105463
105526
|
* @description Where a site's initial content came from (docs/04 §2).
|
|
105464
105527
|
*
|
|
@@ -107305,6 +107368,12 @@ export interface components {
|
|
|
107305
107368
|
/** @description What the chosen provider could not honour, in words for the customer. ⛔ Present and empty rather than absent when everything was honoured. */
|
|
107306
107369
|
unmet?: string[];
|
|
107307
107370
|
};
|
|
107371
|
+
StartSmartUpdateRequest: {
|
|
107372
|
+
/** @description Plugin slugs to update; omitted = every plugin with an update. */
|
|
107373
|
+
plugins?: string[];
|
|
107374
|
+
/** @description Theme slugs to update; omitted = every theme with an update. */
|
|
107375
|
+
themes?: string[];
|
|
107376
|
+
};
|
|
107308
107377
|
/** @description One row on the public status board. ⛔ §2.6 — an `Upstream` row is a capability the customer would recognise ("Email delivery"), never the supplier behind it. */
|
|
107309
107378
|
StatusComponent: {
|
|
107310
107379
|
/** @enum {string} */
|
|
@@ -201128,6 +201197,69 @@ export interface operations {
|
|
|
201128
201197
|
503: components["responses"]["ProviderNotConfigured"];
|
|
201129
201198
|
};
|
|
201130
201199
|
};
|
|
201200
|
+
listSiteWordPressSmartUpdates: {
|
|
201201
|
+
parameters: {
|
|
201202
|
+
query?: never;
|
|
201203
|
+
header?: never;
|
|
201204
|
+
path: {
|
|
201205
|
+
/** @description Site ID (UUIDv7). */
|
|
201206
|
+
siteId: components["parameters"]["SiteId"];
|
|
201207
|
+
};
|
|
201208
|
+
cookie?: never;
|
|
201209
|
+
};
|
|
201210
|
+
requestBody?: never;
|
|
201211
|
+
responses: {
|
|
201212
|
+
/** @description Recent smart updates. */
|
|
201213
|
+
200: {
|
|
201214
|
+
headers: {
|
|
201215
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201216
|
+
[name: string]: unknown;
|
|
201217
|
+
};
|
|
201218
|
+
content: {
|
|
201219
|
+
"application/json": components["schemas"]["SiteSmartUpdateList"];
|
|
201220
|
+
};
|
|
201221
|
+
};
|
|
201222
|
+
401: components["responses"]["Unauthorized"];
|
|
201223
|
+
403: components["responses"]["Forbidden"];
|
|
201224
|
+
404: components["responses"]["NotFound"];
|
|
201225
|
+
429: components["responses"]["TooManyRequests"];
|
|
201226
|
+
};
|
|
201227
|
+
};
|
|
201228
|
+
startSiteWordPressSmartUpdate: {
|
|
201229
|
+
parameters: {
|
|
201230
|
+
query?: never;
|
|
201231
|
+
header?: never;
|
|
201232
|
+
path: {
|
|
201233
|
+
/** @description Site ID (UUIDv7). */
|
|
201234
|
+
siteId: components["parameters"]["SiteId"];
|
|
201235
|
+
};
|
|
201236
|
+
cookie?: never;
|
|
201237
|
+
};
|
|
201238
|
+
requestBody?: {
|
|
201239
|
+
content: {
|
|
201240
|
+
"application/json": components["schemas"]["StartSmartUpdateRequest"];
|
|
201241
|
+
};
|
|
201242
|
+
};
|
|
201243
|
+
responses: {
|
|
201244
|
+
/** @description Queued. The body is the recent list, the new run first. */
|
|
201245
|
+
202: {
|
|
201246
|
+
headers: {
|
|
201247
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201248
|
+
[name: string]: unknown;
|
|
201249
|
+
};
|
|
201250
|
+
content: {
|
|
201251
|
+
"application/json": components["schemas"]["SiteSmartUpdateList"];
|
|
201252
|
+
};
|
|
201253
|
+
};
|
|
201254
|
+
401: components["responses"]["Unauthorized"];
|
|
201255
|
+
403: components["responses"]["Forbidden"];
|
|
201256
|
+
404: components["responses"]["NotFound"];
|
|
201257
|
+
409: components["responses"]["Conflict"];
|
|
201258
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
201259
|
+
429: components["responses"]["TooManyRequests"];
|
|
201260
|
+
503: components["responses"]["ProviderNotConfigured"];
|
|
201261
|
+
};
|
|
201262
|
+
};
|
|
201131
201263
|
installSiteWordPressStackCache: {
|
|
201132
201264
|
parameters: {
|
|
201133
201265
|
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.1486",
|
|
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>",
|