@bamacharanchhandogi/clipwise-sdk
v0.1.0
Published
Clipwise automation SDK for video agent and video tool workflows.
Readme
@bamacharanchhandogi/clipwise-sdk
Node SDK for Clipwise automation. It exposes:
ClipwiseClientfor authenticated API requests.AgentWorkflowAdapterfor Clipwise Video Agent generation.VideoCompanyToolAdapterfor VideoCompany tool workflows.
import { ClipwiseClient, AgentWorkflowAdapter } from '@bamacharanchhandogi/clipwise-sdk';
const client = new ClipwiseClient({ baseUrl: 'https://app.clipwise.ai' });
await client.login({ email: process.env.CLIPWISE_EMAIL, password: process.env.CLIPWISE_PASSWORD });
const agent = new AgentWorkflowAdapter(client);
const started = await agent.createPlan({ prompt: 'Create a 30 second SaaS launch video' });
const state = await agent.waitForPlan(started.video_id);
console.log(state.plan);For VideoCompany tools, discover backend resource IDs before starting:
const voices = await client.listResource('voices', { language: 'english' });
console.log(voices.results?.[0]?.id);