@zinn-digital/sdk 0.1.1447 → 0.1.1448
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 +112 -0
- package/package.json +1 -1
|
@@ -53265,6 +53265,37 @@ export interface paths {
|
|
|
53265
53265
|
patch?: never;
|
|
53266
53266
|
trace?: never;
|
|
53267
53267
|
};
|
|
53268
|
+
"/v1/sites/{siteId}/wordpress/switches": {
|
|
53269
|
+
parameters: {
|
|
53270
|
+
query?: never;
|
|
53271
|
+
header?: never;
|
|
53272
|
+
path: {
|
|
53273
|
+
/** @description Site ID (UUIDv7). */
|
|
53274
|
+
siteId: components["parameters"]["SiteId"];
|
|
53275
|
+
};
|
|
53276
|
+
cookie?: never;
|
|
53277
|
+
};
|
|
53278
|
+
/**
|
|
53279
|
+
* Search-engine visibility and debug mode, read from the site.
|
|
53280
|
+
* @description The two on/off switches a WordPress manager offers: whether search engines are asked to index the site (`blog_public`) and whether `WP_DEBUG` is on.
|
|
53281
|
+
*
|
|
53282
|
+
* ⛔ Read from **the site**, never our record of what we last set — a customer can tick "Discourage search engines" in wp-admin and a developer can edit `wp-config.php`. An empty object means the platform hosting this site has no such switches (a vendor package). Requires `sites.view`.
|
|
53283
|
+
*/
|
|
53284
|
+
get: operations["getSiteWordPressSwitches"];
|
|
53285
|
+
/**
|
|
53286
|
+
* Turn search-engine visibility or debug mode on or off.
|
|
53287
|
+
* @description Send one switch or both; an absent switch is left alone. Each is written, then **confirmed by re-reading the site**, and audit-logged as `wordpress.switch.<name>.<on|off>`. The response is the site's state as re-read.
|
|
53288
|
+
*
|
|
53289
|
+
* ⛔ **Fleet only** — refused where `wp_maintenance` is `false`. Requires `sites.view` and `sites.panel_access`.
|
|
53290
|
+
*/
|
|
53291
|
+
put: operations["setSiteWordPressSwitches"];
|
|
53292
|
+
post?: never;
|
|
53293
|
+
delete?: never;
|
|
53294
|
+
options?: never;
|
|
53295
|
+
head?: never;
|
|
53296
|
+
patch?: never;
|
|
53297
|
+
trace?: never;
|
|
53298
|
+
};
|
|
53268
53299
|
"/v1/sites/{siteId}/wordpress/themes": {
|
|
53269
53300
|
parameters: {
|
|
53270
53301
|
query?: never;
|
|
@@ -105627,6 +105658,13 @@ export interface components {
|
|
|
105627
105658
|
*/
|
|
105628
105659
|
mode: "files" | "db" | "both";
|
|
105629
105660
|
};
|
|
105661
|
+
/** @description Search-engine visibility and debug mode as the site reports them. Empty where the platform hosting the site has no such switches. */
|
|
105662
|
+
SiteWordPressSwitches: {
|
|
105663
|
+
/** @description True when `WP_DEBUG` is on in `wp-config.php`. */
|
|
105664
|
+
debug_mode?: boolean;
|
|
105665
|
+
/** @description False when WordPress's "Discourage search engines" is ticked (`blog_public` = 0). */
|
|
105666
|
+
search_engines_visible?: boolean;
|
|
105667
|
+
};
|
|
105630
105668
|
/** @description One theme installed on a site's WordPress — the same four facts as a plugin. */
|
|
105631
105669
|
SiteWordPressTheme: {
|
|
105632
105670
|
/**
|
|
@@ -199127,6 +199165,80 @@ export interface operations {
|
|
|
199127
199165
|
503: components["responses"]["ProviderNotConfigured"];
|
|
199128
199166
|
};
|
|
199129
199167
|
};
|
|
199168
|
+
getSiteWordPressSwitches: {
|
|
199169
|
+
parameters: {
|
|
199170
|
+
query?: never;
|
|
199171
|
+
header?: never;
|
|
199172
|
+
path: {
|
|
199173
|
+
/** @description Site ID (UUIDv7). */
|
|
199174
|
+
siteId: components["parameters"]["SiteId"];
|
|
199175
|
+
};
|
|
199176
|
+
cookie?: never;
|
|
199177
|
+
};
|
|
199178
|
+
requestBody?: never;
|
|
199179
|
+
responses: {
|
|
199180
|
+
/** @description The switches as the site reports them. */
|
|
199181
|
+
200: {
|
|
199182
|
+
headers: {
|
|
199183
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
199184
|
+
[name: string]: unknown;
|
|
199185
|
+
};
|
|
199186
|
+
content: {
|
|
199187
|
+
"application/json": components["schemas"]["SiteWordPressSwitches"];
|
|
199188
|
+
};
|
|
199189
|
+
};
|
|
199190
|
+
401: components["responses"]["Unauthorized"];
|
|
199191
|
+
403: components["responses"]["Forbidden"];
|
|
199192
|
+
404: components["responses"]["NotFound"];
|
|
199193
|
+
429: components["responses"]["TooManyRequests"];
|
|
199194
|
+
503: components["responses"]["ProviderNotConfigured"];
|
|
199195
|
+
};
|
|
199196
|
+
};
|
|
199197
|
+
setSiteWordPressSwitches: {
|
|
199198
|
+
parameters: {
|
|
199199
|
+
query?: never;
|
|
199200
|
+
header?: never;
|
|
199201
|
+
path: {
|
|
199202
|
+
/** @description Site ID (UUIDv7). */
|
|
199203
|
+
siteId: components["parameters"]["SiteId"];
|
|
199204
|
+
};
|
|
199205
|
+
cookie?: never;
|
|
199206
|
+
};
|
|
199207
|
+
requestBody: {
|
|
199208
|
+
content: {
|
|
199209
|
+
"application/json": {
|
|
199210
|
+
/**
|
|
199211
|
+
* @description Sets `WP_DEBUG` in `wp-config.php`.
|
|
199212
|
+
* @example false
|
|
199213
|
+
*/
|
|
199214
|
+
debug_mode?: boolean;
|
|
199215
|
+
/**
|
|
199216
|
+
* @description False ticks WordPress's "Discourage search engines" setting.
|
|
199217
|
+
* @example true
|
|
199218
|
+
*/
|
|
199219
|
+
search_engines_visible?: boolean;
|
|
199220
|
+
};
|
|
199221
|
+
};
|
|
199222
|
+
};
|
|
199223
|
+
responses: {
|
|
199224
|
+
/** @description The switches after the change, re-read from the site. */
|
|
199225
|
+
200: {
|
|
199226
|
+
headers: {
|
|
199227
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
199228
|
+
[name: string]: unknown;
|
|
199229
|
+
};
|
|
199230
|
+
content: {
|
|
199231
|
+
"application/json": components["schemas"]["SiteWordPressSwitches"];
|
|
199232
|
+
};
|
|
199233
|
+
};
|
|
199234
|
+
401: components["responses"]["Unauthorized"];
|
|
199235
|
+
403: components["responses"]["Forbidden"];
|
|
199236
|
+
404: components["responses"]["NotFound"];
|
|
199237
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
199238
|
+
429: components["responses"]["TooManyRequests"];
|
|
199239
|
+
503: components["responses"]["ProviderNotConfigured"];
|
|
199240
|
+
};
|
|
199241
|
+
};
|
|
199130
199242
|
listSiteWordPressThemes: {
|
|
199131
199243
|
parameters: {
|
|
199132
199244
|
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.1448",
|
|
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>",
|