@zinn-digital/sdk 0.1.1804 → 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 +164 -3
- package/package.json +1 -1
|
@@ -10518,7 +10518,7 @@ export interface paths {
|
|
|
10518
10518
|
};
|
|
10519
10519
|
/**
|
|
10520
10520
|
* Every organization, staff ones included (staff).
|
|
10521
|
-
* @description The directory the merge screen picks from. Unlike `GET /v1/admin/customers` this does **not** filter to customer org types — the platform's own `staff` org is the commonest merge destination, and a directory that hid it would be missing the one entry an operator needs. Requires staff + `org.merge`.
|
|
10521
|
+
* @description The directory the merge screen picks from. Unlike `GET /v1/admin/customers` this does **not** filter to customer org types — the platform's own `staff` org is the commonest merge destination, and a directory that hid it would be missing the one entry an operator needs. Requires staff + `org.merge`. Cursor-paginated (keyset): follow `page.next_cursor` until `has_more` is false and every organization is reachable. It was capped at 500 rows with no cursor until ADMINORGS1114 (2026-11-14), so an organization past row 500 looked like one that did not exist.
|
|
10522
10522
|
*/
|
|
10523
10523
|
get: operations["listAdminOrgs"];
|
|
10524
10524
|
put?: never;
|
|
@@ -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
|
};
|
|
@@ -127989,7 +128086,7 @@ export interface operations {
|
|
|
127989
128086
|
include_internal?: boolean;
|
|
127990
128087
|
/** @description Maximum items to return (page size). */
|
|
127991
128088
|
limit?: components["parameters"]["Limit"];
|
|
127992
|
-
/** @description Case-insensitive substring over org name
|
|
128089
|
+
/** @description Case-insensitive substring over the org name and the owner's email and name. It does NOT match the org id: fetch one org by id with `GET /v1/admin/customers/{orgId}`. */
|
|
127993
128090
|
search?: string;
|
|
127994
128091
|
/** @description Only customers in this state. `paying` = settled an order and holds something live (plan, domain, site or server); `trial` = on a live trial, never paid; `never_bought` = signed up, never settled an order; `lapsed` = paid once, holds nothing live; `closed` = account closed (the only way to list those). */
|
|
127995
128092
|
state?: "paying" | "trial" | "never_bought" | "lapsed" | "closed";
|
|
@@ -138034,6 +138131,12 @@ export interface operations {
|
|
|
138034
138131
|
listAdminOrgs: {
|
|
138035
138132
|
parameters: {
|
|
138036
138133
|
query?: {
|
|
138134
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
138135
|
+
cursor?: components["parameters"]["Cursor"];
|
|
138136
|
+
/** @description Maximum items to return (page size). */
|
|
138137
|
+
limit?: components["parameters"]["Limit"];
|
|
138138
|
+
/** @description Sort key, optionally `-`-prefixed for descending. Defaults to `-created` (newest first). The cursor carries the sort position, so paging a sorted list is exact; a cursor from one ordering is refused in another. An unrecognised key is a 422, never a silent fall back. */
|
|
138139
|
+
ordering?: "created" | "-created" | "name" | "-name";
|
|
138037
138140
|
/** @description Case-insensitive match on the organization name. */
|
|
138038
138141
|
search?: string;
|
|
138039
138142
|
};
|
|
@@ -138043,7 +138146,7 @@ export interface operations {
|
|
|
138043
138146
|
};
|
|
138044
138147
|
requestBody?: never;
|
|
138045
138148
|
responses: {
|
|
138046
|
-
/** @description
|
|
138149
|
+
/** @description A page of organizations. */
|
|
138047
138150
|
200: {
|
|
138048
138151
|
headers: {
|
|
138049
138152
|
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
@@ -138052,11 +138155,13 @@ export interface operations {
|
|
|
138052
138155
|
content: {
|
|
138053
138156
|
"application/json": {
|
|
138054
138157
|
data: components["schemas"]["AdminOrgSummary"][];
|
|
138158
|
+
page: components["schemas"]["PageMeta"];
|
|
138055
138159
|
};
|
|
138056
138160
|
};
|
|
138057
138161
|
};
|
|
138058
138162
|
401: components["responses"]["Unauthorized"];
|
|
138059
138163
|
403: components["responses"]["Forbidden"];
|
|
138164
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
138060
138165
|
429: components["responses"]["TooManyRequests"];
|
|
138061
138166
|
};
|
|
138062
138167
|
};
|
|
@@ -147208,6 +147313,62 @@ export interface operations {
|
|
|
147208
147313
|
429: components["responses"]["TooManyRequests"];
|
|
147209
147314
|
};
|
|
147210
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
|
+
};
|
|
147211
147372
|
adminListWordPressCompatRuns: {
|
|
147212
147373
|
parameters: {
|
|
147213
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>",
|