kenso 0.1.98 → 0.1.99
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 +45 -9
- 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`, the deal opens in the default pipeline.
|
|
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.99 (API contracts f1659581e423) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1786 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
|
|
|
@@ -339,6 +339,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
339
339
|
- [pipelines](#pipelines) (7)
|
|
340
340
|
- [placement-seed-sharing](#placement-seed-sharing) (2)
|
|
341
341
|
- [placement-tests](#placement-tests) (4)
|
|
342
|
+
- [plays](#plays) (3)
|
|
342
343
|
- [portal-sessions](#portal-sessions) (1)
|
|
343
344
|
- [prompt-templates](#prompt-templates) (5)
|
|
344
345
|
- [prompt-versions](#prompt-versions) (3)
|
|
@@ -349,6 +350,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
349
350
|
- [public-claim-links](#public-claim-links) (1)
|
|
350
351
|
- [public-client-approvals](#public-client-approvals) (5)
|
|
351
352
|
- [public-meeting-links](#public-meeting-links) (2)
|
|
353
|
+
- [public-meeting-tracking](#public-meeting-tracking) (2)
|
|
352
354
|
- [public-referrals](#public-referrals) (1)
|
|
353
355
|
- [public-saved-list-invites](#public-saved-list-invites) (1)
|
|
354
356
|
- [public-shares](#public-shares) (9)
|
|
@@ -7788,7 +7790,7 @@ Flags: `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pi
|
|
|
7788
7790
|
|
|
7789
7791
|
Create an opportunity on an account. `POST /v1/opportunities`. Beta: needs `opportunities`.
|
|
7790
7792
|
|
|
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`.
|
|
7793
|
+
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
7794
|
|
|
7793
7795
|
### kenso opportunities delete
|
|
7794
7796
|
|
|
@@ -7800,7 +7802,7 @@ Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
|
|
|
7800
7802
|
|
|
7801
7803
|
Export the opportunities a selection matches as CSV. `POST /v1/opportunities/export`. Beta: needs `crm_import_export` and `opportunities`.
|
|
7802
7804
|
|
|
7803
|
-
Flags: `--account-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--no-missing-fields`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
7805
|
+
Flags: `--account-id`, `--pipeline-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--no-missing-fields`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
7804
7806
|
|
|
7805
7807
|
### kenso opportunities fill-details
|
|
7806
7808
|
|
|
@@ -7830,15 +7832,15 @@ Flags: `--opportunity-id` (required), `--body-dry-run`, `--no-body-dry-run`, `--
|
|
|
7830
7832
|
|
|
7831
7833
|
List opportunities in the current workspace. `GET /v1/opportunities` (a list). Beta: needs `opportunities`.
|
|
7832
7834
|
|
|
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`.
|
|
7835
|
+
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
7836
|
|
|
7835
7837
|
### kenso opportunities move
|
|
7836
7838
|
|
|
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`.
|
|
7839
|
+
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
7840
|
|
|
7839
7841
|
Arguments: `<opportunityId>` (optional).
|
|
7840
7842
|
|
|
7841
|
-
Flags: `--reason`, `--stage`.
|
|
7843
|
+
Flags: `--overwrite-pinned`, `--pipeline`, `--reason`, `--stage`.
|
|
7842
7844
|
|
|
7843
7845
|
### kenso opportunities revenue
|
|
7844
7846
|
|
|
@@ -7850,7 +7852,7 @@ Flags: `--basis`, `--campaign-id`, `--from` (required), `--group-by`, `--to` (re
|
|
|
7850
7852
|
|
|
7851
7853
|
Search opportunities in the current workspace with filter conditions, and count them per value. `POST /v1/opportunities/search` (a list). Beta: needs `opportunities`.
|
|
7852
7854
|
|
|
7853
|
-
Flags: `--account-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-missing-fields`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
|
|
7855
|
+
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
7856
|
|
|
7855
7857
|
### kenso opportunities stage-history
|
|
7856
7858
|
|
|
@@ -7862,7 +7864,7 @@ Arguments: `<opportunityId>`.
|
|
|
7862
7864
|
|
|
7863
7865
|
Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
|
|
7864
7866
|
|
|
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`.
|
|
7867
|
+
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
7868
|
|
|
7867
7869
|
## opportunity-people
|
|
7868
7870
|
|
|
@@ -8538,6 +8540,26 @@ List placement tests. `GET /v1/placement-tests` (a list).
|
|
|
8538
8540
|
|
|
8539
8541
|
Flags: `--campaign-id`, `--cursor`, `--domain-id`, `--domain-ids`, `--inbox-id`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8540
8542
|
|
|
8543
|
+
## plays
|
|
8544
|
+
|
|
8545
|
+
### kenso plays get
|
|
8546
|
+
|
|
8547
|
+
Get one Signal Play: status, approval mode, waiting steps and the last 30 days. `GET /v1/plays/{playKey}`. Beta: needs `signal_plays` and `workflows`.
|
|
8548
|
+
|
|
8549
|
+
Flags: `--play-key` (required), `--each`, `--concurrency`.
|
|
8550
|
+
|
|
8551
|
+
### kenso plays list
|
|
8552
|
+
|
|
8553
|
+
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`.
|
|
8554
|
+
|
|
8555
|
+
Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8556
|
+
|
|
8557
|
+
### kenso plays runs-list
|
|
8558
|
+
|
|
8559
|
+
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`.
|
|
8560
|
+
|
|
8561
|
+
Flags: `--play-key` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8562
|
+
|
|
8541
8563
|
## portal-sessions
|
|
8542
8564
|
|
|
8543
8565
|
### kenso portal-sessions create
|
|
@@ -8756,6 +8778,20 @@ Play a recorded segment. `GET /v1/public/meeting-links/{token}/recording/{segmen
|
|
|
8756
8778
|
|
|
8757
8779
|
Flags: `--token` (required), `--segment` (required), `--each`, `--concurrency`.
|
|
8758
8780
|
|
|
8781
|
+
## public-meeting-tracking
|
|
8782
|
+
|
|
8783
|
+
### kenso public-meeting-tracking create-report
|
|
8784
|
+
|
|
8785
|
+
Send a meeting report from the client page. `POST /v1/public/meeting-tracking/{token}/reports`.
|
|
8786
|
+
|
|
8787
|
+
Flags: `--token` (required), `--file`, `--rows-scanned`, `--data`, `--each`, `--concurrency`.
|
|
8788
|
+
|
|
8789
|
+
### kenso public-meeting-tracking get
|
|
8790
|
+
|
|
8791
|
+
Load the meeting tracking client page. `GET /v1/public/meeting-tracking/{token}`.
|
|
8792
|
+
|
|
8793
|
+
Flags: `--token` (required), `--each`, `--concurrency`.
|
|
8794
|
+
|
|
8759
8795
|
## public-referrals
|
|
8760
8796
|
|
|
8761
8797
|
### 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.99",
|
|
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": "b4e74b23a386a1e56b044b4de003ca4af47236b9"
|
|
53
53
|
}
|