@zinn-digital/sdk 0.1.1805 → 0.1.1806
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 +153 -0
- package/package.json +1 -1
|
@@ -16408,6 +16408,46 @@ export interface paths {
|
|
|
16408
16408
|
patch?: never;
|
|
16409
16409
|
trace?: never;
|
|
16410
16410
|
};
|
|
16411
|
+
"/v1/admin/watched-accounts": {
|
|
16412
|
+
parameters: {
|
|
16413
|
+
query?: never;
|
|
16414
|
+
header?: never;
|
|
16415
|
+
path?: never;
|
|
16416
|
+
cookie?: never;
|
|
16417
|
+
};
|
|
16418
|
+
/**
|
|
16419
|
+
* Accounts watched because they are linked to a banned account (staff).
|
|
16420
|
+
* @description docs/1174 §3.7 (owner ruling 2026-11-13). Every account the hostile-account detector linked to a banned account (a `banned_ip` / `banned_fingerprint` signal) is watched automatically: what it publishes (a site created, deployed, renamed or reactivated, a domain connected, site content changed) is scanned for phishing at once and every watched site is re-read every 15 minutes; a medium or high reading pages staff. Each row carries the linked banned account, its ban reason and date, the evidence (signal, weight) and the most recent scans. A watch never bans, suspends or changes anything the customer sees, and ends by itself when the linked ban is lifted. Most recently changed first; `status` filters (`watching`, `ended`). Requires `abuse.view`.
|
|
16421
|
+
*/
|
|
16422
|
+
get: operations["listAdminWatchedAccounts"];
|
|
16423
|
+
put?: never;
|
|
16424
|
+
post?: never;
|
|
16425
|
+
delete?: never;
|
|
16426
|
+
options?: never;
|
|
16427
|
+
head?: never;
|
|
16428
|
+
patch?: never;
|
|
16429
|
+
trace?: never;
|
|
16430
|
+
};
|
|
16431
|
+
"/v1/admin/watched-accounts/{orgId}": {
|
|
16432
|
+
parameters: {
|
|
16433
|
+
query?: never;
|
|
16434
|
+
header?: never;
|
|
16435
|
+
path?: never;
|
|
16436
|
+
cookie?: never;
|
|
16437
|
+
};
|
|
16438
|
+
/**
|
|
16439
|
+
* The active watch on one account, for the staff warning (staff).
|
|
16440
|
+
* @description docs/1174 §3.7. `data` is the account's ACTIVE watch — the banned account it is possibly linked to, the ban reason and date, and the evidence — or `null` when it is not watched. Backs the warning on the admin customer, site and ticket screens, so any of `abuse.view`, `customer.view`, `tickets.view` or `sites.view` may read it. Never shown to a customer.
|
|
16441
|
+
*/
|
|
16442
|
+
get: operations["getAdminWatchedAccount"];
|
|
16443
|
+
put?: never;
|
|
16444
|
+
post?: never;
|
|
16445
|
+
delete?: never;
|
|
16446
|
+
options?: never;
|
|
16447
|
+
head?: never;
|
|
16448
|
+
patch?: never;
|
|
16449
|
+
trace?: never;
|
|
16450
|
+
};
|
|
16411
16451
|
"/v1/admin/wordpress/compat-runs": {
|
|
16412
16452
|
parameters: {
|
|
16413
16453
|
query?: never;
|
|
@@ -67317,6 +67357,63 @@ export interface components {
|
|
|
67317
67357
|
has_more?: boolean;
|
|
67318
67358
|
next_cursor?: string | null;
|
|
67319
67359
|
};
|
|
67360
|
+
AdminWatchedAccount: {
|
|
67361
|
+
ban_id: components["schemas"]["Uuid"];
|
|
67362
|
+
/** @description The linked ban's reason as staff wrote it. */
|
|
67363
|
+
ban_reason: string;
|
|
67364
|
+
/** @description The linked ban's reason code (phishing, spam, fraud, abuse, legal, other). */
|
|
67365
|
+
ban_reason_code: string;
|
|
67366
|
+
/** Format: date-time */
|
|
67367
|
+
banned_at?: string | null;
|
|
67368
|
+
/** Format: uuid */
|
|
67369
|
+
case_id?: string | null;
|
|
67370
|
+
/** Format: date-time */
|
|
67371
|
+
created_at: string;
|
|
67372
|
+
/** @description Empty, ban_lifted or link_gone. */
|
|
67373
|
+
end_reason: string;
|
|
67374
|
+
/** Format: date-time */
|
|
67375
|
+
ended_at?: string | null;
|
|
67376
|
+
evidence: {
|
|
67377
|
+
/** @enum {string} */
|
|
67378
|
+
kind: "banned_ip" | "banned_fingerprint";
|
|
67379
|
+
/** @description One-line evidence. Never an IP or a raw e-mail. */
|
|
67380
|
+
summary: string;
|
|
67381
|
+
weight: number;
|
|
67382
|
+
};
|
|
67383
|
+
hits: number;
|
|
67384
|
+
id: components["schemas"]["Uuid"];
|
|
67385
|
+
/** Format: date-time */
|
|
67386
|
+
last_hit_at?: string | null;
|
|
67387
|
+
/** Format: date-time */
|
|
67388
|
+
last_scan_at?: string | null;
|
|
67389
|
+
linked_org_id: components["schemas"]["Uuid"];
|
|
67390
|
+
linked_org_name: string;
|
|
67391
|
+
org_id: components["schemas"]["Uuid"];
|
|
67392
|
+
org_name: string;
|
|
67393
|
+
/** @description The most recent scans, newest first. */
|
|
67394
|
+
recent: {
|
|
67395
|
+
/** Format: date-time */
|
|
67396
|
+
at?: string | null;
|
|
67397
|
+
/** Format: uuid */
|
|
67398
|
+
site_id: string;
|
|
67399
|
+
/** @enum {string} */
|
|
67400
|
+
trigger: "publish" | "rescan";
|
|
67401
|
+
/** @enum {string} */
|
|
67402
|
+
verdict: "none" | "low" | "medium" | "high" | "error";
|
|
67403
|
+
}[];
|
|
67404
|
+
sites_scanned: number;
|
|
67405
|
+
/** @enum {string} */
|
|
67406
|
+
status: "watching" | "ended";
|
|
67407
|
+
/** Format: date-time */
|
|
67408
|
+
updated_at: string;
|
|
67409
|
+
};
|
|
67410
|
+
AdminWatchedAccountEnvelope: {
|
|
67411
|
+
data: components["schemas"]["AdminWatchedAccount"] | null;
|
|
67412
|
+
};
|
|
67413
|
+
AdminWatchedAccountList: {
|
|
67414
|
+
data: components["schemas"]["AdminWatchedAccount"][];
|
|
67415
|
+
page: components["schemas"]["PageMeta"];
|
|
67416
|
+
};
|
|
67320
67417
|
AdminWordPressCompatCheck: {
|
|
67321
67418
|
already_running: boolean;
|
|
67322
67419
|
};
|
|
@@ -147216,6 +147313,62 @@ export interface operations {
|
|
|
147216
147313
|
429: components["responses"]["TooManyRequests"];
|
|
147217
147314
|
};
|
|
147218
147315
|
};
|
|
147316
|
+
listAdminWatchedAccounts: {
|
|
147317
|
+
parameters: {
|
|
147318
|
+
query?: {
|
|
147319
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
147320
|
+
cursor?: components["parameters"]["Cursor"];
|
|
147321
|
+
/** @description Maximum items to return (page size). */
|
|
147322
|
+
limit?: components["parameters"]["Limit"];
|
|
147323
|
+
status?: "watching" | "ended";
|
|
147324
|
+
};
|
|
147325
|
+
header?: never;
|
|
147326
|
+
path?: never;
|
|
147327
|
+
cookie?: never;
|
|
147328
|
+
};
|
|
147329
|
+
requestBody?: never;
|
|
147330
|
+
responses: {
|
|
147331
|
+
/** @description The watched accounts. */
|
|
147332
|
+
200: {
|
|
147333
|
+
headers: {
|
|
147334
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
147335
|
+
[name: string]: unknown;
|
|
147336
|
+
};
|
|
147337
|
+
content: {
|
|
147338
|
+
"application/json": components["schemas"]["AdminWatchedAccountList"];
|
|
147339
|
+
};
|
|
147340
|
+
};
|
|
147341
|
+
401: components["responses"]["Unauthorized"];
|
|
147342
|
+
403: components["responses"]["Forbidden"];
|
|
147343
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
147344
|
+
429: components["responses"]["TooManyRequests"];
|
|
147345
|
+
};
|
|
147346
|
+
};
|
|
147347
|
+
getAdminWatchedAccount: {
|
|
147348
|
+
parameters: {
|
|
147349
|
+
query?: never;
|
|
147350
|
+
header?: never;
|
|
147351
|
+
path: {
|
|
147352
|
+
orgId: components["schemas"]["Uuid"];
|
|
147353
|
+
};
|
|
147354
|
+
cookie?: never;
|
|
147355
|
+
};
|
|
147356
|
+
requestBody?: never;
|
|
147357
|
+
responses: {
|
|
147358
|
+
/** @description The active watch, or null. */
|
|
147359
|
+
200: {
|
|
147360
|
+
headers: {
|
|
147361
|
+
[name: string]: unknown;
|
|
147362
|
+
};
|
|
147363
|
+
content: {
|
|
147364
|
+
"application/json": components["schemas"]["AdminWatchedAccountEnvelope"];
|
|
147365
|
+
};
|
|
147366
|
+
};
|
|
147367
|
+
401: components["responses"]["Unauthorized"];
|
|
147368
|
+
403: components["responses"]["Forbidden"];
|
|
147369
|
+
429: components["responses"]["TooManyRequests"];
|
|
147370
|
+
};
|
|
147371
|
+
};
|
|
147219
147372
|
adminListWordPressCompatRuns: {
|
|
147220
147373
|
parameters: {
|
|
147221
147374
|
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.1806",
|
|
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>",
|