kenso 0.1.72 → 0.1.74
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 +6 -0
- package/README.md +5 -2
- package/dist/kenso.js +1901 -780
- package/dist/operations.json +1 -1
- package/docs/README.md +3 -2
- package/docs/connect.md +73 -0
- package/docs/leads.md +1 -1
- package/docs/output-and-errors.md +46 -1
- package/docs/reference.md +111 -27
- package/package.json +2 -2
- package/skill/kenso-cli/SKILL.md +2 -0
package/docs/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Kenso CLI (`kenso`) is the command line for Kenso. It does bulk work in your Kenso workspace from files: add thousands of leads to a campaign, update or clean them up, import accounts and people, and build Studio templates. It is made for coding agents (Claude Code, Codex, Cursor) and the people who drive them: JSON on stdout, fixed exit codes, a dry run before every bulk write, and runs you can resume.
|
|
4
4
|
|
|
5
|
-
Every API operation a workspace member can call is also a command, such as `kenso campaigns list` or `kenso tags create`. So the CLI reaches what the Kenso MCP reaches, straight against `https://api.ken.so`.
|
|
5
|
+
Every canonical API operation a workspace member can call is also a command, such as `kenso campaigns list` or `kenso tags create`. So the CLI reaches what the Kenso MCP reaches, straight against `https://api.ken.so`. The legacy routes with no canonical successor, such as sequence images, AI variables or thread opens, have no command: reach them with `kenso api <METHOD> <path>`.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -98,12 +98,13 @@ Every page is in the package and prints offline with `kenso docs <topic>`.
|
|
|
98
98
|
| [Authentication](auth.md) | `auth` | API keys, browser login, profiles, workspaces, `doctor` |
|
|
99
99
|
| [Leads](leads.md) | `leads` | Import, update, remove, pause, tag and export leads, with recipes |
|
|
100
100
|
| [Batch runs](batch.md) | `batch` | Dry run and apply, run folders, results files, resume, rate limits, `--each` |
|
|
101
|
-
| [Output and errors](output-and-errors.md) | `output-and-errors` | The output contract, error JSON, error codes, exit codes |
|
|
101
|
+
| [Output and errors](output-and-errors.md) | `output-and-errors` | The output contract, error JSON, error codes, exit codes, live streams |
|
|
102
102
|
| [CRM (beta)](crm.md) | `crm` | Accounts, people, opportunities and CRM sync |
|
|
103
103
|
| [Studio (beta)](studio.md) | `studio` | Pull, push, validate, preview and fill templates |
|
|
104
104
|
| [Agent work (beta)](work.md) | `work` | My agent: your own coding agent writes Kenso's AI work with `kenso work run`, or pull and submit |
|
|
105
105
|
| [Webhooks](webhooks.md) | `webhooks` | Build a webhook handler locally: `kenso webhooks listen --forward-to`, `trigger`, the signature |
|
|
106
106
|
| [Developer sandbox](sandbox.md) | `sandbox` | `kenso sandbox`: a workspace of your own where sends are simulated, its test key, the reserved test leads |
|
|
107
|
+
| [Connect accounts](connect.md) | `connect` | `kenso connect`: an inbox, calendar, CRM, GitHub or other OAuth account, signed in by the person in a browser |
|
|
107
108
|
| [Coding agents](agents.md) | `agents` | Claude Code, Codex, Cursor, the Agent Skill, environment variables, sandboxes |
|
|
108
109
|
| Command reference | `reference` | Every command with its flags, generated from the CLI at build time: `kenso docs reference`, or `docs/reference.md` in the installed package |
|
|
109
110
|
|
package/docs/connect.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Connect accounts in the browser
|
|
2
|
+
|
|
3
|
+
`kenso connect <kind>` connects an inbox, a calendar, a CRM, GitHub or another account that signs in with OAuth. It starts the connect, prints the link, waits until the connection shows up in Kenso, and prints it as JSON.
|
|
4
|
+
|
|
5
|
+
The sign-in itself happens in a browser, always. Kenso refuses to finish an OAuth connect for an API key or an agent, on purpose: the account belongs to the person who signs in. So the CLI never finishes it. It hands the link to the person and watches.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
kenso connect inbox --provider google
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
To connect the mailbox, open https://accounts.google.com/o/oauth2/v2/auth?...
|
|
13
|
+
Waiting up to 10 minutes for the connection (Ctrl-C stops waiting).
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Once the person signs in, it prints the new inbox and exits 0:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{"connected":true,"kind":"inbox","connection":{"id":4812,"email":"sam@acme.com","provider":"google","status":"warmup"}}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Kinds
|
|
23
|
+
|
|
24
|
+
| Command | Connects | Watches |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| `connect inbox --provider google\|microsoft` | A sending inbox (`--purpose campaign`, the default) or your own mailbox (`--purpose primary`) | `GET /v1/inboxes` for a new inbox, or one signed in again |
|
|
27
|
+
| `connect calendar --provider google\|microsoft` | A calendar, with email unless `--access calendar_only`. `--account-id cacc_...` signs one in again | `GET /v1/calendar-accounts` |
|
|
28
|
+
| `connect video --provider zoom\|webex` | Nothing: only a signed-in person can start a Zoom or Webex connect, so it says where in the app and waits | `GET /v1/video-connections` |
|
|
29
|
+
| `connect crm --provider <crm>` | hubspot, salesforce, pipedrive, attio, highlevel, dynamics (`--base-url`), zoho | `GET /v1/crm-connections` |
|
|
30
|
+
| `connect hubspot-knowledge` | HubSpot as a Knowledge source | `GET /v1/knowledge/sources` |
|
|
31
|
+
| `connect github` | The Kenso GitHub app, for Knowledge | `GET /v1/integrations/github/installations` |
|
|
32
|
+
| `connect migration` | Outreach, as a migration source. `--connection-id` signs one in again | `GET /v1/migration-connections` |
|
|
33
|
+
| `connect linkedin` | A LinkedIn account. `--linkedin-account-id` signs one in again | The account the start adds |
|
|
34
|
+
| `connect whatsapp` | A WhatsApp account. `--whatsapp-account-id` signs one in again | The account the start adds |
|
|
35
|
+
| `connect facebook`, `connect instagram` | A Facebook or Instagram account (beta workspaces) | The account the start adds |
|
|
36
|
+
|
|
37
|
+
CRMs that connect with an API key (close, twenty) and the API-key migration sources (Instantly, Smartlead, ...) need no browser: use `kenso crm-connections create` and `kenso migration-connections create`. Slack, Teams and the dialers have their own generated commands, such as `kenso slack-connection start`.
|
|
38
|
+
|
|
39
|
+
## Under a coding agent
|
|
40
|
+
|
|
41
|
+
When the CLI runs under a coding agent (Claude Code, Codex, Cursor ...), it never opens a browser. It prints the link on stderr and asks the agent to hand it to its person:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
To connect the mailbox, open https://accounts.google.com/o/oauth2/v2/auth?...
|
|
45
|
+
Ask the person you are working with to open the link and finish the sign-in in their browser. Waiting up to 10 minutes.
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
A person at a desktop gets the link opened in their browser too. `--no-browser` only prints it.
|
|
49
|
+
|
|
50
|
+
An agent that cannot wait runs `--no-wait`: the command prints the start answer, link included, as JSON and ends. It then checks the list itself, for example `kenso inboxes list`.
|
|
51
|
+
|
|
52
|
+
## Flags
|
|
53
|
+
|
|
54
|
+
| Flag | What it does |
|
|
55
|
+
|---|---|
|
|
56
|
+
| `--timeout <seconds>` | How long to wait, 600 by default. Most links expire after 10 minutes; LinkedIn and WhatsApp links after an hour |
|
|
57
|
+
| `--no-wait` | Print the start answer and end |
|
|
58
|
+
| `--no-browser` | Never open a browser |
|
|
59
|
+
| `--dry-run` | Print the request it would send and the route it would watch, and send nothing |
|
|
60
|
+
|
|
61
|
+
It checks every 5 seconds, and only items of the provider (or vendor, or account) you named. A connect counts when a new item shows up, or when a known one takes a new sign-in: its `connectedAt` moves, or it comes back from a disconnected status. So signing an account in again counts, and another inbox leaving warmup or a CRM resuming its sync does not.
|
|
62
|
+
|
|
63
|
+
## Exit codes
|
|
64
|
+
|
|
65
|
+
| Code | When |
|
|
66
|
+
|---|---|
|
|
67
|
+
| 0 | Connected (or, for `video`, connected already) |
|
|
68
|
+
| 1 | `connect_timeout`: nothing showed up in time. `connect_failed`: the account's sign-in failed (`credentials_error`, `connect_failed`) |
|
|
69
|
+
| 2 | A bad flag, such as an unknown `--provider` |
|
|
70
|
+
| 3, 4, 6, 8 | The API's answer, as for every command (`kenso docs output-and-errors`) |
|
|
71
|
+
| 130 | Ctrl-C |
|
|
72
|
+
|
|
73
|
+
A Google or Microsoft mailbox you connect as `--purpose primary` that is not your login email waits for a confirmation in app.ken.so after the sign-in. It shows up only once you confirm it there, so the command times out with that hint.
|
package/docs/leads.md
CHANGED
|
@@ -185,7 +185,7 @@ kenso contacts export --campaign 812 --out contacts.csv
|
|
|
185
185
|
kenso contacts export --campaign 812 --wait
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
With `--out`, the CLI creates the export, waits for the job (default 30 minutes, `--timeout`) and writes one CSV file (mode 0600). Without `--out` it prints the export job; `--wait` waits for it, or run the `next` it prints, `kenso jobs wait <jobId> --type contact_export`.
|
|
188
|
+
With `--out`, the CLI creates the export, waits for the job (default 30 minutes, `--timeout`) and writes one CSV file (mode 0600). An audience-based campaign exports one CSV per segment in a ZIP: the CLI saves the ZIP as it came, prints `"format": "zip"` and its size instead of a row count, and warns when `--out` does not end in `.zip`. Without `--out` it prints the export job; `--wait` waits for it, or run the `next` it prints, `kenso jobs wait <jobId> --type contact_export`.
|
|
189
189
|
|
|
190
190
|
## Recipes
|
|
191
191
|
|
|
@@ -54,6 +54,50 @@ kenso tags list --limit 50
|
|
|
54
54
|
kenso tags list --all
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
## Files: uploads and downloads
|
|
58
|
+
|
|
59
|
+
A command whose API action takes a multipart upload takes `--file <path>`: the CLI reads the file and sends it in the form, with a content type from its extension (a `.png` goes as `image/png`), and the other flags as form fields. `--file <field>=<path>` names the form field, for a form with more than one file. An upload that also takes JSON, such as a logo from a URL instead of a file, sends JSON when you leave `--file` out.
|
|
60
|
+
|
|
61
|
+
A command whose API action answers with a file (a CSV, an image, a ZIP) takes `--out <path>`: it saves the answer byte for byte (mode 0600) and prints `out`, `bytes` and `contentType`, so the file never passes through an agent's context. Without `--out`, a CSV prints as it came, and a binary file goes to stdout only when stdout is a pipe or a file: on a terminal it fails with `binary_output`, whose `next` adds `--out`.
|
|
62
|
+
|
|
63
|
+
`kenso api` takes both, for any route: `--file` (repeat it for more files) sends multipart with the keys of a `--data` object as form fields, and `--out` saves any answer.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
kenso saved-lists create-upload --saved-list-id 12 --file people.csv
|
|
67
|
+
kenso workspaces replace-logo --workspace-id 42 --file ./logo.png
|
|
68
|
+
kenso workspaces replace-logo --workspace-id 42 --source-url https://example.com/logo.png
|
|
69
|
+
kenso attachments get-content --attachment-id att_123 --out ./invoice.pdf
|
|
70
|
+
kenso api POST /v1/campaigns/812/email-sequence/images --file ./hero.png
|
|
71
|
+
kenso api GET /v1/knowledge/exports/77/content --out knowledge.zip
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Live streams
|
|
75
|
+
|
|
76
|
+
`kenso sync events` and `kenso onboarding-builds events` follow a live stream of server-sent events. They print one JSON line per event as it arrives, on a terminal too, with the event's name, its id when it has one, and its data:
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{"event":"hello","data":{"buildId":"obd_2x","status":"building","stage":"read","lastEventId":0}}
|
|
80
|
+
{"event":"stage","id":"41","data":{"stage":"plan"}}
|
|
81
|
+
{"event":"done","id":"42","data":{}}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
A stream has no time limit while events arrive. The server ends each connection after 15 minutes with a `bye` event; the command then connects again at once, and after a dropped connection or 60 s without even a keepalive, after a second. A connection that brought nothing but `hello` and `bye` (a server that is restarting) backs off 1, 2, 4 ... 30 s. Once events carry an id (`onboarding-builds events`), it sends the last whole event's id as `Last-Event-ID`, so no event is lost or printed twice. A refusal (401, 403, 404) ends it at once; eight failed or empty connects in a row end it with the last error.
|
|
85
|
+
|
|
86
|
+
It runs until Ctrl-C (exit 130; every line printed is whole), or until one of these:
|
|
87
|
+
|
|
88
|
+
| Flag | Ends the command |
|
|
89
|
+
|---|---|
|
|
90
|
+
| `--until <event>` | After the first event with that name; several names are comma-separated: `--until done,error` |
|
|
91
|
+
| `--max-events <n>` | After n events, `hello` and `bye` included |
|
|
92
|
+
| `--once` | When the server closes the connection, instead of connecting again |
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
kenso onboarding-builds events --build-id obd_2x --until done,error
|
|
96
|
+
kenso sync events --max-events 2 # hello, then the first poke
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`--output`, `--fields` and `--query` do not apply to a stream. `--last-event-id` starts an onboarding build stream after that id.
|
|
100
|
+
|
|
57
101
|
## Errors
|
|
58
102
|
|
|
59
103
|
When stderr is not a terminal, an error is one JSON line on stderr:
|
|
@@ -107,7 +151,8 @@ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"k
|
|
|
107
151
|
| `invalid_key_format`, `key_required` | 2 | `auth login --with-key` read something that is not a Kenso key, or stdin is a terminal instead of a pipe |
|
|
108
152
|
| `invalid_workspace_id` | 2 | `kenso workspace use` got an id that is not a positive whole number |
|
|
109
153
|
| `unknown_topic` | 2 | `kenso docs` got a topic it does not have; `hint` lists the topics |
|
|
110
|
-
| `file_unwritable` | 2 or 1 | An output file cannot be written: `contacts export
|
|
154
|
+
| `file_unwritable` | 2 or 1 | An output file cannot be written: `--out` on `contacts export`, `kenso api` or a download command (2), `skill install` (1) |
|
|
155
|
+
| `binary_output` | 2 | The answer is a binary file and stdout is a terminal: nothing was printed; `next` saves it with `--out` |
|
|
111
156
|
| `no_api_key` | 3 | No key in `KENSO_API_KEY` or the profile (`next`: `kenso auth login`) |
|
|
112
157
|
| `browser_login_unavailable`, `access_denied`, `login_expired` | 3 | Browser login is off, was denied, or timed out |
|
|
113
158
|
| `run_not_found` | 4 | `kenso runs show` or `resume` got an unknown run id |
|
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.74 (API contracts b4a7cc2f55cc) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1678 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
|
|
|
@@ -133,6 +133,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
133
133
|
- [companies](#companies) (2)
|
|
134
134
|
- [company-data](#company-data) (1)
|
|
135
135
|
- [completion](#completion) (1)
|
|
136
|
+
- [connect](#connect) (11)
|
|
136
137
|
- [contact-behavior](#contact-behavior) (1)
|
|
137
138
|
- [contact-exports](#contact-exports) (3)
|
|
138
139
|
- [contact-fields](#contact-fields) (1)
|
|
@@ -376,6 +377,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
376
377
|
- [slack-alerts](#slack-alerts) (3)
|
|
377
378
|
- [slack-channels](#slack-channels) (1)
|
|
378
379
|
- [slack-connection](#slack-connection) (5)
|
|
380
|
+
- [smtp-email-packs](#smtp-email-packs) (2)
|
|
379
381
|
- [social-lookups](#social-lookups) (2)
|
|
380
382
|
- [social-monitor](#social-monitor) (5)
|
|
381
383
|
- [social-records](#social-records) (1)
|
|
@@ -1186,7 +1188,7 @@ Call any API route, only when no command fits.
|
|
|
1186
1188
|
|
|
1187
1189
|
Arguments: `<METHOD>`, `<path>`.
|
|
1188
1190
|
|
|
1189
|
-
Flags: `--all`, `--data`, `--no-workspace`.
|
|
1191
|
+
Flags: `--all`, `--data`, `--file`, `--no-workspace`, `--out`.
|
|
1190
1192
|
|
|
1191
1193
|
## api-keys
|
|
1192
1194
|
|
|
@@ -1638,7 +1640,7 @@ Flags: `--attachment-id` (required), `--each`, `--concurrency`.
|
|
|
1638
1640
|
|
|
1639
1641
|
Download an attachment. `GET /v1/attachments/{attachmentId}/content`.
|
|
1640
1642
|
|
|
1641
|
-
Flags: `--attachment-id` (required), `--inline`, `--no-inline`, `--each`, `--concurrency`.
|
|
1643
|
+
Flags: `--attachment-id` (required), `--inline`, `--no-inline`, `--out`, `--each`, `--concurrency`.
|
|
1642
1644
|
|
|
1643
1645
|
## audit-events
|
|
1644
1646
|
|
|
@@ -1646,7 +1648,7 @@ Flags: `--attachment-id` (required), `--inline`, `--no-inline`, `--each`, `--con
|
|
|
1646
1648
|
|
|
1647
1649
|
Export the workspace's audit log lines as CSV. `POST /v1/audit-events/export`.
|
|
1648
1650
|
|
|
1649
|
-
Flags: `--occurred-after`, `--occurred-before`, `--data`, `--each`, `--concurrency`.
|
|
1651
|
+
Flags: `--occurred-after`, `--occurred-before`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
1650
1652
|
|
|
1651
1653
|
### kenso audit-events list
|
|
1652
1654
|
|
|
@@ -1982,7 +1984,7 @@ Flags: `--cursor`, `--limit`, `--node-id`, `--record-id`, `--record-type`, `--ru
|
|
|
1982
1984
|
|
|
1983
1985
|
One screenshot of a browser run, as JPEG. `GET /v1/browser-runs/{browserRunId}/screenshots/{n}`. Beta: needs `browser_steps` and `workflows`.
|
|
1984
1986
|
|
|
1985
|
-
Flags: `--browser-run-id` (required), `--n` (required), `--each`, `--concurrency`.
|
|
1987
|
+
Flags: `--browser-run-id` (required), `--n` (required), `--out`, `--each`, `--concurrency`.
|
|
1986
1988
|
|
|
1987
1989
|
### kenso browser-runs summary
|
|
1988
1990
|
|
|
@@ -3080,7 +3082,7 @@ Flags: `--login-id`, `--data`, `--each`, `--concurrency`.
|
|
|
3080
3082
|
|
|
3081
3083
|
Download a weekly click report CSV. `GET /v1/click-reports/{reportToken}/content`.
|
|
3082
3084
|
|
|
3083
|
-
Flags: `--report-token` (required), `--each`, `--concurrency`.
|
|
3085
|
+
Flags: `--report-token` (required), `--out`, `--each`, `--concurrency`.
|
|
3084
3086
|
|
|
3085
3087
|
## client-approval-recipients
|
|
3086
3088
|
|
|
@@ -3218,6 +3220,74 @@ Print the tab-completion script for bash, zsh or fish.
|
|
|
3218
3220
|
|
|
3219
3221
|
Arguments: `<shell>`.
|
|
3220
3222
|
|
|
3223
|
+
## connect
|
|
3224
|
+
|
|
3225
|
+
### kenso connect calendar
|
|
3226
|
+
|
|
3227
|
+
Connect a Google or Microsoft calendar in the browser. API operations: `calendar-accounts.create-connect-session`, `calendar-accounts.list`.
|
|
3228
|
+
|
|
3229
|
+
Flags: `--access`, `--account-id`, `--no-browser`, `--no-wait`, `--provider`, `--timeout`.
|
|
3230
|
+
|
|
3231
|
+
### kenso connect crm
|
|
3232
|
+
|
|
3233
|
+
Connect a CRM (HubSpot, Salesforce, Pipedrive ...) in the browser. API operations: `crm-connections.create`, `crm-connections.list`.
|
|
3234
|
+
|
|
3235
|
+
Flags: `--base-url`, `--no-browser`, `--no-wait`, `--provider`, `--return-path`, `--timeout`.
|
|
3236
|
+
|
|
3237
|
+
### kenso connect facebook
|
|
3238
|
+
|
|
3239
|
+
Connect a Facebook account in the browser. API operations: `facebook-accounts.create-connect-session`, `facebook-accounts.create-reconnect-session`, `facebook-accounts.get`.
|
|
3240
|
+
|
|
3241
|
+
Flags: `--facebook-account-id`, `--no-browser`, `--no-wait`, `--timeout`.
|
|
3242
|
+
|
|
3243
|
+
### kenso connect github
|
|
3244
|
+
|
|
3245
|
+
Install the Kenso GitHub app in the browser. API operations: `github-installations.get-install-url`, `github-installations.list`.
|
|
3246
|
+
|
|
3247
|
+
Flags: `--no-browser`, `--no-wait`, `--timeout`.
|
|
3248
|
+
|
|
3249
|
+
### kenso connect hubspot-knowledge
|
|
3250
|
+
|
|
3251
|
+
Connect HubSpot as a Knowledge source in the browser. API operations: `knowledge-hubspot.create-connect-session`, `knowledge-sources.list`.
|
|
3252
|
+
|
|
3253
|
+
Flags: `--no-browser`, `--no-wait`, `--timeout`.
|
|
3254
|
+
|
|
3255
|
+
### kenso connect inbox
|
|
3256
|
+
|
|
3257
|
+
Connect a Google or Microsoft inbox in the browser. API operations: `inboxes.create-connect-session`, `inboxes.list`.
|
|
3258
|
+
|
|
3259
|
+
Flags: `--no-browser`, `--no-wait`, `--provider`, `--purpose`, `--return-to`, `--timeout`.
|
|
3260
|
+
|
|
3261
|
+
### kenso connect instagram
|
|
3262
|
+
|
|
3263
|
+
Connect an Instagram account in the browser. API operations: `instagram-accounts.create-connect-session`, `instagram-accounts.get`.
|
|
3264
|
+
|
|
3265
|
+
Flags: `--instagram-account-id`, `--name`, `--no-browser`, `--no-wait`, `--timeout`.
|
|
3266
|
+
|
|
3267
|
+
### kenso connect linkedin
|
|
3268
|
+
|
|
3269
|
+
Connect a LinkedIn account in the browser. API operations: `linkedin-accounts.create-connect-session`, `linkedin-accounts.get`.
|
|
3270
|
+
|
|
3271
|
+
Flags: `--import-connections`, `--linkedin-account-id`, `--network-only`, `--no-browser`, `--no-wait`, `--timeout`.
|
|
3272
|
+
|
|
3273
|
+
### kenso connect migration
|
|
3274
|
+
|
|
3275
|
+
Connect a migration source (Outreach) in the browser. API operations: `migration-connections.create-connect-session`, `migration-connections.list`.
|
|
3276
|
+
|
|
3277
|
+
Flags: `--connection-id`, `--no-browser`, `--no-wait`, `--timeout`, `--vendor`.
|
|
3278
|
+
|
|
3279
|
+
### kenso connect video
|
|
3280
|
+
|
|
3281
|
+
Wait for a Zoom or Webex connection made in the app. `GET /v1/video-connections`.
|
|
3282
|
+
|
|
3283
|
+
Flags: `--no-browser`, `--no-wait`, `--provider`, `--timeout`.
|
|
3284
|
+
|
|
3285
|
+
### kenso connect whatsapp
|
|
3286
|
+
|
|
3287
|
+
Connect a WhatsApp account in the browser. API operations: `whatsapp-accounts.create-connect-session`, `whatsapp-accounts.get`.
|
|
3288
|
+
|
|
3289
|
+
Flags: `--no-browser`, `--no-wait`, `--timeout`, `--whatsapp-account-id`.
|
|
3290
|
+
|
|
3221
3291
|
## contact-behavior
|
|
3222
3292
|
|
|
3223
3293
|
### kenso contact-behavior get
|
|
@@ -3232,7 +3302,7 @@ Flags: `--contact-id` (required), `--each`, `--concurrency`.
|
|
|
3232
3302
|
|
|
3233
3303
|
Download a contact export. `GET /v1/contact-exports/{exportId}/content`.
|
|
3234
3304
|
|
|
3235
|
-
Flags: `--export-id` (required), `--each`, `--concurrency`.
|
|
3305
|
+
Flags: `--export-id` (required), `--out`, `--each`, `--concurrency`.
|
|
3236
3306
|
|
|
3237
3307
|
### kenso contact-exports create
|
|
3238
3308
|
|
|
@@ -3266,7 +3336,7 @@ Flags: `--campaign-id`, `--per-company`, `--data`, `--each`, `--concurrency`.
|
|
|
3266
3336
|
|
|
3267
3337
|
Start a contact import. `POST /v1/contact-imports`.
|
|
3268
3338
|
|
|
3269
|
-
Flags: `--campaign-id`, `--source`, `--target`, `--source-campaign-id`, `--segment-id`, `--search-id`, `--event-id`, `--include-accounts`, `--linkedin-account-id`, `--url`, `--spreadsheet-id`, `--sheet`, `--base-id`, `--table-id`, `--view-id`, `--max-leads`, `--saved-list-id`, `--find-people`, `--import-limit`, `--import-offset`, `--only-import-qualified-contacts`, `--only-import-valid-contacts`, `--deduplication-mode`, `--allow-reimport`, `--copy-data-enrichment`, `--copy-email-enrichment`, `--trigger-post-processing`, `--source-segment-id`, `--copy-qualification`, `--copy-email-verification`, `--no-include-accounts`, `--no-find-people`, `--no-only-import-qualified-contacts`, `--no-only-import-valid-contacts`, `--no-allow-reimport`, `--no-copy-data-enrichment`, `--no-copy-email-enrichment`, `--no-trigger-post-processing`, `--no-copy-qualification`, `--no-copy-email-verification`, `--data`, `--each`, `--concurrency`.
|
|
3339
|
+
Flags: `--file`, `--campaign-id`, `--source`, `--target`, `--column-mappings`, `--fixes`, `--include-recently-contacted`, `--cleanup`, `--emails-found-by-ken`, `--source-campaign-id`, `--segment-id`, `--search-id`, `--event-id`, `--include-accounts`, `--linkedin-account-id`, `--url`, `--spreadsheet-id`, `--sheet`, `--base-id`, `--table-id`, `--view-id`, `--max-leads`, `--saved-list-id`, `--find-people`, `--import-limit`, `--import-offset`, `--only-import-qualified-contacts`, `--only-import-valid-contacts`, `--deduplication-mode`, `--allow-reimport`, `--copy-data-enrichment`, `--copy-email-enrichment`, `--trigger-post-processing`, `--source-segment-id`, `--copy-qualification`, `--copy-email-verification`, `--no-include-recently-contacted`, `--no-cleanup`, `--no-emails-found-by-ken`, `--no-include-accounts`, `--no-find-people`, `--no-only-import-qualified-contacts`, `--no-only-import-valid-contacts`, `--no-allow-reimport`, `--no-copy-data-enrichment`, `--no-copy-email-enrichment`, `--no-trigger-post-processing`, `--no-copy-qualification`, `--no-copy-email-verification`, `--data`, `--each`, `--concurrency`.
|
|
3270
3340
|
|
|
3271
3341
|
### kenso contact-imports scan
|
|
3272
3342
|
|
|
@@ -4564,7 +4634,7 @@ Flags: `--each`, `--concurrency`.
|
|
|
4564
4634
|
|
|
4565
4635
|
Create a Google Sheet from a CSV file. `POST /v1/google-sheets`. Beta: needs `google_sheets`.
|
|
4566
4636
|
|
|
4567
|
-
Flags: `--file
|
|
4637
|
+
Flags: `--file` (required), `--campaign-id`, `--data`, `--each`, `--concurrency`.
|
|
4568
4638
|
|
|
4569
4639
|
### kenso google-sheets preview
|
|
4570
4640
|
|
|
@@ -4660,7 +4730,7 @@ Flags: `--campaign-id` (required), `--variable-key` (required), `--contact-id` (
|
|
|
4660
4730
|
|
|
4661
4731
|
Set a shared image variable's image. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/shared-image`. Beta: needs `campaign_images`.
|
|
4662
4732
|
|
|
4663
|
-
Flags: `--campaign-id` (required), `--variable-key` (required), `--each`, `--concurrency`.
|
|
4733
|
+
Flags: `--campaign-id` (required), `--variable-key` (required), `--file`, `--url`, `--generate`, `--no-generate`, `--data`, `--each`, `--concurrency`.
|
|
4664
4734
|
|
|
4665
4735
|
### kenso image-variables test
|
|
4666
4736
|
|
|
@@ -5266,7 +5336,7 @@ Flags: `--change-id` (required), `--each`, `--concurrency`.
|
|
|
5266
5336
|
|
|
5267
5337
|
Download a Knowledge export as a zip. `GET /v1/knowledge/exports/{exportId}/content`. Beta: needs `knowledge`.
|
|
5268
5338
|
|
|
5269
|
-
Flags: `--export-id` (required), `--each`, `--concurrency`.
|
|
5339
|
+
Flags: `--export-id` (required), `--out`, `--each`, `--concurrency`.
|
|
5270
5340
|
|
|
5271
5341
|
### kenso knowledge-exports create
|
|
5272
5342
|
|
|
@@ -5516,7 +5586,7 @@ Flags: `--url`, `--markdown`, `--file-name`, `--file-id`, `--body-dry-run`, `--c
|
|
|
5516
5586
|
|
|
5517
5587
|
Preview or import skills from an uploaded .zip, .skill or .md file. `POST /v1/knowledge/skill-imports/upload`. Beta: needs `knowledge` and `knowledge_skill_import`.
|
|
5518
5588
|
|
|
5519
|
-
Flags: `--each`, `--concurrency`.
|
|
5589
|
+
Flags: `--file` (required), `--options`, `--data`, `--each`, `--concurrency`.
|
|
5520
5590
|
|
|
5521
5591
|
## knowledge-sources
|
|
5522
5592
|
|
|
@@ -5628,7 +5698,7 @@ Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
|
5628
5698
|
|
|
5629
5699
|
Paste or upload a call transcript into Knowledge. `POST /v1/knowledge/transcripts`. Beta: needs `knowledge`.
|
|
5630
5700
|
|
|
5631
|
-
Flags: `--each`, `--concurrency`.
|
|
5701
|
+
Flags: `--file`, `--meeting-id`, `--account-id`, `--title`, `--occurred-at`, `--text`, `--data`, `--each`, `--concurrency`.
|
|
5632
5702
|
|
|
5633
5703
|
### kenso knowledge-transcripts create-email-address
|
|
5634
5704
|
|
|
@@ -5656,13 +5726,13 @@ Flags: `--include-bodies`, `--no-include-bodies`, `--each`, `--concurrency`.
|
|
|
5656
5726
|
|
|
5657
5727
|
Download the file a Knowledge file was uploaded from. `GET /v1/knowledge/files/{fileId}/upload/content`. Beta: needs `knowledge`.
|
|
5658
5728
|
|
|
5659
|
-
Flags: `--file-id` (required), `--each`, `--concurrency`.
|
|
5729
|
+
Flags: `--file-id` (required), `--out`, `--each`, `--concurrency`.
|
|
5660
5730
|
|
|
5661
5731
|
### kenso knowledge-uploads create
|
|
5662
5732
|
|
|
5663
5733
|
Upload a file into Knowledge. `POST /v1/knowledge/uploads`. Beta: needs `knowledge`.
|
|
5664
5734
|
|
|
5665
|
-
Flags: `--each`, `--concurrency`.
|
|
5735
|
+
Flags: `--file` (required), `--folder-id`, `--data`, `--each`, `--concurrency`.
|
|
5666
5736
|
|
|
5667
5737
|
## knowledge-website-pages
|
|
5668
5738
|
|
|
@@ -7326,7 +7396,7 @@ Flags: `--source`, `--brief`, `--website`, `--mode`, `--experience`, `--list-inv
|
|
|
7326
7396
|
|
|
7327
7397
|
Stream an onboarding build's frames. `GET /v1/onboarding/builds/{buildId}/events`. Beta: needs `onboarding_v5`.
|
|
7328
7398
|
|
|
7329
|
-
Flags: `--build-id` (required), `--last-event-id`, `--
|
|
7399
|
+
Flags: `--build-id` (required), `--last-event-id`, `--until`, `--max-events`, `--once`.
|
|
7330
7400
|
|
|
7331
7401
|
### kenso onboarding-builds get
|
|
7332
7402
|
|
|
@@ -7722,7 +7792,7 @@ Flags: `--person-id` (required), `--each`, `--concurrency`.
|
|
|
7722
7792
|
|
|
7723
7793
|
Export the people the filters match as CSV. `POST /v1/people/export`. Beta: needs `accounts`.
|
|
7724
7794
|
|
|
7725
|
-
Flags: `--search`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--data`, `--each`, `--concurrency`.
|
|
7795
|
+
Flags: `--search`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--out`, `--data`, `--each`, `--concurrency`.
|
|
7726
7796
|
|
|
7727
7797
|
### kenso people find-emails
|
|
7728
7798
|
|
|
@@ -8406,7 +8476,7 @@ Flags: `--role-id` (required), `--candidate-id` (required), `--each`, `--concurr
|
|
|
8406
8476
|
|
|
8407
8477
|
Export a role's candidates as CSV. `POST /v1/roles/{roleId}/candidates/export`. Beta: needs `recruiting`.
|
|
8408
8478
|
|
|
8409
|
-
Flags: `--role-id` (required), `--data`, `--each`, `--concurrency`.
|
|
8479
|
+
Flags: `--role-id` (required), `--out`, `--data`, `--each`, `--concurrency`.
|
|
8410
8480
|
|
|
8411
8481
|
### kenso role-candidates find
|
|
8412
8482
|
|
|
@@ -8608,7 +8678,7 @@ Flags: `--saved-list-id` (required), `--source-type`, `--data`, `--each`, `--con
|
|
|
8608
8678
|
|
|
8609
8679
|
Upload a CSV to a saved list. `POST /v1/saved-lists/{savedListId}/uploads`. Beta: needs `saved_lists`.
|
|
8610
8680
|
|
|
8611
|
-
Flags: `--saved-list-id` (required), `--each`, `--concurrency`.
|
|
8681
|
+
Flags: `--saved-list-id` (required), `--file` (required), `--column-mappings`, `--fixes`, `--cleanup`, `--no-cleanup`, `--data`, `--each`, `--concurrency`.
|
|
8612
8682
|
|
|
8613
8683
|
### kenso saved-lists delete
|
|
8614
8684
|
|
|
@@ -9426,6 +9496,20 @@ Change the caller's Slack options. `PATCH /v1/integrations/slack/connection`.
|
|
|
9426
9496
|
|
|
9427
9497
|
Flags: `--approve-from-slack`, `--daily-brief-in-slack`, `--no-approve-from-slack`, `--no-daily-brief-in-slack`, `--data`, `--each`, `--concurrency`.
|
|
9428
9498
|
|
|
9499
|
+
## smtp-email-packs
|
|
9500
|
+
|
|
9501
|
+
### kenso smtp-email-packs create
|
|
9502
|
+
|
|
9503
|
+
Buy SMTP email packs. `POST /v1/billing/smtp-email-packs`.
|
|
9504
|
+
|
|
9505
|
+
Flags: `--packs`, `--data`, `--each`, `--concurrency`.
|
|
9506
|
+
|
|
9507
|
+
### kenso smtp-email-packs get
|
|
9508
|
+
|
|
9509
|
+
Read the workspace's SMTP email packs. `GET /v1/billing/smtp-email-packs`.
|
|
9510
|
+
|
|
9511
|
+
Flags: `--each`, `--concurrency`.
|
|
9512
|
+
|
|
9429
9513
|
## social-lookups
|
|
9430
9514
|
|
|
9431
9515
|
### kenso social-lookups create
|
|
@@ -9644,7 +9728,7 @@ Flags: `--interval`, `--data`, `--each`, `--concurrency`.
|
|
|
9644
9728
|
|
|
9645
9729
|
Stream the stored attachment bytes for the calling user. `GET /v1/support/attachments/{attachmentId}/content`.
|
|
9646
9730
|
|
|
9647
|
-
Flags: `--attachment-id` (required), `--each`, `--concurrency`.
|
|
9731
|
+
Flags: `--attachment-id` (required), `--out`, `--each`, `--concurrency`.
|
|
9648
9732
|
|
|
9649
9733
|
### kenso support-attachments create
|
|
9650
9734
|
|
|
@@ -9670,7 +9754,7 @@ Flags: `--limit`, `--since`, `--each`, `--concurrency`.
|
|
|
9670
9754
|
|
|
9671
9755
|
Hold open a stream that says when the workspace changed. `GET /v1/sync/events`. Beta: needs `sync_engine`.
|
|
9672
9756
|
|
|
9673
|
-
Flags: `--
|
|
9757
|
+
Flags: `--until`, `--max-events`, `--once`.
|
|
9674
9758
|
|
|
9675
9759
|
### kenso sync hello
|
|
9676
9760
|
|
|
@@ -10436,7 +10520,7 @@ Flags: `--webhook-endpoint-id` (required), `--url`, `--description`, `--is-disab
|
|
|
10436
10520
|
|
|
10437
10521
|
Get a webhook event type's payload schema. `GET /v1/webhook-event-types/{eventType}/schema`.
|
|
10438
10522
|
|
|
10439
|
-
Flags: `--event-type` (required), `--each`, `--concurrency`.
|
|
10523
|
+
Flags: `--event-type` (required), `--schema-version`, `--each`, `--concurrency`.
|
|
10440
10524
|
|
|
10441
10525
|
### kenso webhook-event-types list
|
|
10442
10526
|
|
|
@@ -10580,13 +10664,13 @@ Flags: `--each`, `--concurrency`.
|
|
|
10580
10664
|
|
|
10581
10665
|
Replace the brand's favicon. `PUT /v1/white-label/brand/favicon`.
|
|
10582
10666
|
|
|
10583
|
-
Flags: `--each`, `--concurrency`.
|
|
10667
|
+
Flags: `--file` (required), `--data`, `--each`, `--concurrency`.
|
|
10584
10668
|
|
|
10585
10669
|
### kenso white-label-brand replace-logo
|
|
10586
10670
|
|
|
10587
10671
|
Replace the brand's sidebar logo. `PUT /v1/white-label/brand/logo`.
|
|
10588
10672
|
|
|
10589
|
-
Flags: `--each`, `--concurrency`.
|
|
10673
|
+
Flags: `--file` (required), `--data`, `--each`, `--concurrency`.
|
|
10590
10674
|
|
|
10591
10675
|
### kenso white-label-brand update
|
|
10592
10676
|
|
|
@@ -11256,7 +11340,7 @@ Flags: `--workspace-id` (required), `--each`, `--concurrency`.
|
|
|
11256
11340
|
|
|
11257
11341
|
Replace the workspace logo (the square Icon). `PUT /v1/workspaces/{workspaceId}/logo`.
|
|
11258
11342
|
|
|
11259
|
-
Flags: `--workspace-id` (required), `--each`, `--concurrency`.
|
|
11343
|
+
Flags: `--workspace-id` (required), `--file`, `--source-url`, `--data`, `--each`, `--concurrency`.
|
|
11260
11344
|
|
|
11261
11345
|
### kenso workspaces replace-tracking
|
|
11262
11346
|
|
|
@@ -11268,7 +11352,7 @@ Flags: `--workspace-id` (required), `--google-analytics-id`, `--meta-pixel-id`,
|
|
|
11268
11352
|
|
|
11269
11353
|
Replace the workspace wordmark (the wide Logo). `PUT /v1/workspaces/{workspaceId}/wordmark`.
|
|
11270
11354
|
|
|
11271
|
-
Flags: `--workspace-id` (required), `--each`, `--concurrency`.
|
|
11355
|
+
Flags: `--workspace-id` (required), `--file`, `--source-url`, `--data`, `--each`, `--concurrency`.
|
|
11272
11356
|
|
|
11273
11357
|
### kenso workspaces setup-reply-to
|
|
11274
11358
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.74",
|
|
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": "27d1ad2ec9dabcfd845c767de6fc27e5749be825"
|
|
53
53
|
}
|
package/skill/kenso-cli/SKILL.md
CHANGED
|
@@ -23,6 +23,8 @@ kenso studio fill 12 --accounts ids.txt --dry-run # or --campaign 10546 --cont
|
|
|
23
23
|
kenso opportunities update --each rows.csv --dry-run # any API command on a file of rows (CSV or JSONL; keys fill flags and body). One record: kenso campaigns update --campaign-id 812 --name Q4 --dry-run
|
|
24
24
|
kenso mcp call list_skills # only to list Ken's skills
|
|
25
25
|
kenso logs tail --status 4xx,5xx --since 10m # stream the workspace's failed API calls, one line each; Ctrl-C stops (exit 4 = not on for the workspace yet)
|
|
26
|
+
kenso connect inbox --provider google # also calendar, crm, github, linkedin ...: hand the printed link to the person (only they can sign in), it waits and prints the connection
|
|
27
|
+
kenso onboarding-builds events --build-id obd_2x --until done,error # live streams: one JSON line per event, reconnects itself
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
Charges: `accounts import` per new account, `studio fill` per page (again for ids from another file): show the estimate. `pinned_by_user`: with the person's OK, rerun with `--overwrite-pinned`. Workflows: `kenso workflows brief` first; secrets only as `{{secrets.NAME}}`. Key: `KENSO_API_KEY`, or pipe a variable, no check: `printf '%s' "$KEY" | kenso auth login --with-key`; never in a flag, output or file.
|