@zinn-digital/sdk 0.1.1983 → 0.1.1985

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.
@@ -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;
@@ -82002,6 +82098,11 @@ export interface components {
82002
82098
  CdnConfig: {
82003
82099
  /** @description Which CDN account serves this site, and whether its credential still works. ⛔ Always present — never omitted for "we do not know", because an absent object is read by a client as "nothing to show" (§2.44). The unknown states are carried *inside* it. */
82004
82100
  account: components["schemas"]["CdnAccount"];
82101
+ /**
82102
+ * @description True while the edge rules for this site (the bad and fake bot block included) are written to its zone but the zone is not live, because the domain's name servers do not point to us yet. Until they do, the rules serve no traffic; protection activates on its own once the name servers point to `zone_nameservers` (the platform re-checks every converge pass). False once the zone is live, and on a site with no zone. "Rule written" is not "rule serving".
82103
+ * @default false
82104
+ */
82105
+ bot_protection_waiting: boolean;
82005
82106
  /** @description ISO-4217 code the price_minor above is expressed in. */
82006
82107
  currency: string;
82007
82108
  /**
@@ -125055,6 +125156,65 @@ export interface operations {
125055
125156
  429: components["responses"]["TooManyRequests"];
125056
125157
  };
125057
125158
  };
125159
+ getAbuseCase: {
125160
+ parameters: {
125161
+ query?: never;
125162
+ header?: never;
125163
+ path: {
125164
+ /** @description Abuse report ID (UUIDv7). */
125165
+ reportId: components["parameters"]["AbuseReportId"];
125166
+ };
125167
+ cookie?: never;
125168
+ };
125169
+ requestBody?: never;
125170
+ responses: {
125171
+ /** @description The case. */
125172
+ 200: {
125173
+ headers: {
125174
+ [name: string]: unknown;
125175
+ };
125176
+ content: {
125177
+ "application/json": components["schemas"]["AdminAbuseCaseEnvelope"];
125178
+ };
125179
+ };
125180
+ 401: components["responses"]["Unauthorized"];
125181
+ 403: components["responses"]["Forbidden"];
125182
+ 404: components["responses"]["NotFound"];
125183
+ 429: components["responses"]["TooManyRequests"];
125184
+ };
125185
+ };
125186
+ actAbuseCase: {
125187
+ parameters: {
125188
+ query?: never;
125189
+ header?: never;
125190
+ path: {
125191
+ /** @description Abuse report ID (UUIDv7). */
125192
+ reportId: components["parameters"]["AbuseReportId"];
125193
+ };
125194
+ cookie?: never;
125195
+ };
125196
+ requestBody: {
125197
+ content: {
125198
+ "application/json": components["schemas"]["AdminAbuseCaseAction"];
125199
+ };
125200
+ };
125201
+ responses: {
125202
+ /** @description The case after the action. */
125203
+ 200: {
125204
+ headers: {
125205
+ [name: string]: unknown;
125206
+ };
125207
+ content: {
125208
+ "application/json": components["schemas"]["AdminAbuseCaseEnvelope"];
125209
+ };
125210
+ };
125211
+ 401: components["responses"]["Unauthorized"];
125212
+ 403: components["responses"]["Forbidden"];
125213
+ 404: components["responses"]["NotFound"];
125214
+ 422: components["responses"]["UnprocessableEntity"];
125215
+ 429: components["responses"]["TooManyRequests"];
125216
+ };
125217
+ };
125058
125218
  getAdminAbuseGuard: {
125059
125219
  parameters: {
125060
125220
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1983",
3
+ "version": "0.1.1985",
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>",