kenso 0.1.79 → 0.1.80

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,7 @@ 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
+ | `deleted-accounts list`, `accounts restore <id>` | The accounts deleted in the last 30 days, and bringing one back |
12
13
  | `capture status` | Your captured mailbox, its backfill progress and what teammates see of a captured email. Needs the `crm_capture` flag |
13
14
  | `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
15
  | `capture private on\|off` | Hide your captured email from teammates, or show it again. Email only: meetings stay visible |
@@ -174,6 +175,15 @@ kenso crm-sync-issues list --connection-id 7 --all
174
175
 
175
176
  Run `kenso crm-connections --help` (or add `--all-commands` when the actions are hidden) to see every action.
176
177
 
178
+ ## Restore a deleted account
179
+
180
+ ```bash
181
+ kenso deleted-accounts list
182
+ kenso accounts restore 812
183
+ ```
184
+
185
+ A deleted account can be restored for 30 days. `deleted-accounts list` shows each one with who deleted it, `expiresAt` (restore works until then) and what comes back: `personCount`, `opportunityCount` and `touchCount`. `accounts restore <id>` brings the account back with its domains, its people, its deals and its planned touches, which wait for approval again. A domain another account took since stays with that account and is listed in `domainsTaken`. A merged account is not listed and cannot be restored: a merge has no undo. Both commands are behind the `crm_import_export` feature flag (`404` while it is off).
186
+
177
187
  ## A deal's stage history
178
188
 
179
189
  ```bash
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.79 (API contracts 34adee9f0db3) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.80 (API contracts d8c885628a47) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1691 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
+ 1695 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) (20)
37
+ - [accounts](#accounts) (22)
38
38
  - [ad-audiences](#ad-audiences) (5)
39
39
  - [ad-connections](#ad-connections) (6)
40
40
  - [agent](#agent) (1)
@@ -165,6 +165,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
165
165
  - [dashboard](#dashboard) (1)
166
166
  - [dashboards](#dashboards) (8)
167
167
  - [data-retention](#data-retention) (2)
168
+ - [deleted-accounts](#deleted-accounts) (1)
168
169
  - [deliverability-rules](#deliverability-rules) (1)
169
170
  - [delivery-defaults](#delivery-defaults) (3)
170
171
  - [delivery-settings](#delivery-settings) (2)
@@ -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
  - [onboarding-builds](#onboarding-builds) (3)
311
312
  - [onboarding-connect-plan](#onboarding-connect-plan) (1)
312
313
  - [onboarding-next-step](#onboarding-next-step) (1)
313
- - [opportunities](#opportunities) (10)
314
+ - [opportunities](#opportunities) (11)
314
315
  - [opportunity-people](#opportunity-people) (4)
315
316
  - [opportunity-settings](#opportunity-settings) (3)
316
317
  - [opportunity-stages](#opportunity-stages) (2)
@@ -671,6 +672,12 @@ Delete an account. `DELETE /v1/accounts/{accountId}`. Beta: needs `accounts`.
671
672
 
672
673
  Flags: `--account-id` (required), `--each`, `--concurrency`.
673
674
 
675
+ ### kenso accounts export
676
+
677
+ Export the accounts a selection matches as CSV. `POST /v1/accounts/export`. Beta: needs `accounts` and `crm_import_export`.
678
+
679
+ Flags: `--search`, `--time-zone`, `--include-import-only`, `--sort`, `--no-include-import-only`, `--out`, `--data`, `--each`, `--concurrency`.
680
+
674
681
  ### kenso accounts facets
675
682
 
676
683
  Count accounts per filter value for the filter panel. `POST /v1/accounts/facets`. Beta: needs `accounts`.
@@ -731,6 +738,12 @@ Research an account, or return its research when it is fresh. `POST /v1/accounts
731
738
 
732
739
  Flags: `--account-id` (required), `--force`, `--no-force`, `--data`, `--each`, `--concurrency`.
733
740
 
741
+ ### kenso accounts restore
742
+
743
+ Restore a deleted account. `POST /v1/accounts/{accountId}/restore`. Beta: needs `accounts` and `crm_import_export`.
744
+
745
+ Flags: `--account-id` (required), `--each`, `--concurrency`.
746
+
734
747
  ### kenso accounts search
735
748
 
736
749
  Search accounts in the current workspace with filter conditions and AND / OR groups. `POST /v1/accounts/search` (a list). Beta: needs `accounts`.
@@ -3839,6 +3852,14 @@ Change the workspace's data retention period. `PATCH /v1/data-retention`. Beta:
3839
3852
 
3840
3853
  Flags: `--months`, `--data`, `--each`, `--concurrency`.
3841
3854
 
3855
+ ## deleted-accounts
3856
+
3857
+ ### kenso deleted-accounts list
3858
+
3859
+ List the deleted accounts that can still be restored. `GET /v1/deleted-accounts` (a list). Beta: needs `accounts` and `crm_import_export`.
3860
+
3861
+ Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
3862
+
3842
3863
  ## deliverability-rules
3843
3864
 
3844
3865
  ### kenso deliverability-rules list
@@ -7487,6 +7508,12 @@ Delete an opportunity. `DELETE /v1/opportunities/{opportunityId}`. Beta: needs `
7487
7508
 
7488
7509
  Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
7489
7510
 
7511
+ ### kenso opportunities export
7512
+
7513
+ Export the opportunities a selection matches as CSV. `POST /v1/opportunities/export`. Beta: needs `crm_import_export` and `opportunities`.
7514
+
7515
+ Flags: `--account-id`, `--search`, `--time-zone`, `--sort`, `--out`, `--data`, `--each`, `--concurrency`.
7516
+
7490
7517
  ### kenso opportunities fill-details
7491
7518
 
7492
7519
  Fill an opportunity's details from its context. `POST /v1/opportunities/{opportunityId}/fill-details`. Beta: needs `opportunities`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
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": "6674814580159927133da996869ac7d3bdba80df"
52
+ "gitHead": "4e72d27b90a660a40dd387218e79743f4dbc037a"
53
53
  }