kenso 0.1.65 → 0.1.69

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
@@ -9,6 +9,11 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
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
11
  | `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
12
+ | `capture status` | Your captured mailbox, its backfill progress and what teammates see of a captured email. Needs the `crm_capture` flag |
13
+ | `capture connect` | Turn capture on for your own mailbox. `--private` starts it hidden from teammates; `--provider google` prints a sign-in link when no account is connected yet |
14
+ | `capture private on\|off` | Hide your captured email from teammates, or show it again. Email only: meetings stay visible |
15
+ | `capture disconnect` | Turn capture off and delete your stored email bodies. Asks first; `--yes` skips the question |
16
+ | `capture teammates-see summary\|full_email` | Workspace admin: what teammates see of captured email |
12
17
  | `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
13
18
 
14
19
  Import accounts first, then people: `people import` never creates an account.
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.65 (API contracts 0eb560f862fc) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.69 (API contracts 213854ed9c9c) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
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.
5
+ 1663 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
 
@@ -118,6 +118,8 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
118
118
  - [campaign-video-settings](#campaign-video-settings) (2)
119
119
  - [campaign-video-variables](#campaign-video-variables) (4)
120
120
  - [campaigns](#campaigns) (42)
121
+ - [capture](#capture) (7)
122
+ - [capture-mailbox](#capture-mailbox) (3)
121
123
  - [checkout-sessions](#checkout-sessions) (1)
122
124
  - [checkpoints](#checkpoints) (2)
123
125
  - [claim-links](#claim-links) (1)
@@ -257,6 +259,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
257
259
  - [lists](#lists) (3)
258
260
  - [login](#login) (1)
259
261
  - [logout](#logout) (1)
262
+ - [logs](#logs) (1)
260
263
  - [lookup-badges](#lookup-badges) (1)
261
264
  - [lookups](#lookups) (1)
262
265
  - [loopster-companies](#loopster-companies) (1)
@@ -275,6 +278,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
275
278
  - [mcp-servers](#mcp-servers) (9)
276
279
  - [me](#me) (46)
277
280
  - [meeting-call-types](#meeting-call-types) (4)
281
+ - [meeting-chase-emails](#meeting-chase-emails) (4)
278
282
  - [meeting-notes](#meeting-notes) (4)
279
283
  - [meeting-public-links](#meeting-public-links) (3)
280
284
  - [meeting-recordings](#meeting-recordings) (1)
@@ -337,6 +341,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
337
341
  - [referral-codes](#referral-codes) (3)
338
342
  - [referral-redemptions](#referral-redemptions) (1)
339
343
  - [reply-templates](#reply-templates) (5)
344
+ - [reports](#reports) (1)
340
345
  - [revival-candidates](#revival-candidates) (1)
341
346
  - [revivals](#revivals) (2)
342
347
  - [role-candidates](#role-candidates) (6)
@@ -2947,6 +2952,66 @@ Update the campaign's agent work overrides. `PATCH /v1/campaigns/{campaignId}/ag
2947
2952
 
2948
2953
  Flags: `--campaign-id` (required), `--data`, `--each`, `--concurrency`.
2949
2954
 
2955
+ ## capture
2956
+
2957
+ ### kenso capture connect
2958
+
2959
+ Turn capture on for your own mailbox. API operations: `capture-mailbox.connect`, `calendar-accounts.create-connect-session`. Beta: needs `crm_capture`.
2960
+
2961
+ Flags: `--private`, `--provider`.
2962
+
2963
+ ### kenso capture disconnect
2964
+
2965
+ Turn capture off for your own mailbox and delete its stored email bodies. `DELETE /v1/capture/mailbox`. Beta: needs `crm_capture`.
2966
+
2967
+ ### kenso capture get
2968
+
2969
+ Read your captured mailbox and the workspace's capture setting. `GET /v1/capture`. Beta: needs `crm_capture`.
2970
+
2971
+ Flags: `--each`, `--concurrency`.
2972
+
2973
+ ### kenso capture private
2974
+
2975
+ Hide your captured email from teammates, or show it again. `PATCH /v1/capture/mailbox`. Beta: needs `crm_capture`.
2976
+
2977
+ Arguments: `<state>`.
2978
+
2979
+ ### kenso capture status
2980
+
2981
+ Show your captured mailbox, its backfill progress and what teammates see of a captured email. `GET /v1/capture`. Beta: needs `crm_capture`.
2982
+
2983
+ ### kenso capture teammates-see
2984
+
2985
+ Pick what teammates see of captured email: the summary, or the full email (workspace admin). `PATCH /v1/capture`. Beta: needs `crm_capture`.
2986
+
2987
+ Arguments: `<value>`.
2988
+
2989
+ ### kenso capture update
2990
+
2991
+ Pick what teammates see of captured email. `PATCH /v1/capture`. Beta: needs `crm_capture`.
2992
+
2993
+ Flags: `--teammates-see`, `--data`, `--each`, `--concurrency`.
2994
+
2995
+ ## capture-mailbox
2996
+
2997
+ ### kenso capture-mailbox connect
2998
+
2999
+ Turn capture on for your own mailbox. `PUT /v1/capture/mailbox`. Beta: needs `crm_capture`.
3000
+
3001
+ Flags: `--is-private`, `--no-is-private`, `--data`, `--each`, `--concurrency`.
3002
+
3003
+ ### kenso capture-mailbox disconnect
3004
+
3005
+ Turn capture off for your own mailbox. `DELETE /v1/capture/mailbox`. Beta: needs `crm_capture`.
3006
+
3007
+ Flags: `--each`, `--concurrency`.
3008
+
3009
+ ### kenso capture-mailbox update
3010
+
3011
+ Set the Private switch of your captured mailbox. `PATCH /v1/capture/mailbox`. Beta: needs `crm_capture`.
3012
+
3013
+ Flags: `--is-private`, `--no-is-private`, `--data`, `--each`, `--concurrency`.
3014
+
2950
3015
  ## checkout-sessions
2951
3016
 
2952
3017
  ### kenso checkout-sessions create
@@ -5915,6 +5980,14 @@ Remove a saved profile, and revoke the key browser login made. API operations: `
5915
5980
 
5916
5981
  Flags: `--keep-key`.
5917
5982
 
5983
+ ## logs
5984
+
5985
+ ### kenso logs tail
5986
+
5987
+ Stream your workspace's new API request log rows. `GET /v1/api-requests`.
5988
+
5989
+ Flags: `--interval`, `--key`, `--since`, `--status`.
5990
+
5918
5991
  ## lookup-badges
5919
5992
 
5920
5993
  ### kenso lookup-badges get
@@ -6455,6 +6528,32 @@ Update a call type. `PATCH /v1/meeting-call-types/{key}`. Beta: needs `meeting_c
6455
6528
 
6456
6529
  Flags: `--key` (required), `--name`, `--description`, `--enabled`, `--no-enabled`, `--data`, `--each`, `--concurrency`.
6457
6530
 
6531
+ ## meeting-chase-emails
6532
+
6533
+ ### kenso meeting-chase-emails approve
6534
+
6535
+ Approve a rebook-chase email. `POST /v1/meeting-chase-emails/{chaseEmailId}/approve`. Beta: needs `meeting_emails` and `meeting_rebook_chase`.
6536
+
6537
+ Flags: `--chase-email-id` (required), `--each`, `--concurrency`.
6538
+
6539
+ ### kenso meeting-chase-emails get
6540
+
6541
+ Return a rebook-chase email. `GET /v1/meeting-chase-emails/{chaseEmailId}`. Beta: needs `meeting_emails` and `meeting_rebook_chase`.
6542
+
6543
+ Flags: `--chase-email-id` (required), `--each`, `--concurrency`.
6544
+
6545
+ ### kenso meeting-chase-emails skip
6546
+
6547
+ Skip a rebook-chase email. `POST /v1/meeting-chase-emails/{chaseEmailId}/skip`. Beta: needs `meeting_emails` and `meeting_rebook_chase`.
6548
+
6549
+ Flags: `--chase-email-id` (required), `--each`, `--concurrency`.
6550
+
6551
+ ### kenso meeting-chase-emails update
6552
+
6553
+ Edit a rebook-chase email awaiting approval. `PATCH /v1/meeting-chase-emails/{chaseEmailId}`. Beta: needs `meeting_emails` and `meeting_rebook_chase`.
6554
+
6555
+ Flags: `--chase-email-id` (required), `--subject`, `--body`, `--data`, `--each`, `--concurrency`.
6556
+
6458
6557
  ## meeting-notes
6459
6558
 
6460
6559
  ### kenso meeting-notes create
@@ -8253,6 +8352,14 @@ Update a reply template. `PATCH /v1/reply-templates/{replyTemplateId}`.
8253
8352
 
8254
8353
  Flags: `--reply-template-id` (required), `--data`, `--each`, `--concurrency`.
8255
8354
 
8355
+ ## reports
8356
+
8357
+ ### kenso reports query
8358
+
8359
+ Run a report query: count or sum the workspace's opportunities, grouped by up to two fields. `POST /v1/reports/query`. Beta: needs `opportunities` and `reports`.
8360
+
8361
+ Flags: `--object`, `--order`, `--limit`, `--data`, `--each`, `--concurrency`.
8362
+
8256
8363
  ## revival-candidates
8257
8364
 
8258
8365
  ### kenso revival-candidates list
@@ -9665,7 +9772,7 @@ Flags: `--destination`, `--approve-from-teams`, `--daily-brief-in-teams`, `--no-
9665
9772
 
9666
9773
  Update many threads. `POST /v1/threads/bulk-update`.
9667
9774
 
9668
- Flags: `--idempotency-key`, `--data`, `--each`, `--concurrency`.
9775
+ Flags: `--is-read`, `--is-archived`, `--is-saved`, `--interest`, `--reminder-at`, `--no-is-read`, `--no-is-archived`, `--no-is-saved`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
9669
9776
 
9670
9777
  ### kenso threads counts
9671
9778
 
@@ -9761,7 +9868,7 @@ Flags: `--thread-id` (required), `--action`, `--draft`, `--selection`, `--tone-o
9761
9868
 
9762
9869
  Update a thread. `PATCH /v1/threads/{threadId}`.
9763
9870
 
9764
- Flags: `--thread-id` (required), `--idempotency-key`, `--data`, `--each`, `--concurrency`.
9871
+ Flags: `--thread-id` (required), `--is-read`, `--is-archived`, `--is-saved`, `--interest`, `--reminder-at`, `--person-id`, `--no-is-read`, `--no-is-archived`, `--no-is-saved`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
9765
9872
 
9766
9873
  ### kenso threads variables
9767
9874
 
package/docs/webhooks.md CHANGED
@@ -84,3 +84,14 @@ To send a sample to a real, deployed endpoint instead, use `kenso webhook-endpoi
84
84
  ## Stopping
85
85
 
86
86
  Ctrl-C stops the listener. `listen` creates no webhook endpoint, no event subscription and no tunnel, so there is nothing to delete in Kenso. Its polls do keep the workspace's event log recording: the log stops on its own 7 days after the last poll. A poll that fails (a network error, a 5xx) prints a warning and is tried again a minute later; a bad key or a refused request ends the listener. It removes its local state file (the address `trigger` uses) on the way out.
87
+
88
+ ## Related: your API request logs
89
+
90
+ `kenso logs tail` follows the same polling pattern for your API calls: it prints each request made with a Kenso API key as it is logged, so you see a failed call as it happens.
91
+
92
+ ```bash
93
+ kenso logs tail --status 4xx,5xx --since 10m
94
+ kenso logs tail --key apk_3f9c -o json
95
+ ```
96
+
97
+ On a terminal each row is one line: time, `[status]`, method, path template, error code, duration, key id, request id. Piped, or with `-o json`, each row is one JSON object per line. A row is logged after its request finishes, so a slow request can print up to a minute out of order. Where request logs are not on for the workspace yet, it exits 4 with `Request logs are not on for this workspace yet.`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.65",
3
+ "version": "0.1.69",
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": "35d8e3366844185a8eafda5905d92e74a98a816c"
52
+ "gitHead": "aa6e0ecf8af88079ba188cdbb11846b87f1fc944"
53
53
  }
@@ -22,6 +22,7 @@ kenso studio push 12 --dir ./tpl # to preview local edits push first (draft; l
22
22
  kenso studio fill 12 --accounts ids.txt --dry-run # or --campaign 10546 --contacts leads.csv
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
+ 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)
25
26
  ```
26
27
 
27
28
  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.