@zinn-digital/sdk 0.1.1459 → 0.1.1460
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 +181 -0
- package/package.json +1 -1
|
@@ -56737,6 +56737,53 @@ export interface paths {
|
|
|
56737
56737
|
patch?: never;
|
|
56738
56738
|
trace?: never;
|
|
56739
56739
|
};
|
|
56740
|
+
"/v1/wordpress/sets": {
|
|
56741
|
+
parameters: {
|
|
56742
|
+
query?: never;
|
|
56743
|
+
header?: never;
|
|
56744
|
+
path?: never;
|
|
56745
|
+
cookie?: never;
|
|
56746
|
+
};
|
|
56747
|
+
/**
|
|
56748
|
+
* List the caller's saved WordPress plugin/theme sets.
|
|
56749
|
+
* @description A set is a named list of WordPress.org plugin slugs plus an optional theme that a customer saves once and installs on any number of their sites (Softaculous / Plesk "sets" parity, docs/1135 §Sets). Applying a set is the existing bulk-job flow (`plugin_install`, `theme_install`), so a set is never a cheaper door than picking the same plugins by hand. Postgres only, no vendor call. Requires `sites.view`.
|
|
56750
|
+
*/
|
|
56751
|
+
get: operations["listWordPressSets"];
|
|
56752
|
+
put?: never;
|
|
56753
|
+
/**
|
|
56754
|
+
* Save a new WordPress plugin/theme set.
|
|
56755
|
+
* @description ⛔ A slug is **refused, never sanitised**: letters, digits, hyphens and underscores, never a leading hyphen (a wp-cli flag). Slugs are lower-cased and de-duplicated in order. A set holds at most 50 plugins, an org at most 100 sets, names are unique per org, and a set must hold at least one plugin or a theme. The org is the one the request names (`org_id` body field or `X-Zinn-Org`), else the caller's only org. Requires `sites.view` and `sites.panel_access`.
|
|
56756
|
+
*/
|
|
56757
|
+
post: operations["createWordPressSet"];
|
|
56758
|
+
delete?: never;
|
|
56759
|
+
options?: never;
|
|
56760
|
+
head?: never;
|
|
56761
|
+
patch?: never;
|
|
56762
|
+
trace?: never;
|
|
56763
|
+
};
|
|
56764
|
+
"/v1/wordpress/sets/{setId}": {
|
|
56765
|
+
parameters: {
|
|
56766
|
+
query?: never;
|
|
56767
|
+
header?: never;
|
|
56768
|
+
path: {
|
|
56769
|
+
setId: string;
|
|
56770
|
+
};
|
|
56771
|
+
cookie?: never;
|
|
56772
|
+
};
|
|
56773
|
+
get?: never;
|
|
56774
|
+
put?: never;
|
|
56775
|
+
post?: never;
|
|
56776
|
+
/** Delete a saved set. Sites it was applied to keep their plugins. */
|
|
56777
|
+
delete: operations["deleteWordPressSet"];
|
|
56778
|
+
options?: never;
|
|
56779
|
+
head?: never;
|
|
56780
|
+
/**
|
|
56781
|
+
* Change a saved set. Only the fields sent change.
|
|
56782
|
+
* @description Same validation as `createWordPressSet`. Another org's set is a `404`, never a `403`. Requires `sites.view` and `sites.panel_access`.
|
|
56783
|
+
*/
|
|
56784
|
+
patch: operations["updateWordPressSet"];
|
|
56785
|
+
trace?: never;
|
|
56786
|
+
};
|
|
56740
56787
|
"/v1/wordpress/sites": {
|
|
56741
56788
|
parameters: {
|
|
56742
56789
|
query?: never;
|
|
@@ -111305,6 +111352,29 @@ export interface components {
|
|
|
111305
111352
|
password: string;
|
|
111306
111353
|
user_id: string;
|
|
111307
111354
|
};
|
|
111355
|
+
/** @description A customer-owned, named list of plugin slugs plus an optional theme. */
|
|
111356
|
+
WordPressSet: {
|
|
111357
|
+
/** Format: date-time */
|
|
111358
|
+
created_at: string;
|
|
111359
|
+
/** Format: uuid */
|
|
111360
|
+
id: string;
|
|
111361
|
+
name: string;
|
|
111362
|
+
/** Format: uuid */
|
|
111363
|
+
org_id: string;
|
|
111364
|
+
/** @description WordPress.org plugin directory names, in the order saved. */
|
|
111365
|
+
plugins: string[];
|
|
111366
|
+
/** @description A WordPress.org theme directory name, or empty for a plugins-only set. */
|
|
111367
|
+
theme: string;
|
|
111368
|
+
/** Format: date-time */
|
|
111369
|
+
updated_at: string;
|
|
111370
|
+
};
|
|
111371
|
+
WordPressSetWrite: {
|
|
111372
|
+
name?: string;
|
|
111373
|
+
/** Format: uuid */
|
|
111374
|
+
org_id?: string;
|
|
111375
|
+
plugins?: string[];
|
|
111376
|
+
theme?: string;
|
|
111377
|
+
};
|
|
111308
111378
|
/** @description ⛔⛔ **There is no `password` property and there cannot be one.** WordPress stores a hash, so no plaintext exists on our side or theirs. A customer copies the username from here; a password is *minted* by `rotateWordPressAdminPassword`. */
|
|
111309
111379
|
WordPressSiteCredentials: {
|
|
111310
111380
|
admin_url: string;
|
|
@@ -205010,6 +205080,117 @@ export interface operations {
|
|
|
205010
205080
|
429: components["responses"]["TooManyRequests"];
|
|
205011
205081
|
};
|
|
205012
205082
|
};
|
|
205083
|
+
listWordPressSets: {
|
|
205084
|
+
parameters: {
|
|
205085
|
+
query?: {
|
|
205086
|
+
/** @description Narrow to one org in the caller's scope (also the `X-Zinn-Org` header). */
|
|
205087
|
+
org_id?: string;
|
|
205088
|
+
};
|
|
205089
|
+
header?: never;
|
|
205090
|
+
path?: never;
|
|
205091
|
+
cookie?: never;
|
|
205092
|
+
};
|
|
205093
|
+
requestBody?: never;
|
|
205094
|
+
responses: {
|
|
205095
|
+
/** @description The sets in scope, by name. */
|
|
205096
|
+
200: {
|
|
205097
|
+
headers: {
|
|
205098
|
+
[name: string]: unknown;
|
|
205099
|
+
};
|
|
205100
|
+
content: {
|
|
205101
|
+
"application/json": {
|
|
205102
|
+
data: components["schemas"]["WordPressSet"][];
|
|
205103
|
+
};
|
|
205104
|
+
};
|
|
205105
|
+
};
|
|
205106
|
+
401: components["responses"]["Unauthorized"];
|
|
205107
|
+
403: components["responses"]["Forbidden"];
|
|
205108
|
+
429: components["responses"]["TooManyRequests"];
|
|
205109
|
+
};
|
|
205110
|
+
};
|
|
205111
|
+
createWordPressSet: {
|
|
205112
|
+
parameters: {
|
|
205113
|
+
query?: never;
|
|
205114
|
+
header?: never;
|
|
205115
|
+
path?: never;
|
|
205116
|
+
cookie?: never;
|
|
205117
|
+
};
|
|
205118
|
+
requestBody: {
|
|
205119
|
+
content: {
|
|
205120
|
+
"application/json": components["schemas"]["WordPressSetWrite"];
|
|
205121
|
+
};
|
|
205122
|
+
};
|
|
205123
|
+
responses: {
|
|
205124
|
+
/** @description The saved set. */
|
|
205125
|
+
201: {
|
|
205126
|
+
headers: {
|
|
205127
|
+
[name: string]: unknown;
|
|
205128
|
+
};
|
|
205129
|
+
content: {
|
|
205130
|
+
"application/json": components["schemas"]["WordPressSet"];
|
|
205131
|
+
};
|
|
205132
|
+
};
|
|
205133
|
+
401: components["responses"]["Unauthorized"];
|
|
205134
|
+
403: components["responses"]["Forbidden"];
|
|
205135
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
205136
|
+
429: components["responses"]["TooManyRequests"];
|
|
205137
|
+
};
|
|
205138
|
+
};
|
|
205139
|
+
deleteWordPressSet: {
|
|
205140
|
+
parameters: {
|
|
205141
|
+
query?: never;
|
|
205142
|
+
header?: never;
|
|
205143
|
+
path: {
|
|
205144
|
+
setId: string;
|
|
205145
|
+
};
|
|
205146
|
+
cookie?: never;
|
|
205147
|
+
};
|
|
205148
|
+
requestBody?: never;
|
|
205149
|
+
responses: {
|
|
205150
|
+
/** @description Deleted. */
|
|
205151
|
+
204: {
|
|
205152
|
+
headers: {
|
|
205153
|
+
[name: string]: unknown;
|
|
205154
|
+
};
|
|
205155
|
+
content?: never;
|
|
205156
|
+
};
|
|
205157
|
+
401: components["responses"]["Unauthorized"];
|
|
205158
|
+
403: components["responses"]["Forbidden"];
|
|
205159
|
+
404: components["responses"]["NotFound"];
|
|
205160
|
+
429: components["responses"]["TooManyRequests"];
|
|
205161
|
+
};
|
|
205162
|
+
};
|
|
205163
|
+
updateWordPressSet: {
|
|
205164
|
+
parameters: {
|
|
205165
|
+
query?: never;
|
|
205166
|
+
header?: never;
|
|
205167
|
+
path: {
|
|
205168
|
+
setId: string;
|
|
205169
|
+
};
|
|
205170
|
+
cookie?: never;
|
|
205171
|
+
};
|
|
205172
|
+
requestBody: {
|
|
205173
|
+
content: {
|
|
205174
|
+
"application/json": components["schemas"]["WordPressSetWrite"];
|
|
205175
|
+
};
|
|
205176
|
+
};
|
|
205177
|
+
responses: {
|
|
205178
|
+
/** @description The changed set. */
|
|
205179
|
+
200: {
|
|
205180
|
+
headers: {
|
|
205181
|
+
[name: string]: unknown;
|
|
205182
|
+
};
|
|
205183
|
+
content: {
|
|
205184
|
+
"application/json": components["schemas"]["WordPressSet"];
|
|
205185
|
+
};
|
|
205186
|
+
};
|
|
205187
|
+
401: components["responses"]["Unauthorized"];
|
|
205188
|
+
403: components["responses"]["Forbidden"];
|
|
205189
|
+
404: components["responses"]["NotFound"];
|
|
205190
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
205191
|
+
429: components["responses"]["TooManyRequests"];
|
|
205192
|
+
};
|
|
205193
|
+
};
|
|
205013
205194
|
listWordPressSites: {
|
|
205014
205195
|
parameters: {
|
|
205015
205196
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1460",
|
|
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>",
|