@celedon/davinci-sdk
v0.1.0
Published
Official JavaScript/TypeScript SDK for the Davinci API
Downloads
111
Readme
Davinci TypeScript SDK
Official TypeScript/JavaScript SDK for Davinci's public API.
Install
npm install @celedon/davinci-sdkQuick Start
import { DavinciClient } from '@celedon/davinci-sdk';
const client = new DavinciClient({
apiKey: process.env.DAVINCI_API_KEY!,
baseUrl: 'https://davinci-app.com',
});
const { projects } = await client.projects.list({ limit: 10 });
const tree = await client.projects.getTree(projects[0].id!, { branch: 'main' });For a full read API walkthrough:
DAVINCI_API_KEY=dav_ak_live_... npm run example:read-projectAuthentication
Use a Davinci personal access token in Authorization: Bearer .... The
project read endpoints require the projects:read scope.
Development
Generated OpenAPI client code lives in src/generated/; the public SDK
wrapper lives in src/.
npm run lint
npm test
npm run build
npm pack --dry-runFull HTTP API docs live at https://docs.davinci-app.com/pages/api/introduction.
