@consentera/cli 2.0.0 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  `@consentera/cli` follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## [2.1.0] — 2026-09-27
6
+
7
+ Versioned in step with `@consentera/consent-sdk` 2.1.0. No command changes.
8
+
9
+ - `consentera validate` already prints the whole response, so the platform's
10
+ new `applied` / `retry_after` fields (F232) show up with no change.
11
+ - `CONSENTERA_API_URL` may carry a path prefix (a gateway such as
12
+ `https://gw.example.com/consentera`); the prefix is kept and trailing slashes
13
+ are trimmed. Documented in the README.
14
+
5
15
  ## [2.0.0] — 2026-09-22
6
16
 
7
17
  Versioned in step with `@consentera/consent-sdk` 2.0.0: both speak the U58 wire
package/README.md CHANGED
@@ -34,6 +34,15 @@ consentera validate --data-principal email=always.allow@test.consentera.in \
34
34
  consentera trigger consent.granted --forward-to http://localhost:4242/hooks
35
35
  ```
36
36
 
37
+ ## Base URL and path prefixes
38
+
39
+ `CONSENTERA_API_URL` may carry a path prefix (an API published behind a gateway
40
+ at `https://gw.corp.example/consentera`); the prefix is kept and trailing
41
+ slashes are trimmed once, so no request carries `//`. The CLI appends
42
+ `/api/v1/public/...`, and that route prefix is fixed — see the root README,
43
+ "Base URLs, gateway prefixes and the fixed route prefix", for a gateway that
44
+ re-maps `/api/v1`.
45
+
37
46
  ## Credentials
38
47
 
39
48
  **A secret is never a command-line argument.** There is no `--api-key` and no
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consentera/cli",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Consentera developer CLI \u2014 exercise the consent API, mint sessions/portal links, and test webhooks with correctly-signed synthetic events.",
5
5
  "bin": {
6
6
  "consentera": "consentera.js"