kenso 0.1.79 → 0.1.81
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 +234 -142
- package/dist/operations.json +1 -1
- package/docs/crm.md +24 -0
- package/docs/reference.md +49 -5
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -9,11 +9,13 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
9
9
|
| `accounts update --each`, `people update --each`, `opportunities update --each` | Edit many records from a file, one call per row |
|
|
10
10
|
| `accounts write-research`, `people write-research` | Store research you gathered as a record's latest research, free. `--each` writes many |
|
|
11
11
|
| `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
|
|
12
|
+
| `deleted-accounts list`, `accounts restore <id>` | The accounts deleted in the last 30 days, and bringing one back |
|
|
12
13
|
| `capture status` | Your captured mailbox, its backfill progress and what teammates see of a captured email. Needs the `crm_capture` flag |
|
|
13
14
|
| `capture connect` | Turn capture on for your own mailbox. `--private` starts it hidden from teammates; `--provider google` prints a sign-in link when no account is connected yet |
|
|
14
15
|
| `capture private on\|off` | Hide your captured email from teammates, or show it again. Email only: meetings stay visible |
|
|
15
16
|
| `capture disconnect` | Turn capture off and delete your stored email bodies. Asks first; `--yes` skips the question |
|
|
16
17
|
| `capture teammates-see summary\|full_email` | Workspace admin: what teammates see of captured email |
|
|
18
|
+
| `pipelines stage-rules` | List or set the fields a deal should have in each stage |
|
|
17
19
|
| `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
|
|
18
20
|
|
|
19
21
|
Import accounts first, then people: `people import` never creates an account.
|
|
@@ -174,6 +176,15 @@ kenso crm-sync-issues list --connection-id 7 --all
|
|
|
174
176
|
|
|
175
177
|
Run `kenso crm-connections --help` (or add `--all-commands` when the actions are hidden) to see every action.
|
|
176
178
|
|
|
179
|
+
## Restore a deleted account
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
kenso deleted-accounts list
|
|
183
|
+
kenso accounts restore 812
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
A deleted account can be restored for 30 days. `deleted-accounts list` shows each one with who deleted it, `expiresAt` (restore works until then) and what comes back: `personCount`, `opportunityCount` and `touchCount`. `accounts restore <id>` brings the account back with its domains, its people, its deals and its planned touches, which wait for approval again. A domain another account took since stays with that account and is listed in `domainsTaken`. A merged account is not listed and cannot be restored: a merge has no undo. Both commands are behind the `crm_import_export` feature flag (`404` while it is off).
|
|
187
|
+
|
|
177
188
|
## A deal's stage history
|
|
178
189
|
|
|
179
190
|
```bash
|
|
@@ -182,3 +193,16 @@ kenso opportunities stage-history 77 --query "entries[].{to: stageLabel, at: ent
|
|
|
182
193
|
```
|
|
183
194
|
|
|
184
195
|
It prints `GET /v1/opportunities/{id}/stage-history` as it is, the same rows as the deal page and the MCP's `opportunities(operation="get-stage-history")`: the stage now, `isComplete` and `entries`, oldest first, each with `fromStage`, `stage`, `stageLabel`, `enteredAt`, `leftAt`, `durationSeconds`, `actorKind`, `actorMemberId` and Ken's `reason` on a move its stage judge made. With the `deal_stage_rules` flag on, each entry also has `changedBy` (`member`, `agent`, `api_key`, `workflow`, `stage_judge`, `crm_sync` or `ken_automation`), `crmProvider` on a CRM sync, and on a move `fromStageLabel` and `fromStageDurationSeconds`, how long the deal sat in the stage it left. `isComplete` false means Kenso has no record of part of the history.
|
|
196
|
+
|
|
197
|
+
## Required fields per stage
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
kenso pipelines stage-rules
|
|
201
|
+
kenso pipelines stage-rules proposal --require amount,closeDate,custom.tier
|
|
202
|
+
kenso pipelines stage-rules proposal --none
|
|
203
|
+
kenso pipelines stage-rules lost --default
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
With the `deal_stage_rules` flag on, each stage can name the fields a deal should have in it. Without a stage the command prints every stage's `key`, `label`, `category`, `isArchived`, `requiredFields` and `isDefault`, plus `requirableFields`: `amount`, `closeDate`, `ownerMemberId`, `primaryPersonId`, `nextStep`, `lostReasonKey`, `wonReasonKey` and `custom.<key>` for each custom deal field. `--require` sets the stage's whole list, in order, at most 10. `--none` requires nothing, and `--default` goes back to the default: a lost stage asks for `lostReasonKey`, any other stage nothing. Setting a rule needs the `workspace_settings` permission. The same as the MCP's `opportunities(operation="stages-set-required-fields")`.
|
|
207
|
+
|
|
208
|
+
A missing field never stops a move. The deal moves, and it is flagged Missing on the board, the list and the deal page until the field is filled. A rule also applies to deals already in the stage.
|
package/docs/reference.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kenso CLI command reference
|
|
2
2
|
|
|
3
|
-
Generated from kenso 0.1.
|
|
3
|
+
Generated from kenso 0.1.81 (API contracts 1d55a7d6f845) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1697 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
|
|
|
@@ -34,7 +34,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
34
34
|
- [account-signals](#account-signals) (3)
|
|
35
35
|
- [account-tiers](#account-tiers) (3)
|
|
36
36
|
- [account-views](#account-views) (5)
|
|
37
|
-
- [accounts](#accounts) (
|
|
37
|
+
- [accounts](#accounts) (22)
|
|
38
38
|
- [ad-audiences](#ad-audiences) (5)
|
|
39
39
|
- [ad-connections](#ad-connections) (6)
|
|
40
40
|
- [agent](#agent) (1)
|
|
@@ -165,6 +165,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
165
165
|
- [dashboard](#dashboard) (1)
|
|
166
166
|
- [dashboards](#dashboards) (8)
|
|
167
167
|
- [data-retention](#data-retention) (2)
|
|
168
|
+
- [deleted-accounts](#deleted-accounts) (1)
|
|
168
169
|
- [deliverability-rules](#deliverability-rules) (1)
|
|
169
170
|
- [delivery-defaults](#delivery-defaults) (3)
|
|
170
171
|
- [delivery-settings](#delivery-settings) (2)
|
|
@@ -310,10 +311,10 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
310
311
|
- [onboarding-builds](#onboarding-builds) (3)
|
|
311
312
|
- [onboarding-connect-plan](#onboarding-connect-plan) (1)
|
|
312
313
|
- [onboarding-next-step](#onboarding-next-step) (1)
|
|
313
|
-
- [opportunities](#opportunities) (
|
|
314
|
+
- [opportunities](#opportunities) (11)
|
|
314
315
|
- [opportunity-people](#opportunity-people) (4)
|
|
315
316
|
- [opportunity-settings](#opportunity-settings) (3)
|
|
316
|
-
- [opportunity-stages](#opportunity-stages) (
|
|
317
|
+
- [opportunity-stages](#opportunity-stages) (3)
|
|
317
318
|
- [optiverse-connection](#optiverse-connection) (3)
|
|
318
319
|
- [outbound-event-attendees](#outbound-event-attendees) (3)
|
|
319
320
|
- [outbound-event-suggestions](#outbound-event-suggestions) (3)
|
|
@@ -325,6 +326,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
325
326
|
- [permission-templates](#permission-templates) (5)
|
|
326
327
|
- [person-behavior](#person-behavior) (1)
|
|
327
328
|
- [person-facebook](#person-facebook) (4)
|
|
329
|
+
- [pipelines](#pipelines) (1)
|
|
328
330
|
- [placement-seed-sharing](#placement-seed-sharing) (2)
|
|
329
331
|
- [placement-tests](#placement-tests) (4)
|
|
330
332
|
- [portal-sessions](#portal-sessions) (1)
|
|
@@ -671,6 +673,12 @@ Delete an account. `DELETE /v1/accounts/{accountId}`. Beta: needs `accounts`.
|
|
|
671
673
|
|
|
672
674
|
Flags: `--account-id` (required), `--each`, `--concurrency`.
|
|
673
675
|
|
|
676
|
+
### kenso accounts export
|
|
677
|
+
|
|
678
|
+
Export the accounts a selection matches as CSV. `POST /v1/accounts/export`. Beta: needs `accounts` and `crm_import_export`.
|
|
679
|
+
|
|
680
|
+
Flags: `--search`, `--time-zone`, `--include-import-only`, `--sort`, `--no-include-import-only`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
681
|
+
|
|
674
682
|
### kenso accounts facets
|
|
675
683
|
|
|
676
684
|
Count accounts per filter value for the filter panel. `POST /v1/accounts/facets`. Beta: needs `accounts`.
|
|
@@ -731,6 +739,12 @@ Research an account, or return its research when it is fresh. `POST /v1/accounts
|
|
|
731
739
|
|
|
732
740
|
Flags: `--account-id` (required), `--force`, `--no-force`, `--data`, `--each`, `--concurrency`.
|
|
733
741
|
|
|
742
|
+
### kenso accounts restore
|
|
743
|
+
|
|
744
|
+
Restore a deleted account. `POST /v1/accounts/{accountId}/restore`. Beta: needs `accounts` and `crm_import_export`.
|
|
745
|
+
|
|
746
|
+
Flags: `--account-id` (required), `--each`, `--concurrency`.
|
|
747
|
+
|
|
734
748
|
### kenso accounts search
|
|
735
749
|
|
|
736
750
|
Search accounts in the current workspace with filter conditions and AND / OR groups. `POST /v1/accounts/search` (a list). Beta: needs `accounts`.
|
|
@@ -3839,6 +3853,14 @@ Change the workspace's data retention period. `PATCH /v1/data-retention`. Beta:
|
|
|
3839
3853
|
|
|
3840
3854
|
Flags: `--months`, `--data`, `--each`, `--concurrency`.
|
|
3841
3855
|
|
|
3856
|
+
## deleted-accounts
|
|
3857
|
+
|
|
3858
|
+
### kenso deleted-accounts list
|
|
3859
|
+
|
|
3860
|
+
List the deleted accounts that can still be restored. `GET /v1/deleted-accounts` (a list). Beta: needs `accounts` and `crm_import_export`.
|
|
3861
|
+
|
|
3862
|
+
Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
3863
|
+
|
|
3842
3864
|
## deliverability-rules
|
|
3843
3865
|
|
|
3844
3866
|
### kenso deliverability-rules list
|
|
@@ -7487,6 +7509,12 @@ Delete an opportunity. `DELETE /v1/opportunities/{opportunityId}`. Beta: needs `
|
|
|
7487
7509
|
|
|
7488
7510
|
Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
|
|
7489
7511
|
|
|
7512
|
+
### kenso opportunities export
|
|
7513
|
+
|
|
7514
|
+
Export the opportunities a selection matches as CSV. `POST /v1/opportunities/export`. Beta: needs `crm_import_export` and `opportunities`.
|
|
7515
|
+
|
|
7516
|
+
Flags: `--account-id`, `--search`, `--time-zone`, `--sort`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
7517
|
+
|
|
7490
7518
|
### kenso opportunities fill-details
|
|
7491
7519
|
|
|
7492
7520
|
Fill an opportunity's details from its context. `POST /v1/opportunities/{opportunityId}/fill-details`. Beta: needs `opportunities`.
|
|
@@ -7595,6 +7623,12 @@ Replace the workspace's opportunity stages. `PUT /v1/opportunity-stages`. Beta:
|
|
|
7595
7623
|
|
|
7596
7624
|
Flags: `--data`, `--each`, `--concurrency`.
|
|
7597
7625
|
|
|
7626
|
+
### kenso opportunity-stages set-required-fields
|
|
7627
|
+
|
|
7628
|
+
Set the fields a deal should have in a stage. `PUT /v1/opportunity-stages/{stageKey}/required-fields`. Beta: needs `deal_stage_rules` and `opportunities`.
|
|
7629
|
+
|
|
7630
|
+
Flags: `--stage-key` (required), `--data`, `--each`, `--concurrency`.
|
|
7631
|
+
|
|
7598
7632
|
## optiverse-connection
|
|
7599
7633
|
|
|
7600
7634
|
### kenso optiverse-connection connect
|
|
@@ -8091,6 +8125,16 @@ Set a person's Facebook profile URL. `PUT /v1/people/{personId}/facebook-profile
|
|
|
8091
8125
|
|
|
8092
8126
|
Flags: `--person-id` (required), `--url`, `--data`, `--each`, `--concurrency`.
|
|
8093
8127
|
|
|
8128
|
+
## pipelines
|
|
8129
|
+
|
|
8130
|
+
### kenso pipelines stage-rules
|
|
8131
|
+
|
|
8132
|
+
List or set the fields a deal should have in each stage. API operations: `opportunity-stages.list`, `opportunity-stages.set-required-fields`. Beta: needs `opportunities` and `deal_stage_rules`.
|
|
8133
|
+
|
|
8134
|
+
Arguments: `<stage>` (optional).
|
|
8135
|
+
|
|
8136
|
+
Flags: `--default`, `--none`, `--require`.
|
|
8137
|
+
|
|
8094
8138
|
## placement-seed-sharing
|
|
8095
8139
|
|
|
8096
8140
|
### kenso placement-seed-sharing get
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.81",
|
|
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": "10e4f4eaa7e80d48e5dfe8f5851363c7d5409e25"
|
|
53
53
|
}
|