@zinn-digital/sdk 0.1.1470 → 0.1.1472
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 +280 -1
- 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;
|
|
@@ -85408,6 +85500,28 @@ export interface components {
|
|
|
85408
85500
|
* @enum {string}
|
|
85409
85501
|
*/
|
|
85410
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
|
+
};
|
|
85411
85525
|
/**
|
|
85412
85526
|
* @description One entry on the box's runtime-defense ignore list, as the BOX reports it.
|
|
85413
85527
|
*
|
|
@@ -85426,6 +85540,11 @@ export interface components {
|
|
|
85426
85540
|
detected_at: string;
|
|
85427
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). */
|
|
85428
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;
|
|
85429
85548
|
/** @description The scanner's detection name (a vendor identifier, shown verbatim — not English prose, so it is not a translatable string). */
|
|
85430
85549
|
signature: string;
|
|
85431
85550
|
};
|
|
@@ -97263,8 +97382,15 @@ export interface components {
|
|
|
97263
97382
|
* ⛔ `resolved_at` is evidence the finding **went away**; `resolution` is the only field that says who took it away. See `SiteSecurity.recent_resolutions`.
|
|
97264
97383
|
*/
|
|
97265
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;
|
|
97266
97387
|
/** Format: date-time */
|
|
97267
97388
|
detected_at: string;
|
|
97389
|
+
/**
|
|
97390
|
+
* Format: uuid
|
|
97391
|
+
* @description The finding's id — what `restoreSiteSecurityDetection` addresses.
|
|
97392
|
+
*/
|
|
97393
|
+
id: string;
|
|
97268
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). */
|
|
97269
97395
|
path: string;
|
|
97270
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. */
|
|
@@ -100705,7 +100831,7 @@ export interface components {
|
|
|
100705
100831
|
SiteCleanerJob: {
|
|
100706
100832
|
/** Format: date-time */
|
|
100707
100833
|
backup_expires_at?: string | null;
|
|
100708
|
-
/** @description The application detected: wordpress, joomla, drupal, prestashop, opencart, grav, mediawiki or other. */
|
|
100834
|
+
/** @description The application detected: wordpress, joomla, drupal, prestashop, opencart, grav, mediawiki, laravel, phpbb, matomo, owncloud, nextcloud or other. */
|
|
100709
100835
|
cms?: string;
|
|
100710
100836
|
/** Format: date-time */
|
|
100711
100837
|
created_at: string | null;
|
|
@@ -104579,7 +104705,17 @@ export interface components {
|
|
|
104579
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.
|
|
104580
104706
|
*/
|
|
104581
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;
|
|
104582
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;
|
|
104583
104719
|
/**
|
|
104584
104720
|
* Format: date-time
|
|
104585
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.
|
|
@@ -133656,6 +133792,45 @@ export interface operations {
|
|
|
133656
133792
|
503: components["responses"]["ServiceUnavailable"];
|
|
133657
133793
|
};
|
|
133658
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
|
+
};
|
|
133659
133834
|
listAdminFloodActions: {
|
|
133660
133835
|
parameters: {
|
|
133661
133836
|
query?: {
|
|
@@ -198436,6 +198611,110 @@ export interface operations {
|
|
|
198436
198611
|
429: components["responses"]["TooManyRequests"];
|
|
198437
198612
|
};
|
|
198438
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
|
+
};
|
|
198439
198718
|
startSiteSecurityScan: {
|
|
198440
198719
|
parameters: {
|
|
198441
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.1472",
|
|
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>",
|