kenso 0.1.122 → 0.1.125
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/kenso.js +201 -135
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/crm.md +7 -3
- package/docs/reference.md +6 -4
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -156,7 +156,7 @@ kenso changes apply --change-id 32
|
|
|
156
156
|
kenso opportunities bulk-delete --ids 71,72,73 --yes
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
`accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--all`, `--exclude-ids`) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on.
|
|
159
|
+
`accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--all`, `--exclude-ids`) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on. `kenso changes undo` undoes a delete of accounts for 30 days: each account still deleted is restored, as `kenso accounts restore` restores it. A delete of people or deals is not undone.
|
|
160
160
|
|
|
161
161
|
### Follow, stop and undo a change
|
|
162
162
|
|
|
@@ -167,7 +167,7 @@ kenso changes cancel --change-id 31
|
|
|
167
167
|
kenso changes undo --change-id 31
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
`changes list` shows the workspace's bulk changes, newest first, whoever made them. `changes rows` lists a change's records with the value before (`from`) and after (`to`) and a `status`; `--status conflict,failed` reads what a change missed. `changes cancel` drops a preview or stops a change that is still writing; what it already wrote stays. `changes undo` puts the old value back on every record that still holds the value the change wrote, for 30 days after it was applied (`undoUntil`). A record someone changed again since keeps its newer value: `counts.undone` is how many went back, `counts.applied` how many still hold the change. Undo answers `409 invalid_state` with `undo_expired`, `still_running`, `nothing_applied` or `not_undoable` when there is nothing it can put back.
|
|
170
|
+
`changes list` shows the workspace's bulk changes, newest first, whoever made them. `changes rows` lists a change's records with the value before (`from`) and after (`to`) and a `status`; `--status conflict,failed` reads what a change missed. `changes cancel` drops a preview or stops a change that is still writing; what it already wrote stays. `changes undo` puts the old value back on every record that still holds the value the change wrote, for 30 days after it was applied (`undoUntil`). A record someone changed again since keeps its newer value: `counts.undone` is how many went back, `counts.applied` how many still hold the change. Undo answers `409 invalid_state` with `undo_expired`, `still_running`, `nothing_applied` or `not_undoable` (a delete of people or deals) when there is nothing it can put back.
|
|
171
171
|
|
|
172
172
|
## Search opportunities
|
|
173
173
|
|
|
@@ -314,7 +314,7 @@ Per row: a domain no account has creates an account; a domain that is already an
|
|
|
314
314
|
|
|
315
315
|
`kenso import people <file.csv>` works the same way for people. Import the accounts file first: a people row's company id (Twenty's `Company Id`, HubSpot's associated company id) places the person on the account that kept that id, and without one the person goes on the account that holds their email's or company's domain. A people import never creates an account; a person whose company is no account comes in without one and the row says so. A row matches a person by email, then LinkedIn URL, then name on the company, as every other way into People does; a matched person gets only their empty fields filled (a phone only when they have none). A row with none of the three is skipped, and a row with only a name needs a company that is an account with a domain. `kenso record-imports undo --import-id <id>` takes a people import back too: a person it created leaves the accounts the row placed them on and is deleted, unless someone changed them since, they were contacted or have a touch planned, or they are on an open deal; a field it filled is emptied while it still holds the imported value. `kenso people import` stays the JSONL and enrichment path (`--find-emails`); `kenso import people` is the CRM file with a plan, a row report and one approval.
|
|
316
316
|
|
|
317
|
-
`kenso import deals <file.csv>` works the same way for deals, after the accounts file and the people file. A row opens a deal on the account that kept its company id (Twenty's `Company Id`, HubSpot's associated company id), else on the account that holds its company domain; a row whose account Kenso does not know is skipped and says so. Its contact is the person a people import kept the row's contact id for (Twenty's `Point of Contact Id`). The plan maps each stage in the file to one of the workspace's deal stages (`valueMaps`, field `stage`): a stage's key or label matches by itself, Closed Won and Closed Lost go to the first won and lost stage, and a value with no match opens in the first open stage until you pick one with `kenso record-imports update`. Amounts stay in the workspace currency: an amount in another currency is left out with a warning, never converted. A row whose deal id an earlier import kept is that deal and only gets its empty fields filled
|
|
317
|
+
`kenso import deals <file.csv>` works the same way for deals, after the accounts file and the people file. A row opens a deal on the account that kept its company id (Twenty's `Company Id`, HubSpot's associated company id), else on the account that holds its company domain; a row whose account Kenso does not know is skipped and says so. Its contact is the person a people import kept the row's contact id for (Twenty's `Point of Contact Id`). The plan maps each stage in the file to one of the workspace's deal stages (`valueMaps`, field `stage`): a stage's key or label matches by itself, Closed Won and Closed Lost go to the first won and lost stage, and a value with no match opens in the first open stage until you pick one with `kenso record-imports update`. Amounts stay in the workspace currency: an amount in another currency is left out with a warning, never converted. A row whose deal id an earlier import kept is that deal and only gets its empty fields filled. A row no id names a deal for is the one live deal on its account with its name and its contact (a side with no contact matches any) that is open, won or lost as the row is: it fills that deal's empty fields and keeps the row's id for it, and a row that matches two such deals is skipped and names them. A file with no id column is matched that way only, and the plan says so (`no_source_id`). `kenso record-imports undo --import-id <id>` takes a deals import back: a deal it opened is deleted unless someone changed it since, and a field it filled is emptied while it still holds the imported value. Undo in the reverse order of the imports (deals, then people, then accounts): an account that holds a deal is kept.
|
|
318
318
|
|
|
319
319
|
## Export accounts, people or deals
|
|
320
320
|
|
|
@@ -335,12 +335,16 @@ kenso accounts merge 812 --into 77 --dry-run
|
|
|
335
335
|
kenso accounts merge 812 --into 77 --yes
|
|
336
336
|
kenso accounts merges list --merged-by system
|
|
337
337
|
kenso accounts merges 41
|
|
338
|
+
kenso people merge 9 --into 7 --dry-run
|
|
339
|
+
kenso people merge 9 --into 7 --yes
|
|
338
340
|
```
|
|
339
341
|
|
|
340
342
|
These need the `crm_import_export` flag beside `accounts`. `accounts duplicates` lists the pairs of accounts that look like one company: both accounts, why they were paired (`reasons`: `domain`, `linkedin`, `name`) and `isCertain`, true when the two share the name and the domain apart from its ending (acme.com and acme.co). `--scan` compares every account first; a scan also runs after each accounts import. `--status dismissed` or `merged` shows the answered pairs. `kenso account-duplicates dismiss --duplicate-id <duplicateId>` answers that a pair is not a duplicate, for good.
|
|
341
343
|
|
|
342
344
|
`accounts merge <accountId> --into <id>` merges the first account into the second, the one you keep. A merge cannot be undone, so look first: `--dry-run` prints `mergeSummary` (each field that changes with its value before and after, and how many people, deals, touches and domains move) and writes nothing. The merge itself needs `--yes` when no person is at the terminal. It answers the kept account with the same summary and a `mergeId`.
|
|
343
345
|
|
|
346
|
+
`people merge <personId> --into <id>` merges the first person into the second, the one you keep, and needs only the `accounts` flag. The kept person keeps their own values and takes the other's for their blank fields, custom fields included; account places, deals, meetings, tasks, notes and captured email and meetings move to them. It cannot be undone either: `--dry-run` (which needs `crm_import_export`) prints the kept person with `mergeSummary`, the `fieldChanges` the merge would fill and `moved` (`accountCount`, `combinedAccountCount`, `opportunityCount`, `meetingCount`, `taskCount`, `noteCount`, `timelineEventCount`), and writes nothing. The merge itself needs `--yes` when no person is at the terminal. The same as the MCP's `people(operation="merge", dry_run=true)`.
|
|
347
|
+
|
|
344
348
|
`accounts merges list` is the log, newest first, and `accounts merges <mergeId>` opens one merge with `mergedValues`: the merged-away account as it was. `--merged-by system` shows the merges Ken made itself. Where automatic merging is on for the workspace, Ken merges only certain pairs, keeps the customer, then the owned, then the last touched account, and leaves a pair for you when both are customers, the two have different owners, or one is being worked and the other is set aside (`heldReason` on the pair says which). That job is off unless it was turned on for the workspace.
|
|
345
349
|
|
|
346
350
|
## A deal's stage history
|
package/docs/reference.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Kenso CLI command reference
|
|
2
2
|
|
|
3
|
-
Generated from kenso 0.1.
|
|
3
|
+
Generated from kenso 0.1.125 (API contracts 67f3662fb446) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
5
|
1902 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
|
|
|
@@ -1250,7 +1250,7 @@ Flags: `--base-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--conc
|
|
|
1250
1250
|
|
|
1251
1251
|
Get campaign performance. `GET /v1/analytics/campaign-performance`.
|
|
1252
1252
|
|
|
1253
|
-
Flags: `--campaign-id`, `--channel`, `--from`, `--group-by`, `--time-zone`, `--to`, `--each`, `--concurrency`.
|
|
1253
|
+
Flags: `--campaign-id`, `--channel`, `--from`, `--group-by`, `--time-zone`, `--to`, `--views`, `--each`, `--concurrency`.
|
|
1254
1254
|
|
|
1255
1255
|
### kenso analytics get-deliverability
|
|
1256
1256
|
|
|
@@ -8706,9 +8706,11 @@ Flags: `--mode`, `--person-ids`, `--each`, `--concurrency`.
|
|
|
8706
8706
|
|
|
8707
8707
|
### kenso people merge
|
|
8708
8708
|
|
|
8709
|
-
Merge
|
|
8709
|
+
Merge a person into the one you keep. --dry-run shows what would move and writes nothing. `POST /v1/people/{personId}/merge`. Beta: needs `accounts`.
|
|
8710
8710
|
|
|
8711
|
-
|
|
8711
|
+
Arguments: `<personId>`.
|
|
8712
|
+
|
|
8713
|
+
Flags: `--into`, `--into-person-id`.
|
|
8712
8714
|
|
|
8713
8715
|
### kenso people replace-photo
|
|
8714
8716
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.125",
|
|
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": "
|
|
52
|
+
"gitHead": "1d76f10ba7dbf28c38aab860becaaf1320effdc6"
|
|
53
53
|
}
|