Skip to content

Commit 6fcaee8

Browse files
committed
docs: sync CLI with capability catalog
1 parent fe8e9d8 commit 6fcaee8

11 files changed

Lines changed: 1087 additions & 43 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project uses [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Synchronize the reviewed OpenAPI contract with current capability, Social
13+
Data, onboarding, model, media, Effect, Workflow, and Realtime routes.
14+
- Reframe package documentation around the live Model/Data/Workflow catalog;
15+
model and action IDs remain dynamically discovered rather than hardcoded.
16+
17+
## [0.3.0] - 2026-09-13
18+
1019
### Added
1120

1221
- Prepare 0.3.0: unified capabilities Search, Inspect, Run and status in the
@@ -57,7 +66,8 @@ and this project uses [Semantic Versioning](https://semver.org/).
5766
- Structured errors, request IDs, bounded retries, CI, package checks, and npm
5867
release automation.
5968

60-
[Unreleased]: https://github.com/BeatAPI/beatapi-cli/compare/v0.2.0...HEAD
69+
[Unreleased]: https://github.com/BeatAPI/beatapi-cli/compare/v0.3.0...HEAD
70+
[0.3.0]: https://github.com/BeatAPI/beatapi-cli/compare/v0.2.0...v0.3.0
6171
[0.2.0]: https://github.com/BeatAPI/beatapi-cli/compare/v0.1.1...v0.2.0
6272
[0.1.1]: https://github.com/BeatAPI/beatapi-cli/compare/v0.1.0...v0.1.1
6373
[0.1.0]: https://github.com/BeatAPI/beatapi-cli/releases/tag/v0.1.0

‎README.md‎

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# BeatAPI CLI and TypeScript Client
22

3-
Unified Model/Data/Workflow commands are documented in
4-
[the capability guide](docs/capabilities.md). The 0.3.0 source adds Search,
5-
Inspect, Run and status while preserving existing commands. Check npm release
6-
availability and installed `--help` before using these new commands.
3+
Official command-line interface and TypeScript client for BeatAPI's Model,
4+
Data, and Workflow capabilities. Version 0.3.0 provides the unified Search,
5+
Inspect, Run, and status commands while preserving the existing media,
6+
workflow, task, webhook, and Realtime commands.
77

8-
Official command-line interface and TypeScript client for BeatAPI's public
9-
asynchronous workflows and Realtime Video API.
8+
The live catalog is intentionally not hardcoded into the packages. Discover
9+
current text, image, and video models plus 1,000+ Social Data actions at runtime,
10+
then inspect the selected contract before execution. See
11+
[the capability guide](docs/capabilities.md).
1012

1113
The repository contains two independently publishable npm packages:
1214

@@ -72,6 +74,12 @@ beatapi auth login
7274
beatapi auth status
7375
beatapi auth logout
7476
77+
beatapi capabilities search --query image --kind model --limit 5
78+
beatapi capabilities search --query search --kind data --platform twitter --limit 5
79+
beatapi capabilities inspect REFERENCE
80+
beatapi capabilities run REFERENCE --file ./input.json --idempotency-key REQUEST_KEY
81+
beatapi capabilities status REFERENCE TASK --wait
82+
7583
beatapi workflows list
7684
beatapi usage
7785
beatapi files upload ./input.mp3
@@ -143,9 +151,12 @@ try {
143151
}
144152
```
145153

146-
The client exposes every public contract operation: workflows, usage, file
147-
upload, music-video automatic and manual composition, ecommerce-video tasks,
148-
task polling, webhook CRUD, and Realtime session create/get/close.
154+
The client exposes typed methods for capability discovery and execution,
155+
workflows, usage, file upload, music-video automatic and manual composition,
156+
ecommerce-video tasks, task polling, webhook CRUD, and Realtime session
157+
create/get/close. Generated request and response types track the complete
158+
reviewed public OpenAPI contract, including newer onboarding and capability
159+
routes even when a convenience method is not provided.
149160

150161
Create Realtime sessions only on a trusted server. The returned `client_secret`
151162
is short lived and may be handed to the browser SDK; never expose the long-lived

‎contract/beatapi.openapi.yaml‎

Lines changed: 360 additions & 4 deletions
Large diffs are not rendered by default.

‎contract/contract.lock.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"source": "https://github.com/BeatAPI/beatapi-examples",
3-
"ref": "83a139a123a3139cf53a362132b7b1d8a0066e1f",
3+
"ref": "586c5f9227d87c763d7b647af593ec45284abbba",
44
"openapiVersion": "1.0.0-launch",
5-
"sha256": "bcd8dfb2124e7815ea52e513c99a2522e749316fc41f02a6f70957d3e3ebe293"
5+
"sha256": "0dfcad26d8a7086576085dd721011222c3176fc657dfc5b23ce47f42340607ae"
66
}

‎docs/capabilities.md‎

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Unified capabilities (0.3.0)
22

3-
These commands are implemented in this checkout. Publish both `beatapi-client`
4-
and `beatapi` before advertising them as available from npm. Check the installed
5-
`beatapi --version` and `beatapi --help`; 0.2.0 does not have these commands.
3+
These commands are available in the published `beatapi` 0.3.0 CLI and
4+
`beatapi-client` 0.3.0 package. Check `beatapi --version` and installed `--help`
5+
when diagnosing an older installation; 0.2.0 does not have these commands.
66

77
## Read-only setup and discovery
88

@@ -61,21 +61,19 @@ supported. CLI key storage does not configure an unrelated MCP host's credential
6161

6262
This additive capability surface follows the gateway's public three-tool manifest
6363
at https://beatapi.io/capabilities-mcp-tools.json and observed REST envelopes.
64-
The existing generated OpenAPI snapshot remains unchanged. Public capability
65-
projections are typed separately and keep incomplete schema fields optional;
66-
they do not claim the gateway provides a complete input or output contract.
64+
The generated OpenAPI snapshot now includes capability, Social Data, and
65+
onboarding routes. Public capability projections keep incomplete schema fields
66+
optional; they do not claim every gateway entry provides a complete input or
67+
output contract.
6768

6869
Verification: HTTP-boundary tests cover discovery, partial schema handling,
6970
same-key start retries, status routing, synchronous results and bounded polling.
7071
No paid end-to-end result is implied by those tests. Live smoke should first run
7172
Search/Inspect; a real paid example needs its own recorded result and authorization.
7273

73-
### Recorded read-only live example
74+
### Current catalog behavior
7475

75-
The built 0.3.0 binary was run against the production API with
76-
`capabilities search --query image --kind model --limit 1`. It returned
77-
`model:gpt-image-2` and cursor `1`. Inspect of that returned reference succeeded
78-
and preserved `validation.state: partial` plus `input_modes: [text, image]`,
79-
printing the missing-contract warning separately from JSON. This proves discovery
80-
and inspection, not image generation. The result ID is an observation, not a
81-
permanent default; search again when performing a user task.
76+
As verified on 2026-09-22, production Search returned 60 Model capabilities,
77+
1,000+ Data actions, and three Workflows when fully paginated. This is a dated
78+
observation, not a package constant or availability promise. Search again for
79+
every user task and choose only a current returned reference.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "beatapi-cli-workspace",
33
"version": "0.3.0",
44
"private": true,
5-
"description": "Official TypeScript client and CLI for BeatAPI async and realtime AI video APIs.",
5+
"description": "Official CLI and TypeScript client for BeatAPI models, Social Data, and workflows.",
66
"type": "module",
77
"workspaces": [
88
"packages/*"

‎packages/cli/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# beatapi
22

33
Official BeatAPI command-line interface for people, scripts, and AI agents.
4+
Discover current Model, Data, and Workflow capabilities instead of relying on
5+
a copied model list.
46

5-
The 0.3.0 source adds unified capability commands (check the installed `--help`
6-
and npm availability before use):
7+
Version 0.3.0 adds unified capability commands:
78

89
```sh
910
beatapi capabilities search --query image --kind model --limit 5

‎packages/cli/package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "beatapi",
33
"version": "0.3.0",
4-
"description": "Command-line interface for BeatAPI async and realtime AI video APIs.",
4+
"description": "Command-line interface for BeatAPI models, Social Data, and workflows.",
55
"type": "module",
66
"bin": {
77
"beatapi": "dist/bin.js"
@@ -41,6 +41,8 @@
4141
"keywords": [
4242
"beatapi",
4343
"cli",
44+
"agent-toolkit",
45+
"social-data",
4446
"ai-video",
4547
"music-video",
4648
"ecommerce-video",

‎packages/client/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# beatapi-client
22

3-
Official TypeScript client for the public BeatAPI asynchronous and Realtime
4-
Video APIs.
3+
Official TypeScript client for BeatAPI Model, Data, Workflow, asynchronous
4+
media, and Realtime APIs.
55

66
```bash
77
npm install beatapi-client

‎packages/client/package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "beatapi-client",
33
"version": "0.3.0",
4-
"description": "Type-safe JavaScript and TypeScript client for BeatAPI async and realtime video APIs.",
4+
"description": "Type-safe JavaScript and TypeScript client for BeatAPI models, data, and workflows.",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
@@ -39,6 +39,8 @@
3939
"homepage": "https://docs.beatapi.io/",
4040
"keywords": [
4141
"beatapi",
42+
"agent-toolkit",
43+
"social-data",
4244
"ai-video",
4345
"music-video",
4446
"ecommerce-video",

0 commit comments

Comments
 (0)