@chainpatrol/cli 1.2.0 → 1.3.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,67 @@
1
1
  # @chainpatrol/cli
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 08b9976: Broaden the public API surface across Reports, Takedowns, Detections,
8
+ Detection Configs, and Assets. Everything additive — no removed fields,
9
+ no renames — so existing callers are unaffected.
10
+
11
+ **Detections (`listDetections`)** — new fields on each `DetectionListItem`:
12
+ `reason` (free-text explanation of why the detection fired), `score` (raw
13
+ 0–1 model score), `configId` (which `ThreatDetectionConfig` produced the
14
+ hit), `reportedAt` (when it transitioned to `REPORTED`, nullable), and
15
+ `brands[]` (brand associations).
16
+
17
+ **Detection Configs (`listDetectionConfigs`)** — each `ConfigEntry` now
18
+ carries `description` (nullable), `createdAt`, and `updatedAt` so
19
+ integrators can spot silent or stale configs.
20
+
21
+ **Reports** — `listOrganizationReports` gains `slaDueAt` (SLA deadline),
22
+ `externalSubmissionLink` (original external source URL when submitted from
23
+ a third-party surface), and `duplicateOfId` (canonical report ID when this
24
+ one is a duplicate). Type gaps are also closed: `imageDisplay`,
25
+ `favoritedAt`, `attachments[]`, and `proposals.asset.scans[]` were already
26
+ returned by the handler but omitted from the SDK type — they're now
27
+ declared. `searchReports` (`report/search-external`) response now
28
+ surfaces the `title` and `createdAt` fields the handler already fetched.
29
+
30
+ **Takedowns (`listTakedowns`)** — each `TakedownItem` gains `externalId`
31
+ (vendor's own reference — CleanDNS report ID / registrar ticket, for
32
+ reconciliation), `hasFilingDelay`, `hasLivenessCheckDelay` (staff-set
33
+ flags used by median-time metrics), and `asset.blockedAt`.
34
+
35
+ **Takedowns (`getTakedown`)** — the response was previously bare
36
+ (`{ assetContent, takedownStatus, createdAt, updatedAt }`). It's now
37
+ fully built out with `asset` details (id / content / type /
38
+ `livenessStatus` / `blockedAt`) and a nested `takedown` record (id /
39
+ status / `externalId` / delay flags / assignee / brand / tasks[]). The
40
+ original top-level fields (`takedownStatus`, `createdAt`, `updatedAt`)
41
+ are preserved for existing callers.
42
+
43
+ **Assets — `livenessStatus` + `blockedAt` parity.** `listAssets`,
44
+ `listOrganizationAssets`, `assetSearch` (`.asset`), and `listThreats`
45
+ (`livenessStatus` only, `blockedAt` already there) now consistently
46
+ return both fields. `listAssets` also fixes a bug where each returned
47
+ row's `id` was stripped from the response mapper (the column was already
48
+ selected). Note: `assetCheck` is intentionally deferred — its response
49
+ goes through `@chainpatrol/asset`'s own `checkAsset()` contract; parity
50
+ there needs a scoped follow-up in the asset package.
51
+
52
+ Server-side work in `@chainpatrol/external-trpc`, `@chainpatrol/core`,
53
+ `@chainpatrol/validation`, and `@chainpatrol/database` backs the new
54
+ fields; those are private packages and don't need version bumps. Also
55
+ adds a `/// @deprecated` doc-comment to `Report.threatLevel` in the
56
+ Prisma schema — the field is not surfaced through the public API and no
57
+ in-app UI reads it; the column stays for now, removal is a separate
58
+ destructive migration.
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [08b9976]
63
+ - @chainpatrol/sdk@1.3.0
64
+
3
65
  ## 1.2.0
4
66
 
5
67
  ### Minor Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@chainpatrol/cli",
3
3
  "description": "The official ChainPatrol CLI — terminal interface for threat detection",
4
4
  "author": "Umar Ahmed <umar@chainpatrol.io>",
5
- "version": "1.2.0",
5
+ "version": "1.3.0",
6
6
  "license": "UNLICENSED",
7
7
  "homepage": "https://chainpatrol.com/docs/cli",
8
8
  "keywords": [
@@ -33,7 +33,7 @@
33
33
  "lint": "npx oxlint ."
34
34
  },
35
35
  "dependencies": {
36
- "@chainpatrol/sdk": "1.2.0",
36
+ "@chainpatrol/sdk": "1.3.0",
37
37
  "ink": "^7.0.1",
38
38
  "meow": "^14.1.0",
39
39
  "open": "^11.0.0",