|
1 | 1 | # BeatAPI CLI and TypeScript Client |
2 | 2 |
|
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. |
7 | 7 |
|
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). |
10 | 12 |
|
11 | 13 | The repository contains two independently publishable npm packages: |
12 | 14 |
|
@@ -72,6 +74,12 @@ beatapi auth login |
72 | 74 | beatapi auth status |
73 | 75 | beatapi auth logout |
74 | 76 |
|
| 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 | +
|
75 | 83 | beatapi workflows list |
76 | 84 | beatapi usage |
77 | 85 | beatapi files upload ./input.mp3 |
@@ -143,9 +151,12 @@ try { |
143 | 151 | } |
144 | 152 | ``` |
145 | 153 |
|
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. |
149 | 160 |
|
150 | 161 | Create Realtime sessions only on a trusted server. The returned `client_secret` |
151 | 162 | is short lived and may be handed to the browser SDK; never expose the long-lived |
|
0 commit comments