kenso 0.1.213 → 0.1.215

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
@@ -104,6 +104,7 @@ Every page is in the package and prints offline with `kenso docs <topic>`.
104
104
  | [Studio (beta)](studio.md) | `studio` | Pull, push, validate, preview and fill templates |
105
105
  | [Workflows (beta)](workflows.md) | `workflows` | Keep a workflow as a file: `kenso.json`, init, pull, check, push, test, publish, and run it on ids or a CSV with a credit cap |
106
106
  | [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 |
107
+ | [Social (beta)](social.md) | `social` | Posts, channels and the rest of Kenso Social |
107
108
  | [Webhooks](webhooks.md) | `webhooks` | Build a webhook handler locally: `kenso webhooks listen --forward-to`, `trigger`, the signature |
108
109
  | [Developer sandbox](sandbox.md) | `sandbox` | `kenso sandbox`: a workspace of your own where sends are simulated, its test key, the reserved test leads |
109
110
  | [Connect accounts](connect.md) | `connect` | `kenso connect`: an inbox, calendar, CRM, GitHub or other OAuth account, signed in by the person in a browser |
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.213 (API contracts 4302c17b902f) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.215 (API contracts 2894cf50e7cf) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 2086 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
+ 2108 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
 
@@ -201,6 +201,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
201
201
  - [deal-room-answers](#deal-room-answers) (9)
202
202
  - [deal-room-buyer-inputs](#deal-room-buyer-inputs) (10)
203
203
  - [deal-room-content](#deal-room-content) (25)
204
+ - [deal-room-signing](#deal-room-signing) (9)
204
205
  - [deal-rooms](#deal-rooms) (15)
205
206
  - [deal-watch](#deal-watch) (3)
206
207
  - [deal-watch-actions](#deal-watch-actions) (4)
@@ -248,7 +249,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
248
249
  - [google-sheets](#google-sheets) (2)
249
250
  - [granola-connection](#granola-connection) (3)
250
251
  - [hosting-hostname](#hosting-hostname) (4)
251
- - [image-variables](#image-variables) (10)
252
+ - [image-variables](#image-variables) (13)
252
253
  - [images](#images) (1)
253
254
  - [imessage-lines](#imessage-lines) (7)
254
255
  - [imessage-media](#imessage-media) (2)
@@ -452,8 +453,10 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
452
453
  - [slack-channels](#slack-channels) (1)
453
454
  - [slack-connection](#slack-connection) (5)
454
455
  - [smtp-email-packs](#smtp-email-packs) (2)
456
+ - [social-channels](#social-channels) (3)
455
457
  - [social-lookups](#social-lookups) (2)
456
458
  - [social-monitor](#social-monitor) (5)
459
+ - [social-posts](#social-posts) (7)
457
460
  - [social-records](#social-records) (1)
458
461
  - [social-resolutions](#social-resolutions) (1)
459
462
  - [social-searches](#social-searches) (2)
@@ -4823,6 +4826,62 @@ Edit, approve or switch off a section. `PATCH /v1/deal-rooms/{dealRoomId}/sectio
4823
4826
 
4824
4827
  Flags: `--deal-room-id` (required), `--section-key` (required), `--status`, `--if-updated-at`, `--data`, `--each`, `--concurrency`.
4825
4828
 
4829
+ ## deal-room-signing
4830
+
4831
+ ### kenso deal-room-signing create-document
4832
+
4833
+ Prepare a document for signing from a file of the room. `POST /v1/deal-rooms/{dealRoomId}/signing-documents`. Beta: needs `deal_room`.
4834
+
4835
+ Flags: `--deal-room-id` (required), `--source-kind`, `--file-id`, `--template-id`, `--version-number`, `--title`, `--data`, `--each`, `--concurrency`.
4836
+
4837
+ ### kenso deal-room-signing discard-document
4838
+
4839
+ Discard a draft. `POST /v1/deal-rooms/{dealRoomId}/signing-documents/{documentId}/discard`. Beta: needs `deal_room`.
4840
+
4841
+ Flags: `--deal-room-id` (required), `--document-id` (required), `--each`, `--concurrency`.
4842
+
4843
+ ### kenso deal-room-signing get-document
4844
+
4845
+ Get one signing document with its history. `GET /v1/deal-rooms/{dealRoomId}/signing-documents/{documentId}`. Beta: needs `deal_room`.
4846
+
4847
+ Flags: `--deal-room-id` (required), `--document-id` (required), `--each`, `--concurrency`.
4848
+
4849
+ ### kenso deal-room-signing get-document-link
4850
+
4851
+ Get a short-lived link to download a copy of a document. `GET /v1/deal-rooms/{dealRoomId}/signing-documents/{documentId}/link`. Beta: needs `deal_room`.
4852
+
4853
+ Flags: `--deal-room-id` (required), `--document-id` (required), `--kind`, `--each`, `--concurrency`.
4854
+
4855
+ ### kenso deal-room-signing list-documents
4856
+
4857
+ List a deal room's signing documents. `GET /v1/deal-rooms/{dealRoomId}/signing-documents`. Beta: needs `deal_room`.
4858
+
4859
+ Flags: `--deal-room-id` (required), `--status`, `--each`, `--concurrency`.
4860
+
4861
+ ### kenso deal-room-signing send-document
4862
+
4863
+ Send a draft for signing. `POST /v1/deal-rooms/{dealRoomId}/signing-documents/{documentId}/send`. Beta: needs `deal_room`.
4864
+
4865
+ Flags: `--deal-room-id` (required), `--document-id` (required), `--each`, `--concurrency`.
4866
+
4867
+ ### kenso deal-room-signing set-fields
4868
+
4869
+ Set a draft's fields. `PUT /v1/deal-rooms/{dealRoomId}/signing-documents/{documentId}/fields`. Beta: needs `deal_room`.
4870
+
4871
+ Flags: `--deal-room-id` (required), `--document-id` (required), `--if-updated-at`, `--data`, `--each`, `--concurrency`.
4872
+
4873
+ ### kenso deal-room-signing set-signers
4874
+
4875
+ Set who signs a draft, in order. `PUT /v1/deal-rooms/{dealRoomId}/signing-documents/{documentId}/signers`. Beta: needs `deal_room`.
4876
+
4877
+ Flags: `--deal-room-id` (required), `--document-id` (required), `--if-updated-at`, `--data`, `--each`, `--concurrency`.
4878
+
4879
+ ### kenso deal-room-signing update-document
4880
+
4881
+ Rename a draft, change its signing order, or move its end date. `PATCH /v1/deal-rooms/{dealRoomId}/signing-documents/{documentId}`. Beta: needs `deal_room`.
4882
+
4883
+ Flags: `--deal-room-id` (required), `--document-id` (required), `--title`, `--signing-order`, `--expires-at`, `--data`, `--each`, `--concurrency`.
4884
+
4826
4885
  ## deal-rooms
4827
4886
 
4828
4887
  ### kenso deal-rooms add-person
@@ -5955,11 +6014,29 @@ Delete an image variable. `DELETE /v1/campaigns/{campaignId}/image-variables/{va
5955
6014
 
5956
6015
  Flags: `--campaign-id` (required), `--variable-key` (required), `--each`, `--concurrency`.
5957
6016
 
6017
+ ### kenso image-variables drafts-create
6018
+
6019
+ Create a draft of an image variable. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/drafts`. Beta: needs `campaign_images` and `deepinfra_images`.
6020
+
6021
+ Flags: `--campaign-id` (required), `--variable-key` (required), `--file`, `--prompt`, `--model`, `--from-draft-id`, `--url`, `--data`, `--each`, `--concurrency`.
6022
+
6023
+ ### kenso image-variables drafts-list
6024
+
6025
+ List an image variable's drafts. `GET /v1/campaigns/{campaignId}/image-variables/{variableKey}/drafts` (a list). Beta: needs `campaign_images` and `deepinfra_images`.
6026
+
6027
+ Flags: `--campaign-id` (required), `--variable-key` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
6028
+
6029
+ ### kenso image-variables drafts-use
6030
+
6031
+ Use a draft as an image variable's image. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/drafts/{draftId}/use`. Beta: needs `campaign_images` and `deepinfra_images`.
6032
+
6033
+ Flags: `--campaign-id` (required), `--variable-key` (required), `--draft-id` (required), `--each`, `--concurrency`.
6034
+
5958
6035
  ### kenso image-variables estimate
5959
6036
 
5960
6037
  Estimate an image variable's cost. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/estimate`. Beta: needs `campaign_images`.
5961
6038
 
5962
- Flags: `--campaign-id` (required), `--variable-key` (required), `--prompt`, `--model`, `--size`, `--quality`, `--format`, `--frame-count`, `--frame-duration-ms`, `--spelling-check`, `--no-spelling-check`, `--data`, `--each`, `--concurrency`.
6039
+ Flags: `--campaign-id` (required), `--variable-key` (required), `--prompt`, `--model`, `--size`, `--quality`, `--format`, `--frame-count`, `--frame-duration-ms`, `--spelling-check`, `--base-draft-id`, `--no-spelling-check`, `--data`, `--each`, `--concurrency`.
5963
6040
 
5964
6041
  ### kenso image-variables get
5965
6042
 
@@ -11625,6 +11702,26 @@ Read the workspace's SMTP email packs. `GET /v1/billing/smtp-email-packs`.
11625
11702
 
11626
11703
  Flags: `--each`, `--concurrency`.
11627
11704
 
11705
+ ## social-channels
11706
+
11707
+ ### kenso social-channels create
11708
+
11709
+ Create an internal channel. `POST /v1/social/channels`. Beta: needs `social`.
11710
+
11711
+ Flags: `--type`, `--name`, `--handle`, `--is-public`, `--revalidate-secret`, `--deploy-token`, `--no-is-public`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
11712
+
11713
+ ### kenso social-channels get
11714
+
11715
+ Get a channel. `GET /v1/social/channels/{channelId}`. Beta: needs `social`.
11716
+
11717
+ Flags: `--channel-id` (required), `--each`, `--concurrency`.
11718
+
11719
+ ### kenso social-channels list
11720
+
11721
+ List channels. `GET /v1/social/channels` (a list). Beta: needs `social`.
11722
+
11723
+ Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
11724
+
11628
11725
  ## social-lookups
11629
11726
 
11630
11727
  ### kenso social-lookups create
@@ -11671,6 +11768,50 @@ List the weeks a From your posts message went out, newest first. `GET /v1/social
11671
11768
 
11672
11769
  Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
11673
11770
 
11771
+ ## social-posts
11772
+
11773
+ ### kenso social-posts approve
11774
+
11775
+ Approve a post. `POST /v1/social/posts/{postId}/approve`. Beta: needs `social`.
11776
+
11777
+ Flags: `--post-id` (required), `--expected-updated-at`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
11778
+
11779
+ ### kenso social-posts create
11780
+
11781
+ Create a post. `POST /v1/social/posts`. Beta: needs `social`.
11782
+
11783
+ Flags: `--title`, `--body-markdown`, `--needs-review`, `--review-note`, `--body-dry-run`, `--source`, `--no-needs-review`, `--no-body-dry-run`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
11784
+
11785
+ ### kenso social-posts delete
11786
+
11787
+ Delete a post. `DELETE /v1/social/posts/{postId}`. Beta: needs `social`.
11788
+
11789
+ Flags: `--post-id` (required), `--each`, `--concurrency`.
11790
+
11791
+ ### kenso social-posts get
11792
+
11793
+ Get a post. `GET /v1/social/posts/{postId}`. Beta: needs `social`.
11794
+
11795
+ Flags: `--post-id` (required), `--each`, `--concurrency`.
11796
+
11797
+ ### kenso social-posts list
11798
+
11799
+ List posts. `GET /v1/social/posts` (a list). Beta: needs `social`.
11800
+
11801
+ Flags: `--channel-id`, `--cursor`, `--from`, `--include-dry-runs`, `--limit`, `--needs-review`, `--state`, `--to`, `--no-include-dry-runs`, `--no-needs-review`, `--all`, `--each`, `--concurrency`.
11802
+
11803
+ ### kenso social-posts schedule
11804
+
11805
+ Schedule a post. `POST /v1/social/posts/{postId}/schedule`. Beta: needs `social`.
11806
+
11807
+ Flags: `--post-id` (required), `--publish-at`, `--expected-updated-at`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
11808
+
11809
+ ### kenso social-posts update
11810
+
11811
+ Update a post. `PATCH /v1/social/posts/{postId}`. Beta: needs `social`.
11812
+
11813
+ Flags: `--post-id` (required), `--title`, `--body-markdown`, `--review-note`, `--body-dry-run`, `--no-body-dry-run`, `--data`, `--each`, `--concurrency`.
11814
+
11674
11815
  ## social-records
11675
11816
 
11676
11817
  ### kenso social-records list
package/docs/social.md ADDED
@@ -0,0 +1,37 @@
1
+ # Social (beta)
2
+
3
+ Kenso Social is Kenso's content calendar: social posts, the blog, research, the changelog and the help center, on one calendar in the app. Every route of it is a command under `kenso social`. It is in beta: a workspace without the `social` feature gets a "not found" answer from the API, and `kenso social --help` hides its commands (`--all-commands` shows them).
4
+
5
+ `kenso social <resource> <action>` is the same command as `kenso social-<resource> <action>`. The two differ only in the words you type: `kenso social posts list` runs `kenso social-posts list`.
6
+
7
+ | Command | What it does |
8
+ |---|---|
9
+ | `social channels list` | List channels |
10
+ | `social channels get <channelId>` | Get a channel |
11
+ | `social channels create` | Create an internal channel |
12
+ | `social posts list` | List posts |
13
+ | `social posts get <postId>` | Get a post |
14
+ | `social posts create` | Create a post |
15
+ | `social posts update <postId>` | Update a post |
16
+ | `social posts delete <postId>` | Delete a post |
17
+ | `social posts schedule <postId>` | Schedule a post |
18
+ | `social posts approve <postId>` | Approve a post |
19
+
20
+ ## Examples
21
+
22
+ ```bash
23
+ kenso social channels list
24
+ kenso social posts list
25
+ kenso social posts get <postId>
26
+ kenso social posts create --title "Launch notes" --body-markdown "Kenso Social is live." --needs-review
27
+ kenso social posts approve <postId>
28
+ kenso social posts schedule <postId> --dry-run
29
+ ```
30
+
31
+ Run `kenso social posts create --help` for the flags of a command, and `kenso describe social-posts create` for the full JSON body.
32
+
33
+ ## What only a person can do
34
+
35
+ Publishing a help article or its pending changes, publishing a changelog entry, changing a help topic that has published articles, and sending the changelog email (test or real) need a person signed in to the app. With an API key the API answers 403 with a message that says so (detail code `api_key_not_allowed`). You can still draft each of them from the CLI.
36
+
37
+ New Social resources (media, analytics, comments, help topics, revisions, the changelog email) join `kenso social` on their own when their routes ship: `kenso social --help` lists what your CLI version has.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.213",
3
+ "version": "0.1.215",
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": "971b39451a049cb481f592cb9fc2e95beb5b0368"
52
+ "gitHead": "109ac39f9a6f8d3d5f62fa15cc059f548c2060a2"
53
53
  }