@lexq/cli 0.1.27 → 0.1.29
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/index.js
CHANGED
|
@@ -187,7 +187,7 @@ function registerAuthCommands(program) {
|
|
|
187
187
|
|
|
188
188
|
Example:
|
|
189
189
|
$ lexq auth login
|
|
190
|
-
Enter your API Key:
|
|
190
|
+
Enter your API Key: lexq_us_****
|
|
191
191
|
|
|
192
192
|
✓ API key saved to ~/.lexq/config.json
|
|
193
193
|
`
|
|
@@ -218,7 +218,7 @@ function registerAuthCommands(program) {
|
|
|
218
218
|
|
|
219
219
|
Example:
|
|
220
220
|
$ lexq auth whoami
|
|
221
|
-
{ "tenantId": "abc-123", "userId": "...", "role": "ADMIN", "apiKey": "
|
|
221
|
+
{ "tenantId": "abc-123", "userId": "...", "role": "ADMIN", "apiKey": "lexq_us_****abcd" }
|
|
222
222
|
`
|
|
223
223
|
).action(async () => {
|
|
224
224
|
try {
|
|
@@ -1715,18 +1715,20 @@ function registerAnalyticsCommands(program) {
|
|
|
1715
1715
|
$ lexq analytics simulation start --json '{
|
|
1716
1716
|
"policyVersionId": "<vid>",
|
|
1717
1717
|
"dataset": {
|
|
1718
|
-
"type": "
|
|
1719
|
-
"source": "
|
|
1720
|
-
"
|
|
1718
|
+
"type": "HISTORICAL",
|
|
1719
|
+
"source": "EXECUTION_LOGS",
|
|
1720
|
+
"from": "2026-01-01",
|
|
1721
|
+
"to": "2026-01-31"
|
|
1721
1722
|
},
|
|
1722
1723
|
"options": {
|
|
1723
1724
|
"baselinePolicyVersionId": "<baseline-vid>",
|
|
1724
|
-
"includeRuleStats": true
|
|
1725
|
+
"includeRuleStats": true,
|
|
1726
|
+
"maxRecords": 1000
|
|
1725
1727
|
}
|
|
1726
1728
|
}'
|
|
1727
|
-
|
|
1728
|
-
Dataset types:
|
|
1729
|
-
Dataset sources:
|
|
1729
|
+
|
|
1730
|
+
Dataset types: HISTORICAL, UPLOADED, MANUAL
|
|
1731
|
+
Dataset sources: EXECUTION_LOGS, S3_BUCKET, REQUEST_BODY
|
|
1730
1732
|
`
|
|
1731
1733
|
).action(async (opts) => {
|
|
1732
1734
|
try {
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ simulation** and **A/B testing** for rule versions.
|
|
|
13
13
|
```bash
|
|
14
14
|
# Store your API key (persisted at ~/.lexq/config.json)
|
|
15
15
|
lexq auth login
|
|
16
|
-
# Enter your API Key:
|
|
16
|
+
# Enter your API Key: lexq_us_xxxxxxxxxxxxx
|
|
17
17
|
|
|
18
18
|
# Verify authentication
|
|
19
19
|
lexq auth whoami
|
|
@@ -22,7 +22,7 @@ lexq auth whoami
|
|
|
22
22
|
The API key is passed as `X-API-KEY` header on every request. You can also override per-command:
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
lexq groups list --api-key
|
|
25
|
+
lexq groups list --api-key lexq_us_override_key
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
**Base URL:** `https://api.lexq.io/api/v1/partners` (default). Override with `--base-url`.
|