kenso 0.1.97 → 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/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 |
@@ -25,6 +25,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
25
25
  | `capture teammates-see summary\|full_email` | Workspace admin: what teammates see of captured email |
26
26
  | `pipelines stage-rules` | List or set the fields a deal should have in each stage |
27
27
  | `opportunity-reasons get`, `opportunity-reasons replace` | List or edit why deals are lost and won |
28
+ | `layouts show\|set\|reset <object>` | How every account, person or deal page in the workspace lays out its fields: header, rail sections and hidden fields (needs `record_layout`) |
28
29
  | `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
29
30
  | `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`) |
30
31
 
@@ -255,6 +256,23 @@ kenso pipelines restore --pipeline-id 6
255
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.
256
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.
257
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
+
258
276
  ## Restore a deleted account
259
277
 
260
278
  ```bash
@@ -331,6 +349,19 @@ kenso opportunities move 4401 --stage lost --reason built_it_in_house
331
349
 
332
350
  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`.
333
351
 
352
+ ## Record page layouts
353
+
354
+ ```bash
355
+ kenso layouts show account
356
+ kenso layouts set account --header tier,ownerMemberId,score,custom.arr
357
+ kenso layouts show account > layout.json && kenso layouts set account --data @layout.json
358
+ kenso layouts reset account
359
+ ```
360
+
361
+ With the `record_layout` flag on, a workspace lays out each record page once, for every member: `account`, `person` or `opportunity` (a deal). `show` prints `GET /v1/record-layouts/{object}`: `isDefault`, `version`, `headerFields` (up to 6, pinned under the record's name), `railSections` (`{name, fields}`), `hiddenFields` (under the rail's More), `sections` (`{key, label, placement, locked, hidden}`, in page order) and `availableFields`. Field keys are the field catalog's (`ownerMemberId`, `closeDate`, `primaryDomain`); a custom field is `custom.<field_key>`, and a new one joins the last rail section.
362
+
363
+ `set --header` pins up to 6 fields and keeps the rest of the saved layout; the fields it unpins go to the top of the first rail section. `set --data` saves a whole layout, so group the rail into sections or hide a section that way, starting from `show`. A save made after someone else's answers a conflict: show it again. `reset` puts the page back to Kenso's default. Saving needs the `workspace_settings` permission, and the account page also needs the `accounts` plan. The same as the MCP's `account_views` operations `record-layouts-get`, `record-layouts-replace` and `record-layouts-reset`.
364
+
334
365
  ## Tasks
335
366
 
336
367
  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.97 (API contracts 85f7d9dbd3ae) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
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
- 1778 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.
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
 
@@ -253,6 +253,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
253
253
  - [knowledge-uploads](#knowledge-uploads) (2)
254
254
  - [knowledge-website-pages](#knowledge-website-pages) (3)
255
255
  - [knowledge-writing-style](#knowledge-writing-style) (2)
256
+ - [layouts](#layouts) (3)
256
257
  - [learnings](#learnings) (1)
257
258
  - [linkedin-accounts](#linkedin-accounts) (13)
258
259
  - [linkedin-connections](#linkedin-connections) (4)
@@ -338,6 +339,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
338
339
  - [pipelines](#pipelines) (7)
339
340
  - [placement-seed-sharing](#placement-seed-sharing) (2)
340
341
  - [placement-tests](#placement-tests) (4)
342
+ - [plays](#plays) (3)
341
343
  - [portal-sessions](#portal-sessions) (1)
342
344
  - [prompt-templates](#prompt-templates) (5)
343
345
  - [prompt-versions](#prompt-versions) (3)
@@ -348,6 +350,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
348
350
  - [public-claim-links](#public-claim-links) (1)
349
351
  - [public-client-approvals](#public-client-approvals) (5)
350
352
  - [public-meeting-links](#public-meeting-links) (2)
353
+ - [public-meeting-tracking](#public-meeting-tracking) (2)
351
354
  - [public-referrals](#public-referrals) (1)
352
355
  - [public-saved-list-invites](#public-saved-list-invites) (1)
353
356
  - [public-shares](#public-shares) (9)
@@ -5999,6 +6002,28 @@ Relearn your writing style. `POST /v1/knowledge/writing-style/relearn`. Beta: ne
5999
6002
 
6000
6003
  Flags: `--each`, `--concurrency`.
6001
6004
 
6005
+ ## layouts
6006
+
6007
+ ### kenso layouts reset
6008
+
6009
+ Put the account, person or deal page back to Kenso's default layout. `DELETE /v1/record-layouts/{object}`. Beta: needs `record_layout`.
6010
+
6011
+ Arguments: `<object>`.
6012
+
6013
+ ### kenso layouts set
6014
+
6015
+ Save the layout every account, person or deal page in the workspace draws. API operations: `record-layouts.get`, `record-layouts.replace`. Beta: needs `record_layout`.
6016
+
6017
+ Arguments: `<object>`.
6018
+
6019
+ Flags: `--data`, `--header`.
6020
+
6021
+ ### kenso layouts show
6022
+
6023
+ Show how the workspace's account, person or deal pages lay out their fields. `GET /v1/record-layouts/{object}`. Beta: needs `record_layout`.
6024
+
6025
+ Arguments: `<object>`.
6026
+
6002
6027
  ## learnings
6003
6028
 
6004
6029
  ### kenso learnings list
@@ -7765,7 +7790,7 @@ Flags: `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pi
7765
7790
 
7766
7791
  Create an opportunity on an account. `POST /v1/opportunities`. Beta: needs `opportunities`.
7767
7792
 
7768
- 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`.
7769
7794
 
7770
7795
  ### kenso opportunities delete
7771
7796
 
@@ -7777,7 +7802,7 @@ Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
7777
7802
 
7778
7803
  Export the opportunities a selection matches as CSV. `POST /v1/opportunities/export`. Beta: needs `crm_import_export` and `opportunities`.
7779
7804
 
7780
- 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`.
7781
7806
 
7782
7807
  ### kenso opportunities fill-details
7783
7808
 
@@ -7807,15 +7832,15 @@ Flags: `--opportunity-id` (required), `--body-dry-run`, `--no-body-dry-run`, `--
7807
7832
 
7808
7833
  List opportunities in the current workspace. `GET /v1/opportunities` (a list). Beta: needs `opportunities`.
7809
7834
 
7810
- 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`.
7811
7836
 
7812
7837
  ### kenso opportunities move
7813
7838
 
7814
- 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`.
7815
7840
 
7816
7841
  Arguments: `<opportunityId>` (optional).
7817
7842
 
7818
- Flags: `--reason`, `--stage`.
7843
+ Flags: `--overwrite-pinned`, `--pipeline`, `--reason`, `--stage`.
7819
7844
 
7820
7845
  ### kenso opportunities revenue
7821
7846
 
@@ -7827,7 +7852,7 @@ Flags: `--basis`, `--campaign-id`, `--from` (required), `--group-by`, `--to` (re
7827
7852
 
7828
7853
  Search opportunities in the current workspace with filter conditions, and count them per value. `POST /v1/opportunities/search` (a list). Beta: needs `opportunities`.
7829
7854
 
7830
- 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`.
7831
7856
 
7832
7857
  ### kenso opportunities stage-history
7833
7858
 
@@ -7839,7 +7864,7 @@ Arguments: `<opportunityId>`.
7839
7864
 
7840
7865
  Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
7841
7866
 
7842
- 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`.
7843
7868
 
7844
7869
  ## opportunity-people
7845
7870
 
@@ -8515,6 +8540,26 @@ List placement tests. `GET /v1/placement-tests` (a list).
8515
8540
 
8516
8541
  Flags: `--campaign-id`, `--cursor`, `--domain-id`, `--domain-ids`, `--inbox-id`, `--limit`, `--all`, `--each`, `--concurrency`.
8517
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
+
8518
8563
  ## portal-sessions
8519
8564
 
8520
8565
  ### kenso portal-sessions create
@@ -8733,6 +8778,20 @@ Play a recorded segment. `GET /v1/public/meeting-links/{token}/recording/{segmen
8733
8778
 
8734
8779
  Flags: `--token` (required), `--segment` (required), `--each`, `--concurrency`.
8735
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
+
8736
8795
  ## public-referrals
8737
8796
 
8738
8797
  ### kenso public-referrals get
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.97",
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": "bbb03eed038fca0c060f9ef735c2a839209a2c3e"
52
+ "gitHead": "b4e74b23a386a1e56b044b4de003ca4af47236b9"
53
53
  }