kenso 0.1.55 → 0.1.57

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
@@ -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.55 (API contracts 8f4af1c9fb50) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.57 (API contracts 8d1d7ba25c1b) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1628 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
+ 1636 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) (19)
37
+ - [accounts](#accounts) (20)
38
38
  - [ad-audiences](#ad-audiences) (5)
39
39
  - [ad-connections](#ad-connections) (6)
40
40
  - [agent](#agent) (1)
@@ -262,7 +262,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
262
262
  - [loopster-search-filters](#loopster-search-filters) (1)
263
263
  - [mail-messages](#mail-messages) (2)
264
264
  - [market-profile](#market-profile) (2)
265
- - [market-stories](#market-stories) (2)
265
+ - [market-stories](#market-stories) (3)
266
266
  - [markets](#markets) (2)
267
267
  - [mcp](#mcp) (2)
268
268
  - [mcp-calls](#mcp-calls) (1)
@@ -296,6 +296,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
296
296
  - [notetaker-score-rubric](#notetaker-score-rubric) (3)
297
297
  - [notetaker-sessions](#notetaker-sessions) (1)
298
298
  - [notetaker-settings](#notetaker-settings) (2)
299
+ - [offer](#offer) (2)
299
300
  - [onboarding](#onboarding) (2)
300
301
  - [onboarding-build-inputs](#onboarding-build-inputs) (1)
301
302
  - [onboarding-builds](#onboarding-builds) (3)
@@ -310,7 +311,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
310
311
  - [outbound-event-suggestions](#outbound-event-suggestions) (3)
311
312
  - [outbound-events](#outbound-events) (15)
312
313
  - [outbound-site](#outbound-site) (7)
313
- - [people](#people) (28)
314
+ - [people](#people) (29)
314
315
  - [performance-deal](#performance-deal) (8)
315
316
  - [permission-catalog](#permission-catalog) (1)
316
317
  - [permission-templates](#permission-templates) (5)
@@ -339,6 +340,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
339
340
  - [role-candidates](#role-candidates) (6)
340
341
  - [roles](#roles) (6)
341
342
  - [runs](#runs) (3)
343
+ - [sandboxes](#sandboxes) (3)
342
344
  - [saved-list-invites](#saved-list-invites) (2)
343
345
  - [saved-list-members](#saved-list-members) (1)
344
346
  - [saved-lists](#saved-lists) (18)
@@ -730,6 +732,12 @@ Update account fields. Absent fields stay unchanged; null clears. `PATCH /v1/acc
730
732
 
731
733
  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
734
 
735
+ ### kenso accounts write-research
736
+
737
+ 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`.
738
+
739
+ Flags: `--account-id` (required), `--why-now-status`, `--angle`, `--fit-score`, `--data`, `--each`, `--concurrency`.
740
+
733
741
  ## ad-audiences
734
742
 
735
743
  ### kenso ad-audiences create
@@ -3332,7 +3340,7 @@ Flags: `--campaign`, `--file`, `--map`, `--out`, `--server-import`, `--template`
3332
3340
 
3333
3341
  List contacts. `GET /v1/contacts` (a list).
3334
3342
 
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`.
3343
+ 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
3344
 
3337
3345
  ### kenso contacts list-website-pages
3338
3346
 
@@ -5894,7 +5902,7 @@ Flags: `--list-id` (required), `--each`, `--concurrency`.
5894
5902
 
5895
5903
  List a campaign's lists. `GET /v1/campaigns/{campaignId}/lists` (a list).
5896
5904
 
5897
- Flags: `--campaign-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
5905
+ Flags: `--campaign-id` (required), `--created-after`, `--created-before`, `--cursor`, `--limit`, `--sort`, `--all`, `--each`, `--concurrency`.
5898
5906
 
5899
5907
  ## login
5900
5908
 
@@ -5982,6 +5990,12 @@ Flags: `--data`, `--each`, `--concurrency`.
5982
5990
 
5983
5991
  ## market-stories
5984
5992
 
5993
+ ### kenso market-stories create-campaign
5994
+
5995
+ Create a Draft campaign from a market story. `POST /v1/market-stories/{storyId}/create-campaign`. Beta: needs `market_news`.
5996
+
5997
+ Flags: `--story-id` (required), `--idempotency-key`, `--each`, `--concurrency`.
5998
+
5985
5999
  ### kenso market-stories get
5986
6000
 
5987
6001
  Get a market story. `GET /v1/market-stories/{storyId}`. Beta: needs `market_news`.
@@ -7152,6 +7166,20 @@ PATCH /v1/notetaker/settings. `PATCH /v1/notetaker/settings`. Beta: needs `notet
7152
7166
 
7153
7167
  Flags: `--auto-start`, `--keep-audio30-days`, `--draft-follow-up`, `--share-with-workspace`, `--apply-to-past-meetings`, `--no-auto-start`, `--no-keep-audio30-days`, `--no-draft-follow-up`, `--no-share-with-workspace`, `--no-apply-to-past-meetings`, `--data`, `--each`, `--concurrency`.
7154
7168
 
7169
+ ## offer
7170
+
7171
+ ### kenso offer get
7172
+
7173
+ Read the workspace's offer. `GET /v1/billing/offer`.
7174
+
7175
+ Flags: `--each`, `--concurrency`.
7176
+
7177
+ ### kenso offer redeem
7178
+
7179
+ Redeem an offer code. `POST /v1/billing/offer`.
7180
+
7181
+ Flags: `--code`, `--data`, `--each`, `--concurrency`.
7182
+
7155
7183
  ## onboarding
7156
7184
 
7157
7185
  ### kenso onboarding get
@@ -7686,6 +7714,12 @@ Add, remove or reorder a person's phones without resending the list. `PATCH /v1/
7686
7714
 
7687
7715
  Flags: `--person-id` (required), `--primary`, `--overwrite-pinned`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
7688
7716
 
7717
+ ### kenso people write-research
7718
+
7719
+ 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`.
7720
+
7721
+ Flags: `--person-id` (required), `--summary`, `--data`, `--each`, `--concurrency`.
7722
+
7689
7723
  ## performance-deal
7690
7724
 
7691
7725
  ### kenso performance-deal archive-offer
@@ -8318,6 +8352,26 @@ Show one batch run and its files.
8318
8352
 
8319
8353
  Arguments: `<runId>`.
8320
8354
 
8355
+ ## sandboxes
8356
+
8357
+ ### kenso sandboxes create
8358
+
8359
+ Create your sandbox and its first test key. `POST /v1/sandboxes`. Beta: needs `developer_sandboxes`.
8360
+
8361
+ Flags: `--each`, `--concurrency`.
8362
+
8363
+ ### kenso sandboxes get
8364
+
8365
+ Get your sandbox. `GET /v1/sandboxes/{sandboxId}`. Beta: needs `developer_sandboxes`.
8366
+
8367
+ Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
8368
+
8369
+ ### kenso sandboxes list
8370
+
8371
+ List your sandboxes. `GET /v1/sandboxes`. Beta: needs `developer_sandboxes`.
8372
+
8373
+ Flags: `--each`, `--concurrency`.
8374
+
8321
8375
  ## saved-list-invites
8322
8376
 
8323
8377
  ### kenso saved-list-invites accept
@@ -10134,7 +10188,7 @@ Flags: `--account-ids`, `--person-ids`, `--each`, `--concurrency`.
10134
10188
 
10135
10189
  List an endpoint's delivery attempts. `GET /v1/webhook-endpoints/{webhookEndpointId}/deliveries` (a list).
10136
10190
 
10137
- Flags: `--webhook-endpoint-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
10191
+ Flags: `--webhook-endpoint-id` (required), `--created-after`, `--created-before`, `--cursor`, `--limit`, `--sort`, `--all`, `--each`, `--concurrency`.
10138
10192
 
10139
10193
  ### kenso webhook-deliveries resend
10140
10194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.55",
3
+ "version": "0.1.57",
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": "d80439b3eb5e3f638392c1517c32f4e91fc20baa"
52
+ "gitHead": "04bef4e39d263fb4fb4f5c72fdc1d5af95b94cd4"
53
53
  }