@zinn-digital/sdk 0.1.1501 → 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 +121 -0
- package/package.json +1 -1
|
@@ -53807,6 +53807,33 @@ export interface paths {
|
|
|
53807
53807
|
patch?: never;
|
|
53808
53808
|
trace?: never;
|
|
53809
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
|
+
};
|
|
53810
53837
|
"/v1/sites/{siteId}/wordpress/stack-cache": {
|
|
53811
53838
|
parameters: {
|
|
53812
53839
|
query?: never;
|
|
@@ -105820,6 +105847,38 @@ export interface components {
|
|
|
105820
105847
|
status: "queued" | "running" | "applied" | "held" | "failed";
|
|
105821
105848
|
themes: string[];
|
|
105822
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
|
+
};
|
|
105823
105882
|
/**
|
|
105824
105883
|
* @description Where a site's initial content came from (docs/04 §2).
|
|
105825
105884
|
*
|
|
@@ -201786,6 +201845,68 @@ export interface operations {
|
|
|
201786
201845
|
503: components["responses"]["ProviderNotConfigured"];
|
|
201787
201846
|
};
|
|
201788
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
|
+
};
|
|
201789
201910
|
installSiteWordPressStackCache: {
|
|
201790
201911
|
parameters: {
|
|
201791
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>",
|