@zinn-digital/sdk 0.1.1476 → 0.1.1478

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.
@@ -33514,6 +33514,26 @@ export interface paths {
33514
33514
  patch?: never;
33515
33515
  trace?: never;
33516
33516
  };
33517
+ "/v1/fleet/phish-watch": {
33518
+ parameters: {
33519
+ query?: never;
33520
+ header?: never;
33521
+ path?: never;
33522
+ cookie?: never;
33523
+ };
33524
+ get?: never;
33525
+ put?: never;
33526
+ /**
33527
+ * The box's upload watch graded freshly written site files as suspicious.
33528
+ * @description A worker box's on-box upload watch (docs/1093 §8) scores a site's document root with the phishing detector the moment files in it are written, and the agent posts every MEDIUM/HIGH grade here. A **trigger, never a verdict**: the engine starts its own scan of THIS box's sites at the reported document roots and acts only on that scan, exactly as the hourly sweep would. Unknown document roots and other boxes' sites are ignored. Answers at once (`202`); one scan per box and document-root set per two minutes.
33529
+ */
33530
+ post: operations["reportFleetPhishWatch"];
33531
+ delete?: never;
33532
+ options?: never;
33533
+ head?: never;
33534
+ patch?: never;
33535
+ trace?: never;
33536
+ };
33517
33537
  "/v1/fleet/register": {
33518
33538
  parameters: {
33519
33539
  query?: never;
@@ -57539,6 +57559,8 @@ export interface components {
57539
57559
  AbuseCategory: "phishing" | "malware" | "copyright" | "spam" | "csam" | "illegal_content" | "network_abuse" | "other";
57540
57560
  /** @description One abuse complaint about one of our sites or one server on our cloud — exactly one of `site` and `compute_server` is set (W43-50). This is the LIST shape and it deliberately omits the complainant's raw text. */
57541
57561
  AbuseReport: {
57562
+ /** @description The provider's own case ids read out of the notice (`afcf32d299f58549 23907333`), space-separated. `provider_ref` stays the dedupe key. */
57563
+ case_ref?: string;
57542
57564
  category: components["schemas"]["AbuseCategory"];
57543
57565
  /** @description The server complained about, usually matched by its public address. */
57544
57566
  compute_server?: components["schemas"]["Uuid"] | null;
@@ -57583,6 +57605,12 @@ export interface components {
57583
57605
  target_url?: string;
57584
57606
  };
57585
57607
  AbuseReportDetail: components["schemas"]["AbuseReport"] & {
57608
+ /** @description What the intake automation did for this report and what it left for staff: our scan verdict, the action taken, and the case summary (`done`, `left`, `suspended_sites`, `banned_orgs`, `reply_id`). Empty until it ran. */
57609
+ automation?: {
57610
+ [key: string]: unknown;
57611
+ };
57612
+ /** @description The abuse desk's answer address the automated reply goes to. */
57613
+ reply_to?: string;
57586
57614
  /** @description The complainant's raw text. May contain their name, email and postal address. Staff-only, and NEVER forwarded to the customer — the notify action sends a summary composed from structured fields instead. */
57587
57615
  reporter_body?: string;
57588
57616
  };
@@ -57592,21 +57620,37 @@ export interface components {
57592
57620
  active: boolean;
57593
57621
  /** Format: date-time */
57594
57622
  created_at?: string;
57623
+ /** @description The category recorded when the notice's own words name none (an `AbuseCategory` value), or empty to let the content decide. */
57624
+ default_category?: string;
57595
57625
  id: components["schemas"]["Uuid"];
57626
+ /**
57627
+ * @description What kind of desk this is.
57628
+ * @enum {string}
57629
+ */
57630
+ kind?: "cdn" | "dns" | "registrar" | "hosting" | "cert" | "blocklist" | "other";
57631
+ /** @description Non-empty = this desk cannot be answered by mail (no auto-reply is sent); the step is listed on the case as left for staff. */
57632
+ manual_reply_step?: string;
57596
57633
  note?: string;
57597
57634
  /** @description A full address (`abuse@cloudflare.com`) or a bare domain (`cloudflare.com`). A domain also matches its subdomains. Stored normalised (lower-cased, any display-name wrapper and leading `@` removed). */
57598
57635
  pattern: string;
57599
57636
  /** @description What to record as the report's `provider` when this matches. */
57600
57637
  provider: string;
57638
+ /** @description Where the automated reply goes; empty = the notice's Reply-To, else From. */
57639
+ reply_address?: string;
57601
57640
  /** Format: date-time */
57602
57641
  updated_at?: string;
57603
57642
  };
57604
57643
  /** @description Create or update a recognised sender. All fields optional on PATCH. */
57605
57644
  AbuseSenderWrite: {
57606
57645
  active?: boolean;
57646
+ default_category?: string;
57647
+ /** @enum {string} */
57648
+ kind?: "cdn" | "dns" | "registrar" | "hosting" | "cert" | "blocklist" | "other";
57649
+ manual_reply_step?: string;
57607
57650
  note?: string;
57608
57651
  pattern?: string;
57609
57652
  provider?: string;
57653
+ reply_address?: string;
57610
57654
  };
57611
57655
  /**
57612
57656
  * @description Where a report is in the operator loop. `expired` records that we did not act in time — a failure, kept rather than hidden.
@@ -112133,6 +112177,22 @@ export interface components {
112133
112177
  /** Format: uuid */
112134
112178
  worker_id?: string;
112135
112179
  };
112180
+ /** @description One document root graded MEDIUM/HIGH by the box's upload watch. Names only, never file content. */
112181
+ WorkerPhishWatchFinding: {
112182
+ changed?: string[];
112183
+ /** @enum {string} */
112184
+ confidence: "medium" | "high";
112185
+ docroot: string;
112186
+ markers?: string[];
112187
+ reasons?: string[];
112188
+ };
112189
+ WorkerPhishWatchRequest: {
112190
+ findings: components["schemas"]["WorkerPhishWatchFinding"][];
112191
+ };
112192
+ WorkerPhishWatchResult: {
112193
+ accepted: number;
112194
+ workflow_id: string | null;
112195
+ };
112136
112196
  WorkerRegisterRequest: {
112137
112197
  agent_version?: string;
112138
112198
  /** @description `/proc/sys/kernel/random/boot_id`. Distinguishes "the agent restarted" from "the box rebooted" — a crash loop from a kernel panic. */
@@ -168774,6 +168834,33 @@ export interface operations {
168774
168834
  429: components["responses"]["TooManyRequests"];
168775
168835
  };
168776
168836
  };
168837
+ reportFleetPhishWatch: {
168838
+ parameters: {
168839
+ query?: never;
168840
+ header?: never;
168841
+ path?: never;
168842
+ cookie?: never;
168843
+ };
168844
+ requestBody: {
168845
+ content: {
168846
+ "application/json": components["schemas"]["WorkerPhishWatchRequest"];
168847
+ };
168848
+ };
168849
+ responses: {
168850
+ /** @description The scan was started (or one for the same sites is already running). */
168851
+ 202: {
168852
+ headers: {
168853
+ [name: string]: unknown;
168854
+ };
168855
+ content: {
168856
+ "application/json": components["schemas"]["WorkerPhishWatchResult"];
168857
+ };
168858
+ };
168859
+ 401: components["responses"]["Unauthorized"];
168860
+ 422: components["responses"]["UnprocessableEntity"];
168861
+ 429: components["responses"]["TooManyRequests"];
168862
+ };
168863
+ };
168777
168864
  registerFleetWorker: {
168778
168865
  parameters: {
168779
168866
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1476",
3
+ "version": "0.1.1478",
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>",