kenso 0.1.117 → 0.1.119
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 +4 -0
- package/dist/kenso.js +61 -41
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/batch.md +2 -2
- package/docs/crm.md +2 -2
- package/docs/leads.md +1 -1
- package/docs/reference.md +11 -5
- package/package.json +2 -2
package/docs/batch.md
CHANGED
|
@@ -105,7 +105,7 @@ The first Ctrl-C cancels the requests in flight and starts no new chunks. The CL
|
|
|
105
105
|
|---|---|---|
|
|
106
106
|
| `contacts import` | 1,000 | 1 per campaign |
|
|
107
107
|
| `contacts update`, `remove`, `restore`, `pause`, `resume` | 1,000 | 4 (`--concurrency`) |
|
|
108
|
-
| `contacts tag`, `untag` |
|
|
108
|
+
| `contacts tag`, `untag` | 250 | 4 (`--concurrency`) |
|
|
109
109
|
| `people import` | 200 | 4 (`--concurrency`) |
|
|
110
110
|
| `accounts import` | 100 | 4 (`--concurrency`) |
|
|
111
111
|
| `studio fill` | 500 ids per fill run | 1 |
|
|
@@ -115,7 +115,7 @@ The first Ctrl-C cancels the requests in flight and starts no new chunks. The CL
|
|
|
115
115
|
|
|
116
116
|
Retries:
|
|
117
117
|
|
|
118
|
-
- **429:** the CLI waits for `Retry-After` (at least 1 second, at most 60 seconds
|
|
118
|
+
- **429:** the CLI waits for `Retry-After` (at least 1 second, at most 60 seconds) plus a random 0 to 20%, so several agents on one key do not all retry at the same moment, and tries again, with up to 15 minutes of waiting per command. After that it exits 6 (`rate_limited`).
|
|
119
119
|
- **502, 503, 504 and network errors:** up to 3 retries with backoff, for GET, PUT, PATCH and DELETE, and for the POST routes the CLI knows are safe to repeat.
|
|
120
120
|
- **`contacts import`:** no quick retry. After a 5xx or a dropped connection it waits 130 seconds, longer than the gateway's request timeout, and resends the chunk once.
|
|
121
121
|
- **`contacts remove`:** after a 5xx or a dropped connection it waits 2 seconds and resends once. Ids the first call already removed are reported `ok` (reason `already_removed`), so the undo still restores them.
|
package/docs/crm.md
CHANGED
|
@@ -141,10 +141,10 @@ It makes a change set: the accounts it names and, for each, the field, its value
|
|
|
141
141
|
|
|
142
142
|
`kenso accounts bulk-update` used to be the generated command for the route's older one-field body, which sets one `accountType` on up to 500 accounts and needs only `accounts`. The route still takes that body, but this command no longer sends it: use `kenso accounts update --each` with an `accountType` column, or `kenso api POST /v1/accounts/bulk-update --data '{"accountIds":[812,813],"accountType":"lost"}'`.
|
|
143
143
|
|
|
144
|
-
`people bulk-update` and `opportunities bulk-update` work the same way. People take `--set` for `ownerMemberId` (or `owner`), `leadStatus`, `title`, `seniority`, `department` and `location`, and a `--filter` of `kenso people search --data` fields (`leadStatus`, `roles`, `tagIds`, `q` and the rest). Deals take `stage` (a live stage key), `ownerMemberId` (or `owner`), `closeDate` (or `close`), `amount`, `dealType` and `nextStep`, and a `--filter` of `kenso opportunities search --data` fields (`filters`, `accountId`, `q`):
|
|
144
|
+
`people bulk-update` and `opportunities bulk-update` work the same way. People take `--set` for `ownerMemberId` (or `owner`), `leadStatus`, `title`, `seniority`, `department` and `location`, and a `--filter` of `kenso people search --data` fields (`leadStatus`, `roles`, `tagIds`, `q` and the rest). Deals take `stage` (a live stage key), `ownerMemberId` (or `owner`), `closeDate` (or `close`), `amount`, `dealType` and `nextStep`, and a `--filter` of `kenso opportunities search --data` fields (`filters`, `accountId`, `pipelineId`, `q`, `missingFields`). A stage belongs to one pipeline, and a bulk stage change keeps every deal in its own: `"pipelineId"` in the filter names one pipeline's deals, and a deal of another pipeline is counted under `failed` with the row code `other_pipeline` and is not moved (`kenso opportunities update` moves one deal to another pipeline):
|
|
145
145
|
|
|
146
146
|
```bash
|
|
147
|
-
kenso opportunities bulk-update --filter '{"filters":[{"field":"stageCategory","operator":"is","values":["open"]}]}' --set stage=proposal --dry-run
|
|
147
|
+
kenso opportunities bulk-update --filter '{"pipelineId":3,"filters":[{"field":"stageCategory","operator":"is","values":["open"]}]}' --set stage=proposal --dry-run
|
|
148
148
|
kenso people bulk-update --ids 501,502 --set owner=42 --yes
|
|
149
149
|
```
|
|
150
150
|
|
package/docs/leads.md
CHANGED
|
@@ -176,7 +176,7 @@ kenso contacts tag --tag 31 --ids ids.txt --yes
|
|
|
176
176
|
kenso contacts untag --tag 31 --ids ids.txt --yes
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
`tag`
|
|
179
|
+
`tag` sends the ids to `POST /v1/tags/{tagId}/assignments/bulk-create` and `untag` to `POST /v1/tags/{tagId}/assignments/bulk-delete`, 250 per call. A contact that already has the tag counts as `ok`. Each contact's result is in `results.csv`: `ok`, `not_found`, or `failed` with the API's reason.
|
|
180
180
|
|
|
181
181
|
## Export a campaign's leads
|
|
182
182
|
|
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.119 (API contracts 8d56e9d30422) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1902 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
|
|
|
@@ -444,7 +444,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
444
444
|
- [theme-mentions](#theme-mentions) (3)
|
|
445
445
|
- [theme-suggestions](#theme-suggestions) (3)
|
|
446
446
|
- [themes](#themes) (7)
|
|
447
|
-
- [threads](#threads) (
|
|
447
|
+
- [threads](#threads) (21)
|
|
448
448
|
- [today](#today) (1)
|
|
449
449
|
- [today-items](#today-items) (1)
|
|
450
450
|
- [tool-calls](#tool-calls) (1)
|
|
@@ -3910,13 +3910,13 @@ Flags: `--company-id`, `--segment-id`, `--email`, `--search`, `--is-qualified`,
|
|
|
3910
3910
|
|
|
3911
3911
|
### kenso contacts tag
|
|
3912
3912
|
|
|
3913
|
-
Add a tag to contacts by --ids only (a campaign: list its ids first). `POST /v1/tags/{tagId}/assignments`.
|
|
3913
|
+
Add a tag to contacts by --ids only (a campaign: list its ids first). `POST /v1/tags/{tagId}/assignments/bulk-create`.
|
|
3914
3914
|
|
|
3915
3915
|
Flags: `--concurrency`, `--ids`, `--out`, `--tag`.
|
|
3916
3916
|
|
|
3917
3917
|
### kenso contacts untag
|
|
3918
3918
|
|
|
3919
|
-
Remove a tag from contacts by --ids only (a campaign: list its ids first). `
|
|
3919
|
+
Remove a tag from contacts by --ids only (a campaign: list its ids first). `POST /v1/tags/{tagId}/assignments/bulk-delete`.
|
|
3920
3920
|
|
|
3921
3921
|
Flags: `--concurrency`, `--ids`, `--out`, `--tag`.
|
|
3922
3922
|
|
|
@@ -11226,6 +11226,12 @@ Flags: `--theme-id` (required), `--name`, `--description`, `--status`, `--data`,
|
|
|
11226
11226
|
|
|
11227
11227
|
## threads
|
|
11228
11228
|
|
|
11229
|
+
### kenso threads batch-messages
|
|
11230
|
+
|
|
11231
|
+
List the messages of several threads. `GET /v1/threads/messages`.
|
|
11232
|
+
|
|
11233
|
+
Flags: `--include-html`, `--thread-ids`, `--no-include-html`, `--each`, `--concurrency`.
|
|
11234
|
+
|
|
11229
11235
|
### kenso threads bulk-update
|
|
11230
11236
|
|
|
11231
11237
|
Update many threads. `POST /v1/threads/bulk-update`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.119",
|
|
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": "ac3a3658f27265b47af39d6321363f8de837daf4"
|
|
53
53
|
}
|