@zinn-digital/sdk 0.1.1500 → 0.1.1502
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 +125 -0
- package/package.json +1 -1
|
@@ -49665,6 +49665,8 @@ export interface paths {
|
|
|
49665
49665
|
* List a site's MySQL databases and the room to add more.
|
|
49666
49666
|
* @description The site's own database first, then every extra database it holds, each with its measured size (null when the server did not report one — never a made-up 0). Only sites on our own servers have this surface; any other site is `404`.
|
|
49667
49667
|
*
|
|
49668
|
+
* **Served stale-while-revalidate** (`docs/1081` §"Freshness"): a reading from the last 60 s is returned as is; an older one (up to 7 days) is returned at once while one background refresh reads the server again; only a site with no reading reads the server in the request. Any database or FTP change through this API drops the cached reading, so the customer's own change is always visible on the next call.
|
|
49669
|
+
*
|
|
49668
49670
|
* **The ceiling is `included + paid`** (`docs/1081` §1). `included` is the plan's database allowance — a plan that publishes no figure still includes the site's own database, so it is never 0 — and `paid` counts the site's `extra_database` add-ons that are paid up today. `can_create` says whether one more fits under `limit`; `can_buy` says whether this caller may buy one more database for this site now, and `extra_price` is that price in the caller's currency (null when not on sale). A cancelled add-on never drops a database: the customer is refused a NEW one until they are back under the ceiling. Requires `sites.view` and `sites.panel_access`.
|
|
49669
49671
|
*/
|
|
49670
49672
|
get: operations["listSiteDatabases"];
|
|
@@ -50269,6 +50271,8 @@ export interface paths {
|
|
|
50269
50271
|
* List a site's FTP accounts.
|
|
50270
50272
|
* @description The FTP accounts on the site's hosting package, including the package's own primary account so the customer can see it exists. **No password is returned for any of them, and none can be read back**: the vendor does expose the primary account's live credentials in cleartext, and this platform deliberately never calls that endpoint.
|
|
50271
50273
|
*
|
|
50274
|
+
* **Served stale-while-revalidate** (`docs/1081` §"Freshness"): a reading from the last 60 s is returned as is; an older one (up to 7 days) is returned at once while one background refresh reads the server again; only a site with no reading reads the server in the request. Any FTP or database change through this API drops the cached reading, so the customer's own change is always visible on the next call.
|
|
50275
|
+
*
|
|
50272
50276
|
* `limit` is the **effective** ceiling — the lower of what the package permits and what the customer bought, with either side being unlimited yielding to the other. `permitted` and `can_create` are separate because the screen says different things: *"your plan does not include this"* is not *"you have used all of them"*.
|
|
50273
50277
|
*
|
|
50274
50278
|
* `404` for a site with no vendor hosting package. Requires `sites.view`.
|
|
@@ -53803,6 +53807,33 @@ export interface paths {
|
|
|
53803
53807
|
patch?: never;
|
|
53804
53808
|
trace?: never;
|
|
53805
53809
|
};
|
|
53810
|
+
"/v1/sites/{siteId}/wordpress/smart-updates/schedule": {
|
|
53811
|
+
parameters: {
|
|
53812
|
+
query?: never;
|
|
53813
|
+
header?: never;
|
|
53814
|
+
path: {
|
|
53815
|
+
/** @description Site ID (UUIDv7). */
|
|
53816
|
+
siteId: components["parameters"]["SiteId"];
|
|
53817
|
+
};
|
|
53818
|
+
cookie?: never;
|
|
53819
|
+
};
|
|
53820
|
+
/**
|
|
53821
|
+
* The site's scheduled smart update window and what the last window did.
|
|
53822
|
+
* @description Scheduled smart updates (docs/1135 §8.1): every day or one weekday, at an hour in the customer's time zone, a smart update starts on its own (the same run as `startSiteWordPressSmartUpdate`, listed with the others). A site with no schedule reads `enabled: false` with the default window. Requires `sites.view`.
|
|
53823
|
+
*/
|
|
53824
|
+
get: operations["getSiteWordPressSmartUpdateSchedule"];
|
|
53825
|
+
/**
|
|
53826
|
+
* Turn scheduled smart updates on or off and choose the window.
|
|
53827
|
+
* @description Writes the window. Turning it on is refused `422` when the plan has no staging or the account is not in good standing (the same refusals as a clicked smart update), and for an unknown time zone. A window whose site has a staging copy, nothing to update, or a run already going is skipped and recorded in `last_outcome`; the schedule keeps its next window. Requires `sites.panel_access`; audited as `wordpress.smart_update_schedule`.
|
|
53828
|
+
*/
|
|
53829
|
+
put: operations["setSiteWordPressSmartUpdateSchedule"];
|
|
53830
|
+
post?: never;
|
|
53831
|
+
delete?: never;
|
|
53832
|
+
options?: never;
|
|
53833
|
+
head?: never;
|
|
53834
|
+
patch?: never;
|
|
53835
|
+
trace?: never;
|
|
53836
|
+
};
|
|
53806
53837
|
"/v1/sites/{siteId}/wordpress/stack-cache": {
|
|
53807
53838
|
parameters: {
|
|
53808
53839
|
query?: never;
|
|
@@ -105816,6 +105847,38 @@ export interface components {
|
|
|
105816
105847
|
status: "queued" | "running" | "applied" | "held" | "failed";
|
|
105817
105848
|
themes: string[];
|
|
105818
105849
|
};
|
|
105850
|
+
/** @description A site's scheduled smart update (docs/1135 §8.1). */
|
|
105851
|
+
SiteSmartUpdateSchedule: {
|
|
105852
|
+
enabled: boolean;
|
|
105853
|
+
/** Format: date-time */
|
|
105854
|
+
last_attempted_at: string | null;
|
|
105855
|
+
/**
|
|
105856
|
+
* @description What the last window did, as a code the client words: `started` (a run was queued, `last_run_id`), `current` (nothing to update), `staging_exists`, `in_flight`, `not_in_good_standing` (skipped, resumes when the account is settled), `could_not_start`; null = no window has come yet.
|
|
105857
|
+
* @enum {string|null}
|
|
105858
|
+
*/
|
|
105859
|
+
last_outcome: "started" | "current" | "staging_exists" | "in_flight" | "not_in_good_standing" | "could_not_start" | null;
|
|
105860
|
+
/** Format: uuid */
|
|
105861
|
+
last_run_id: string | null;
|
|
105862
|
+
/**
|
|
105863
|
+
* Format: date-time
|
|
105864
|
+
* @description When the next window starts (UTC); null when off.
|
|
105865
|
+
*/
|
|
105866
|
+
next_due_at: string | null;
|
|
105867
|
+
timezone: string;
|
|
105868
|
+
window_hour: number;
|
|
105869
|
+
window_weekday: number | null;
|
|
105870
|
+
};
|
|
105871
|
+
SiteSmartUpdateScheduleInput: {
|
|
105872
|
+
enabled: boolean;
|
|
105873
|
+
/** @description An IANA time zone name. */
|
|
105874
|
+
timezone: string;
|
|
105875
|
+
window_hour: number;
|
|
105876
|
+
/** @description 0 = Monday … 6 = Sunday; null = every day. */
|
|
105877
|
+
window_weekday: number | null;
|
|
105878
|
+
};
|
|
105879
|
+
SiteSmartUpdateScheduleResponse: {
|
|
105880
|
+
data: components["schemas"]["SiteSmartUpdateSchedule"];
|
|
105881
|
+
};
|
|
105819
105882
|
/**
|
|
105820
105883
|
* @description Where a site's initial content came from (docs/04 §2).
|
|
105821
105884
|
*
|
|
@@ -201782,6 +201845,68 @@ export interface operations {
|
|
|
201782
201845
|
503: components["responses"]["ProviderNotConfigured"];
|
|
201783
201846
|
};
|
|
201784
201847
|
};
|
|
201848
|
+
getSiteWordPressSmartUpdateSchedule: {
|
|
201849
|
+
parameters: {
|
|
201850
|
+
query?: never;
|
|
201851
|
+
header?: never;
|
|
201852
|
+
path: {
|
|
201853
|
+
/** @description Site ID (UUIDv7). */
|
|
201854
|
+
siteId: components["parameters"]["SiteId"];
|
|
201855
|
+
};
|
|
201856
|
+
cookie?: never;
|
|
201857
|
+
};
|
|
201858
|
+
requestBody?: never;
|
|
201859
|
+
responses: {
|
|
201860
|
+
/** @description The schedule. */
|
|
201861
|
+
200: {
|
|
201862
|
+
headers: {
|
|
201863
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201864
|
+
[name: string]: unknown;
|
|
201865
|
+
};
|
|
201866
|
+
content: {
|
|
201867
|
+
"application/json": components["schemas"]["SiteSmartUpdateScheduleResponse"];
|
|
201868
|
+
};
|
|
201869
|
+
};
|
|
201870
|
+
401: components["responses"]["Unauthorized"];
|
|
201871
|
+
403: components["responses"]["Forbidden"];
|
|
201872
|
+
404: components["responses"]["NotFound"];
|
|
201873
|
+
429: components["responses"]["TooManyRequests"];
|
|
201874
|
+
};
|
|
201875
|
+
};
|
|
201876
|
+
setSiteWordPressSmartUpdateSchedule: {
|
|
201877
|
+
parameters: {
|
|
201878
|
+
query?: never;
|
|
201879
|
+
header?: never;
|
|
201880
|
+
path: {
|
|
201881
|
+
/** @description Site ID (UUIDv7). */
|
|
201882
|
+
siteId: components["parameters"]["SiteId"];
|
|
201883
|
+
};
|
|
201884
|
+
cookie?: never;
|
|
201885
|
+
};
|
|
201886
|
+
requestBody: {
|
|
201887
|
+
content: {
|
|
201888
|
+
"application/json": components["schemas"]["SiteSmartUpdateScheduleInput"];
|
|
201889
|
+
};
|
|
201890
|
+
};
|
|
201891
|
+
responses: {
|
|
201892
|
+
/** @description The schedule as written. */
|
|
201893
|
+
200: {
|
|
201894
|
+
headers: {
|
|
201895
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201896
|
+
[name: string]: unknown;
|
|
201897
|
+
};
|
|
201898
|
+
content: {
|
|
201899
|
+
"application/json": components["schemas"]["SiteSmartUpdateScheduleResponse"];
|
|
201900
|
+
};
|
|
201901
|
+
};
|
|
201902
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
201903
|
+
401: components["responses"]["Unauthorized"];
|
|
201904
|
+
403: components["responses"]["Forbidden"];
|
|
201905
|
+
404: components["responses"]["NotFound"];
|
|
201906
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
201907
|
+
429: components["responses"]["TooManyRequests"];
|
|
201908
|
+
};
|
|
201909
|
+
};
|
|
201785
201910
|
installSiteWordPressStackCache: {
|
|
201786
201911
|
parameters: {
|
|
201787
201912
|
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.1502",
|
|
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>",
|