kenso 0.1.53 → 0.1.54

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/docs/crm.md CHANGED
@@ -53,6 +53,26 @@ Bob Ray,,CTO,acme.io,
53
53
 
54
54
  People already in the workspace are matched by email, then LinkedIn URL, so running the same file again creates nobody twice. A row comes back `created` (a new person), `updated` (an existing person added to the account), `skipped` with reason `already_on_account`, `matched` (no account asked) or `previously_removed`, or `failed`: `account_not_found` saves the person without an account (import the account, then rerun to place them), any other reason is the API's. The summary adds `matched`, `addedToAccounts` and `emailFindsQueued`.
55
55
 
56
+ ## List and search accounts
57
+
58
+ `accounts list` and `accounts search` sort and page on the server, so they reach every account in the workspace, however many there are.
59
+
60
+ ```bash
61
+ kenso accounts list --sort score:desc --limit 100 # one page; the output's next: line is the following one
62
+ kenso accounts list --sort score:desc --limit 100 --all # every page, to the end
63
+ kenso accounts search --search hiring --sort latestSignalAt:desc --data '{"qFields": ["name", "latestSignal"]}'
64
+ kenso accounts search --limit 1 --data '{"countBy": ["stage"]}' # how many accounts sit in each stage
65
+ kenso accounts search --data '{"where": {"match": "all", "conditions": [{"field": "tier", "operator": "is", "values": ["1"]}]}, "sort": "tier,-pipelineAmount"}' --all
66
+ ```
67
+
68
+ - **`--sort`** takes up to 3 comma-separated keys, each `field` (ascending), `field:asc` or `field:desc`. The API's `-field` form needs the equals sign here, `--sort=-score`, because a value that starts with a dash reads as a flag. Fields: `createdAt`, `name`, `score`, `tier` (ascending is tier 1 first), `latestSignalAt`, `committee`, `pipelineAmount`, `nextTouchAt`, `lastTouchAt`. An account with no value for a key comes last in both directions. The default is `-createdAt`.
69
+ - **`--limit`** is 1 to 1000 (default 50). `--cursor` takes the previous page's `nextCursor` with the same filters and sort; `--all` follows the cursors for you.
70
+ - **`--search`** (also `--q`) matches the name or a domain.
71
+ - **Lists and objects go in `--data`** on `search`, as the API takes them (`kenso describe accounts search`); a flag beside it sets or replaces one key:
72
+ - `qFields` picks where the search text looks: `name`, `domain`, `latestSignal` (the latest signal's title).
73
+ - `countBy` (`stage`, `stageGroup`) adds `counts` to the output: every value with the number of matching accounts that hold it, whatever the page. The output is then one object: `data`, `pagination` and `counts`.
74
+ - `filters` and `where` narrow the accounts.
75
+
56
76
  ## Edit accounts, people and opportunities
57
77
 
58
78
  Apart from `accounts bulk-update`, which sets one `accountType` on up to 500 accounts, there is no bulk edit route, so run the generated `update` command once per row with `--each`. Columns are the command's flags by API name or flag name, and the id column fills the route:
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.53 (API contracts 6b523737985a) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.54 (API contracts 2c23649fe6fd) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1621 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
5
+ 1623 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
6
6
 
7
7
  ## Global flags
8
8
 
@@ -57,7 +57,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
57
57
  - [analytics](#analytics) (7)
58
58
  - [answers](#answers) (4)
59
59
  - [api](#api) (1)
60
- - [api-keys](#api-keys) (4)
60
+ - [api-keys](#api-keys) (5)
61
61
  - [apollo-lists](#apollo-lists) (1)
62
62
  - [approval-tests](#approval-tests) (6)
63
63
  - [approvals](#approvals) (4)
@@ -73,6 +73,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
73
73
  - [auth](#auth) (3)
74
74
  - [auto-pauses](#auto-pauses) (1)
75
75
  - [autonomous-reply-settings](#autonomous-reply-settings) (2)
76
+ - [billing-entitlements](#billing-entitlements) (1)
76
77
  - [billing-plans](#billing-plans) (1)
77
78
  - [blitz-companies](#blitz-companies) (1)
78
79
  - [blitz-decision-makers](#blitz-decision-makers) (1)
@@ -720,7 +721,7 @@ Flags: `--account-id` (required), `--force`, `--no-force`, `--data`, `--each`, `
720
721
 
721
722
  Search accounts in the current workspace with filter conditions and AND / OR groups. `POST /v1/accounts/search` (a list). Beta: needs `accounts`.
722
723
 
723
- Flags: `--search`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--time-zone`, `--include-import-only`, `--no-include-total`, `--no-include-import-only`, `--data`, `--all`, `--each`, `--concurrency`.
724
+ Flags: `--search`, `--time-zone`, `--include-import-only`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-include-import-only`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
724
725
 
725
726
  ### kenso accounts update
726
727
 
@@ -1238,6 +1239,12 @@ List the caller's API keys, including revoked keys. Secrets are omitted. `GET /v
1238
1239
 
1239
1240
  Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
1240
1241
 
1242
+ ### kenso api-keys rotate
1243
+
1244
+ Replace one of the caller's keys with a new one, keeping the old one working for a while. `POST /v1/api-keys/{apiKeyId}/rotate`.
1245
+
1246
+ Flags: `--api-key-id` (required), `--overlap-hours`, `--expires-in-days`, `--data`, `--each`, `--concurrency`.
1247
+
1241
1248
  ### kenso api-keys update
1242
1249
 
1243
1250
  Rename one of the caller's keys, or change the API version it is pinned to. `PATCH /v1/api-keys/{apiKeyId}`.
@@ -1710,6 +1717,14 @@ Update the autonomous reply settings. `PATCH /v1/autonomous-reply-settings`.
1710
1717
 
1711
1718
  Flags: `--data`, `--each`, `--concurrency`.
1712
1719
 
1720
+ ## billing-entitlements
1721
+
1722
+ ### kenso billing-entitlements get
1723
+
1724
+ Read what the workspace's plan includes. `GET /v1/billing/entitlements`.
1725
+
1726
+ Flags: `--each`, `--concurrency`.
1727
+
1713
1728
  ## billing-plans
1714
1729
 
1715
1730
  ### kenso billing-plans list
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "The Kenso CLI: bulk lead, CRM and Studio work for people and coding agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,5 +49,5 @@
49
49
  "typescript-eslint": "8.71.1",
50
50
  "vitest": "5.0.3"
51
51
  },
52
- "gitHead": "e02056cc8f44b6a29798bc839a50fa7069acd55f"
52
+ "gitHead": "e43d30d3232eb9b752f73e6f6efb5b3e92ac5ee7"
53
53
  }