@zinn-digital/sdk 0.1.1501 → 0.1.1503
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 +148 -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;
|
|
@@ -98460,6 +98487,8 @@ export interface components {
|
|
|
98460
98487
|
incidents: components["schemas"]["BoxIncident"][];
|
|
98461
98488
|
openIncidents: number;
|
|
98462
98489
|
policy: components["schemas"]["SelfHealPolicy"];
|
|
98490
|
+
/** @description Sites Turnstile autoprotect switched on in the last 7 days (docs/1252 §6), newest first, at most 100. `reason` is `abuse` (5+ spam holds through its forms in 24 h) or `new_site` (a new WordPress site with a form plugin). A site whose owner has since flipped the switch drops off the list. */
|
|
98491
|
+
turnstileAutoprotected?: components["schemas"]["TurnstileAutoprotectedSite"][];
|
|
98463
98492
|
watch: {
|
|
98464
98493
|
canaryDown?: boolean;
|
|
98465
98494
|
/** Format: date-time */
|
|
@@ -98493,6 +98522,12 @@ export interface components {
|
|
|
98493
98522
|
siteMaxEpisodesPerDay?: number;
|
|
98494
98523
|
siteNotifyCustomers?: boolean;
|
|
98495
98524
|
sitePluginRollback?: boolean;
|
|
98525
|
+
turnstileAutoprotectDryRun?: boolean;
|
|
98526
|
+
turnstileAutoprotectEnabled?: boolean;
|
|
98527
|
+
turnstileHeldThreshold?: number;
|
|
98528
|
+
turnstileNewSiteDays?: number;
|
|
98529
|
+
turnstileNewSitesEnabled?: boolean;
|
|
98530
|
+
turnstilePoolReserve?: number;
|
|
98496
98531
|
/** Format: date-time */
|
|
98497
98532
|
updatedAt?: string | null;
|
|
98498
98533
|
updatedBy?: string;
|
|
@@ -98521,6 +98556,12 @@ export interface components {
|
|
|
98521
98556
|
siteMaxEpisodesPerDay?: number;
|
|
98522
98557
|
siteNotifyCustomers?: boolean;
|
|
98523
98558
|
sitePluginRollback?: boolean;
|
|
98559
|
+
turnstileAutoprotectDryRun?: boolean;
|
|
98560
|
+
turnstileAutoprotectEnabled?: boolean;
|
|
98561
|
+
turnstileHeldThreshold?: number;
|
|
98562
|
+
turnstileNewSiteDays?: number;
|
|
98563
|
+
turnstileNewSitesEnabled?: boolean;
|
|
98564
|
+
turnstilePoolReserve?: number;
|
|
98524
98565
|
};
|
|
98525
98566
|
/**
|
|
98526
98567
|
* @description The line kinds a cart will accept **today** — the write-side subset of `LineKind`.
|
|
@@ -105820,6 +105861,38 @@ export interface components {
|
|
|
105820
105861
|
status: "queued" | "running" | "applied" | "held" | "failed";
|
|
105821
105862
|
themes: string[];
|
|
105822
105863
|
};
|
|
105864
|
+
/** @description A site's scheduled smart update (docs/1135 §8.1). */
|
|
105865
|
+
SiteSmartUpdateSchedule: {
|
|
105866
|
+
enabled: boolean;
|
|
105867
|
+
/** Format: date-time */
|
|
105868
|
+
last_attempted_at: string | null;
|
|
105869
|
+
/**
|
|
105870
|
+
* @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.
|
|
105871
|
+
* @enum {string|null}
|
|
105872
|
+
*/
|
|
105873
|
+
last_outcome: "started" | "current" | "staging_exists" | "in_flight" | "not_in_good_standing" | "could_not_start" | null;
|
|
105874
|
+
/** Format: uuid */
|
|
105875
|
+
last_run_id: string | null;
|
|
105876
|
+
/**
|
|
105877
|
+
* Format: date-time
|
|
105878
|
+
* @description When the next window starts (UTC); null when off.
|
|
105879
|
+
*/
|
|
105880
|
+
next_due_at: string | null;
|
|
105881
|
+
timezone: string;
|
|
105882
|
+
window_hour: number;
|
|
105883
|
+
window_weekday: number | null;
|
|
105884
|
+
};
|
|
105885
|
+
SiteSmartUpdateScheduleInput: {
|
|
105886
|
+
enabled: boolean;
|
|
105887
|
+
/** @description An IANA time zone name. */
|
|
105888
|
+
timezone: string;
|
|
105889
|
+
window_hour: number;
|
|
105890
|
+
/** @description 0 = Monday … 6 = Sunday; null = every day. */
|
|
105891
|
+
window_weekday: number | null;
|
|
105892
|
+
};
|
|
105893
|
+
SiteSmartUpdateScheduleResponse: {
|
|
105894
|
+
data: components["schemas"]["SiteSmartUpdateSchedule"];
|
|
105895
|
+
};
|
|
105823
105896
|
/**
|
|
105824
105897
|
* @description Where a site's initial content came from (docs/04 §2).
|
|
105825
105898
|
*
|
|
@@ -110770,6 +110843,19 @@ export interface components {
|
|
|
110770
110843
|
*/
|
|
110771
110844
|
org_id?: string;
|
|
110772
110845
|
};
|
|
110846
|
+
TurnstileAutoprotectedSite: {
|
|
110847
|
+
/** Format: date-time */
|
|
110848
|
+
at: string | null;
|
|
110849
|
+
domain: string;
|
|
110850
|
+
/** Format: uuid */
|
|
110851
|
+
orgId: string;
|
|
110852
|
+
/** @enum {string} */
|
|
110853
|
+
reason: "abuse" | "new_site";
|
|
110854
|
+
/** Format: uuid */
|
|
110855
|
+
siteId: string;
|
|
110856
|
+
/** @enum {string} */
|
|
110857
|
+
status: "pending" | "active" | "failed" | "off";
|
|
110858
|
+
};
|
|
110773
110859
|
UkVatFiledCreate: {
|
|
110774
110860
|
notes?: string;
|
|
110775
110861
|
/** Format: date */
|
|
@@ -201786,6 +201872,68 @@ export interface operations {
|
|
|
201786
201872
|
503: components["responses"]["ProviderNotConfigured"];
|
|
201787
201873
|
};
|
|
201788
201874
|
};
|
|
201875
|
+
getSiteWordPressSmartUpdateSchedule: {
|
|
201876
|
+
parameters: {
|
|
201877
|
+
query?: never;
|
|
201878
|
+
header?: never;
|
|
201879
|
+
path: {
|
|
201880
|
+
/** @description Site ID (UUIDv7). */
|
|
201881
|
+
siteId: components["parameters"]["SiteId"];
|
|
201882
|
+
};
|
|
201883
|
+
cookie?: never;
|
|
201884
|
+
};
|
|
201885
|
+
requestBody?: never;
|
|
201886
|
+
responses: {
|
|
201887
|
+
/** @description The schedule. */
|
|
201888
|
+
200: {
|
|
201889
|
+
headers: {
|
|
201890
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201891
|
+
[name: string]: unknown;
|
|
201892
|
+
};
|
|
201893
|
+
content: {
|
|
201894
|
+
"application/json": components["schemas"]["SiteSmartUpdateScheduleResponse"];
|
|
201895
|
+
};
|
|
201896
|
+
};
|
|
201897
|
+
401: components["responses"]["Unauthorized"];
|
|
201898
|
+
403: components["responses"]["Forbidden"];
|
|
201899
|
+
404: components["responses"]["NotFound"];
|
|
201900
|
+
429: components["responses"]["TooManyRequests"];
|
|
201901
|
+
};
|
|
201902
|
+
};
|
|
201903
|
+
setSiteWordPressSmartUpdateSchedule: {
|
|
201904
|
+
parameters: {
|
|
201905
|
+
query?: never;
|
|
201906
|
+
header?: never;
|
|
201907
|
+
path: {
|
|
201908
|
+
/** @description Site ID (UUIDv7). */
|
|
201909
|
+
siteId: components["parameters"]["SiteId"];
|
|
201910
|
+
};
|
|
201911
|
+
cookie?: never;
|
|
201912
|
+
};
|
|
201913
|
+
requestBody: {
|
|
201914
|
+
content: {
|
|
201915
|
+
"application/json": components["schemas"]["SiteSmartUpdateScheduleInput"];
|
|
201916
|
+
};
|
|
201917
|
+
};
|
|
201918
|
+
responses: {
|
|
201919
|
+
/** @description The schedule as written. */
|
|
201920
|
+
200: {
|
|
201921
|
+
headers: {
|
|
201922
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201923
|
+
[name: string]: unknown;
|
|
201924
|
+
};
|
|
201925
|
+
content: {
|
|
201926
|
+
"application/json": components["schemas"]["SiteSmartUpdateScheduleResponse"];
|
|
201927
|
+
};
|
|
201928
|
+
};
|
|
201929
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
201930
|
+
401: components["responses"]["Unauthorized"];
|
|
201931
|
+
403: components["responses"]["Forbidden"];
|
|
201932
|
+
404: components["responses"]["NotFound"];
|
|
201933
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
201934
|
+
429: components["responses"]["TooManyRequests"];
|
|
201935
|
+
};
|
|
201936
|
+
};
|
|
201789
201937
|
installSiteWordPressStackCache: {
|
|
201790
201938
|
parameters: {
|
|
201791
201939
|
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.1503",
|
|
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>",
|