JSPM

@yotoplay/yotolabs-sdk

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q32221F
  • License MIT

Experimental TypeScript SDK for Yoto's bleeding-edge features

Package Exports

  • @yotoplay/yotolabs-sdk

Readme

@yotoplay/yotolabs-sdk

An experimental SDK for YotoLabs features, extending the main yoto-sdk.

Installation

npm install @yotoplay/yotolabs-sdk

Note: This package automatically installs @yotoplay/yoto-sdk as a dependency.

Quick Start

Basic Usage

import { yotoLabsSdk, createYotoLabsSdk } from '@yotoplay/yotolabs-sdk';

const sdk = createYotoLabsSdk({
  clientId: 'your-client-id'
});

const job = await sdk.createJob({
  title: 'My Card',
  content: { /* card content */ },
  metadata: { /* metadata */ }
});

API Reference

Voice Services

// Get a list of 11Labs voiceIds
const voices = await yotoLabsSdk.getVoices();

Job Management

// Create a new job
const job = await yotoLabsSdk.createJob({
  title: 'My Card',
  content: { /* card content */ },
  metadata: { /* metadata */ }
});

// Get job status
const status = await yotoLabsSdk.getJobStatus(jobId);

// Update card with job
const updateJob = await yotoLabsSdk.updateCardJob(cardId, {
  content: { /* new content */ },
  metadata: { /* new metadata */ }
});

License

MIT