kenso 0.1.98 → 0.1.100
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 +32 -12
- package/dist/operations.json +1 -1
- package/docs/crm.md +18 -1
- package/docs/reference.md +62 -11
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -11,7 +11,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
11
11
|
| `accounts bulk-delete`, `people bulk-delete`, `opportunities bulk-delete` | Delete many records at once, by ids or by a filter, with a preview first. Not undone. Needs `bulk_edit` too |
|
|
12
12
|
| `changes list`, `get`, `rows`, `apply`, `cancel`, `undo` | Follow a bulk change, read what each record got, stop it, or put the old values back for 30 days |
|
|
13
13
|
| `accounts write-research`, `people write-research` | Store research you gathered as a record's latest research, free. `--each` writes many |
|
|
14
|
-
| `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 |
|
|
14
|
+
| `opportunities move <id> [--stage <key>] [--pipeline <pipelineId>] [--reason <key>]` | Move a deal to a stage or another pipeline, with its won or lost reason; a field the stage asks for never stops it |
|
|
15
15
|
| `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
|
|
16
16
|
| `notes list`, `notes add`, `notes edit`, `notes delete` | Notes and comments on accounts, people and deals (needs `record_notes`) |
|
|
17
17
|
| `deleted-accounts list`, `accounts restore <id>` | The accounts deleted in the last 30 days, and bringing one back |
|
|
@@ -256,6 +256,23 @@ kenso pipelines restore --pipeline-id 6
|
|
|
256
256
|
- **`update`** changes what you send. `stages` is the pipeline's whole stage list: read it with `pipelines get`, keep each stage's `key`, and add a new stage without one. A stage with live deals in it cannot be left out; archive it with `"isArchived": true` instead.
|
|
257
257
|
- **`archive`** stops new deals from entering a pipeline and keeps the deals in it. The default pipeline cannot be archived, and nothing is deleted: `restore` brings a pipeline back.
|
|
258
258
|
|
|
259
|
+
## Deals in a pipeline
|
|
260
|
+
|
|
261
|
+
A deal's stage names its pipeline, and the deal's `pipelineId` repeats it. To work one pipeline's deals, or move a deal between pipelines:
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
kenso opportunities list --pipeline-id 6
|
|
265
|
+
kenso opportunities search --pipeline-id 6 --data '{"countBy": ["stage"]}'
|
|
266
|
+
kenso opportunities create --account-id 501 --pipeline-id 6
|
|
267
|
+
kenso opportunities move 77 --pipeline 6
|
|
268
|
+
kenso opportunities move 77 --pipeline 6 --stage negotiating
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
- **`create --pipeline-id`** opens the deal in that pipeline's first live open stage. Without it, and without a `stage`, Ken reads each pipeline's `routingRule` and opens the deal in the pipeline whose rule clearly fits the account, else in the default pipeline. A pipeline you name always wins.
|
|
272
|
+
- **`move --pipeline`** alone keeps the deal's category (`open`, `won` or `lost`): it lands in that pipeline's live stage of the category with the same label as its stage now, else in the category's first live stage. The printed deal says where it landed. With `--stage`, the stage must be that pipeline's; the error lists the pipeline's stage keys otherwise.
|
|
273
|
+
- An archived pipeline takes no deal from another pipeline (`pipeline_archived`). The deals already in it still move between its stages.
|
|
274
|
+
- A move is a stage change: it writes the same history, and a stage a person set is refused with `pinned_by_user` unless you pass `--overwrite-pinned`.
|
|
275
|
+
|
|
259
276
|
## Restore a deleted account
|
|
260
277
|
|
|
261
278
|
```bash
|
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.100 (API contracts ff95e6125b0d) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1788 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
|
|
|
@@ -56,6 +56,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
56
56
|
- [airtable-records](#airtable-records) (1)
|
|
57
57
|
- [airtable-tables](#airtable-tables) (1)
|
|
58
58
|
- [analytics](#analytics) (7)
|
|
59
|
+
- [answer-starters](#answer-starters) (1)
|
|
59
60
|
- [answers](#answers) (4)
|
|
60
61
|
- [api](#api) (1)
|
|
61
62
|
- [api-key-reveals](#api-key-reveals) (1)
|
|
@@ -294,7 +295,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
294
295
|
- [meeting-public-links](#meeting-public-links) (3)
|
|
295
296
|
- [meeting-recordings](#meeting-recordings) (1)
|
|
296
297
|
- [meeting-result-hints](#meeting-result-hints) (3)
|
|
297
|
-
- [meeting-results](#meeting-results) (
|
|
298
|
+
- [meeting-results](#meeting-results) (9)
|
|
298
299
|
- [meeting-shares](#meeting-shares) (3)
|
|
299
300
|
- [meeting-types](#meeting-types) (6)
|
|
300
301
|
- [meeting-workspace-share](#meeting-workspace-share) (2)
|
|
@@ -339,6 +340,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
339
340
|
- [pipelines](#pipelines) (7)
|
|
340
341
|
- [placement-seed-sharing](#placement-seed-sharing) (2)
|
|
341
342
|
- [placement-tests](#placement-tests) (4)
|
|
343
|
+
- [plays](#plays) (3)
|
|
342
344
|
- [portal-sessions](#portal-sessions) (1)
|
|
343
345
|
- [prompt-templates](#prompt-templates) (5)
|
|
344
346
|
- [prompt-versions](#prompt-versions) (3)
|
|
@@ -349,6 +351,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
349
351
|
- [public-claim-links](#public-claim-links) (1)
|
|
350
352
|
- [public-client-approvals](#public-client-approvals) (5)
|
|
351
353
|
- [public-meeting-links](#public-meeting-links) (2)
|
|
354
|
+
- [public-meeting-tracking](#public-meeting-tracking) (2)
|
|
352
355
|
- [public-referrals](#public-referrals) (1)
|
|
353
356
|
- [public-saved-list-invites](#public-saved-list-invites) (1)
|
|
354
357
|
- [public-shares](#public-shares) (9)
|
|
@@ -774,7 +777,7 @@ Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--ha
|
|
|
774
777
|
|
|
775
778
|
Merge an account into another account that is the same company. `POST /v1/accounts/{accountId}/merge`. Beta: needs `accounts`.
|
|
776
779
|
|
|
777
|
-
Flags: `--account-id` (required), `--into-account-id`, `--data`, `--each`, `--concurrency`.
|
|
780
|
+
Flags: `--account-id` (required), `--into-account-id`, `--body-dry-run`, `--no-body-dry-run`, `--data`, `--each`, `--concurrency`.
|
|
778
781
|
|
|
779
782
|
### kenso accounts research
|
|
780
783
|
|
|
@@ -1218,6 +1221,14 @@ Run an analytics query. `POST /v1/analytics/query`. Beta: needs `generative_ui`.
|
|
|
1218
1221
|
|
|
1219
1222
|
Flags: `--compare-to`, `--time-zone`, `--limit`, `--rate-basis`, `--data`, `--each`, `--concurrency`.
|
|
1220
1223
|
|
|
1224
|
+
## answer-starters
|
|
1225
|
+
|
|
1226
|
+
### kenso answer-starters list
|
|
1227
|
+
|
|
1228
|
+
List the Ask Ken starter questions. `GET /v1/answer-starters` (a list). Beta: needs `ask_ken_citations` and `generative_ui`.
|
|
1229
|
+
|
|
1230
|
+
Flags: `--account-id`, `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
1231
|
+
|
|
1221
1232
|
## answers
|
|
1222
1233
|
|
|
1223
1234
|
### kenso answers act
|
|
@@ -7010,6 +7021,12 @@ List the workspace's attributed meetings. `GET /v1/meeting-results` (a list). Be
|
|
|
7010
7021
|
|
|
7011
7022
|
Flags: `--attribution`, `--billable`, `--campaign-id`, `--contact-id`, `--credit-kind`, `--cursor`, `--ledger`, `--limit`, `--month`, `--outcome`, `--status`, `--no-billable`, `--all`, `--each`, `--concurrency`.
|
|
7012
7023
|
|
|
7024
|
+
### kenso meeting-results list-touches
|
|
7025
|
+
|
|
7026
|
+
List the touches behind a meeting. `GET /v1/meeting-results/{meetingResultId}/touches`. Beta: needs `meeting_attribution`.
|
|
7027
|
+
|
|
7028
|
+
Flags: `--meeting-result-id` (required), `--each`, `--concurrency`.
|
|
7029
|
+
|
|
7013
7030
|
### kenso meeting-results no-show
|
|
7014
7031
|
|
|
7015
7032
|
Mark a meeting a no-show. `POST /v1/meeting-results/{meetingResultId}/no-show`. Beta: needs `meeting_results`.
|
|
@@ -7788,7 +7805,7 @@ Flags: `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pi
|
|
|
7788
7805
|
|
|
7789
7806
|
Create an opportunity on an account. `POST /v1/opportunities`. Beta: needs `opportunities`.
|
|
7790
7807
|
|
|
7791
|
-
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`.
|
|
7808
|
+
Flags: `--name`, `--stage`, `--pipeline-id`, `--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`.
|
|
7792
7809
|
|
|
7793
7810
|
### kenso opportunities delete
|
|
7794
7811
|
|
|
@@ -7800,7 +7817,7 @@ Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
|
|
|
7800
7817
|
|
|
7801
7818
|
Export the opportunities a selection matches as CSV. `POST /v1/opportunities/export`. Beta: needs `crm_import_export` and `opportunities`.
|
|
7802
7819
|
|
|
7803
|
-
Flags: `--account-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--no-missing-fields`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
7820
|
+
Flags: `--account-id`, `--pipeline-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--no-missing-fields`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
7804
7821
|
|
|
7805
7822
|
### kenso opportunities fill-details
|
|
7806
7823
|
|
|
@@ -7830,15 +7847,15 @@ Flags: `--opportunity-id` (required), `--body-dry-run`, `--no-body-dry-run`, `--
|
|
|
7830
7847
|
|
|
7831
7848
|
List opportunities in the current workspace. `GET /v1/opportunities` (a list). Beta: needs `opportunities`.
|
|
7832
7849
|
|
|
7833
|
-
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`.
|
|
7850
|
+
Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--missing-fields`, `--owner-member-id`, `--person-id`, `--pipeline-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--no-missing-fields`, `--all`, `--each`, `--concurrency`.
|
|
7834
7851
|
|
|
7835
7852
|
### kenso opportunities move
|
|
7836
7853
|
|
|
7837
|
-
Move a deal to a stage, with its won or lost reason. API operations: `opportunities.update`, `opportunity-stages.list`, `pipelines.list`. Beta: needs `opportunities`.
|
|
7854
|
+
Move a deal to a stage or another pipeline, with its won or lost reason. API operations: `opportunities.update`, `opportunity-stages.list`, `pipelines.list`. Beta: needs `opportunities`.
|
|
7838
7855
|
|
|
7839
7856
|
Arguments: `<opportunityId>` (optional).
|
|
7840
7857
|
|
|
7841
|
-
Flags: `--reason`, `--stage`.
|
|
7858
|
+
Flags: `--overwrite-pinned`, `--pipeline`, `--reason`, `--stage`.
|
|
7842
7859
|
|
|
7843
7860
|
### kenso opportunities revenue
|
|
7844
7861
|
|
|
@@ -7850,7 +7867,7 @@ Flags: `--basis`, `--campaign-id`, `--from` (required), `--group-by`, `--to` (re
|
|
|
7850
7867
|
|
|
7851
7868
|
Search opportunities in the current workspace with filter conditions, and count them per value. `POST /v1/opportunities/search` (a list). Beta: needs `opportunities`.
|
|
7852
7869
|
|
|
7853
|
-
Flags: `--account-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-missing-fields`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
|
|
7870
|
+
Flags: `--account-id`, `--pipeline-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-missing-fields`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
|
|
7854
7871
|
|
|
7855
7872
|
### kenso opportunities stage-history
|
|
7856
7873
|
|
|
@@ -7862,7 +7879,7 @@ Arguments: `<opportunityId>`.
|
|
|
7862
7879
|
|
|
7863
7880
|
Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
|
|
7864
7881
|
|
|
7865
|
-
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`.
|
|
7882
|
+
Flags: `--opportunity-id` (required), `--name`, `--stage`, `--pipeline-id`, `--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`.
|
|
7866
7883
|
|
|
7867
7884
|
## opportunity-people
|
|
7868
7885
|
|
|
@@ -8538,6 +8555,26 @@ List placement tests. `GET /v1/placement-tests` (a list).
|
|
|
8538
8555
|
|
|
8539
8556
|
Flags: `--campaign-id`, `--cursor`, `--domain-id`, `--domain-ids`, `--inbox-id`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8540
8557
|
|
|
8558
|
+
## plays
|
|
8559
|
+
|
|
8560
|
+
### kenso plays get
|
|
8561
|
+
|
|
8562
|
+
Get one Signal Play: status, approval mode, waiting steps and the last 30 days. `GET /v1/plays/{playKey}`. Beta: needs `signal_plays` and `workflows`.
|
|
8563
|
+
|
|
8564
|
+
Flags: `--play-key` (required), `--each`, `--concurrency`.
|
|
8565
|
+
|
|
8566
|
+
### kenso plays list
|
|
8567
|
+
|
|
8568
|
+
List the Signal Plays: status, approval mode and the last 30 days of each. `GET /v1/plays` (a list). Beta: needs `signal_plays` and `workflows`.
|
|
8569
|
+
|
|
8570
|
+
Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8571
|
+
|
|
8572
|
+
### kenso plays runs-list
|
|
8573
|
+
|
|
8574
|
+
List a Signal Play's runs in the last 90 days, newest first. `GET /v1/plays/{playKey}/runs` (a list). Beta: needs `signal_plays` and `workflows`.
|
|
8575
|
+
|
|
8576
|
+
Flags: `--play-key` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8577
|
+
|
|
8541
8578
|
## portal-sessions
|
|
8542
8579
|
|
|
8543
8580
|
### kenso portal-sessions create
|
|
@@ -8756,6 +8793,20 @@ Play a recorded segment. `GET /v1/public/meeting-links/{token}/recording/{segmen
|
|
|
8756
8793
|
|
|
8757
8794
|
Flags: `--token` (required), `--segment` (required), `--each`, `--concurrency`.
|
|
8758
8795
|
|
|
8796
|
+
## public-meeting-tracking
|
|
8797
|
+
|
|
8798
|
+
### kenso public-meeting-tracking create-report
|
|
8799
|
+
|
|
8800
|
+
Send a meeting report from the client page. `POST /v1/public/meeting-tracking/{token}/reports`.
|
|
8801
|
+
|
|
8802
|
+
Flags: `--token` (required), `--file`, `--rows-scanned`, `--date-order`, `--data`, `--each`, `--concurrency`.
|
|
8803
|
+
|
|
8804
|
+
### kenso public-meeting-tracking get
|
|
8805
|
+
|
|
8806
|
+
Load the meeting tracking client page. `GET /v1/public/meeting-tracking/{token}`.
|
|
8807
|
+
|
|
8808
|
+
Flags: `--token` (required), `--each`, `--concurrency`.
|
|
8809
|
+
|
|
8759
8810
|
## public-referrals
|
|
8760
8811
|
|
|
8761
8812
|
### kenso public-referrals get
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.100",
|
|
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": "519628ef717f27e38b6591cb2e7e7a40cd74dc57"
|
|
53
53
|
}
|