kenso 0.1.86 → 0.1.88
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/CHANGELOG.md +1 -0
- package/README.md +1 -1
- package/dist/kenso.js +137 -40
- package/dist/operations.json +1 -1
- package/docs/auth.md +12 -0
- package/docs/crm.md +14 -0
- package/docs/reference.md +88 -8
- package/package.json +2 -2
package/docs/auth.md
CHANGED
|
@@ -65,6 +65,18 @@ kenso campaigns list --workspace 5678
|
|
|
65
65
|
|
|
66
66
|
`workspace list` prints one page and says on stderr when there are more: add `--all` for every page. A command that needs a workspace when none is picked fails with `workspace_required` (exit 2) and `"next":"kenso workspace list --search <name>"`.
|
|
67
67
|
|
|
68
|
+
## Workspace-owned keys
|
|
69
|
+
|
|
70
|
+
A workspace admin can create a key the workspace owns: it keeps working when the admin leaves and acts with exactly the permissions of its template (`admin`, `editor` or `viewer`). The feature is in beta and off by default, so `kenso --help` and `kenso workspace --help` hide the command until `workspace_api_keys` and `workspace_owned_api_keys` are both on for the workspace (`--all-commands` shows it, marked beta). It still runs when typed.
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
kenso workspace keys create --name "Zapier sync" --template editor --expires-in-days 90
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Today workspace keys are off for every workspace: the API answers 404, so the command prints `not_found` with "Workspace keys are not available for this workspace yet." and exits 4.
|
|
77
|
+
|
|
78
|
+
Once they are on for a workspace, no API key may create a workspace key, the one the CLI logs in with included. The command then prints the API's refusal (`forbidden`) with `"next":"A workspace admin can create it in the app: Settings > API keys > Workspace keys"` and exits 3, without retrying. A member who is not a workspace admin gets the same 403 and next step. An admin creates the key there; the secret is shown once.
|
|
79
|
+
|
|
68
80
|
## Profiles
|
|
69
81
|
|
|
70
82
|
A profile holds a key, a workspace, an optional API URL and the email. Use one per client or per key:
|
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.
|
|
3
|
+
Generated from kenso 0.1.88 (API contracts 3adf0894af2c) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1723 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
|
|
|
@@ -192,6 +192,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
192
192
|
- [external-bookings](#external-bookings) (2)
|
|
193
193
|
- [facebook-accounts](#facebook-accounts) (9)
|
|
194
194
|
- [fathom-connection](#fathom-connection) (3)
|
|
195
|
+
- [field-fill-settings](#field-fill-settings) (2)
|
|
195
196
|
- [fields](#fields) (4)
|
|
196
197
|
- [file-comments](#file-comments) (4)
|
|
197
198
|
- [files](#files) (7)
|
|
@@ -327,7 +328,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
327
328
|
- [permission-templates](#permission-templates) (5)
|
|
328
329
|
- [person-behavior](#person-behavior) (1)
|
|
329
330
|
- [person-facebook](#person-facebook) (4)
|
|
330
|
-
- [pipelines](#pipelines) (
|
|
331
|
+
- [pipelines](#pipelines) (7)
|
|
331
332
|
- [placement-seed-sharing](#placement-seed-sharing) (2)
|
|
332
333
|
- [placement-tests](#placement-tests) (4)
|
|
333
334
|
- [portal-sessions](#portal-sessions) (1)
|
|
@@ -393,6 +394,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
393
394
|
- [studio](#studio) (5)
|
|
394
395
|
- [studio-starters](#studio-starters) (2)
|
|
395
396
|
- [subscription](#subscription) (5)
|
|
397
|
+
- [suggestions](#suggestions) (4)
|
|
396
398
|
- [support-attachments](#support-attachments) (3)
|
|
397
399
|
- [sync](#sync) (4)
|
|
398
400
|
- [tags](#tags) (9)
|
|
@@ -455,8 +457,8 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
455
457
|
- [workflow-templates](#workflow-templates) (2)
|
|
456
458
|
- [workflow-versions](#workflow-versions) (4)
|
|
457
459
|
- [workflows](#workflows) (10)
|
|
458
|
-
- [workspace](#workspace) (
|
|
459
|
-
- [workspace-api-keys](#workspace-api-keys) (
|
|
460
|
+
- [workspace](#workspace) (3)
|
|
461
|
+
- [workspace-api-keys](#workspace-api-keys) (3)
|
|
460
462
|
- [workspace-data-deletions](#workspace-data-deletions) (4)
|
|
461
463
|
- [workspaces](#workspaces) (17)
|
|
462
464
|
|
|
@@ -4482,6 +4484,20 @@ Read the caller's Fathom connection. `GET /v1/integrations/fathom/connection`. B
|
|
|
4482
4484
|
|
|
4483
4485
|
Flags: `--each`, `--concurrency`.
|
|
4484
4486
|
|
|
4487
|
+
## field-fill-settings
|
|
4488
|
+
|
|
4489
|
+
### kenso field-fill-settings list
|
|
4490
|
+
|
|
4491
|
+
List the fields Ken can fill, each with its mode. `GET /v1/field-fill-settings` (a list). Beta: needs `ken_field_fill`.
|
|
4492
|
+
|
|
4493
|
+
Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
4494
|
+
|
|
4495
|
+
### kenso field-fill-settings update
|
|
4496
|
+
|
|
4497
|
+
Set how Ken treats one field. `PATCH /v1/field-fill-settings/{object}/{field}`. Beta: needs `ken_field_fill`.
|
|
4498
|
+
|
|
4499
|
+
Flags: `--object` (required), `--field` (required), `--mode`, `--instruction`, `--data`, `--each`, `--concurrency`.
|
|
4500
|
+
|
|
4485
4501
|
## fields
|
|
4486
4502
|
|
|
4487
4503
|
### kenso fields archive
|
|
@@ -7514,7 +7530,7 @@ Flags: `--each`, `--concurrency`.
|
|
|
7514
7530
|
|
|
7515
7531
|
Create an opportunity on an account. `POST /v1/opportunities`. Beta: needs `opportunities`.
|
|
7516
7532
|
|
|
7517
|
-
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`, `--data`, `--each`, `--concurrency`.
|
|
7533
|
+
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`.
|
|
7518
7534
|
|
|
7519
7535
|
### kenso opportunities delete
|
|
7520
7536
|
|
|
@@ -7574,7 +7590,7 @@ Arguments: `<opportunityId>`.
|
|
|
7574
7590
|
|
|
7575
7591
|
Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
|
|
7576
7592
|
|
|
7577
|
-
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`, `--overwrite-pinned`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
7593
|
+
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`.
|
|
7578
7594
|
|
|
7579
7595
|
## opportunity-people
|
|
7580
7596
|
|
|
@@ -8140,6 +8156,18 @@ Flags: `--person-id` (required), `--url`, `--data`, `--each`, `--concurrency`.
|
|
|
8140
8156
|
|
|
8141
8157
|
## pipelines
|
|
8142
8158
|
|
|
8159
|
+
### kenso pipelines archive
|
|
8160
|
+
|
|
8161
|
+
Archive a pipeline. `POST /v1/pipelines/{pipelineId}/archive`. Beta: needs `opportunities` and `pipelines`.
|
|
8162
|
+
|
|
8163
|
+
Flags: `--pipeline-id` (required), `--each`, `--concurrency`.
|
|
8164
|
+
|
|
8165
|
+
### kenso pipelines create
|
|
8166
|
+
|
|
8167
|
+
Create a pipeline with its stages. `POST /v1/pipelines`. Beta: needs `opportunities` and `pipelines`.
|
|
8168
|
+
|
|
8169
|
+
Flags: `--name`, `--routing-rule`, `--data`, `--each`, `--concurrency`.
|
|
8170
|
+
|
|
8143
8171
|
### kenso pipelines get
|
|
8144
8172
|
|
|
8145
8173
|
Return one pipeline with its stages. `GET /v1/pipelines/{pipelineId}`. Beta: needs `opportunities` and `pipelines`.
|
|
@@ -8152,6 +8180,12 @@ List the workspace's pipelines. `GET /v1/pipelines` (a list). Beta: needs `oppor
|
|
|
8152
8180
|
|
|
8153
8181
|
Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8154
8182
|
|
|
8183
|
+
### kenso pipelines restore
|
|
8184
|
+
|
|
8185
|
+
Restore an archived pipeline. `POST /v1/pipelines/{pipelineId}/restore`. Beta: needs `opportunities` and `pipelines`.
|
|
8186
|
+
|
|
8187
|
+
Flags: `--pipeline-id` (required), `--each`, `--concurrency`.
|
|
8188
|
+
|
|
8155
8189
|
### kenso pipelines stage-rules
|
|
8156
8190
|
|
|
8157
8191
|
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 +8194,12 @@ Arguments: `<stage>` (optional).
|
|
|
8160
8194
|
|
|
8161
8195
|
Flags: `--default`, `--none`, `--require`.
|
|
8162
8196
|
|
|
8197
|
+
### kenso pipelines update
|
|
8198
|
+
|
|
8199
|
+
Update a pipeline: its name, routing rule, place and stages. `PATCH /v1/pipelines/{pipelineId}`. Beta: needs `opportunities` and `pipelines`.
|
|
8200
|
+
|
|
8201
|
+
Flags: `--pipeline-id` (required), `--name`, `--routing-rule`, `--position`, `--data`, `--each`, `--concurrency`.
|
|
8202
|
+
|
|
8163
8203
|
## placement-seed-sharing
|
|
8164
8204
|
|
|
8165
8205
|
### kenso placement-seed-sharing get
|
|
@@ -9876,6 +9916,32 @@ Switch the billing period at the next renewal. `PATCH /v1/billing/subscription`.
|
|
|
9876
9916
|
|
|
9877
9917
|
Flags: `--interval`, `--data`, `--each`, `--concurrency`.
|
|
9878
9918
|
|
|
9919
|
+
## suggestions
|
|
9920
|
+
|
|
9921
|
+
### kenso suggestions approve
|
|
9922
|
+
|
|
9923
|
+
Approve a suggestion: write its value to the record. `POST /v1/suggestions/{suggestionId}/approve`. Beta: needs `ken_field_fill`.
|
|
9924
|
+
|
|
9925
|
+
Flags: `--suggestion-id` (required), `--data`, `--each`, `--concurrency`.
|
|
9926
|
+
|
|
9927
|
+
### kenso suggestions get
|
|
9928
|
+
|
|
9929
|
+
Return one suggestion. `GET /v1/suggestions/{suggestionId}`. Beta: needs `ken_field_fill`.
|
|
9930
|
+
|
|
9931
|
+
Flags: `--suggestion-id` (required), `--each`, `--concurrency`.
|
|
9932
|
+
|
|
9933
|
+
### kenso suggestions list
|
|
9934
|
+
|
|
9935
|
+
List Ken's suggestions in the current workspace. `GET /v1/suggestions` (a list). Beta: needs `ken_field_fill`.
|
|
9936
|
+
|
|
9937
|
+
Flags: `--account-id`, `--cursor`, `--limit`, `--meeting-id`, `--object`, `--record-id`, `--status`, `--all`, `--each`, `--concurrency`.
|
|
9938
|
+
|
|
9939
|
+
### kenso suggestions reject
|
|
9940
|
+
|
|
9941
|
+
Reject a suggestion: the record keeps its value. `POST /v1/suggestions/{suggestionId}/reject`. Beta: needs `ken_field_fill`.
|
|
9942
|
+
|
|
9943
|
+
Flags: `--suggestion-id` (required), `--reason`, `--data`, `--each`, `--concurrency`.
|
|
9944
|
+
|
|
9879
9945
|
## support-attachments
|
|
9880
9946
|
|
|
9881
9947
|
### kenso support-attachments content
|
|
@@ -11118,7 +11184,7 @@ Arguments: `<answers-file>`.
|
|
|
11118
11184
|
|
|
11119
11185
|
Write a draft from a plain-words goal. `POST /v1/workflows/build`. Beta: needs `workflows`.
|
|
11120
11186
|
|
|
11121
|
-
Flags: `--goal`, `--kind`, `--campaign-id`, `--workflow-id`, `--base-version`, `--note`, `--save`, `--no-save`, `--data`, `--each`, `--concurrency`.
|
|
11187
|
+
Flags: `--goal`, `--kind`, `--campaign-id`, `--workflow-id`, `--base-version`, `--note`, `--save`, `--ask`, `--no-save`, `--no-ask`, `--data`, `--each`, `--concurrency`.
|
|
11122
11188
|
|
|
11123
11189
|
### kenso workflow-builder compile
|
|
11124
11190
|
|
|
@@ -11450,6 +11516,14 @@ Flags: `--workflow-id` (required), `--mode`, `--data`, `--each`, `--concurrency`
|
|
|
11450
11516
|
|
|
11451
11517
|
## workspace
|
|
11452
11518
|
|
|
11519
|
+
### kenso workspace keys
|
|
11520
|
+
|
|
11521
|
+
Create an API key the workspace owns. `POST /v1/workspace-api-keys`. Beta: needs `workspace_api_keys` and `workspace_owned_api_keys`.
|
|
11522
|
+
|
|
11523
|
+
Arguments: `<action>`.
|
|
11524
|
+
|
|
11525
|
+
Flags: `--expires-in-days`, `--name` (required), `--template` (required).
|
|
11526
|
+
|
|
11453
11527
|
### kenso workspace list
|
|
11454
11528
|
|
|
11455
11529
|
List the workspaces your key can use. `GET /v1/workspaces` (a list).
|
|
@@ -11464,6 +11538,12 @@ Arguments: `<workspaceId>`.
|
|
|
11464
11538
|
|
|
11465
11539
|
## workspace-api-keys
|
|
11466
11540
|
|
|
11541
|
+
### kenso workspace-api-keys create
|
|
11542
|
+
|
|
11543
|
+
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`.
|
|
11544
|
+
|
|
11545
|
+
Flags: `--name`, `--template`, `--expires-in-days`, `--data`, `--each`, `--concurrency`.
|
|
11546
|
+
|
|
11467
11547
|
### kenso workspace-api-keys delete
|
|
11468
11548
|
|
|
11469
11549
|
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.
|
|
3
|
+
"version": "0.1.88",
|
|
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": "ac6f26c5c98b907b90f9e07cb4879d5bcbec7476"
|
|
53
53
|
}
|