kenso 0.1.92 → 0.1.93
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 +206 -129
- package/dist/operations.json +1 -1
- package/docs/crm.md +14 -0
- package/docs/reference.md +101 -9
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -8,6 +8,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
8
8
|
| `people import` | Create or match people from a file, optionally onto accounts |
|
|
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
|
+
| `opportunities move <id> --stage <key> [--reason <key>]` | Move a deal, with its won or lost reason; a field the stage asks for never stops it |
|
|
11
12
|
| `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
|
|
12
13
|
| `deleted-accounts list`, `accounts restore <id>` | The accounts deleted in the last 30 days, and bringing one back |
|
|
13
14
|
| `export <accounts\|people\|deals>` | The list as CSV: everything, a saved Accounts view, or what the filters match |
|
|
@@ -19,6 +20,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
19
20
|
| `capture disconnect` | Turn capture off and delete your stored email bodies. Asks first; `--yes` skips the question |
|
|
20
21
|
| `capture teammates-see summary\|full_email` | Workspace admin: what teammates see of captured email |
|
|
21
22
|
| `pipelines stage-rules` | List or set the fields a deal should have in each stage |
|
|
23
|
+
| `opportunity-reasons get`, `opportunity-reasons replace` | List or edit why deals are lost and won |
|
|
22
24
|
| `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
|
|
23
25
|
| `tasks add`, `tasks done`, `tasks assign`, `tasks queue` | Add a to-do for a member on an account, person or deal, complete it, hand it on, or read your open work (needs `tasks`) |
|
|
24
26
|
|
|
@@ -254,6 +256,18 @@ kenso opportunities list --missing-fields
|
|
|
254
256
|
|
|
255
257
|
Every deal then carries `missingFields` (`[{field, label}]`). A create, or an update that sends a stage, answers `warnings` beside the deal for each field the stage asks for that the deal leaves empty: each prints on stderr as `warning: <message>`, stdout stays the deal and the exit code stays 0. `--missing-fields` keeps only the deals flagged Missing (also `missingFields: true` on `kenso opportunities search`).
|
|
256
258
|
|
|
259
|
+
## Won and lost reasons
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
kenso opportunity-reasons get
|
|
263
|
+
kenso opportunity-reasons replace --kind lost --data '{"reasons":[{"key":"no_budget","label":"No budget"},{"label":"Built it in-house"}]}'
|
|
264
|
+
kenso opportunities move 4401 --stage lost --reason built_it_in_house
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
`kenso opportunities move <id> --stage <key> [--reason <key>]` sends the reason as `lostReasonKey` for a lost stage or `wonReasonKey` for a won stage; an open stage takes none. Each field the new stage asks for that the deal leaves empty prints a warning on stderr, and the move still goes through.
|
|
268
|
+
|
|
269
|
+
With the `deal_stage_rules` flag on, each workspace edits why its deals are lost and won. `get` prints `lost` and `won`, each `{isDefault, reasons: [{key, label, isArchived}]}`. `replace` takes a kind's whole list in order, as `get` prints it: keep a reason by its `key`, leave `key` out for a new one, and set `isArchived` to archive a reason or bring one back. A reason left out is archived too: deals keep it, and no write can pick it again. At least one reason stays live and at most 30, and labels stay unique, archived ones included. A deal takes a live key in `lostReasonKey` (a lost stage) or `wonReasonKey` (a won stage). A move to Lost without a reason still goes through, with a warning and "Missing: Lost reason" on the deal. Editing the lists needs the `workspace_settings` permission. The same as the MCP's `pipelines(operation="reasons-get")` and `reasons-replace`.
|
|
270
|
+
|
|
257
271
|
## Tasks
|
|
258
272
|
|
|
259
273
|
Tasks are to-dos a member owes: a title, an optional due day or time, an assignee and at most one account, person or deal. They need the `tasks` flag. The app calls deals "Deals"; the CLI keeps `--deal` for an opportunity id.
|
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.93 (API contracts 3cbd0c9e1540) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1758 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) (25)
|
|
38
38
|
- [ad-audiences](#ad-audiences) (5)
|
|
39
39
|
- [ad-connections](#ad-connections) (6)
|
|
40
40
|
- [agent](#agent) (1)
|
|
@@ -122,6 +122,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
122
122
|
- [capture](#capture) (9)
|
|
123
123
|
- [capture-mailbox](#capture-mailbox) (4)
|
|
124
124
|
- [capture-threads](#capture-threads) (2)
|
|
125
|
+
- [changes](#changes) (6)
|
|
125
126
|
- [checkout-sessions](#checkout-sessions) (1)
|
|
126
127
|
- [checkpoints](#checkpoints) (2)
|
|
127
128
|
- [claim-links](#claim-links) (1)
|
|
@@ -316,8 +317,9 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
316
317
|
- [onboarding-builds](#onboarding-builds) (3)
|
|
317
318
|
- [onboarding-connect-plan](#onboarding-connect-plan) (1)
|
|
318
319
|
- [onboarding-next-step](#onboarding-next-step) (1)
|
|
319
|
-
- [opportunities](#opportunities) (
|
|
320
|
+
- [opportunities](#opportunities) (15)
|
|
320
321
|
- [opportunity-people](#opportunity-people) (4)
|
|
322
|
+
- [opportunity-reasons](#opportunity-reasons) (2)
|
|
321
323
|
- [opportunity-settings](#opportunity-settings) (3)
|
|
322
324
|
- [opportunity-stages](#opportunity-stages) (3)
|
|
323
325
|
- [optiverse-connection](#optiverse-connection) (3)
|
|
@@ -325,7 +327,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
325
327
|
- [outbound-event-suggestions](#outbound-event-suggestions) (3)
|
|
326
328
|
- [outbound-events](#outbound-events) (15)
|
|
327
329
|
- [outbound-site](#outbound-site) (7)
|
|
328
|
-
- [people](#people) (
|
|
330
|
+
- [people](#people) (31)
|
|
329
331
|
- [performance-deal](#performance-deal) (8)
|
|
330
332
|
- [permission-catalog](#permission-catalog) (1)
|
|
331
333
|
- [permission-templates](#permission-templates) (5)
|
|
@@ -664,11 +666,17 @@ Create up to 100 accounts in one call. `POST /v1/accounts/bulk-create`. Beta: ne
|
|
|
664
666
|
|
|
665
667
|
Flags: `--data`, `--each`, `--concurrency`.
|
|
666
668
|
|
|
669
|
+
### kenso accounts bulk-delete
|
|
670
|
+
|
|
671
|
+
Delete a selection of accounts in one call, as a change set. `POST /v1/accounts/bulk-delete`. Beta: needs `accounts` and `bulk_edit`.
|
|
672
|
+
|
|
673
|
+
Flags: `--all`, `--body-dry-run`, `--label`, `--source`, `--no-all`, `--no-body-dry-run`, `--data`, `--each`, `--concurrency`.
|
|
674
|
+
|
|
667
675
|
### kenso accounts bulk-update
|
|
668
676
|
|
|
669
|
-
|
|
677
|
+
Change a selection of accounts in one call: a change set, or one account type on up to 500 accounts. `POST /v1/accounts/bulk-update`. Beta: needs `accounts`.
|
|
670
678
|
|
|
671
|
-
Flags: `--account-type`, `--data`, `--each`, `--concurrency`.
|
|
679
|
+
Flags: `--all`, `--body-dry-run`, `--label`, `--source`, `--overwrite-pinned`, `--account-type`, `--no-all`, `--no-body-dry-run`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
672
680
|
|
|
673
681
|
### kenso accounts clear-why-not-now
|
|
674
682
|
|
|
@@ -3096,6 +3104,44 @@ Set your Private switch for one captured thread. `PATCH /v1/capture/threads/{thr
|
|
|
3096
3104
|
|
|
3097
3105
|
Flags: `--thread-id` (required), `--is-private`, `--no-is-private`, `--data`, `--each`, `--concurrency`.
|
|
3098
3106
|
|
|
3107
|
+
## changes
|
|
3108
|
+
|
|
3109
|
+
### kenso changes apply
|
|
3110
|
+
|
|
3111
|
+
Apply a previewed change. `POST /v1/changes/{changeId}/apply`. Beta: needs `bulk_edit`.
|
|
3112
|
+
|
|
3113
|
+
Flags: `--change-id` (required), `--each`, `--concurrency`.
|
|
3114
|
+
|
|
3115
|
+
### kenso changes cancel
|
|
3116
|
+
|
|
3117
|
+
Stop a change. `POST /v1/changes/{changeId}/cancel`. Beta: needs `bulk_edit`.
|
|
3118
|
+
|
|
3119
|
+
Flags: `--change-id` (required), `--each`, `--concurrency`.
|
|
3120
|
+
|
|
3121
|
+
### kenso changes get
|
|
3122
|
+
|
|
3123
|
+
Return a change with its status and row counts. `GET /v1/changes/{changeId}`. Beta: needs `bulk_edit`.
|
|
3124
|
+
|
|
3125
|
+
Flags: `--change-id` (required), `--each`, `--concurrency`.
|
|
3126
|
+
|
|
3127
|
+
### kenso changes list
|
|
3128
|
+
|
|
3129
|
+
List the workspace's changes, newest first. `GET /v1/changes` (a list). Beta: needs `bulk_edit`.
|
|
3130
|
+
|
|
3131
|
+
Flags: `--cursor`, `--limit`, `--object`, `--all`, `--each`, `--concurrency`.
|
|
3132
|
+
|
|
3133
|
+
### kenso changes rows
|
|
3134
|
+
|
|
3135
|
+
List a change's rows. `GET /v1/changes/{changeId}/rows` (a list). Beta: needs `bulk_edit`.
|
|
3136
|
+
|
|
3137
|
+
Flags: `--change-id` (required), `--cursor`, `--limit`, `--status`, `--all`, `--each`, `--concurrency`.
|
|
3138
|
+
|
|
3139
|
+
### kenso changes undo
|
|
3140
|
+
|
|
3141
|
+
Undo a change. `POST /v1/changes/{changeId}/undo`. Beta: needs `bulk_edit`.
|
|
3142
|
+
|
|
3143
|
+
Flags: `--change-id` (required), `--each`, `--concurrency`.
|
|
3144
|
+
|
|
3099
3145
|
## checkout-sessions
|
|
3100
3146
|
|
|
3101
3147
|
### kenso checkout-sessions create
|
|
@@ -7626,11 +7672,23 @@ Flags: `--each`, `--concurrency`.
|
|
|
7626
7672
|
|
|
7627
7673
|
## opportunities
|
|
7628
7674
|
|
|
7675
|
+
### kenso opportunities bulk-delete
|
|
7676
|
+
|
|
7677
|
+
Delete a selection of opportunities in one call, as a change set. `POST /v1/opportunities/bulk-delete`. Beta: needs `bulk_edit` and `opportunities`.
|
|
7678
|
+
|
|
7679
|
+
Flags: `--all`, `--body-dry-run`, `--label`, `--source`, `--no-all`, `--no-body-dry-run`, `--data`, `--each`, `--concurrency`.
|
|
7680
|
+
|
|
7681
|
+
### kenso opportunities bulk-update
|
|
7682
|
+
|
|
7683
|
+
Change fields on a selection of opportunities in one call, as a change set. `POST /v1/opportunities/bulk-update`. Beta: needs `bulk_edit` and `opportunities`.
|
|
7684
|
+
|
|
7685
|
+
Flags: `--all`, `--body-dry-run`, `--label`, `--source`, `--overwrite-pinned`, `--no-all`, `--no-body-dry-run`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
7686
|
+
|
|
7629
7687
|
### kenso opportunities create
|
|
7630
7688
|
|
|
7631
7689
|
Create an opportunity on an account. `POST /v1/opportunities`. Beta: needs `opportunities`.
|
|
7632
7690
|
|
|
7633
|
-
Flags: `--name`, `--stage`, `--amount`, `--currency`, `--close-date`, `--owner-member-id`, `--primary-person-id`, `--next-step`, `--lost-reason`, `--lost-reason-key`, `--deal-type`, `--summary`, `--probability`, `--forecast-category`, `--forecast-category-reason`, `--account-id`, `--opened-at`, `--data`, `--each`, `--concurrency`.
|
|
7691
|
+
Flags: `--name`, `--stage`, `--amount`, `--currency`, `--close-date`, `--owner-member-id`, `--primary-person-id`, `--next-step`, `--lost-reason`, `--lost-reason-key`, `--won-reason-key`, `--deal-type`, `--summary`, `--probability`, `--forecast-category`, `--forecast-category-reason`, `--account-id`, `--opened-at`, `--data`, `--each`, `--concurrency`.
|
|
7634
7692
|
|
|
7635
7693
|
### kenso opportunities delete
|
|
7636
7694
|
|
|
@@ -7674,6 +7732,14 @@ List opportunities in the current workspace. `GET /v1/opportunities` (a list). B
|
|
|
7674
7732
|
|
|
7675
7733
|
Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--missing-fields`, `--owner-member-id`, `--person-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--no-missing-fields`, `--all`, `--each`, `--concurrency`.
|
|
7676
7734
|
|
|
7735
|
+
### kenso opportunities move
|
|
7736
|
+
|
|
7737
|
+
Move a deal to a stage, with its won or lost reason. API operations: `opportunities.update`, `opportunity-stages.list`, `pipelines.list`. Beta: needs `opportunities`.
|
|
7738
|
+
|
|
7739
|
+
Arguments: `<opportunityId>` (optional).
|
|
7740
|
+
|
|
7741
|
+
Flags: `--reason`, `--stage`.
|
|
7742
|
+
|
|
7677
7743
|
### kenso opportunities revenue
|
|
7678
7744
|
|
|
7679
7745
|
Get the revenue from Kenso report. `GET /v1/analytics/revenue`. Beta: needs `revenue_attribution`.
|
|
@@ -7696,7 +7762,7 @@ Arguments: `<opportunityId>`.
|
|
|
7696
7762
|
|
|
7697
7763
|
Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
|
|
7698
7764
|
|
|
7699
|
-
Flags: `--opportunity-id` (required), `--name`, `--stage`, `--amount`, `--currency`, `--close-date`, `--owner-member-id`, `--primary-person-id`, `--next-step`, `--lost-reason`, `--lost-reason-key`, `--deal-type`, `--summary`, `--probability`, `--forecast-category`, `--forecast-category-reason`, `--account-id`, `--source-campaign-id`, `--source-step-order`, `--overwrite-pinned`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
7765
|
+
Flags: `--opportunity-id` (required), `--name`, `--stage`, `--amount`, `--currency`, `--close-date`, `--owner-member-id`, `--primary-person-id`, `--next-step`, `--lost-reason`, `--lost-reason-key`, `--won-reason-key`, `--deal-type`, `--summary`, `--probability`, `--forecast-category`, `--forecast-category-reason`, `--account-id`, `--source-campaign-id`, `--source-step-order`, `--overwrite-pinned`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
7700
7766
|
|
|
7701
7767
|
## opportunity-people
|
|
7702
7768
|
|
|
@@ -7724,6 +7790,20 @@ Change a person's role on an opportunity, or whether they are its primary person
|
|
|
7724
7790
|
|
|
7725
7791
|
Flags: `--opportunity-person-id` (required), `--role`, `--is-primary`, `--overwrite-pinned`, `--no-is-primary`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
7726
7792
|
|
|
7793
|
+
## opportunity-reasons
|
|
7794
|
+
|
|
7795
|
+
### kenso opportunity-reasons get
|
|
7796
|
+
|
|
7797
|
+
Get the workspace's lost and won reasons: one object with both lists. `GET /v1/opportunity-reasons`. Beta: needs `deal_stage_rules` and `opportunities`.
|
|
7798
|
+
|
|
7799
|
+
Flags: `--each`, `--concurrency`.
|
|
7800
|
+
|
|
7801
|
+
### kenso opportunity-reasons replace
|
|
7802
|
+
|
|
7803
|
+
Replace the workspace's lost or won reasons. `PUT /v1/opportunity-reasons/{kind}`. Beta: needs `deal_stage_rules` and `opportunities`.
|
|
7804
|
+
|
|
7805
|
+
Flags: `--kind` (required), `--data`, `--each`, `--concurrency`.
|
|
7806
|
+
|
|
7727
7807
|
## opportunity-settings
|
|
7728
7808
|
|
|
7729
7809
|
### kenso opportunity-settings change-currency
|
|
@@ -7980,6 +8060,18 @@ Create or match up to 200 people, each optionally onto an account. `POST /v1/peo
|
|
|
7980
8060
|
|
|
7981
8061
|
Flags: `--find-emails`, `--no-find-emails`, `--data`, `--each`, `--concurrency`.
|
|
7982
8062
|
|
|
8063
|
+
### kenso people bulk-delete
|
|
8064
|
+
|
|
8065
|
+
Delete a selection of people in one call, as a change set. `POST /v1/people/bulk-delete`. Beta: needs `accounts` and `bulk_edit`.
|
|
8066
|
+
|
|
8067
|
+
Flags: `--all`, `--body-dry-run`, `--label`, `--source`, `--no-all`, `--no-body-dry-run`, `--data`, `--each`, `--concurrency`.
|
|
8068
|
+
|
|
8069
|
+
### kenso people bulk-update
|
|
8070
|
+
|
|
8071
|
+
Change fields on a selection of people in one call, as a change set. `POST /v1/people/bulk-update`. Beta: needs `accounts` and `bulk_edit`.
|
|
8072
|
+
|
|
8073
|
+
Flags: `--all`, `--body-dry-run`, `--label`, `--source`, `--overwrite-pinned`, `--no-all`, `--no-body-dry-run`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
8074
|
+
|
|
7983
8075
|
### kenso people clear-instagram
|
|
7984
8076
|
|
|
7985
8077
|
Clear a person's Instagram handle. `DELETE /v1/people/{personId}/instagram`. Beta: needs `accounts` and `instagram`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.93",
|
|
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": "26e43e541f32d26dec9eac03f742a787ed909bf4"
|
|
53
53
|
}
|