@zinn-digital/sdk 0.1.1983 → 0.1.1984
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 +155 -0
- package/package.json +1 -1
|
@@ -620,6 +620,52 @@ export interface paths {
|
|
|
620
620
|
patch?: never;
|
|
621
621
|
trace?: never;
|
|
622
622
|
};
|
|
623
|
+
"/v1/admin/abuse-cases/{reportId}": {
|
|
624
|
+
parameters: {
|
|
625
|
+
query?: never;
|
|
626
|
+
header?: never;
|
|
627
|
+
path: {
|
|
628
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
629
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
630
|
+
};
|
|
631
|
+
cookie?: never;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* One phishing case, the target of the alert's review link (staff).
|
|
635
|
+
* @description docs/1050 §1. Requires staff + `abuse.view`. The facts the phishing alert carried, read again now (site, plan, trial, first payments, sign-up source, the detector's signals and brands, Google Ads conversion uploads), plus the current report, site and account status, whether the account is fenced or established, and its active ban. No identifier (e-mail, IP, payer id) is returned.
|
|
636
|
+
*/
|
|
637
|
+
get: operations["getAbuseCase"];
|
|
638
|
+
put?: never;
|
|
639
|
+
post?: never;
|
|
640
|
+
delete?: never;
|
|
641
|
+
options?: never;
|
|
642
|
+
head?: never;
|
|
643
|
+
patch?: never;
|
|
644
|
+
trace?: never;
|
|
645
|
+
};
|
|
646
|
+
"/v1/admin/abuse-cases/{reportId}/action": {
|
|
647
|
+
parameters: {
|
|
648
|
+
query?: never;
|
|
649
|
+
header?: never;
|
|
650
|
+
path: {
|
|
651
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
652
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
653
|
+
};
|
|
654
|
+
cookie?: never;
|
|
655
|
+
};
|
|
656
|
+
get?: never;
|
|
657
|
+
put?: never;
|
|
658
|
+
/**
|
|
659
|
+
* Ban, warn or unban the account behind a phishing case (staff, audit-logged).
|
|
660
|
+
* @description docs/1050 §1. Requires staff + `abuse.manage`. `ban` bans the account (reason `phishing`; idempotent). `warn` e-mails the account why its site is offline (mandatory notice `abuse.site_warning`); the site stays suspended. `unban` lifts the active ban and unlocks the account; `422` when there is none. Putting the SITE back is `resolveAbuseReport` with `reinstate: true`, which the case screen calls separately. Returns the case as `getAbuseCase` does.
|
|
661
|
+
*/
|
|
662
|
+
post: operations["actAbuseCase"];
|
|
663
|
+
delete?: never;
|
|
664
|
+
options?: never;
|
|
665
|
+
head?: never;
|
|
666
|
+
patch?: never;
|
|
667
|
+
trace?: never;
|
|
668
|
+
};
|
|
623
669
|
"/v1/admin/abuse-guard": {
|
|
624
670
|
parameters: {
|
|
625
671
|
query?: never;
|
|
@@ -63434,6 +63480,56 @@ export interface components {
|
|
|
63434
63480
|
other_accounts?: number;
|
|
63435
63481
|
};
|
|
63436
63482
|
};
|
|
63483
|
+
AdminAbuseCase: {
|
|
63484
|
+
admin?: string;
|
|
63485
|
+
ads_conversions?: string[];
|
|
63486
|
+
ban: {
|
|
63487
|
+
/** Format: date-time */
|
|
63488
|
+
created_at?: string;
|
|
63489
|
+
id?: components["schemas"]["Uuid"];
|
|
63490
|
+
reason_code?: string;
|
|
63491
|
+
} | null;
|
|
63492
|
+
brands?: string[];
|
|
63493
|
+
category?: string;
|
|
63494
|
+
domain?: string;
|
|
63495
|
+
/** @description Why the account counts as established (empty when it does not). */
|
|
63496
|
+
established?: string;
|
|
63497
|
+
fenced?: boolean;
|
|
63498
|
+
org_id: components["schemas"]["Uuid"];
|
|
63499
|
+
org_name?: string;
|
|
63500
|
+
org_status?: string;
|
|
63501
|
+
payments?: components["schemas"]["AdminAbuseCasePayment"][];
|
|
63502
|
+
plan?: string;
|
|
63503
|
+
platform?: string;
|
|
63504
|
+
product_line?: string;
|
|
63505
|
+
report_id: components["schemas"]["Uuid"];
|
|
63506
|
+
report_status: string;
|
|
63507
|
+
scanned_at?: string;
|
|
63508
|
+
signals?: string[];
|
|
63509
|
+
signup_at?: string;
|
|
63510
|
+
signup_source?: string;
|
|
63511
|
+
site_id?: string;
|
|
63512
|
+
site_status?: string;
|
|
63513
|
+
trial?: boolean;
|
|
63514
|
+
trial_template?: string;
|
|
63515
|
+
verdict?: string;
|
|
63516
|
+
};
|
|
63517
|
+
AdminAbuseCaseAction: {
|
|
63518
|
+
/** @enum {string} */
|
|
63519
|
+
action: "ban" | "warn" | "unban";
|
|
63520
|
+
note?: string;
|
|
63521
|
+
};
|
|
63522
|
+
AdminAbuseCaseEnvelope: {
|
|
63523
|
+
data: components["schemas"]["AdminAbuseCase"];
|
|
63524
|
+
};
|
|
63525
|
+
AdminAbuseCasePayment: {
|
|
63526
|
+
amount_minor?: number;
|
|
63527
|
+
currency?: string;
|
|
63528
|
+
order?: string;
|
|
63529
|
+
provider?: string;
|
|
63530
|
+
status?: string;
|
|
63531
|
+
wallet_minor?: number;
|
|
63532
|
+
};
|
|
63437
63533
|
/** @description An abuse/T&S flag. Empty until the abuse subsystem lands. */
|
|
63438
63534
|
AdminAbuseFlag: {
|
|
63439
63535
|
id: string;
|
|
@@ -125055,6 +125151,65 @@ export interface operations {
|
|
|
125055
125151
|
429: components["responses"]["TooManyRequests"];
|
|
125056
125152
|
};
|
|
125057
125153
|
};
|
|
125154
|
+
getAbuseCase: {
|
|
125155
|
+
parameters: {
|
|
125156
|
+
query?: never;
|
|
125157
|
+
header?: never;
|
|
125158
|
+
path: {
|
|
125159
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
125160
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
125161
|
+
};
|
|
125162
|
+
cookie?: never;
|
|
125163
|
+
};
|
|
125164
|
+
requestBody?: never;
|
|
125165
|
+
responses: {
|
|
125166
|
+
/** @description The case. */
|
|
125167
|
+
200: {
|
|
125168
|
+
headers: {
|
|
125169
|
+
[name: string]: unknown;
|
|
125170
|
+
};
|
|
125171
|
+
content: {
|
|
125172
|
+
"application/json": components["schemas"]["AdminAbuseCaseEnvelope"];
|
|
125173
|
+
};
|
|
125174
|
+
};
|
|
125175
|
+
401: components["responses"]["Unauthorized"];
|
|
125176
|
+
403: components["responses"]["Forbidden"];
|
|
125177
|
+
404: components["responses"]["NotFound"];
|
|
125178
|
+
429: components["responses"]["TooManyRequests"];
|
|
125179
|
+
};
|
|
125180
|
+
};
|
|
125181
|
+
actAbuseCase: {
|
|
125182
|
+
parameters: {
|
|
125183
|
+
query?: never;
|
|
125184
|
+
header?: never;
|
|
125185
|
+
path: {
|
|
125186
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
125187
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
125188
|
+
};
|
|
125189
|
+
cookie?: never;
|
|
125190
|
+
};
|
|
125191
|
+
requestBody: {
|
|
125192
|
+
content: {
|
|
125193
|
+
"application/json": components["schemas"]["AdminAbuseCaseAction"];
|
|
125194
|
+
};
|
|
125195
|
+
};
|
|
125196
|
+
responses: {
|
|
125197
|
+
/** @description The case after the action. */
|
|
125198
|
+
200: {
|
|
125199
|
+
headers: {
|
|
125200
|
+
[name: string]: unknown;
|
|
125201
|
+
};
|
|
125202
|
+
content: {
|
|
125203
|
+
"application/json": components["schemas"]["AdminAbuseCaseEnvelope"];
|
|
125204
|
+
};
|
|
125205
|
+
};
|
|
125206
|
+
401: components["responses"]["Unauthorized"];
|
|
125207
|
+
403: components["responses"]["Forbidden"];
|
|
125208
|
+
404: components["responses"]["NotFound"];
|
|
125209
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
125210
|
+
429: components["responses"]["TooManyRequests"];
|
|
125211
|
+
};
|
|
125212
|
+
};
|
|
125058
125213
|
getAdminAbuseGuard: {
|
|
125059
125214
|
parameters: {
|
|
125060
125215
|
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.1984",
|
|
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>",
|