kenso 0.1.63 → 0.1.65

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/README.md CHANGED
@@ -94,6 +94,7 @@ Every page is in the package and prints offline with `kenso docs <topic>`.
94
94
  | [Studio (beta)](studio.md) | `studio` | Pull, push, validate, preview and fill templates |
95
95
  | [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 |
96
96
  | [Webhooks](webhooks.md) | `webhooks` | Build a webhook handler locally: `kenso webhooks listen --forward-to`, `trigger`, the signature |
97
+ | [Developer sandbox](sandbox.md) | `sandbox` | `kenso sandbox`: a workspace of your own where sends are simulated, its test key, the reserved test leads |
97
98
  | [Coding agents](agents.md) | `agents` | Claude Code, Codex, Cursor, the Agent Skill, environment variables, sandboxes |
98
99
  | 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 |
99
100
 
package/docs/crm.md CHANGED
@@ -109,6 +109,14 @@ kenso opportunities search --limit 1 --data '{"countBy": ["stage", "ownerMemberI
109
109
  - **`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.
110
110
  - `--account-id` keeps the search to one account. `closeDate` counts days in the member's app time zone.
111
111
 
112
+ One person's deals, meetings and campaign contacts, as their person page lists them:
113
+
114
+ ```bash
115
+ kenso opportunities list --person-id 9001 # the deals they are on, or are the primary person of
116
+ kenso meetings list --person-id 9001 # the meetings they attend, among the ones you can see
117
+ kenso contacts list --person-id 9001 # their contact in each campaign they are in
118
+ ```
119
+
112
120
  ## Write research you gathered
113
121
 
114
122
  `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.
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.63 (API contracts 3f659b55c5d1) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.65 (API contracts 0eb560f862fc) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1638 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
+ 1647 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
 
@@ -58,6 +58,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
58
58
  - [answers](#answers) (4)
59
59
  - [api](#api) (1)
60
60
  - [api-keys](#api-keys) (5)
61
+ - [api-requests](#api-requests) (1)
61
62
  - [apollo-lists](#apollo-lists) (1)
62
63
  - [approval-tests](#approval-tests) (6)
63
64
  - [approvals](#approvals) (4)
@@ -341,7 +342,8 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
341
342
  - [role-candidates](#role-candidates) (6)
342
343
  - [roles](#roles) (6)
343
344
  - [runs](#runs) (3)
344
- - [sandboxes](#sandboxes) (3)
345
+ - [sandbox](#sandbox) (5)
346
+ - [sandboxes](#sandboxes) (6)
345
347
  - [saved-list-invites](#saved-list-invites) (2)
346
348
  - [saved-list-members](#saved-list-members) (1)
347
349
  - [saved-lists](#saved-lists) (18)
@@ -1213,6 +1215,14 @@ Rename one of the caller's keys, or change the API version it is pinned to. `PAT
1213
1215
 
1214
1216
  Flags: `--api-key-id` (required), `--api-version`, `--name`, `--data`, `--each`, `--concurrency`.
1215
1217
 
1218
+ ## api-requests
1219
+
1220
+ ### kenso api-requests list
1221
+
1222
+ List API requests in the current workspace. `GET /v1/api-requests` (a list). Beta: needs `api_request_logs`.
1223
+
1224
+ Flags: `--api-key-id`, `--cursor`, `--limit`, `--occurred-after`, `--occurred-before`, `--request-id`, `--status`, `--all`, `--each`, `--concurrency`.
1225
+
1216
1226
  ## apollo-lists
1217
1227
 
1218
1228
  ### kenso apollo-lists list
@@ -3299,7 +3309,7 @@ Flags: `--campaign`, `--file`, `--map`, `--out`, `--server-import`, `--template`
3299
3309
 
3300
3310
  List contacts. `GET /v1/contacts` (a list).
3301
3311
 
3302
- 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`.
3312
+ Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--person-id`, `--search`, `--segment-id`, `--sort`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--each`, `--concurrency`.
3303
3313
 
3304
3314
  ### kenso contacts list-website-pages
3305
3315
 
@@ -6737,7 +6747,7 @@ Flags: `--meeting-id` (required), `--each`, `--concurrency`.
6737
6747
 
6738
6748
  List the meetings the caller can see. `GET /v1/meetings` (a list). Beta: needs `meetings`.
6739
6749
 
6740
- Flags: `--account-id`, `--cursor`, `--from`, `--has-recording`, `--ids`, `--limit`, `--owner-member-id`, `--search`, `--status`, `--to`, `--no-has-recording`, `--all`, `--each`, `--concurrency`.
6750
+ Flags: `--account-id`, `--cursor`, `--from`, `--has-recording`, `--ids`, `--limit`, `--owner-member-id`, `--person-id`, `--search`, `--status`, `--to`, `--no-has-recording`, `--all`, `--each`, `--concurrency`.
6741
6751
 
6742
6752
  ### kenso meetings list-sources
6743
6753
 
@@ -7277,7 +7287,7 @@ Flags: `--opportunity-id` (required), `--body-dry-run`, `--no-body-dry-run`, `--
7277
7287
 
7278
7288
  List opportunities in the current workspace. `GET /v1/opportunities` (a list). Beta: needs `opportunities`.
7279
7289
 
7280
- 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`.
7290
+ Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--owner-member-id`, `--person-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--all`, `--each`, `--concurrency`.
7281
7291
 
7282
7292
  ### kenso opportunities search
7283
7293
 
@@ -8361,6 +8371,34 @@ Show one batch run and its files.
8361
8371
 
8362
8372
  Arguments: `<runId>`.
8363
8373
 
8374
+ ## sandbox
8375
+
8376
+ ### kenso sandbox create
8377
+
8378
+ Create your developer sandbox and save its test key as the sandbox profile. `POST /v1/sandboxes`. Beta: needs `developer_sandboxes`.
8379
+
8380
+ ### kenso sandbox delete
8381
+
8382
+ Delete your sandbox and its test keys. API operations: `sandboxes.list`, `sandboxes.delete`. Beta: needs `developer_sandboxes`.
8383
+
8384
+ Arguments: `<sandboxId>` (optional).
8385
+
8386
+ ### kenso sandbox key
8387
+
8388
+ Create a new test key for your sandbox and save it as the sandbox profile. API operations: `sandboxes.list`, `sandboxes.create-test-key`. Beta: needs `developer_sandboxes`.
8389
+
8390
+ Arguments: `<sandboxId>` (optional).
8391
+
8392
+ ### kenso sandbox list
8393
+
8394
+ List your developer sandbox. `GET /v1/sandboxes`. Beta: needs `developer_sandboxes`.
8395
+
8396
+ ### kenso sandbox reset
8397
+
8398
+ Reset your sandbox to its seed data. API operations: `sandboxes.list`, `sandboxes.reset`. Beta: needs `developer_sandboxes`.
8399
+
8400
+ Arguments: `<sandboxId>` (optional).
8401
+
8364
8402
  ## sandboxes
8365
8403
 
8366
8404
  ### kenso sandboxes create
@@ -8369,6 +8407,18 @@ Create your sandbox and its first test key. `POST /v1/sandboxes`. Beta: needs `d
8369
8407
 
8370
8408
  Flags: `--each`, `--concurrency`.
8371
8409
 
8410
+ ### kenso sandboxes create-test-key
8411
+
8412
+ Create another test key for your sandbox. `POST /v1/sandboxes/{sandboxId}/test-keys`. Beta: needs `developer_sandboxes`.
8413
+
8414
+ Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
8415
+
8416
+ ### kenso sandboxes delete
8417
+
8418
+ Delete your sandbox. `DELETE /v1/sandboxes/{sandboxId}`. Beta: needs `developer_sandboxes`.
8419
+
8420
+ Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
8421
+
8372
8422
  ### kenso sandboxes get
8373
8423
 
8374
8424
  Get your sandbox. `GET /v1/sandboxes/{sandboxId}`. Beta: needs `developer_sandboxes`.
@@ -8381,6 +8431,12 @@ List your sandboxes. `GET /v1/sandboxes` (a list). Beta: needs `developer_sandbo
8381
8431
 
8382
8432
  Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
8383
8433
 
8434
+ ### kenso sandboxes reset
8435
+
8436
+ Reset your sandbox to its seed data. `POST /v1/sandboxes/{sandboxId}/reset`. Beta: needs `developer_sandboxes`.
8437
+
8438
+ Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
8439
+
8384
8440
  ## saved-list-invites
8385
8441
 
8386
8442
  ### kenso saved-list-invites accept
@@ -9793,7 +9849,7 @@ Flags: `--touch-id` (required), `--each`, `--concurrency`.
9793
9849
 
9794
9850
  List touches. `GET /v1/touches` (a list). Beta: needs `accounts`.
9795
9851
 
9796
- Flags: `--account-id`, `--approver-member-id`, `--channel`, `--created-by-member-id`, `--cursor`, `--due-after`, `--due-before`, `--limit`, `--owner-member-id`, `--sort`, `--stakeholder-id`, `--status`, `--all`, `--each`, `--concurrency`.
9852
+ Flags: `--account-id`, `--account-ids`, `--approver-member-id`, `--channel`, `--created-by-member-id`, `--cursor`, `--due-after`, `--due-before`, `--limit`, `--owner-member-id`, `--sort`, `--stakeholder-id`, `--status`, `--all`, `--each`, `--concurrency`.
9797
9853
 
9798
9854
  ### kenso touches retry
9799
9855
 
@@ -10211,7 +10267,7 @@ Flags: `--webhook-endpoint-id` (required), `--delivery-id` (required), `--each`,
10211
10267
 
10212
10268
  Create a webhook endpoint. `POST /v1/webhook-endpoints`.
10213
10269
 
10214
- Flags: `--url`, `--description`, `--app`, `--is-batched`, `--no-is-batched`, `--data`, `--each`, `--concurrency`.
10270
+ Flags: `--url`, `--description`, `--app`, `--is-batched`, `--schema-version`, `--no-is-batched`, `--data`, `--each`, `--concurrency`.
10215
10271
 
10216
10272
  ### kenso webhook-endpoints delete
10217
10273
 
@@ -10259,7 +10315,7 @@ Flags: `--webhook-endpoint-id` (required), `--event-type`, `--data`, `--each`, `
10259
10315
 
10260
10316
  Update a webhook endpoint. `PATCH /v1/webhook-endpoints/{webhookEndpointId}`.
10261
10317
 
10262
- Flags: `--webhook-endpoint-id` (required), `--url`, `--description`, `--is-disabled`, `--app`, `--is-batched`, `--no-is-disabled`, `--no-is-batched`, `--data`, `--each`, `--concurrency`.
10318
+ Flags: `--webhook-endpoint-id` (required), `--url`, `--description`, `--is-disabled`, `--app`, `--is-batched`, `--schema-version`, `--no-is-disabled`, `--no-is-batched`, `--data`, `--each`, `--concurrency`.
10263
10319
 
10264
10320
  ## webhook-event-types
10265
10321
 
@@ -0,0 +1,61 @@
1
+ # Developer sandbox
2
+
3
+ A developer sandbox is a Kenso workspace of your own for building and testing an integration. It starts with example campaigns, contacts, inboxes and conversation threads, and everything in it is simulated: sends, orders and charges never reach a provider. Nothing leaves Kenso. Campaigns still plan and send in the sandbox, your webhook endpoints still receive its events, and a few reserved test addresses answer like real leads would.
4
+
5
+ You work in it with a test key: `kenso_test_` and 49 letters and digits. A test key works only in its sandbox, and only on `Ken-Version: 1.1` routes, which is what `kenso` sends: every other workspace answers 404, and a request without that version, or to a route that has no 1.1 form, answers 403. You have one sandbox at most.
6
+
7
+ This is not the cloud sandbox a coding agent runs in (`kenso work run`, see `kenso docs agents`).
8
+
9
+ Sandboxes are in beta: the commands work in workspaces where Kenso has turned them on.
10
+
11
+ ## Commands
12
+
13
+ The sandbox commands run with your live key, in your current workspace. Run with a test key, they stop before sending anything.
14
+
15
+ | Command | What it does |
16
+ |---|---|
17
+ | `sandbox create` | Creates your sandbox and its first test key, and saves the key as the profile `sandbox` |
18
+ | `sandbox list` | Lists your sandbox |
19
+ | `sandbox reset [sandboxId]` | Deletes everything in the sandbox and seeds it again. Test keys and webhook endpoints stay |
20
+ | `sandbox key [sandboxId]` | Creates another test key (5 active at most) and saves it as the profile `sandbox` |
21
+ | `sandbox delete [sandboxId]` | Deletes the sandbox and revokes its test keys, then removes the profile `sandbox` |
22
+
23
+ Without an id, `reset`, `key` and `delete` use your one sandbox. `delete` asks first on a terminal; in a script or an agent it needs `--yes`, and `--dry-run` prints the request it would send.
24
+
25
+ ## Quick start
26
+
27
+ ```bash
28
+ kenso sandbox create
29
+ ```
30
+
31
+ It prints the sandbox and its test key once, as JSON:
32
+
33
+ ```json
34
+ {"sandboxId":20417,"name":"Sandbox (you@acme.com)","status":"ready","seed":{"campaigns":2,"contacts":25,"inboxes":2,"threads":4},"testKey":{"id":"apk_...","prefix":"kenso_test_AbCdE","secret":"kenso_test_...","expiresAt":"2027-02-13T18:00:00Z"},"profile":"sandbox"}
35
+ ```
36
+
37
+ The key is saved as the profile `sandbox`, and your active profile stays the live one. Add `--profile sandbox` to run any command in the sandbox:
38
+
39
+ ```bash
40
+ kenso campaigns list --profile sandbox
41
+ kenso auth status --profile sandbox
42
+ ```
43
+
44
+ `KENSO_API_KEY` and `KENSO_WORKSPACE_ID` win over every profile, `--profile sandbox` included: while either is set, a command does not use the test key and its sandbox. Unset them, or set `KENSO_API_KEY=<the test key> KENSO_WORKSPACE_ID=<sandboxId>` to work in the sandbox. `sandbox create` and `sandbox key` warn when they are set, and `auth status` when they override the profile.
45
+
46
+ `auth status` says `"keyKind":"test"` and names the sandbox. A test key expires after 90 days: `kenso sandbox key` makes a new one and saves it over the old one in the profile. To start over, `kenso sandbox reset`. When you are done, `kenso sandbox delete --yes`.
47
+
48
+ Your code can use the same key without the CLI: send it as `Authorization: Bearer <key>` and the sandbox id as `X-Ken-Workspace-Id`.
49
+
50
+ ## Reserved test leads
51
+
52
+ Add a lead with one of these addresses to a sandbox campaign and launch it. After its simulated send, the lead gets that outcome. A `+label` before the `@` is ignored, so `replied-interested+signup@test.ken.so` works too.
53
+
54
+ | Address | Outcome in a sandbox |
55
+ |---|---|
56
+ | `replied-interested@test.ken.so` | A reply classified Interested |
57
+ | `bounced@test.ken.so` | A hard bounce |
58
+ | `ooo@test.ken.so` | An out-of-office auto reply |
59
+ | `unsubscribed@test.ken.so` | An unsubscribe |
60
+
61
+ Any other address gets a simulated send and nothing after it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
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": "bedf76ce6d3fdebb4ec0b5ef5cff58ebc469c3a4"
52
+ "gitHead": "35d8e3366844185a8eafda5905d92e74a98a816c"
53
53
  }