@zinn-digital/sdk 0.1.1469 → 0.1.1471
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 +289 -0
- package/package.json +1 -1
|
@@ -12965,6 +12965,26 @@ export interface paths {
|
|
|
12965
12965
|
patch?: never;
|
|
12966
12966
|
trace?: never;
|
|
12967
12967
|
};
|
|
12968
|
+
"/v1/admin/security/clean-runs": {
|
|
12969
|
+
parameters: {
|
|
12970
|
+
query?: never;
|
|
12971
|
+
header?: never;
|
|
12972
|
+
path?: never;
|
|
12973
|
+
cookie?: never;
|
|
12974
|
+
};
|
|
12975
|
+
/**
|
|
12976
|
+
* Malware clean runs across the fleet (staff).
|
|
12977
|
+
* @description Every site's clean runs, newest first, bounded to 100 (`page.has_more`). `?outcome=failed` is the list a person must look at: findings the platform could neither clean nor move aside. Requires staff `hosting.security.manage`.
|
|
12978
|
+
*/
|
|
12979
|
+
get: operations["adminListMalwareCleanRuns"];
|
|
12980
|
+
put?: never;
|
|
12981
|
+
post?: never;
|
|
12982
|
+
delete?: never;
|
|
12983
|
+
options?: never;
|
|
12984
|
+
head?: never;
|
|
12985
|
+
patch?: never;
|
|
12986
|
+
trace?: never;
|
|
12987
|
+
};
|
|
12968
12988
|
"/v1/admin/security/flood-actions": {
|
|
12969
12989
|
parameters: {
|
|
12970
12990
|
query?: never;
|
|
@@ -52230,6 +52250,78 @@ export interface paths {
|
|
|
52230
52250
|
patch?: never;
|
|
52231
52251
|
trace?: never;
|
|
52232
52252
|
};
|
|
52253
|
+
"/v1/sites/{siteId}/security/clean": {
|
|
52254
|
+
parameters: {
|
|
52255
|
+
query?: never;
|
|
52256
|
+
header?: never;
|
|
52257
|
+
path: {
|
|
52258
|
+
/** @description Site ID (UUIDv7). */
|
|
52259
|
+
siteId: components["parameters"]["SiteId"];
|
|
52260
|
+
};
|
|
52261
|
+
cookie?: never;
|
|
52262
|
+
};
|
|
52263
|
+
get?: never;
|
|
52264
|
+
put?: never;
|
|
52265
|
+
/**
|
|
52266
|
+
* Scan and clean a site's malware now.
|
|
52267
|
+
* @description *Clean now* — the same durable scan as `startSiteSecurityScan`, which then cleans what the scanner can, moves what it cannot out of the document root into the hosting account's `zinn-quarantine` folder (kept, never deleted, restorable) and **always** records a row in `listSiteSecurityHistory`. Works for every site type (static, PHP, WordPress, Node): each step is per file. Files a site cannot open without (`wp-config.php`, `index.php`, `index.html`, `.htaccess`, …) are never moved aside; if one is infected the clean is *failed* and a person decides.
|
|
52268
|
+
*
|
|
52269
|
+
* Requires `sites.restart` — it changes files on the site. `202` with the site's state; one per site at a time (a second request joins the running one). `422` when the site cannot be scanned or is not running; `503` when the durable-execution service is unreachable.
|
|
52270
|
+
*/
|
|
52271
|
+
post: operations["startSiteSecurityClean"];
|
|
52272
|
+
delete?: never;
|
|
52273
|
+
options?: never;
|
|
52274
|
+
head?: never;
|
|
52275
|
+
patch?: never;
|
|
52276
|
+
trace?: never;
|
|
52277
|
+
};
|
|
52278
|
+
"/v1/sites/{siteId}/security/detections/{detectionId}/restore": {
|
|
52279
|
+
parameters: {
|
|
52280
|
+
query?: never;
|
|
52281
|
+
header?: never;
|
|
52282
|
+
path: {
|
|
52283
|
+
detectionId: string;
|
|
52284
|
+
/** @description Site ID (UUIDv7). */
|
|
52285
|
+
siteId: components["parameters"]["SiteId"];
|
|
52286
|
+
};
|
|
52287
|
+
cookie?: never;
|
|
52288
|
+
};
|
|
52289
|
+
get?: never;
|
|
52290
|
+
put?: never;
|
|
52291
|
+
/**
|
|
52292
|
+
* Put a cleaned or quarantined file back.
|
|
52293
|
+
* @description The one-click undo for a false positive: puts the original file back where it was (from `zinn-quarantine`, or the scanner's kept original for a file cleaned in place), then re-scans. The file stays reported but automatic cleaning leaves it alone from then on. Durable workflow; `202` with the site's state, and the result lands in `listSiteSecurityHistory` as `restored` (or `failed`). Requires `sites.restart`. `422` when the finding is not restorable (`can_restore: false`).
|
|
52294
|
+
*/
|
|
52295
|
+
post: operations["restoreSiteSecurityDetection"];
|
|
52296
|
+
delete?: never;
|
|
52297
|
+
options?: never;
|
|
52298
|
+
head?: never;
|
|
52299
|
+
patch?: never;
|
|
52300
|
+
trace?: never;
|
|
52301
|
+
};
|
|
52302
|
+
"/v1/sites/{siteId}/security/history": {
|
|
52303
|
+
parameters: {
|
|
52304
|
+
query?: never;
|
|
52305
|
+
header?: never;
|
|
52306
|
+
path: {
|
|
52307
|
+
/** @description Site ID (UUIDv7). */
|
|
52308
|
+
siteId: components["parameters"]["SiteId"];
|
|
52309
|
+
};
|
|
52310
|
+
cookie?: never;
|
|
52311
|
+
};
|
|
52312
|
+
/**
|
|
52313
|
+
* What the platform cleaned on a site, newest first.
|
|
52314
|
+
* @description The site's malware clean runs (newest 50): automatic cleans after a scan, *Clean now* runs and restores. An automatic run is recorded only when something new happened (a file cleaned or quarantined, or the first failure), so a site re-scanned daily does not grow a row per scan. `sites.view`; paths are relative to the document root.
|
|
52315
|
+
*/
|
|
52316
|
+
get: operations["listSiteSecurityHistory"];
|
|
52317
|
+
put?: never;
|
|
52318
|
+
post?: never;
|
|
52319
|
+
delete?: never;
|
|
52320
|
+
options?: never;
|
|
52321
|
+
head?: never;
|
|
52322
|
+
patch?: never;
|
|
52323
|
+
trace?: never;
|
|
52324
|
+
};
|
|
52233
52325
|
"/v1/sites/{siteId}/security/scan": {
|
|
52234
52326
|
parameters: {
|
|
52235
52327
|
query?: never;
|
|
@@ -73703,6 +73795,16 @@ export interface components {
|
|
|
73703
73795
|
* @example 6
|
|
73704
73796
|
*/
|
|
73705
73797
|
eligible: number;
|
|
73798
|
+
/**
|
|
73799
|
+
* @description How many of the eligible sites are on the Footprint-Free Hosting product line, counted over the whole selection.
|
|
73800
|
+
* @example 0
|
|
73801
|
+
*/
|
|
73802
|
+
footprint_free_eligible: number;
|
|
73803
|
+
/**
|
|
73804
|
+
* @description True when the operation installs the same plugin, theme, blueprint or stack on 5 or more Footprint-Free sites: an identical install across a network is a footprint. The job still runs (each footprint-free item waits a random 0-90 s first); the dashboard warns before the customer confirms.
|
|
73805
|
+
* @example false
|
|
73806
|
+
*/
|
|
73807
|
+
footprint_warning: boolean;
|
|
73706
73808
|
/**
|
|
73707
73809
|
* @description How many rows are in `sites` (capped at 200); `matched` is the real total.
|
|
73708
73810
|
* @example 12
|
|
@@ -85398,6 +85500,28 @@ export interface components {
|
|
|
85398
85500
|
* @enum {string}
|
|
85399
85501
|
*/
|
|
85400
85502
|
MailServiceStatus: "pending" | "provisioning" | "active" | "failed" | "suspended" | "deleting" | "deleted";
|
|
85503
|
+
/** @description One malware clean (or restore) of one site. Counts plus the docroot-relative paths in `detail` (`cleaned`, `quarantined` as `[path, kept_at]` pairs, `failed`, `restored`). */
|
|
85504
|
+
MalwareCleanRun: {
|
|
85505
|
+
cleaned: number;
|
|
85506
|
+
/** Format: date-time */
|
|
85507
|
+
created_at: string;
|
|
85508
|
+
detail: {
|
|
85509
|
+
[key: string]: unknown;
|
|
85510
|
+
};
|
|
85511
|
+
failed: number;
|
|
85512
|
+
found: number;
|
|
85513
|
+
/** Format: uuid */
|
|
85514
|
+
id: string;
|
|
85515
|
+
/**
|
|
85516
|
+
* @description `cleaned` everything found was cleaned or quarantined; `partial` some was; `failed` nothing could be (a person must look); `nothing` nothing to clean; `restored` a file was put back.
|
|
85517
|
+
* @enum {string}
|
|
85518
|
+
*/
|
|
85519
|
+
outcome: "cleaned" | "partial" | "failed" | "nothing" | "restored";
|
|
85520
|
+
quarantined: number;
|
|
85521
|
+
restored: number;
|
|
85522
|
+
/** @enum {string} */
|
|
85523
|
+
trigger: "auto" | "customer" | "staff";
|
|
85524
|
+
};
|
|
85401
85525
|
/**
|
|
85402
85526
|
* @description One entry on the box's runtime-defense ignore list, as the BOX reports it.
|
|
85403
85527
|
*
|
|
@@ -85416,6 +85540,11 @@ export interface components {
|
|
|
85416
85540
|
detected_at: string;
|
|
85417
85541
|
/** @description Path **relative to the site's document root** — never absolute, which would disclose the host account handle and the fleet's filesystem layout (§2.4). */
|
|
85418
85542
|
path: string;
|
|
85543
|
+
/**
|
|
85544
|
+
* Format: date-time
|
|
85545
|
+
* @description Set when the customer or staff put this file back (`restoreSiteSecurityDetection`) — it is still reported, but automatic cleaning leaves it alone; only an explicit *Clean now* touches it again.
|
|
85546
|
+
*/
|
|
85547
|
+
restored_at?: string | null;
|
|
85419
85548
|
/** @description The scanner's detection name (a vendor identifier, shown verbatim — not English prose, so it is not a translatable string). */
|
|
85420
85549
|
signature: string;
|
|
85421
85550
|
};
|
|
@@ -97253,8 +97382,15 @@ export interface components {
|
|
|
97253
97382
|
* ⛔ `resolved_at` is evidence the finding **went away**; `resolution` is the only field that says who took it away. See `SiteSecurity.recent_resolutions`.
|
|
97254
97383
|
*/
|
|
97255
97384
|
ResolvedMalwareDetection: {
|
|
97385
|
+
/** @description `true` for a file the platform cleaned (`scanner_removed`) or moved to quarantine (`quarantined`) — the one-click undo for a false positive. */
|
|
97386
|
+
can_restore?: boolean;
|
|
97256
97387
|
/** Format: date-time */
|
|
97257
97388
|
detected_at: string;
|
|
97389
|
+
/**
|
|
97390
|
+
* Format: uuid
|
|
97391
|
+
* @description The finding's id — what `restoreSiteSecurityDetection` addresses.
|
|
97392
|
+
*/
|
|
97393
|
+
id: string;
|
|
97258
97394
|
/** @description Path **relative to the site's document root** — never absolute, which would disclose the host account handle and the fleet's filesystem layout (§2.4). */
|
|
97259
97395
|
path: string;
|
|
97260
97396
|
/** @description For `resolution: quarantined`, where the file is kept now, relative to the hosting account's home folder (`zinn-quarantine/<utc>/<path>`). Empty otherwise. */
|
|
@@ -104569,7 +104705,17 @@ export interface components {
|
|
|
104569
104705
|
* Note it is **not** false merely because `unavailable_reason` is set: a site whose scanner has simply never been wired up can still be re-tried, and a retry is what picks up an operator attaching one.
|
|
104570
104706
|
*/
|
|
104571
104707
|
can_rescan: boolean;
|
|
104708
|
+
/**
|
|
104709
|
+
* Format: date-time
|
|
104710
|
+
* @description Since when a clean has been **failing** (a finding the platform could neither clean nor move aside, such as an infected `wp-config.php`). `null` = not failing. Only this lets the platform restrict a site for malware.
|
|
104711
|
+
*/
|
|
104712
|
+
clean_failed_at?: string | null;
|
|
104572
104713
|
detections: components["schemas"]["MalwareDetection"][];
|
|
104714
|
+
/**
|
|
104715
|
+
* Format: date-time
|
|
104716
|
+
* @description When the platform last cleaned or quarantined malware on this site automatically or on *Clean now*. `null` = never needed to.
|
|
104717
|
+
*/
|
|
104718
|
+
last_clean_at?: string | null;
|
|
104573
104719
|
/**
|
|
104574
104720
|
* Format: date-time
|
|
104575
104721
|
* @description When a scan last **completed**. `null` = never scanned. A scan that failed does not stamp this, so a stale success can never be mistaken for a fresh one.
|
|
@@ -133646,6 +133792,45 @@ export interface operations {
|
|
|
133646
133792
|
503: components["responses"]["ServiceUnavailable"];
|
|
133647
133793
|
};
|
|
133648
133794
|
};
|
|
133795
|
+
adminListMalwareCleanRuns: {
|
|
133796
|
+
parameters: {
|
|
133797
|
+
query?: {
|
|
133798
|
+
outcome?: "cleaned" | "partial" | "failed" | "nothing" | "restored";
|
|
133799
|
+
};
|
|
133800
|
+
header?: never;
|
|
133801
|
+
path?: never;
|
|
133802
|
+
cookie?: never;
|
|
133803
|
+
};
|
|
133804
|
+
requestBody?: never;
|
|
133805
|
+
responses: {
|
|
133806
|
+
/** @description The clean runs. */
|
|
133807
|
+
200: {
|
|
133808
|
+
headers: {
|
|
133809
|
+
[name: string]: unknown;
|
|
133810
|
+
};
|
|
133811
|
+
content: {
|
|
133812
|
+
"application/json": {
|
|
133813
|
+
data: (components["schemas"]["MalwareCleanRun"] & {
|
|
133814
|
+
actor: string;
|
|
133815
|
+
site: {
|
|
133816
|
+
/** Format: uuid */
|
|
133817
|
+
id: string;
|
|
133818
|
+
/** Format: uuid */
|
|
133819
|
+
org_id: string;
|
|
133820
|
+
primary_domain: string;
|
|
133821
|
+
};
|
|
133822
|
+
})[];
|
|
133823
|
+
page: {
|
|
133824
|
+
has_more: boolean;
|
|
133825
|
+
};
|
|
133826
|
+
};
|
|
133827
|
+
};
|
|
133828
|
+
};
|
|
133829
|
+
401: components["responses"]["Unauthorized"];
|
|
133830
|
+
403: components["responses"]["Forbidden"];
|
|
133831
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
133832
|
+
};
|
|
133833
|
+
};
|
|
133649
133834
|
listAdminFloodActions: {
|
|
133650
133835
|
parameters: {
|
|
133651
133836
|
query?: {
|
|
@@ -198426,6 +198611,110 @@ export interface operations {
|
|
|
198426
198611
|
429: components["responses"]["TooManyRequests"];
|
|
198427
198612
|
};
|
|
198428
198613
|
};
|
|
198614
|
+
startSiteSecurityClean: {
|
|
198615
|
+
parameters: {
|
|
198616
|
+
query?: never;
|
|
198617
|
+
header?: never;
|
|
198618
|
+
path: {
|
|
198619
|
+
/** @description Site ID (UUIDv7). */
|
|
198620
|
+
siteId: components["parameters"]["SiteId"];
|
|
198621
|
+
};
|
|
198622
|
+
cookie?: never;
|
|
198623
|
+
};
|
|
198624
|
+
requestBody?: never;
|
|
198625
|
+
responses: {
|
|
198626
|
+
/** @description The clean was queued (or a scan of this site was already running). */
|
|
198627
|
+
202: {
|
|
198628
|
+
headers: {
|
|
198629
|
+
[name: string]: unknown;
|
|
198630
|
+
};
|
|
198631
|
+
content: {
|
|
198632
|
+
"application/json": components["schemas"]["SiteSecurity"];
|
|
198633
|
+
};
|
|
198634
|
+
};
|
|
198635
|
+
401: components["responses"]["Unauthorized"];
|
|
198636
|
+
403: components["responses"]["Forbidden"];
|
|
198637
|
+
404: components["responses"]["NotFound"];
|
|
198638
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
198639
|
+
429: components["responses"]["TooManyRequests"];
|
|
198640
|
+
/** @description The scanner service is unavailable, so nothing was queued. */
|
|
198641
|
+
503: {
|
|
198642
|
+
headers: {
|
|
198643
|
+
[name: string]: unknown;
|
|
198644
|
+
};
|
|
198645
|
+
content: {
|
|
198646
|
+
"application/json": components["schemas"]["Error"];
|
|
198647
|
+
};
|
|
198648
|
+
};
|
|
198649
|
+
};
|
|
198650
|
+
};
|
|
198651
|
+
restoreSiteSecurityDetection: {
|
|
198652
|
+
parameters: {
|
|
198653
|
+
query?: never;
|
|
198654
|
+
header?: never;
|
|
198655
|
+
path: {
|
|
198656
|
+
detectionId: string;
|
|
198657
|
+
/** @description Site ID (UUIDv7). */
|
|
198658
|
+
siteId: components["parameters"]["SiteId"];
|
|
198659
|
+
};
|
|
198660
|
+
cookie?: never;
|
|
198661
|
+
};
|
|
198662
|
+
requestBody?: never;
|
|
198663
|
+
responses: {
|
|
198664
|
+
/** @description The restore was queued. */
|
|
198665
|
+
202: {
|
|
198666
|
+
headers: {
|
|
198667
|
+
[name: string]: unknown;
|
|
198668
|
+
};
|
|
198669
|
+
content: {
|
|
198670
|
+
"application/json": components["schemas"]["SiteSecurity"];
|
|
198671
|
+
};
|
|
198672
|
+
};
|
|
198673
|
+
401: components["responses"]["Unauthorized"];
|
|
198674
|
+
403: components["responses"]["Forbidden"];
|
|
198675
|
+
404: components["responses"]["NotFound"];
|
|
198676
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
198677
|
+
429: components["responses"]["TooManyRequests"];
|
|
198678
|
+
/** @description The scanner service is unavailable, so nothing was queued. */
|
|
198679
|
+
503: {
|
|
198680
|
+
headers: {
|
|
198681
|
+
[name: string]: unknown;
|
|
198682
|
+
};
|
|
198683
|
+
content: {
|
|
198684
|
+
"application/json": components["schemas"]["Error"];
|
|
198685
|
+
};
|
|
198686
|
+
};
|
|
198687
|
+
};
|
|
198688
|
+
};
|
|
198689
|
+
listSiteSecurityHistory: {
|
|
198690
|
+
parameters: {
|
|
198691
|
+
query?: never;
|
|
198692
|
+
header?: never;
|
|
198693
|
+
path: {
|
|
198694
|
+
/** @description Site ID (UUIDv7). */
|
|
198695
|
+
siteId: components["parameters"]["SiteId"];
|
|
198696
|
+
};
|
|
198697
|
+
cookie?: never;
|
|
198698
|
+
};
|
|
198699
|
+
requestBody?: never;
|
|
198700
|
+
responses: {
|
|
198701
|
+
/** @description The clean runs. */
|
|
198702
|
+
200: {
|
|
198703
|
+
headers: {
|
|
198704
|
+
[name: string]: unknown;
|
|
198705
|
+
};
|
|
198706
|
+
content: {
|
|
198707
|
+
"application/json": {
|
|
198708
|
+
data: components["schemas"]["MalwareCleanRun"][];
|
|
198709
|
+
};
|
|
198710
|
+
};
|
|
198711
|
+
};
|
|
198712
|
+
401: components["responses"]["Unauthorized"];
|
|
198713
|
+
403: components["responses"]["Forbidden"];
|
|
198714
|
+
404: components["responses"]["NotFound"];
|
|
198715
|
+
429: components["responses"]["TooManyRequests"];
|
|
198716
|
+
};
|
|
198717
|
+
};
|
|
198429
198718
|
startSiteSecurityScan: {
|
|
198430
198719
|
parameters: {
|
|
198431
198720
|
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.1471",
|
|
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>",
|