@zinn-digital/sdk 0.1.1479 → 0.1.1480
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 +127 -0
- package/package.json +1 -1
|
@@ -14390,6 +14390,52 @@ export interface paths {
|
|
|
14390
14390
|
patch?: never;
|
|
14391
14391
|
trace?: never;
|
|
14392
14392
|
};
|
|
14393
|
+
"/v1/admin/sites/{siteId}/secrets": {
|
|
14394
|
+
parameters: {
|
|
14395
|
+
query?: never;
|
|
14396
|
+
header?: never;
|
|
14397
|
+
path: {
|
|
14398
|
+
/** @description Site ID (UUIDv7). */
|
|
14399
|
+
siteId: components["parameters"]["SiteId"];
|
|
14400
|
+
};
|
|
14401
|
+
cookie?: never;
|
|
14402
|
+
};
|
|
14403
|
+
/**
|
|
14404
|
+
* Staff view of a site's database-password and event-secret epoch.
|
|
14405
|
+
* @description **Staff only** (`sites.restart`), any tenant. The site's secret epoch and where its last rotation is (docs/1235). Never carries a password or a secret.
|
|
14406
|
+
*/
|
|
14407
|
+
get: operations["adminGetSiteSecrets"];
|
|
14408
|
+
put?: never;
|
|
14409
|
+
post?: never;
|
|
14410
|
+
delete?: never;
|
|
14411
|
+
options?: never;
|
|
14412
|
+
head?: never;
|
|
14413
|
+
patch?: never;
|
|
14414
|
+
trace?: never;
|
|
14415
|
+
};
|
|
14416
|
+
"/v1/admin/sites/{siteId}/secrets/rotate": {
|
|
14417
|
+
parameters: {
|
|
14418
|
+
query?: never;
|
|
14419
|
+
header?: never;
|
|
14420
|
+
path: {
|
|
14421
|
+
/** @description Site ID (UUIDv7). */
|
|
14422
|
+
siteId: components["parameters"]["SiteId"];
|
|
14423
|
+
};
|
|
14424
|
+
cookie?: never;
|
|
14425
|
+
};
|
|
14426
|
+
get?: never;
|
|
14427
|
+
put?: never;
|
|
14428
|
+
/**
|
|
14429
|
+
* Staff rotation of ONE site's database password and event secret, with a reason.
|
|
14430
|
+
* @description **Staff only** (`sites.restart`), audit-logged with the stated `reason` (docs/1235). Starts a background job that changes this site only: the database user's password and `DB_PASSWORD` in `wp-config.php`, then `ZINN_CACHE_PANEL_SECRET`, proven by a real database login, then moves the site's secret epoch. About one second in which the site cannot reach its database. On failure the site is put back on its current values. WordPress and WooCommerce sites on our own servers only (`422` otherwise); `409` while a rotation is already running.
|
|
14431
|
+
*/
|
|
14432
|
+
post: operations["adminRotateSiteSecrets"];
|
|
14433
|
+
delete?: never;
|
|
14434
|
+
options?: never;
|
|
14435
|
+
head?: never;
|
|
14436
|
+
patch?: never;
|
|
14437
|
+
trace?: never;
|
|
14438
|
+
};
|
|
14393
14439
|
"/v1/admin/sites/{siteId}/security/warn": {
|
|
14394
14440
|
parameters: {
|
|
14395
14441
|
query?: never;
|
|
@@ -104843,6 +104889,27 @@ export interface components {
|
|
|
104843
104889
|
*/
|
|
104844
104890
|
target?: string;
|
|
104845
104891
|
};
|
|
104892
|
+
/** @description Where one site's database-password and event-secret rotation is (docs/1235). Never carries a password or a secret. */
|
|
104893
|
+
SiteSecrets: {
|
|
104894
|
+
/** @description How many rotations have finished. 0 is the values the site was created with. */
|
|
104895
|
+
epoch: number;
|
|
104896
|
+
/** @description Why the last rotation stopped, or empty. */
|
|
104897
|
+
last_error: string;
|
|
104898
|
+
/**
|
|
104899
|
+
* Format: date-time
|
|
104900
|
+
* @description When the site last moved to new values.
|
|
104901
|
+
*/
|
|
104902
|
+
rotated_at: string | null;
|
|
104903
|
+
/** @description True while `state` is `running`. */
|
|
104904
|
+
rotating: boolean;
|
|
104905
|
+
/** Format: uuid */
|
|
104906
|
+
site_id: string;
|
|
104907
|
+
/**
|
|
104908
|
+
* @description `running` - the background job is changing the site; `failed` - the last rotation stopped (see `last_error`) and the site is on its current values.
|
|
104909
|
+
* @enum {string}
|
|
104910
|
+
*/
|
|
104911
|
+
state: "idle" | "running" | "failed";
|
|
104912
|
+
};
|
|
104846
104913
|
/** @description A site's malware state as its owner sees it (see `getSiteSecurity`) — the stored projection a scan writes, never a live vendor call. */
|
|
104847
104914
|
SiteSecurity: {
|
|
104848
104915
|
/**
|
|
@@ -136101,6 +136168,66 @@ export interface operations {
|
|
|
136101
136168
|
503: components["responses"]["ServiceUnavailable"];
|
|
136102
136169
|
};
|
|
136103
136170
|
};
|
|
136171
|
+
adminGetSiteSecrets: {
|
|
136172
|
+
parameters: {
|
|
136173
|
+
query?: never;
|
|
136174
|
+
header?: never;
|
|
136175
|
+
path: {
|
|
136176
|
+
/** @description Site ID (UUIDv7). */
|
|
136177
|
+
siteId: components["parameters"]["SiteId"];
|
|
136178
|
+
};
|
|
136179
|
+
cookie?: never;
|
|
136180
|
+
};
|
|
136181
|
+
requestBody?: never;
|
|
136182
|
+
responses: {
|
|
136183
|
+
/** @description The site's secret epoch and rotation state. */
|
|
136184
|
+
200: {
|
|
136185
|
+
headers: {
|
|
136186
|
+
[name: string]: unknown;
|
|
136187
|
+
};
|
|
136188
|
+
content: {
|
|
136189
|
+
"application/json": components["schemas"]["SiteSecrets"];
|
|
136190
|
+
};
|
|
136191
|
+
};
|
|
136192
|
+
401: components["responses"]["Unauthorized"];
|
|
136193
|
+
403: components["responses"]["Forbidden"];
|
|
136194
|
+
404: components["responses"]["NotFound"];
|
|
136195
|
+
429: components["responses"]["TooManyRequests"];
|
|
136196
|
+
};
|
|
136197
|
+
};
|
|
136198
|
+
adminRotateSiteSecrets: {
|
|
136199
|
+
parameters: {
|
|
136200
|
+
query?: never;
|
|
136201
|
+
header?: never;
|
|
136202
|
+
path: {
|
|
136203
|
+
/** @description Site ID (UUIDv7). */
|
|
136204
|
+
siteId: components["parameters"]["SiteId"];
|
|
136205
|
+
};
|
|
136206
|
+
cookie?: never;
|
|
136207
|
+
};
|
|
136208
|
+
requestBody: {
|
|
136209
|
+
content: {
|
|
136210
|
+
"application/json": components["schemas"]["StaffRecoveryReason"];
|
|
136211
|
+
};
|
|
136212
|
+
};
|
|
136213
|
+
responses: {
|
|
136214
|
+
/** @description Rotation started. */
|
|
136215
|
+
202: {
|
|
136216
|
+
headers: {
|
|
136217
|
+
[name: string]: unknown;
|
|
136218
|
+
};
|
|
136219
|
+
content: {
|
|
136220
|
+
"application/json": components["schemas"]["SiteSecrets"];
|
|
136221
|
+
};
|
|
136222
|
+
};
|
|
136223
|
+
401: components["responses"]["Unauthorized"];
|
|
136224
|
+
403: components["responses"]["Forbidden"];
|
|
136225
|
+
404: components["responses"]["NotFound"];
|
|
136226
|
+
409: components["responses"]["Conflict"];
|
|
136227
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
136228
|
+
429: components["responses"]["TooManyRequests"];
|
|
136229
|
+
};
|
|
136230
|
+
};
|
|
136104
136231
|
warnSiteMalware: {
|
|
136105
136232
|
parameters: {
|
|
136106
136233
|
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.1480",
|
|
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>",
|