@zinn-digital/sdk 0.1.1805 → 0.1.1807
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 +218 -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;
|
|
@@ -43553,6 +43593,26 @@ export interface paths {
|
|
|
43553
43593
|
patch: operations["updatePaymentMethod"];
|
|
43554
43594
|
trace?: never;
|
|
43555
43595
|
};
|
|
43596
|
+
"/v1/payment-methods/form-closures": {
|
|
43597
|
+
parameters: {
|
|
43598
|
+
query?: never;
|
|
43599
|
+
header?: never;
|
|
43600
|
+
path?: never;
|
|
43601
|
+
cookie?: never;
|
|
43602
|
+
};
|
|
43603
|
+
get?: never;
|
|
43604
|
+
put?: never;
|
|
43605
|
+
/**
|
|
43606
|
+
* Report that the customer closed the add-a-payment-method form.
|
|
43607
|
+
* @description The customer closed the payment form, and whether they ever pressed Save. A form closed with nothing submitted leaves the gateway's setup in the same state as a form that silently broke, so only the browser can tell the two apart. When a card-required trial funnel is open for the organization it is told, and a close with nothing submitted is recorded as the outcome `closed_card_form` instead of alerting the operator with "card stuck". A form that broke in the browser is reported separately (`reportPaymentFormFailure`). Requires `billing.payment.manage` in the target organization. Nothing is charged or stored.
|
|
43608
|
+
*/
|
|
43609
|
+
post: operations["reportPaymentFormClosed"];
|
|
43610
|
+
delete?: never;
|
|
43611
|
+
options?: never;
|
|
43612
|
+
head?: never;
|
|
43613
|
+
patch?: never;
|
|
43614
|
+
trace?: never;
|
|
43615
|
+
};
|
|
43556
43616
|
"/v1/payment-methods/form-failures": {
|
|
43557
43617
|
parameters: {
|
|
43558
43618
|
query?: never;
|
|
@@ -67317,6 +67377,63 @@ export interface components {
|
|
|
67317
67377
|
has_more?: boolean;
|
|
67318
67378
|
next_cursor?: string | null;
|
|
67319
67379
|
};
|
|
67380
|
+
AdminWatchedAccount: {
|
|
67381
|
+
ban_id: components["schemas"]["Uuid"];
|
|
67382
|
+
/** @description The linked ban's reason as staff wrote it. */
|
|
67383
|
+
ban_reason: string;
|
|
67384
|
+
/** @description The linked ban's reason code (phishing, spam, fraud, abuse, legal, other). */
|
|
67385
|
+
ban_reason_code: string;
|
|
67386
|
+
/** Format: date-time */
|
|
67387
|
+
banned_at?: string | null;
|
|
67388
|
+
/** Format: uuid */
|
|
67389
|
+
case_id?: string | null;
|
|
67390
|
+
/** Format: date-time */
|
|
67391
|
+
created_at: string;
|
|
67392
|
+
/** @description Empty, ban_lifted or link_gone. */
|
|
67393
|
+
end_reason: string;
|
|
67394
|
+
/** Format: date-time */
|
|
67395
|
+
ended_at?: string | null;
|
|
67396
|
+
evidence: {
|
|
67397
|
+
/** @enum {string} */
|
|
67398
|
+
kind: "banned_ip" | "banned_fingerprint";
|
|
67399
|
+
/** @description One-line evidence. Never an IP or a raw e-mail. */
|
|
67400
|
+
summary: string;
|
|
67401
|
+
weight: number;
|
|
67402
|
+
};
|
|
67403
|
+
hits: number;
|
|
67404
|
+
id: components["schemas"]["Uuid"];
|
|
67405
|
+
/** Format: date-time */
|
|
67406
|
+
last_hit_at?: string | null;
|
|
67407
|
+
/** Format: date-time */
|
|
67408
|
+
last_scan_at?: string | null;
|
|
67409
|
+
linked_org_id: components["schemas"]["Uuid"];
|
|
67410
|
+
linked_org_name: string;
|
|
67411
|
+
org_id: components["schemas"]["Uuid"];
|
|
67412
|
+
org_name: string;
|
|
67413
|
+
/** @description The most recent scans, newest first. */
|
|
67414
|
+
recent: {
|
|
67415
|
+
/** Format: date-time */
|
|
67416
|
+
at?: string | null;
|
|
67417
|
+
/** Format: uuid */
|
|
67418
|
+
site_id: string;
|
|
67419
|
+
/** @enum {string} */
|
|
67420
|
+
trigger: "publish" | "rescan";
|
|
67421
|
+
/** @enum {string} */
|
|
67422
|
+
verdict: "none" | "low" | "medium" | "high" | "error";
|
|
67423
|
+
}[];
|
|
67424
|
+
sites_scanned: number;
|
|
67425
|
+
/** @enum {string} */
|
|
67426
|
+
status: "watching" | "ended";
|
|
67427
|
+
/** Format: date-time */
|
|
67428
|
+
updated_at: string;
|
|
67429
|
+
};
|
|
67430
|
+
AdminWatchedAccountEnvelope: {
|
|
67431
|
+
data: components["schemas"]["AdminWatchedAccount"] | null;
|
|
67432
|
+
};
|
|
67433
|
+
AdminWatchedAccountList: {
|
|
67434
|
+
data: components["schemas"]["AdminWatchedAccount"][];
|
|
67435
|
+
page: components["schemas"]["PageMeta"];
|
|
67436
|
+
};
|
|
67320
67437
|
AdminWordPressCompatCheck: {
|
|
67321
67438
|
already_running: boolean;
|
|
67322
67439
|
};
|
|
@@ -99155,6 +99272,22 @@ export interface components {
|
|
|
99155
99272
|
/** @description The payment rail of the failed attempt (`stripe`, `paypal`, `nowpayments`, …). */
|
|
99156
99273
|
rail: string;
|
|
99157
99274
|
};
|
|
99275
|
+
/** @description The customer closed the add-a-payment-method form. */
|
|
99276
|
+
PaymentFormClosed: {
|
|
99277
|
+
/**
|
|
99278
|
+
* Format: uuid
|
|
99279
|
+
* @description Organization the form was adding a method to. Defaults to the caller's own; the caller must hold `billing.payment.manage` there.
|
|
99280
|
+
*/
|
|
99281
|
+
org_id?: string;
|
|
99282
|
+
/** @description Whether the customer pressed Save (or started a PayPal approval) at least once before closing the form. */
|
|
99283
|
+
submitted: boolean;
|
|
99284
|
+
};
|
|
99285
|
+
PaymentFormClosedRecorded: {
|
|
99286
|
+
/** @description Whether a card-required trial funnel was open for this organization and was told. */
|
|
99287
|
+
funnel_signalled: boolean;
|
|
99288
|
+
/** @description Always true — the close was logged. */
|
|
99289
|
+
recorded: boolean;
|
|
99290
|
+
};
|
|
99158
99291
|
/** @description What broke in the customer's browser on the add-a-payment-method form. `reason` is the SDK's own short message (for example `Failed to load Stripe.js`), never card data. */
|
|
99159
99292
|
PaymentFormFailure: {
|
|
99160
99293
|
/**
|
|
@@ -147216,6 +147349,62 @@ export interface operations {
|
|
|
147216
147349
|
429: components["responses"]["TooManyRequests"];
|
|
147217
147350
|
};
|
|
147218
147351
|
};
|
|
147352
|
+
listAdminWatchedAccounts: {
|
|
147353
|
+
parameters: {
|
|
147354
|
+
query?: {
|
|
147355
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
147356
|
+
cursor?: components["parameters"]["Cursor"];
|
|
147357
|
+
/** @description Maximum items to return (page size). */
|
|
147358
|
+
limit?: components["parameters"]["Limit"];
|
|
147359
|
+
status?: "watching" | "ended";
|
|
147360
|
+
};
|
|
147361
|
+
header?: never;
|
|
147362
|
+
path?: never;
|
|
147363
|
+
cookie?: never;
|
|
147364
|
+
};
|
|
147365
|
+
requestBody?: never;
|
|
147366
|
+
responses: {
|
|
147367
|
+
/** @description The watched accounts. */
|
|
147368
|
+
200: {
|
|
147369
|
+
headers: {
|
|
147370
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
147371
|
+
[name: string]: unknown;
|
|
147372
|
+
};
|
|
147373
|
+
content: {
|
|
147374
|
+
"application/json": components["schemas"]["AdminWatchedAccountList"];
|
|
147375
|
+
};
|
|
147376
|
+
};
|
|
147377
|
+
401: components["responses"]["Unauthorized"];
|
|
147378
|
+
403: components["responses"]["Forbidden"];
|
|
147379
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
147380
|
+
429: components["responses"]["TooManyRequests"];
|
|
147381
|
+
};
|
|
147382
|
+
};
|
|
147383
|
+
getAdminWatchedAccount: {
|
|
147384
|
+
parameters: {
|
|
147385
|
+
query?: never;
|
|
147386
|
+
header?: never;
|
|
147387
|
+
path: {
|
|
147388
|
+
orgId: components["schemas"]["Uuid"];
|
|
147389
|
+
};
|
|
147390
|
+
cookie?: never;
|
|
147391
|
+
};
|
|
147392
|
+
requestBody?: never;
|
|
147393
|
+
responses: {
|
|
147394
|
+
/** @description The active watch, or null. */
|
|
147395
|
+
200: {
|
|
147396
|
+
headers: {
|
|
147397
|
+
[name: string]: unknown;
|
|
147398
|
+
};
|
|
147399
|
+
content: {
|
|
147400
|
+
"application/json": components["schemas"]["AdminWatchedAccountEnvelope"];
|
|
147401
|
+
};
|
|
147402
|
+
};
|
|
147403
|
+
401: components["responses"]["Unauthorized"];
|
|
147404
|
+
403: components["responses"]["Forbidden"];
|
|
147405
|
+
429: components["responses"]["TooManyRequests"];
|
|
147406
|
+
};
|
|
147407
|
+
};
|
|
147219
147408
|
adminListWordPressCompatRuns: {
|
|
147220
147409
|
parameters: {
|
|
147221
147410
|
query?: never;
|
|
@@ -194390,6 +194579,35 @@ export interface operations {
|
|
|
194390
194579
|
422: components["responses"]["UnprocessableEntity"];
|
|
194391
194580
|
};
|
|
194392
194581
|
};
|
|
194582
|
+
reportPaymentFormClosed: {
|
|
194583
|
+
parameters: {
|
|
194584
|
+
query?: never;
|
|
194585
|
+
header?: never;
|
|
194586
|
+
path?: never;
|
|
194587
|
+
cookie?: never;
|
|
194588
|
+
};
|
|
194589
|
+
requestBody: {
|
|
194590
|
+
content: {
|
|
194591
|
+
"application/json": components["schemas"]["PaymentFormClosed"];
|
|
194592
|
+
};
|
|
194593
|
+
};
|
|
194594
|
+
responses: {
|
|
194595
|
+
/** @description The close was recorded. */
|
|
194596
|
+
202: {
|
|
194597
|
+
headers: {
|
|
194598
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
194599
|
+
[name: string]: unknown;
|
|
194600
|
+
};
|
|
194601
|
+
content: {
|
|
194602
|
+
"application/json": components["schemas"]["PaymentFormClosedRecorded"];
|
|
194603
|
+
};
|
|
194604
|
+
};
|
|
194605
|
+
401: components["responses"]["Unauthorized"];
|
|
194606
|
+
403: components["responses"]["Forbidden"];
|
|
194607
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
194608
|
+
429: components["responses"]["TooManyRequests"];
|
|
194609
|
+
};
|
|
194610
|
+
};
|
|
194393
194611
|
reportPaymentFormFailure: {
|
|
194394
194612
|
parameters: {
|
|
194395
194613
|
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.1807",
|
|
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>",
|