kenso 0.1.86 → 0.1.87

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
@@ -190,6 +190,20 @@ kenso pipelines get --pipeline-id 5
190
190
 
191
191
  `list` prints every pipeline in display order, archived ones included: `id`, `name`, `routingRule` (the one sentence Ken reads to decide whether a new deal belongs there), `isDefault`, `isArchived`, `position`, `opportunityCount`, `amountTotal` and `stages`, each stage as `kenso opportunity-stages list` prints it. A stage key is unique in the workspace, across pipelines, so a deal's `stage` names its pipeline and its `pipelineId` repeats it. The first read turns the workspace's stage list into its default pipeline, named Sales, with every deal in it. The same rows as the MCP's `pipelines(operation="list")`.
192
192
 
193
+ Shaping them needs the `workspace_settings` permission:
194
+
195
+ ```bash
196
+ kenso pipelines create --name Renewals --routing-rule "The account is already a customer" --data '{"stages": [{"label": "Up for renewal", "category": "open"}, {"label": "Won", "category": "won"}, {"label": "Lost", "category": "lost"}]}'
197
+ kenso pipelines update --pipeline-id 6 --name Expansion --position 0
198
+ kenso pipelines update --pipeline-id 6 --data @stages.json
199
+ kenso pipelines archive --pipeline-id 6
200
+ kenso pipelines restore --pipeline-id 6
201
+ ```
202
+
203
+ - **`create`** takes a unique `name`, the pipeline's `stages` in display order (at least one `open`, one `won` and one `lost`) and an optional `routingRule`: one sentence that says which deals belong there, which Ken reads to route a new deal that names no pipeline. Each stage gets a key from its label; a key another pipeline already uses gets the pipeline's name in front (`renewals_won`). A workspace has at most 10 pipelines.
204
+ - **`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.
205
+ - **`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.
206
+
193
207
  ## Restore a deleted account
194
208
 
195
209
  ```bash
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.86 (API contracts e0457a99afe9) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.87 (API contracts b935ecce0a22) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1711 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
+ 1716 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
 
@@ -327,7 +327,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
327
327
  - [permission-templates](#permission-templates) (5)
328
328
  - [person-behavior](#person-behavior) (1)
329
329
  - [person-facebook](#person-facebook) (4)
330
- - [pipelines](#pipelines) (3)
330
+ - [pipelines](#pipelines) (7)
331
331
  - [placement-seed-sharing](#placement-seed-sharing) (2)
332
332
  - [placement-tests](#placement-tests) (4)
333
333
  - [portal-sessions](#portal-sessions) (1)
@@ -456,7 +456,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
456
456
  - [workflow-versions](#workflow-versions) (4)
457
457
  - [workflows](#workflows) (10)
458
458
  - [workspace](#workspace) (2)
459
- - [workspace-api-keys](#workspace-api-keys) (2)
459
+ - [workspace-api-keys](#workspace-api-keys) (3)
460
460
  - [workspace-data-deletions](#workspace-data-deletions) (4)
461
461
  - [workspaces](#workspaces) (17)
462
462
 
@@ -8140,6 +8140,18 @@ Flags: `--person-id` (required), `--url`, `--data`, `--each`, `--concurrency`.
8140
8140
 
8141
8141
  ## pipelines
8142
8142
 
8143
+ ### kenso pipelines archive
8144
+
8145
+ Archive a pipeline. `POST /v1/pipelines/{pipelineId}/archive`. Beta: needs `opportunities` and `pipelines`.
8146
+
8147
+ Flags: `--pipeline-id` (required), `--each`, `--concurrency`.
8148
+
8149
+ ### kenso pipelines create
8150
+
8151
+ Create a pipeline with its stages. `POST /v1/pipelines`. Beta: needs `opportunities` and `pipelines`.
8152
+
8153
+ Flags: `--name`, `--routing-rule`, `--data`, `--each`, `--concurrency`.
8154
+
8143
8155
  ### kenso pipelines get
8144
8156
 
8145
8157
  Return one pipeline with its stages. `GET /v1/pipelines/{pipelineId}`. Beta: needs `opportunities` and `pipelines`.
@@ -8152,6 +8164,12 @@ List the workspace's pipelines. `GET /v1/pipelines` (a list). Beta: needs `oppor
8152
8164
 
8153
8165
  Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
8154
8166
 
8167
+ ### kenso pipelines restore
8168
+
8169
+ Restore an archived pipeline. `POST /v1/pipelines/{pipelineId}/restore`. Beta: needs `opportunities` and `pipelines`.
8170
+
8171
+ Flags: `--pipeline-id` (required), `--each`, `--concurrency`.
8172
+
8155
8173
  ### kenso pipelines stage-rules
8156
8174
 
8157
8175
  List or set the fields a deal should have in each stage. API operations: `opportunity-stages.list`, `opportunity-stages.set-required-fields`. Beta: needs `opportunities` and `deal_stage_rules`.
@@ -8160,6 +8178,12 @@ Arguments: `<stage>` (optional).
8160
8178
 
8161
8179
  Flags: `--default`, `--none`, `--require`.
8162
8180
 
8181
+ ### kenso pipelines update
8182
+
8183
+ Update a pipeline: its name, routing rule, place and stages. `PATCH /v1/pipelines/{pipelineId}`. Beta: needs `opportunities` and `pipelines`.
8184
+
8185
+ Flags: `--pipeline-id` (required), `--name`, `--routing-rule`, `--position`, `--data`, `--each`, `--concurrency`.
8186
+
8163
8187
  ## placement-seed-sharing
8164
8188
 
8165
8189
  ### kenso placement-seed-sharing get
@@ -11464,6 +11488,12 @@ Arguments: `<workspaceId>`.
11464
11488
 
11465
11489
  ## workspace-api-keys
11466
11490
 
11491
+ ### kenso workspace-api-keys create
11492
+
11493
+ Create a workspace-owned API key. The secret is returned once. `POST /v1/workspace-api-keys`. Beta: needs `workspace_api_keys` and `workspace_owned_api_keys`.
11494
+
11495
+ Flags: `--name`, `--template`, `--expires-in-days`, `--data`, `--each`, `--concurrency`.
11496
+
11467
11497
  ### kenso workspace-api-keys delete
11468
11498
 
11469
11499
  Revoke an API key that reaches the workspace. `DELETE /v1/workspace-api-keys/{apiKeyId}`. Beta: needs `workspace_api_keys`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.86",
3
+ "version": "0.1.87",
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": "ece879b28e783ef8cd9e29e2ad4fd1fa5b4bb330"
52
+ "gitHead": "93590cecfed5719443280d962d2ed3d68398a156"
53
53
  }