kenso 0.1.91 → 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/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
 
@@ -247,6 +249,25 @@ With the `deal_stage_rules` flag on, each stage can name the fields a deal shoul
247
249
 
248
250
  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.
249
251
 
252
+ ```bash
253
+ kenso opportunities update --opportunity-id 4401 --stage proposal
254
+ kenso opportunities list --missing-fields
255
+ ```
256
+
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`).
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
+
250
271
  ## Tasks
251
272
 
252
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.91 (API contracts 59e3c968da61) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
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
- 1738 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
+ 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) (22)
37
+ - [accounts](#accounts) (25)
38
38
  - [ad-audiences](#ad-audiences) (5)
39
39
  - [ad-connections](#ad-connections) (6)
40
40
  - [agent](#agent) (1)
@@ -57,6 +57,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
57
57
  - [analytics](#analytics) (7)
58
58
  - [answers](#answers) (4)
59
59
  - [api](#api) (1)
60
+ - [api-key-reveals](#api-key-reveals) (1)
60
61
  - [api-keys](#api-keys) (5)
61
62
  - [api-requests](#api-requests) (2)
62
63
  - [apollo-lists](#apollo-lists) (1)
@@ -121,6 +122,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
121
122
  - [capture](#capture) (9)
122
123
  - [capture-mailbox](#capture-mailbox) (4)
123
124
  - [capture-threads](#capture-threads) (2)
125
+ - [changes](#changes) (6)
124
126
  - [checkout-sessions](#checkout-sessions) (1)
125
127
  - [checkpoints](#checkpoints) (2)
126
128
  - [claim-links](#claim-links) (1)
@@ -304,7 +306,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
304
306
  - [model-configurations](#model-configurations) (5)
305
307
  - [model-training](#model-training) (2)
306
308
  - [native-transcript-sources](#native-transcript-sources) (1)
307
- - [notes](#notes) (3)
309
+ - [notes](#notes) (6)
308
310
  - [notetaker-devices](#notetaker-devices) (2)
309
311
  - [notetaker-score-rubric](#notetaker-score-rubric) (3)
310
312
  - [notetaker-sessions](#notetaker-sessions) (1)
@@ -315,8 +317,9 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
315
317
  - [onboarding-builds](#onboarding-builds) (3)
316
318
  - [onboarding-connect-plan](#onboarding-connect-plan) (1)
317
319
  - [onboarding-next-step](#onboarding-next-step) (1)
318
- - [opportunities](#opportunities) (12)
320
+ - [opportunities](#opportunities) (15)
319
321
  - [opportunity-people](#opportunity-people) (4)
322
+ - [opportunity-reasons](#opportunity-reasons) (2)
320
323
  - [opportunity-settings](#opportunity-settings) (3)
321
324
  - [opportunity-stages](#opportunity-stages) (3)
322
325
  - [optiverse-connection](#optiverse-connection) (3)
@@ -324,7 +327,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
324
327
  - [outbound-event-suggestions](#outbound-event-suggestions) (3)
325
328
  - [outbound-events](#outbound-events) (15)
326
329
  - [outbound-site](#outbound-site) (7)
327
- - [people](#people) (29)
330
+ - [people](#people) (31)
328
331
  - [performance-deal](#performance-deal) (8)
329
332
  - [permission-catalog](#permission-catalog) (1)
330
333
  - [permission-templates](#permission-templates) (5)
@@ -663,11 +666,23 @@ Create up to 100 accounts in one call. `POST /v1/accounts/bulk-create`. Beta: ne
663
666
 
664
667
  Flags: `--data`, `--each`, `--concurrency`.
665
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
+
666
675
  ### kenso accounts bulk-update
667
676
 
668
- Set one account type on up to 500 accounts in one call. `POST /v1/accounts/bulk-update`. Beta: needs `accounts`.
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`.
678
+
679
+ Flags: `--all`, `--body-dry-run`, `--label`, `--source`, `--overwrite-pinned`, `--account-type`, `--no-all`, `--no-body-dry-run`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
680
+
681
+ ### kenso accounts clear-why-not-now
669
682
 
670
- Flags: `--account-type`, `--data`, `--each`, `--concurrency`.
683
+ Clear an account's why-not-now: undo its current stop or wait. `DELETE /v1/accounts/{accountId}/why-not-now`. Beta: needs `accounts`.
684
+
685
+ Flags: `--account-id` (required), `--each`, `--concurrency`.
671
686
 
672
687
  ### kenso accounts create
673
688
 
@@ -733,7 +748,7 @@ Flags: `--account-id` (required), `--each`, `--concurrency`.
733
748
 
734
749
  List accounts in the current workspace. `GET /v1/accounts` (a list). Beta: needs `accounts`.
735
750
 
736
- Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--has-open-opportunity`, `--ids`, `--is-customer`, `--latest-signal-after`, `--limit`, `--next-touch-before`, `--owner-member-id`, `--search`, `--sort`, `--stage`, `--stage-group`, `--tag-ids`, `--no-fits-icp`, `--no-has-open-opportunity`, `--no-is-customer`, `--all`, `--each`, `--concurrency`.
751
+ Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--has-open-opportunity`, `--ids`, `--is-customer`, `--latest-signal-after`, `--limit`, `--next-touch-before`, `--owner-member-id`, `--search`, `--sort`, `--stage`, `--stage-group`, `--tag-ids`, `--why-not-now`, `--no-fits-icp`, `--no-has-open-opportunity`, `--no-is-customer`, `--all`, `--each`, `--concurrency`.
737
752
 
738
753
  ### kenso accounts merge
739
754
 
@@ -759,6 +774,12 @@ Search accounts in the current workspace with filter conditions and AND / OR gro
759
774
 
760
775
  Flags: `--search`, `--time-zone`, `--include-import-only`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-include-import-only`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
761
776
 
777
+ ### kenso accounts set-why-not-now
778
+
779
+ Set an account's why-not-now: a sourced reason to stop it, or to wait until a date. `PUT /v1/accounts/{accountId}/why-not-now`. Beta: needs `accounts`.
780
+
781
+ Flags: `--account-id` (required), `--reason`, `--source-url`, `--source-date`, `--reply-id`, `--until`, `--stakeholder-id`, `--note`, `--data`, `--each`, `--concurrency`.
782
+
762
783
  ### kenso accounts update
763
784
 
764
785
  Update account fields. Absent fields stay unchanged; null clears. `PATCH /v1/accounts/{accountId}`. Beta: needs `accounts`.
@@ -1213,13 +1234,21 @@ Arguments: `<METHOD>`, `<path>`.
1213
1234
 
1214
1235
  Flags: `--all`, `--data`, `--file`, `--no-workspace`, `--out`.
1215
1236
 
1237
+ ## api-key-reveals
1238
+
1239
+ ### kenso api-key-reveals claim
1240
+
1241
+ Show a new API key's secret, once. `POST /v1/api-key-reveals/{revealId}/claim`.
1242
+
1243
+ Flags: `--reveal-id` (required), `--each`, `--concurrency`.
1244
+
1216
1245
  ## api-keys
1217
1246
 
1218
1247
  ### kenso api-keys create
1219
1248
 
1220
1249
  Create an API key. The secret is returned once. `POST /v1/api-keys`.
1221
1250
 
1222
- Flags: `--name`, `--expires-in-days`, `--template-id`, `--api-version`, `--read-only`, `--no-read-only`, `--data`, `--each`, `--concurrency`.
1251
+ Flags: `--name`, `--expires-in-days`, `--template-id`, `--api-version`, `--read-only`, `--secret-delivery`, `--no-read-only`, `--data`, `--each`, `--concurrency`.
1223
1252
 
1224
1253
  ### kenso api-keys delete
1225
1254
 
@@ -1237,7 +1266,7 @@ Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
1237
1266
 
1238
1267
  Replace one of the caller's keys with a new one, keeping the old one working for a while. `POST /v1/api-keys/{apiKeyId}/rotate`.
1239
1268
 
1240
- Flags: `--api-key-id` (required), `--overlap-hours`, `--expires-in-days`, `--data`, `--each`, `--concurrency`.
1269
+ Flags: `--api-key-id` (required), `--overlap-hours`, `--expires-in-days`, `--secret-delivery`, `--data`, `--each`, `--concurrency`.
1241
1270
 
1242
1271
  ### kenso api-keys update
1243
1272
 
@@ -3075,6 +3104,44 @@ Set your Private switch for one captured thread. `PATCH /v1/capture/threads/{thr
3075
3104
 
3076
3105
  Flags: `--thread-id` (required), `--is-private`, `--no-is-private`, `--data`, `--each`, `--concurrency`.
3077
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
+
3078
3145
  ## checkout-sessions
3079
3146
 
3080
3147
  ### kenso checkout-sessions create
@@ -7445,6 +7512,12 @@ Write a note on an account, a person or a deal, or a comment under a note. `POST
7445
7512
 
7446
7513
  Flags: `--account-id`, `--person-id`, `--opportunity-id`, `--parent-note-id`, `--body`, `--data`, `--each`, `--concurrency`.
7447
7514
 
7515
+ ### kenso notes delete
7516
+
7517
+ Delete a note or a comment. `DELETE /v1/notes/{noteId}`. Beta: needs `record_notes`.
7518
+
7519
+ Flags: `--note-id` (required), `--each`, `--concurrency`.
7520
+
7448
7521
  ### kenso notes get
7449
7522
 
7450
7523
  Return one note with its first 50 comments, or one comment. `GET /v1/notes/{noteId}`. Beta: needs `record_notes`.
@@ -7457,6 +7530,18 @@ List the notes on an account, a person or a deal. `GET /v1/notes` (a list). Beta
7457
7530
 
7458
7531
  Flags: `--account-id`, `--cursor`, `--limit`, `--opportunity-id`, `--person-id`, `--all`, `--each`, `--concurrency`.
7459
7532
 
7533
+ ### kenso notes restore
7534
+
7535
+ Restore a deleted note or comment. `POST /v1/notes/{noteId}/restore`. Beta: needs `record_notes`.
7536
+
7537
+ Flags: `--note-id` (required), `--each`, `--concurrency`.
7538
+
7539
+ ### kenso notes update
7540
+
7541
+ Edit a note's text, or pin or unpin it. `PATCH /v1/notes/{noteId}`. Beta: needs `record_notes`.
7542
+
7543
+ Flags: `--note-id` (required), `--body`, `--is-pinned`, `--no-is-pinned`, `--data`, `--each`, `--concurrency`.
7544
+
7460
7545
  ## notetaker-devices
7461
7546
 
7462
7547
  ### kenso notetaker-devices list
@@ -7587,11 +7672,23 @@ Flags: `--each`, `--concurrency`.
7587
7672
 
7588
7673
  ## opportunities
7589
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
+
7590
7687
  ### kenso opportunities create
7591
7688
 
7592
7689
  Create an opportunity on an account. `POST /v1/opportunities`. Beta: needs `opportunities`.
7593
7690
 
7594
- 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`.
7595
7692
 
7596
7693
  ### kenso opportunities delete
7597
7694
 
@@ -7603,7 +7700,7 @@ Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
7603
7700
 
7604
7701
  Export the opportunities a selection matches as CSV. `POST /v1/opportunities/export`. Beta: needs `crm_import_export` and `opportunities`.
7605
7702
 
7606
- Flags: `--account-id`, `--search`, `--time-zone`, `--sort`, `--out`, `--data`, `--each`, `--concurrency`.
7703
+ Flags: `--account-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--no-missing-fields`, `--out`, `--data`, `--each`, `--concurrency`.
7607
7704
 
7608
7705
  ### kenso opportunities fill-details
7609
7706
 
@@ -7633,7 +7730,15 @@ Flags: `--opportunity-id` (required), `--body-dry-run`, `--no-body-dry-run`, `--
7633
7730
 
7634
7731
  List opportunities in the current workspace. `GET /v1/opportunities` (a list). Beta: needs `opportunities`.
7635
7732
 
7636
- Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--owner-member-id`, `--person-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--all`, `--each`, `--concurrency`.
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`.
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`.
7637
7742
 
7638
7743
  ### kenso opportunities revenue
7639
7744
 
@@ -7645,7 +7750,7 @@ Flags: `--basis`, `--campaign-id`, `--from` (required), `--group-by`, `--to` (re
7645
7750
 
7646
7751
  Search opportunities in the current workspace with filter conditions, and count them per value. `POST /v1/opportunities/search` (a list). Beta: needs `opportunities`.
7647
7752
 
7648
- Flags: `--account-id`, `--search`, `--time-zone`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
7753
+ Flags: `--account-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-missing-fields`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
7649
7754
 
7650
7755
  ### kenso opportunities stage-history
7651
7756
 
@@ -7657,7 +7762,7 @@ Arguments: `<opportunityId>`.
7657
7762
 
7658
7763
  Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
7659
7764
 
7660
- 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`.
7661
7766
 
7662
7767
  ## opportunity-people
7663
7768
 
@@ -7685,6 +7790,20 @@ Change a person's role on an opportunity, or whether they are its primary person
7685
7790
 
7686
7791
  Flags: `--opportunity-person-id` (required), `--role`, `--is-primary`, `--overwrite-pinned`, `--no-is-primary`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
7687
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
+
7688
7807
  ## opportunity-settings
7689
7808
 
7690
7809
  ### kenso opportunity-settings change-currency
@@ -7941,6 +8060,18 @@ Create or match up to 200 people, each optionally onto an account. `POST /v1/peo
7941
8060
 
7942
8061
  Flags: `--find-emails`, `--no-find-emails`, `--data`, `--each`, `--concurrency`.
7943
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
+
7944
8075
  ### kenso people clear-instagram
7945
8076
 
7946
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.91",
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": "fd7e7166689d043f037c2e1b554fb9939e2a371f"
52
+ "gitHead": "26e43e541f32d26dec9eac03f742a787ed909bf4"
53
53
  }