kenso 0.1.55 → 0.1.56
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/dist/kenso.js +2 -2
- package/dist/operations.json +1 -1
- package/docs/crm.md +37 -0
- package/docs/reference.md +40 -7
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -7,6 +7,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
7
7
|
| `accounts import` | Create accounts from a CSV or JSONL file. Research is charged per created account |
|
|
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
|
+
| `accounts write-research`, `people write-research` | Store research you gathered as a record's latest research, free. `--each` writes many |
|
|
10
11
|
| `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
|
|
11
12
|
|
|
12
13
|
Import accounts first, then people: `people import` never creates an account.
|
|
@@ -91,6 +92,42 @@ accountId,stage,ownerMemberId,overwritePinned
|
|
|
91
92
|
|
|
92
93
|
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`.
|
|
93
94
|
|
|
95
|
+
## Write research you gathered
|
|
96
|
+
|
|
97
|
+
`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.
|
|
98
|
+
|
|
99
|
+
The body is the research block `accounts get --expand research` (or `people get-research`) returns, without its read-only fields: leave out `id`, `status`, `trigger`, `errorCode`, `researchedAt`, `isStale` and `appliedPrompt` (for a person also `mode`, `requestedAt`, `researchedMode`, `firecrawlCredits` and `webNote`), or the write fails with `unknown_field`. Pass it with `--data @file`:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
kenso accounts write-research --account-id 501 --data @acme-dossier.json
|
|
103
|
+
kenso people write-research --person-id 9001 --data @jane.json
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"tagline": { "text": "Payroll for EU contractors", "sourceUrls": ["https://acme.example"] },
|
|
109
|
+
"description": { "text": "Acme runs payroll and compliance for companies hiring contractors in 30 EU countries.", "sourceUrls": ["https://acme.example"] },
|
|
110
|
+
"links": { "website": "https://acme.example" },
|
|
111
|
+
"whyNow": { "text": "Raised a $40M Series B in October", "sourceUrls": ["https://news.example/acme-b"], "date": "2026-10" },
|
|
112
|
+
"fitScore": 82,
|
|
113
|
+
"angle": "Lead with contractor onboarding time."
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Many records: one JSONL line per record, with the id next to the block's fields. Nested objects are sent as written. Use JSONL, not CSV: the block's fields are objects and lists, which a CSV cell cannot carry.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
kenso accounts write-research --each dossiers.jsonl --dry-run # then the same with --yes
|
|
121
|
+
kenso people write-research --each people-research.jsonl --yes --concurrency 8
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
```jsonl
|
|
125
|
+
{"accountId": 501, "tagline": {"text": "Payroll for EU contractors"}, "links": {"website": "https://acme.example"}}
|
|
126
|
+
{"accountId": 502, "description": {"text": "Cloud cost tooling for retailers."}, "links": {"website": "https://beta.example"}}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
A row fails as a whole with the API's code: `validation_failed` (an unknown field is `unknown_field`, and `error.details` names every bad field), `research_in_progress` (`409`: Ken is researching that record now, write it again once the run ends) or `not_found`. Rerunning a file is safe: each write replaces the record's research shown.
|
|
130
|
+
|
|
94
131
|
## CRM sync
|
|
95
132
|
|
|
96
133
|
CRM sync has generated commands only: read connections, preview, start an import, and work through sync issues. Connect the CRM itself in the app.
|
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.56 (API contracts c666d1126c14) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1633 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) (
|
|
37
|
+
- [accounts](#accounts) (20)
|
|
38
38
|
- [ad-audiences](#ad-audiences) (5)
|
|
39
39
|
- [ad-connections](#ad-connections) (6)
|
|
40
40
|
- [agent](#agent) (1)
|
|
@@ -310,7 +310,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
310
310
|
- [outbound-event-suggestions](#outbound-event-suggestions) (3)
|
|
311
311
|
- [outbound-events](#outbound-events) (15)
|
|
312
312
|
- [outbound-site](#outbound-site) (7)
|
|
313
|
-
- [people](#people) (
|
|
313
|
+
- [people](#people) (29)
|
|
314
314
|
- [performance-deal](#performance-deal) (8)
|
|
315
315
|
- [permission-catalog](#permission-catalog) (1)
|
|
316
316
|
- [permission-templates](#permission-templates) (5)
|
|
@@ -339,6 +339,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
339
339
|
- [role-candidates](#role-candidates) (6)
|
|
340
340
|
- [roles](#roles) (6)
|
|
341
341
|
- [runs](#runs) (3)
|
|
342
|
+
- [sandboxes](#sandboxes) (3)
|
|
342
343
|
- [saved-list-invites](#saved-list-invites) (2)
|
|
343
344
|
- [saved-list-members](#saved-list-members) (1)
|
|
344
345
|
- [saved-lists](#saved-lists) (18)
|
|
@@ -730,6 +731,12 @@ Update account fields. Absent fields stay unchanged; null clears. `PATCH /v1/acc
|
|
|
730
731
|
|
|
731
732
|
Flags: `--account-id` (required), `--name`, `--stage`, `--network-label`, `--owner-member-id`, `--fit-score`, `--why-now`, `--angle`, `--cadence-days`, `--industry`, `--funding-round`, `--employee-count`, `--hq-location`, `--linkedin-url`, `--ken-company-id`, `--sends-from-inbox-id`, `--sends-from-linked-in-account-id`, `--sends-from-whats-app-account-id`, `--sends-from-facebook-account-id`, `--overwrite-pinned`, `--sends-from-instagram-account-id`, `--tier-override`, `--is-customer`, `--account-type`, `--no-overwrite-pinned`, `--no-is-customer`, `--data`, `--each`, `--concurrency`.
|
|
732
733
|
|
|
734
|
+
### kenso accounts write-research
|
|
735
|
+
|
|
736
|
+
Write an account's research: store a dossier an agent gathered as its latest research. `PUT /v1/accounts/{accountId}/research`. Beta: needs `accounts` and `accounts_research`.
|
|
737
|
+
|
|
738
|
+
Flags: `--account-id` (required), `--why-now-status`, `--angle`, `--fit-score`, `--data`, `--each`, `--concurrency`.
|
|
739
|
+
|
|
733
740
|
## ad-audiences
|
|
734
741
|
|
|
735
742
|
### kenso ad-audiences create
|
|
@@ -3332,7 +3339,7 @@ Flags: `--campaign`, `--file`, `--map`, `--out`, `--server-import`, `--template`
|
|
|
3332
3339
|
|
|
3333
3340
|
List contacts. `GET /v1/contacts` (a list).
|
|
3334
3341
|
|
|
3335
|
-
Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--search`, `--segment-id`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--each`, `--concurrency`.
|
|
3342
|
+
Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--search`, `--segment-id`, `--sort`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--each`, `--concurrency`.
|
|
3336
3343
|
|
|
3337
3344
|
### kenso contacts list-website-pages
|
|
3338
3345
|
|
|
@@ -5894,7 +5901,7 @@ Flags: `--list-id` (required), `--each`, `--concurrency`.
|
|
|
5894
5901
|
|
|
5895
5902
|
List a campaign's lists. `GET /v1/campaigns/{campaignId}/lists` (a list).
|
|
5896
5903
|
|
|
5897
|
-
Flags: `--campaign-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
5904
|
+
Flags: `--campaign-id` (required), `--created-after`, `--created-before`, `--cursor`, `--limit`, `--sort`, `--all`, `--each`, `--concurrency`.
|
|
5898
5905
|
|
|
5899
5906
|
## login
|
|
5900
5907
|
|
|
@@ -7686,6 +7693,12 @@ Add, remove or reorder a person's phones without resending the list. `PATCH /v1/
|
|
|
7686
7693
|
|
|
7687
7694
|
Flags: `--person-id` (required), `--primary`, `--overwrite-pinned`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
|
|
7688
7695
|
|
|
7696
|
+
### kenso people write-research
|
|
7697
|
+
|
|
7698
|
+
Write a person's research: store research an agent gathered as their latest research. `PUT /v1/people/{personId}/research`. Beta: needs `accounts` and `accounts_research`.
|
|
7699
|
+
|
|
7700
|
+
Flags: `--person-id` (required), `--summary`, `--data`, `--each`, `--concurrency`.
|
|
7701
|
+
|
|
7689
7702
|
## performance-deal
|
|
7690
7703
|
|
|
7691
7704
|
### kenso performance-deal archive-offer
|
|
@@ -8318,6 +8331,26 @@ Show one batch run and its files.
|
|
|
8318
8331
|
|
|
8319
8332
|
Arguments: `<runId>`.
|
|
8320
8333
|
|
|
8334
|
+
## sandboxes
|
|
8335
|
+
|
|
8336
|
+
### kenso sandboxes create
|
|
8337
|
+
|
|
8338
|
+
Create your sandbox and its first test key. `POST /v1/sandboxes`. Beta: needs `developer_sandboxes`.
|
|
8339
|
+
|
|
8340
|
+
Flags: `--each`, `--concurrency`.
|
|
8341
|
+
|
|
8342
|
+
### kenso sandboxes get
|
|
8343
|
+
|
|
8344
|
+
Get your sandbox. `GET /v1/sandboxes/{sandboxId}`. Beta: needs `developer_sandboxes`.
|
|
8345
|
+
|
|
8346
|
+
Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
|
|
8347
|
+
|
|
8348
|
+
### kenso sandboxes list
|
|
8349
|
+
|
|
8350
|
+
List your sandboxes. `GET /v1/sandboxes`. Beta: needs `developer_sandboxes`.
|
|
8351
|
+
|
|
8352
|
+
Flags: `--each`, `--concurrency`.
|
|
8353
|
+
|
|
8321
8354
|
## saved-list-invites
|
|
8322
8355
|
|
|
8323
8356
|
### kenso saved-list-invites accept
|
|
@@ -10134,7 +10167,7 @@ Flags: `--account-ids`, `--person-ids`, `--each`, `--concurrency`.
|
|
|
10134
10167
|
|
|
10135
10168
|
List an endpoint's delivery attempts. `GET /v1/webhook-endpoints/{webhookEndpointId}/deliveries` (a list).
|
|
10136
10169
|
|
|
10137
|
-
Flags: `--webhook-endpoint-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
10170
|
+
Flags: `--webhook-endpoint-id` (required), `--created-after`, `--created-before`, `--cursor`, `--limit`, `--sort`, `--all`, `--each`, `--concurrency`.
|
|
10138
10171
|
|
|
10139
10172
|
### kenso webhook-deliveries resend
|
|
10140
10173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.56",
|
|
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": "9652d611ba525a59b9f4bdf7e7b468e742f9177c"
|
|
53
53
|
}
|