kenso 0.1.57 → 0.1.59
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/README.md +1 -1
- package/dist/kenso.js +171 -118
- package/dist/operations.json +1 -1
- package/docs/crm.md +24 -0
- package/docs/reference.md +36 -72
- package/package.json +2 -2
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 stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
|
|
11
12
|
| `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
|
|
12
13
|
|
|
13
14
|
Import accounts first, then people: `people import` never creates an account.
|
|
@@ -92,6 +93,20 @@ accountId,stage,ownerMemberId,overwritePinned
|
|
|
92
93
|
|
|
93
94
|
A row that changes a field someone pinned in the app fails as a whole (`409 conflict`, `pinned_by_user`: nothing on that record changes, the other fields of the row included), unless the row sets `overwritePinned` to `true` (or you pass `--overwrite-pinned`, only with the person's OK). Every flag of an update command: `kenso accounts update --help`.
|
|
94
95
|
|
|
96
|
+
## Search opportunities
|
|
97
|
+
|
|
98
|
+
`kenso opportunities search` works as `accounts search` does: it takes `--search`, `--sort`, `--limit`, `--cursor`, `--all`, and its lists in `--data`.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
kenso opportunities search --data '{"filters": [{"field": "stageCategory", "operator": "is", "values": ["open"]}]}' --all
|
|
102
|
+
kenso opportunities search --data '{"filters": [{"field": "ownerMemberId", "operator": "is", "values": ["none"]}, {"field": "closeDate", "operator": "is", "values": ["past_due", "next_30_days"]}]}'
|
|
103
|
+
kenso opportunities search --limit 1 --data '{"countBy": ["stage", "ownerMemberId"]}' # how many opportunities hold each value
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
- **`filters`** is a list of `{field, operator, values}`, all of which must hold. Fields: `stage` (a stage key), `stageCategory` (`open`, `won`, `lost`), `ownerMemberId`, `closeDate` (`past_due`, `next_30_days`, `later`, `none`) and `sourceCampaignId`. `operator` is `is` or `is_not`; the values of one condition are OR. `none` in `values` matches an opportunity with no owner, no source campaign or no close date.
|
|
107
|
+
- **`countBy`** takes the same field names and adds `counts` to the output: per field, every value with the number of matching opportunities that hold it.
|
|
108
|
+
- `--account-id` keeps the search to one account. `closeDate` counts days in the member's app time zone.
|
|
109
|
+
|
|
95
110
|
## Write research you gathered
|
|
96
111
|
|
|
97
112
|
`accounts write-research` and `people write-research` store research you gathered outside Kenso as the record's latest research (`PUT /v1/accounts/{accountId}/research`, `PUT /v1/people/{personId}/research`). The Research tab shows it like a Ken run, with `trigger: agent` and `researchedAt` now. Nothing is charged, and no account or person field changes: set an account's own `fitScore`, `whyNow` or `angle` with `accounts update`. They need the `accounts_research` flag and accounts edit.
|
|
@@ -140,3 +155,12 @@ kenso crm-sync-issues list --connection-id 7 --all
|
|
|
140
155
|
```
|
|
141
156
|
|
|
142
157
|
Run `kenso crm-connections --help` (or add `--all-commands` when the actions are hidden) to see every action.
|
|
158
|
+
|
|
159
|
+
## A deal's stage history
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
kenso opportunities stage-history 77
|
|
163
|
+
kenso opportunities stage-history 77 --query "entries[].{to: stageLabel, at: enteredAt, by: changedBy}"
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
It prints `GET /v1/opportunities/{id}/stage-history` as it is, the same rows as the deal page and the MCP's `opportunities(operation="get-stage-history")`: the stage now, `isComplete` and `entries`, oldest first, each with `fromStage`, `stage`, `stageLabel`, `enteredAt`, `leftAt`, `durationSeconds`, `actorKind`, `actorMemberId` and Ken's `reason` on a move its stage judge made. With the `deal_stage_rules` flag on, each entry also has `changedBy` (`member`, `agent`, `api_key`, `workflow`, `stage_judge`, `crm_sync` or `ken_automation`), `crmProvider` on a CRM sync, and on a move `fromStageLabel` and `fromStageDurationSeconds`, how long the deal sat in the stage it left. `isComplete` false means Kenso has no record of part of the history.
|
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.59 (API contracts 2452b9fbc8b9) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1630 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
|
|
|
@@ -42,7 +42,6 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
42
42
|
- [agent-sandbox-auto-run-settings](#agent-sandbox-auto-run-settings) (3)
|
|
43
43
|
- [agent-sandbox-connections](#agent-sandbox-connections) (5)
|
|
44
44
|
- [agent-sandbox-runs](#agent-sandbox-runs) (4)
|
|
45
|
-
- [agent-team](#agent-team) (9)
|
|
46
45
|
- [agent-work](#agent-work) (5)
|
|
47
46
|
- [agent-work-settings](#agent-work-settings) (2)
|
|
48
47
|
- [ai-assist-reservations](#ai-assist-reservations) (1)
|
|
@@ -51,6 +50,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
51
50
|
- [ai-line-holds](#ai-line-holds) (2)
|
|
52
51
|
- [ai-lines](#ai-lines) (3)
|
|
53
52
|
- [ai-runs](#ai-runs) (5)
|
|
53
|
+
- [ai-topups](#ai-topups) (1)
|
|
54
54
|
- [airtable-bases](#airtable-bases) (1)
|
|
55
55
|
- [airtable-records](#airtable-records) (1)
|
|
56
56
|
- [airtable-tables](#airtable-tables) (1)
|
|
@@ -302,7 +302,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
302
302
|
- [onboarding-builds](#onboarding-builds) (3)
|
|
303
303
|
- [onboarding-connect-plan](#onboarding-connect-plan) (1)
|
|
304
304
|
- [onboarding-next-step](#onboarding-next-step) (1)
|
|
305
|
-
- [opportunities](#opportunities) (
|
|
305
|
+
- [opportunities](#opportunities) (10)
|
|
306
306
|
- [opportunity-people](#opportunity-people) (4)
|
|
307
307
|
- [opportunity-settings](#opportunity-settings) (3)
|
|
308
308
|
- [opportunity-stages](#opportunity-stages) (2)
|
|
@@ -908,62 +908,6 @@ List your sandbox runs. `GET /v1/agent-sandbox-runs` (a list). Beta: needs `agen
|
|
|
908
908
|
|
|
909
909
|
Flags: `--active`, `--cursor`, `--limit`, `--no-active`, `--all`, `--each`, `--concurrency`.
|
|
910
910
|
|
|
911
|
-
## agent-team
|
|
912
|
-
|
|
913
|
-
### kenso agent-team create-action
|
|
914
|
-
|
|
915
|
-
Request a bounded change to a campaign. `POST /v1/agent-team/actions`. Beta: needs `agent_templates`.
|
|
916
|
-
|
|
917
|
-
Flags: `--kind`, `--campaign-id`, `--reason`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
|
|
918
|
-
|
|
919
|
-
### kenso agent-team create-proposal
|
|
920
|
-
|
|
921
|
-
Create a proposal. `POST /v1/agent-team/proposals`. Beta: needs `agent_templates`.
|
|
922
|
-
|
|
923
|
-
Flags: `--kind`, `--campaign-id`, `--title`, `--reason`, `--client-yes`, `--urgent`, `--no-urgent`, `--data`, `--each`, `--concurrency`.
|
|
924
|
-
|
|
925
|
-
### kenso agent-team get-runway
|
|
926
|
-
|
|
927
|
-
Get the lead runway of live campaigns. `GET /v1/agent-team/runway`. Beta: needs `agent_templates`.
|
|
928
|
-
|
|
929
|
-
Flags: `--campaign-id`, `--each`, `--concurrency`.
|
|
930
|
-
|
|
931
|
-
### kenso agent-team get-settings
|
|
932
|
-
|
|
933
|
-
Return the workspace's agent settings. `GET /v1/agent-team/settings`. Beta: needs `agent_templates`.
|
|
934
|
-
|
|
935
|
-
Flags: `--each`, `--concurrency`.
|
|
936
|
-
|
|
937
|
-
### kenso agent-team list-changes
|
|
938
|
-
|
|
939
|
-
List the changes since your last call. `GET /v1/agent-team/changes`. Beta: needs `agent_templates`.
|
|
940
|
-
|
|
941
|
-
Flags: `--campaign-id`, `--since`, `--each`, `--concurrency`.
|
|
942
|
-
|
|
943
|
-
### kenso agent-team list-proposals
|
|
944
|
-
|
|
945
|
-
List proposals. `GET /v1/agent-team/proposals` (a list). Beta: needs `agent_templates`.
|
|
946
|
-
|
|
947
|
-
Flags: `--campaign-id`, `--cursor`, `--limit`, `--status`, `--all`, `--each`, `--concurrency`.
|
|
948
|
-
|
|
949
|
-
### kenso agent-team list-templates
|
|
950
|
-
|
|
951
|
-
List the agent templates. `GET /v1/agent-team/templates`. Beta: needs `agent_templates`.
|
|
952
|
-
|
|
953
|
-
Flags: `--each`, `--concurrency`.
|
|
954
|
-
|
|
955
|
-
### kenso agent-team undo-action
|
|
956
|
-
|
|
957
|
-
Undo an agent action. `POST /v1/agent-team/actions/{actionId}/undo`. Beta: needs `agent_templates`.
|
|
958
|
-
|
|
959
|
-
Flags: `--action-id` (required), `--each`, `--concurrency`.
|
|
960
|
-
|
|
961
|
-
### kenso agent-team update-settings
|
|
962
|
-
|
|
963
|
-
Set the workspace's target and runway. `PATCH /v1/agent-team/settings`. Beta: needs `agent_templates`.
|
|
964
|
-
|
|
965
|
-
Flags: `--target-interested-per-week`, `--runway-days`, `--data`, `--each`, `--concurrency`.
|
|
966
|
-
|
|
967
911
|
## agent-work
|
|
968
912
|
|
|
969
913
|
### kenso agent-work create-agent-key
|
|
@@ -1124,6 +1068,14 @@ Reset an AI flow for chosen contacts. `POST /v1/campaigns/{campaignId}/ai-runs/r
|
|
|
1124
1068
|
|
|
1125
1069
|
Flags: `--campaign-id` (required), `--flow`, `--data`, `--each`, `--concurrency`.
|
|
1126
1070
|
|
|
1071
|
+
## ai-topups
|
|
1072
|
+
|
|
1073
|
+
### kenso ai-topups create
|
|
1074
|
+
|
|
1075
|
+
Buy an AI top-up. `POST /v1/billing/ai-topups`.
|
|
1076
|
+
|
|
1077
|
+
Flags: `--each`, `--concurrency`.
|
|
1078
|
+
|
|
1127
1079
|
## airtable-bases
|
|
1128
1080
|
|
|
1129
1081
|
### kenso airtable-bases list
|
|
@@ -1310,25 +1262,25 @@ Flags: `--approval-test-id` (required), `--each`, `--concurrency`.
|
|
|
1310
1262
|
|
|
1311
1263
|
### kenso approvals bulk-decide
|
|
1312
1264
|
|
|
1313
|
-
Decide many LinkedIn note, connection request or engagement approvals at once. `POST /v1/approvals/decisions`. Beta: needs one of `accounts`, `
|
|
1265
|
+
Decide many LinkedIn note, connection request or engagement approvals at once. `POST /v1/approvals/decisions`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
|
|
1314
1266
|
|
|
1315
1267
|
Flags: `--action`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
|
|
1316
1268
|
|
|
1317
1269
|
### kenso approvals decide
|
|
1318
1270
|
|
|
1319
|
-
Approve, edit, snooze or skip an approval. `POST /v1/approvals/{approvalId}/decisions`. Beta: needs one of `accounts`, `
|
|
1271
|
+
Approve, edit, snooze or skip an approval. `POST /v1/approvals/{approvalId}/decisions`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
|
|
1320
1272
|
|
|
1321
1273
|
Flags: `--approval-id` (required), `--action`, `--updated-at`, `--recipient-version`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
|
|
1322
1274
|
|
|
1323
1275
|
### kenso approvals get
|
|
1324
1276
|
|
|
1325
|
-
Return one approval. `GET /v1/approvals/{approvalId}`. Beta: needs one of `accounts`, `
|
|
1277
|
+
Return one approval. `GET /v1/approvals/{approvalId}`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
|
|
1326
1278
|
|
|
1327
1279
|
Flags: `--approval-id` (required), `--each`, `--concurrency`.
|
|
1328
1280
|
|
|
1329
1281
|
### kenso approvals list
|
|
1330
1282
|
|
|
1331
|
-
List approvals. `GET /v1/approvals`. Beta: needs one of `accounts`, `
|
|
1283
|
+
List approvals. `GET /v1/approvals`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
|
|
1332
1284
|
|
|
1333
1285
|
Flags: `--account-id`, `--ids`, `--limit`, `--type`, `--each`, `--concurrency`.
|
|
1334
1286
|
|
|
@@ -2804,9 +2756,9 @@ Report how account-play protection affects a campaign. `GET /v1/campaigns/{campa
|
|
|
2804
2756
|
|
|
2805
2757
|
Flags: `--campaign-id` (required), `--each`, `--concurrency`.
|
|
2806
2758
|
|
|
2807
|
-
### kenso campaigns get-
|
|
2759
|
+
### kenso campaigns get-agent-work
|
|
2808
2760
|
|
|
2809
|
-
|
|
2761
|
+
Get the campaign's agent work overrides. `GET /v1/campaigns/{campaignId}/agent-work`. Beta: needs `agent_work`.
|
|
2810
2762
|
|
|
2811
2763
|
Flags: `--campaign-id` (required), `--each`, `--concurrency`.
|
|
2812
2764
|
|
|
@@ -2906,12 +2858,6 @@ Replace a campaign's AI workflows. `PUT /v1/campaigns/{campaignId}/ai-workflows`
|
|
|
2906
2858
|
|
|
2907
2859
|
Flags: `--campaign-id` (required), `--data`, `--each`, `--concurrency`.
|
|
2908
2860
|
|
|
2909
|
-
### kenso campaigns replace-autopilot
|
|
2910
|
-
|
|
2911
|
-
Turn the campaign's Autopilot on or off, and set its audience and weekly top-up limit. `PUT /v1/campaigns/{campaignId}/autopilot`. Beta: needs `agent_templates`.
|
|
2912
|
-
|
|
2913
|
-
Flags: `--campaign-id` (required), `--enabled`, `--client-yes`, `--clear-audience`, `--weekly-top-up-limit`, `--no-enabled`, `--no-clear-audience`, `--data`, `--each`, `--concurrency`.
|
|
2914
|
-
|
|
2915
2861
|
### kenso campaigns replace-inboxes
|
|
2916
2862
|
|
|
2917
2863
|
Replace a campaign's inboxes. `PUT /v1/campaigns/{campaignId}/inboxes`.
|
|
@@ -2984,6 +2930,12 @@ Update a campaign. `PATCH /v1/campaigns/{campaignId}`.
|
|
|
2984
2930
|
|
|
2985
2931
|
Flags: `--campaign-id` (required), `--name`, `--contact-limit`, `--sending-start-time`, `--sending-end-time`, `--sending-timezone`, `--max-emails-per-day`, `--owner-member-id`, `--stop-on-reply`, `--track-clicks`, `--track-opens`, `--unsubscribe-link`, `--send-as-plain-text`, `--protect-account-plays`, `--ramp-up-days`, `--stop-company-on-reply`, `--group-same-company-sends`, `--new-leads-first`, `--catch-all-lane-enabled`, `--booking-meeting-type-id`, `--reply-to`, `--role-id`, `--source-language`, `--language-mode`, `--language-fallback`, `--mode`, `--auto-launch-when-ready`, `--no-stop-on-reply`, `--no-track-clicks`, `--no-track-opens`, `--no-unsubscribe-link`, `--no-send-as-plain-text`, `--no-protect-account-plays`, `--no-stop-company-on-reply`, `--no-group-same-company-sends`, `--no-new-leads-first`, `--no-catch-all-lane-enabled`, `--no-auto-launch-when-ready`, `--data`, `--each`, `--concurrency`.
|
|
2986
2932
|
|
|
2933
|
+
### kenso campaigns update-agent-work
|
|
2934
|
+
|
|
2935
|
+
Update the campaign's agent work overrides. `PATCH /v1/campaigns/{campaignId}/agent-work`. Beta: needs `agent_work`.
|
|
2936
|
+
|
|
2937
|
+
Flags: `--campaign-id` (required), `--data`, `--each`, `--concurrency`.
|
|
2938
|
+
|
|
2987
2939
|
## checkout-sessions
|
|
2988
2940
|
|
|
2989
2941
|
### kenso checkout-sessions create
|
|
@@ -7282,6 +7234,18 @@ List opportunities in the current workspace. `GET /v1/opportunities` (a list). B
|
|
|
7282
7234
|
|
|
7283
7235
|
Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--owner-member-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--all`, `--each`, `--concurrency`.
|
|
7284
7236
|
|
|
7237
|
+
### kenso opportunities search
|
|
7238
|
+
|
|
7239
|
+
Search opportunities in the current workspace with filter conditions, and count them per value. `POST /v1/opportunities/search` (a list). Beta: needs `opportunities`.
|
|
7240
|
+
|
|
7241
|
+
Flags: `--account-id`, `--search`, `--time-zone`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-include-total`, `--data`, `--all`, `--each`, `--concurrency`.
|
|
7242
|
+
|
|
7243
|
+
### kenso opportunities stage-history
|
|
7244
|
+
|
|
7245
|
+
Show a deal's stage history: each stage, when, who moved it and how long it sat there. `GET /v1/opportunities/{opportunityId}/stage-history`. Beta: needs `opportunities`.
|
|
7246
|
+
|
|
7247
|
+
Arguments: `<opportunityId>`.
|
|
7248
|
+
|
|
7285
7249
|
### kenso opportunities update
|
|
7286
7250
|
|
|
7287
7251
|
Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
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": "aebfc2805ded41f30cb175766d388b8a370ac0ee"
|
|
53
53
|
}
|